From 93c3e8dda67cc5cb967a2e7ca5a833b073e52918 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 16 Aug 2019 03:08:02 +0000 Subject: [PATCH 1/4] Generated from 696212c605edef333cba0f0e86d42ba344f4fc42 address the comments --- .../datafactory/mgmt/datafactory/models.go | 21 + .../datafactory/mgmt/datafactory/models.go | 21 + .../mgmt/2018-06-01/datafactory/models.go | 468 ++++++++++++++++++ 3 files changed, 510 insertions(+) diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index 6ce6d66b6dda..d42e6e684332 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -817,6 +817,15 @@ const ( TypeZohoSource TypeBasicCopySource = original.TypeZohoSource ) +type TypeBasicCustomSetupBase = original.TypeBasicCustomSetupBase + +const ( + TypeCmdkeySetup TypeBasicCustomSetupBase = original.TypeCmdkeySetup + TypeComponentSetup TypeBasicCustomSetupBase = original.TypeComponentSetup + TypeCustomSetupBase TypeBasicCustomSetupBase = original.TypeCustomSetupBase + TypeEnvironmentVariableSetup TypeBasicCustomSetupBase = original.TypeEnvironmentVariableSetup +) + type TypeBasicDataset = original.TypeBasicDataset const ( @@ -1235,6 +1244,7 @@ type BasicActivity = original.BasicActivity type BasicControlActivity = original.BasicControlActivity type BasicCopySink = original.BasicCopySink type BasicCopySource = original.BasicCopySource +type BasicCustomSetupBase = original.BasicCustomSetupBase type BasicDataset = original.BasicDataset type BasicDatasetCompression = original.BasicDatasetCompression type BasicDatasetStorageFormat = original.BasicDatasetStorageFormat @@ -1268,12 +1278,16 @@ type CassandraTableDataset = original.CassandraTableDataset type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties type CloudError = original.CloudError type CloudErrorBody = original.CloudErrorBody +type CmdkeySetup = original.CmdkeySetup +type CmdkeySetupTypeProperties = original.CmdkeySetupTypeProperties type CommonDataServiceForAppsEntityDataset = original.CommonDataServiceForAppsEntityDataset type CommonDataServiceForAppsEntityDatasetTypeProperties = original.CommonDataServiceForAppsEntityDatasetTypeProperties type CommonDataServiceForAppsLinkedService = original.CommonDataServiceForAppsLinkedService type CommonDataServiceForAppsLinkedServiceTypeProperties = original.CommonDataServiceForAppsLinkedServiceTypeProperties type CommonDataServiceForAppsSink = original.CommonDataServiceForAppsSink type CommonDataServiceForAppsSource = original.CommonDataServiceForAppsSource +type ComponentSetup = original.ComponentSetup +type ComponentSetupTypeProperties = original.ComponentSetupTypeProperties type ConcurLinkedService = original.ConcurLinkedService type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties type ConcurObjectDataset = original.ConcurObjectDataset @@ -1302,6 +1316,7 @@ type CustomActivityReferenceObject = original.CustomActivityReferenceObject type CustomActivityTypeProperties = original.CustomActivityTypeProperties type CustomDataSourceLinkedService = original.CustomDataSourceLinkedService type CustomDataset = original.CustomDataset +type CustomSetupBase = original.CustomSetupBase type DataLakeAnalyticsUSQLActivity = original.DataLakeAnalyticsUSQLActivity type DataLakeAnalyticsUSQLActivityTypeProperties = original.DataLakeAnalyticsUSQLActivityTypeProperties type DatabricksNotebookActivity = original.DatabricksNotebookActivity @@ -1371,6 +1386,8 @@ type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypePropert type EloquaObjectDataset = original.EloquaObjectDataset type EloquaSource = original.EloquaSource type EntityReference = original.EntityReference +type EnvironmentVariableSetup = original.EnvironmentVariableSetup +type EnvironmentVariableSetupTypeProperties = original.EnvironmentVariableSetupTypeProperties type ExecutePipelineActivity = original.ExecutePipelineActivity type ExecutePipelineActivityTypeProperties = original.ExecutePipelineActivityTypeProperties type ExecuteSSISPackageActivity = original.ExecuteSSISPackageActivity @@ -1520,6 +1537,7 @@ type JiraLinkedService = original.JiraLinkedService type JiraLinkedServiceTypeProperties = original.JiraLinkedServiceTypeProperties type JiraObjectDataset = original.JiraObjectDataset type JiraSource = original.JiraSource +type LicensedComponentSetupTypeProperties = original.LicensedComponentSetupTypeProperties type LinkedIntegrationRuntime = original.LinkedIntegrationRuntime type LinkedIntegrationRuntimeKeyAuthorization = original.LinkedIntegrationRuntimeKeyAuthorization type LinkedIntegrationRuntimeRbacAuthorization = original.LinkedIntegrationRuntimeRbacAuthorization @@ -2246,6 +2264,9 @@ func PossibleTypeBasicCopySinkValues() []TypeBasicCopySink { func PossibleTypeBasicCopySourceValues() []TypeBasicCopySource { return original.PossibleTypeBasicCopySourceValues() } +func PossibleTypeBasicCustomSetupBaseValues() []TypeBasicCustomSetupBase { + return original.PossibleTypeBasicCustomSetupBaseValues() +} func PossibleTypeBasicDatasetCompressionValues() []TypeBasicDatasetCompression { return original.PossibleTypeBasicDatasetCompressionValues() } diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index 69f01ae0369d..58e8c47bd7bd 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -817,6 +817,15 @@ const ( TypeZohoSource TypeBasicCopySource = original.TypeZohoSource ) +type TypeBasicCustomSetupBase = original.TypeBasicCustomSetupBase + +const ( + TypeCmdkeySetup TypeBasicCustomSetupBase = original.TypeCmdkeySetup + TypeComponentSetup TypeBasicCustomSetupBase = original.TypeComponentSetup + TypeCustomSetupBase TypeBasicCustomSetupBase = original.TypeCustomSetupBase + TypeEnvironmentVariableSetup TypeBasicCustomSetupBase = original.TypeEnvironmentVariableSetup +) + type TypeBasicDataset = original.TypeBasicDataset const ( @@ -1235,6 +1244,7 @@ type BasicActivity = original.BasicActivity type BasicControlActivity = original.BasicControlActivity type BasicCopySink = original.BasicCopySink type BasicCopySource = original.BasicCopySource +type BasicCustomSetupBase = original.BasicCustomSetupBase type BasicDataset = original.BasicDataset type BasicDatasetCompression = original.BasicDatasetCompression type BasicDatasetStorageFormat = original.BasicDatasetStorageFormat @@ -1268,12 +1278,16 @@ type CassandraTableDataset = original.CassandraTableDataset type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties type CloudError = original.CloudError type CloudErrorBody = original.CloudErrorBody +type CmdkeySetup = original.CmdkeySetup +type CmdkeySetupTypeProperties = original.CmdkeySetupTypeProperties type CommonDataServiceForAppsEntityDataset = original.CommonDataServiceForAppsEntityDataset type CommonDataServiceForAppsEntityDatasetTypeProperties = original.CommonDataServiceForAppsEntityDatasetTypeProperties type CommonDataServiceForAppsLinkedService = original.CommonDataServiceForAppsLinkedService type CommonDataServiceForAppsLinkedServiceTypeProperties = original.CommonDataServiceForAppsLinkedServiceTypeProperties type CommonDataServiceForAppsSink = original.CommonDataServiceForAppsSink type CommonDataServiceForAppsSource = original.CommonDataServiceForAppsSource +type ComponentSetup = original.ComponentSetup +type ComponentSetupTypeProperties = original.ComponentSetupTypeProperties type ConcurLinkedService = original.ConcurLinkedService type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties type ConcurObjectDataset = original.ConcurObjectDataset @@ -1302,6 +1316,7 @@ type CustomActivityReferenceObject = original.CustomActivityReferenceObject type CustomActivityTypeProperties = original.CustomActivityTypeProperties type CustomDataSourceLinkedService = original.CustomDataSourceLinkedService type CustomDataset = original.CustomDataset +type CustomSetupBase = original.CustomSetupBase type DataLakeAnalyticsUSQLActivity = original.DataLakeAnalyticsUSQLActivity type DataLakeAnalyticsUSQLActivityTypeProperties = original.DataLakeAnalyticsUSQLActivityTypeProperties type DatabricksNotebookActivity = original.DatabricksNotebookActivity @@ -1371,6 +1386,8 @@ type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypePropert type EloquaObjectDataset = original.EloquaObjectDataset type EloquaSource = original.EloquaSource type EntityReference = original.EntityReference +type EnvironmentVariableSetup = original.EnvironmentVariableSetup +type EnvironmentVariableSetupTypeProperties = original.EnvironmentVariableSetupTypeProperties type ExecutePipelineActivity = original.ExecutePipelineActivity type ExecutePipelineActivityTypeProperties = original.ExecutePipelineActivityTypeProperties type ExecuteSSISPackageActivity = original.ExecuteSSISPackageActivity @@ -1520,6 +1537,7 @@ type JiraLinkedService = original.JiraLinkedService type JiraLinkedServiceTypeProperties = original.JiraLinkedServiceTypeProperties type JiraObjectDataset = original.JiraObjectDataset type JiraSource = original.JiraSource +type LicensedComponentSetupTypeProperties = original.LicensedComponentSetupTypeProperties type LinkedIntegrationRuntime = original.LinkedIntegrationRuntime type LinkedIntegrationRuntimeKeyAuthorization = original.LinkedIntegrationRuntimeKeyAuthorization type LinkedIntegrationRuntimeRbacAuthorization = original.LinkedIntegrationRuntimeRbacAuthorization @@ -2246,6 +2264,9 @@ func PossibleTypeBasicCopySinkValues() []TypeBasicCopySink { func PossibleTypeBasicCopySourceValues() []TypeBasicCopySource { return original.PossibleTypeBasicCopySourceValues() } +func PossibleTypeBasicCustomSetupBaseValues() []TypeBasicCustomSetupBase { + return original.PossibleTypeBasicCustomSetupBaseValues() +} func PossibleTypeBasicDatasetCompressionValues() []TypeBasicDatasetCompression { return original.PossibleTypeBasicDatasetCompressionValues() } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index 4949a98676f4..cb0be703a8ad 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -1687,6 +1687,25 @@ func PossibleTypeBasicCopySourceValues() []TypeBasicCopySource { return []TypeBasicCopySource{TypeAmazonMWSSource, TypeAmazonRedshiftSource, TypeAvroSource, TypeAzureBlobFSSource, TypeAzureDataExplorerSource, TypeAzureDataLakeStoreSource, TypeAzureMariaDBSource, TypeAzureMySQLSource, TypeAzurePostgreSQLSource, TypeAzureSQLSource, TypeAzureTableSource, TypeBinarySource, TypeBlobSource, TypeCassandraSource, TypeCommonDataServiceForAppsSource, TypeConcurSource, TypeCopySource, TypeCosmosDbMongoDbAPISource, TypeCouchbaseSource, TypeDb2Source, TypeDelimitedTextSource, TypeDocumentDbCollectionSource, TypeDrillSource, TypeDynamicsAXSource, TypeDynamicsCrmSource, TypeDynamicsSource, TypeEloquaSource, TypeFileSystemSource, TypeGoogleAdWordsSource, TypeGoogleBigQuerySource, TypeGreenplumSource, TypeHBaseSource, TypeHdfsSource, TypeHiveSource, TypeHTTPSource, TypeHubspotSource, TypeImpalaSource, TypeInformixSource, TypeJiraSource, TypeJSONSource, TypeMagentoSource, TypeMariaDBSource, TypeMarketoSource, TypeMicrosoftAccessSource, TypeMongoDbSource, TypeMongoDbV2Source, TypeMySQLSource, TypeNetezzaSource, TypeODataSource, TypeOdbcSource, TypeOffice365Source, TypeOracleServiceCloudSource, TypeOracleSource, TypeParquetSource, TypePaypalSource, TypePhoenixSource, TypePostgreSQLSource, TypePrestoSource, TypeQuickBooksSource, TypeRelationalSource, TypeResponsysSource, TypeRestSource, TypeSalesforceMarketingCloudSource, TypeSalesforceServiceCloudSource, TypeSalesforceSource, TypeSapBwSource, TypeSapCloudForCustomerSource, TypeSapEccSource, TypeSapHanaSource, TypeSapOpenHubSource, TypeSapTableSource, TypeServiceNowSource, TypeShopifySource, TypeSparkSource, TypeSQLDWSource, TypeSQLMISource, TypeSQLServerSource, TypeSQLSource, TypeSquareSource, TypeSybaseSource, TypeTeradataSource, TypeVerticaSource, TypeWebSource, TypeXeroSource, TypeZohoSource} } +// TypeBasicCustomSetupBase enumerates the values for type basic custom setup base. +type TypeBasicCustomSetupBase string + +const ( + // TypeCmdkeySetup ... + TypeCmdkeySetup TypeBasicCustomSetupBase = "CmdkeySetup" + // TypeComponentSetup ... + TypeComponentSetup TypeBasicCustomSetupBase = "ComponentSetup" + // TypeCustomSetupBase ... + TypeCustomSetupBase TypeBasicCustomSetupBase = "CustomSetupBase" + // TypeEnvironmentVariableSetup ... + TypeEnvironmentVariableSetup TypeBasicCustomSetupBase = "EnvironmentVariableSetup" +) + +// PossibleTypeBasicCustomSetupBaseValues returns an array of possible values for the TypeBasicCustomSetupBase const type. +func PossibleTypeBasicCustomSetupBaseValues() []TypeBasicCustomSetupBase { + return []TypeBasicCustomSetupBase{TypeCmdkeySetup, TypeComponentSetup, TypeCustomSetupBase, TypeEnvironmentVariableSetup} +} + // TypeBasicDataset enumerates the values for type basic dataset. type TypeBasicDataset string @@ -45268,6 +45287,136 @@ type CloudErrorBody struct { Details *[]CloudError `json:"details,omitempty"` } +// CmdkeySetup the custom setup of running cmdkey commands. +type CmdkeySetup struct { + // CmdkeySetupTypeProperties - Cmdkey command custom setup type properties. + *CmdkeySetupTypeProperties `json:"typeProperties,omitempty"` + // Type - Possible values include: 'TypeCustomSetupBase', 'TypeComponentSetup', 'TypeEnvironmentVariableSetup', 'TypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CmdkeySetup. +func (cs CmdkeySetup) MarshalJSON() ([]byte, error) { + cs.Type = TypeCmdkeySetup + objectMap := make(map[string]interface{}) + if cs.CmdkeySetupTypeProperties != nil { + objectMap["typeProperties"] = cs.CmdkeySetupTypeProperties + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + return json.Marshal(objectMap) +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsComponentSetup() (*ComponentSetup, bool) { + return nil, false +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return nil, false +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsCmdkeySetup() (*CmdkeySetup, bool) { + return &cs, true +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsCustomSetupBase() (*CustomSetupBase, bool) { + return nil, false +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for CmdkeySetup struct. +func (cs *CmdkeySetup) 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 cmdkeySetupTypeProperties CmdkeySetupTypeProperties + err = json.Unmarshal(*v, &cmdkeySetupTypeProperties) + if err != nil { + return err + } + cs.CmdkeySetupTypeProperties = &cmdkeySetupTypeProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCustomSetupBase + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// CmdkeySetupTypeProperties cmdkey command custom setup type properties. +type CmdkeySetupTypeProperties struct { + // TargetName - The server name of data source access. + TargetName interface{} `json:"targetName,omitempty"` + // UserName - The user name of data source access. + UserName interface{} `json:"userName,omitempty"` + // Password - The password of data source access. + Password BasicSecretBase `json:"password,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for CmdkeySetupTypeProperties struct. +func (cstp *CmdkeySetupTypeProperties) 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 "targetName": + if v != nil { + var targetName interface{} + err = json.Unmarshal(*v, &targetName) + if err != nil { + return err + } + cstp.TargetName = targetName + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + cstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + cstp.Password = password + } + } + } + + return nil +} + // CommonDataServiceForAppsEntityDataset the Common Data Service for Apps entity dataset. type CommonDataServiceForAppsEntityDataset struct { // CommonDataServiceForAppsEntityDatasetTypeProperties - Common Data Service for Apps entity dataset properties. @@ -47471,6 +47620,91 @@ func (cdsfas *CommonDataServiceForAppsSource) UnmarshalJSON(body []byte) error { return nil } +// ComponentSetup the custom setup of installing 3rd party components. +type ComponentSetup struct { + // ComponentSetupTypeProperties - Install 3rd party component type properties. + *ComponentSetupTypeProperties `json:"typeProperties,omitempty"` + // Type - Possible values include: 'TypeCustomSetupBase', 'TypeComponentSetup', 'TypeEnvironmentVariableSetup', 'TypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ComponentSetup. +func (cs ComponentSetup) MarshalJSON() ([]byte, error) { + cs.Type = TypeComponentSetup + objectMap := make(map[string]interface{}) + if cs.ComponentSetupTypeProperties != nil { + objectMap["typeProperties"] = cs.ComponentSetupTypeProperties + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + return json.Marshal(objectMap) +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsComponentSetup() (*ComponentSetup, bool) { + return &cs, true +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return nil, false +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { + return nil, false +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { + return nil, false +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for ComponentSetup struct. +func (cs *ComponentSetup) 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 componentSetupTypeProperties ComponentSetupTypeProperties + err = json.Unmarshal(*v, &componentSetupTypeProperties) + if err != nil { + return err + } + cs.ComponentSetupTypeProperties = &componentSetupTypeProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCustomSetupBase + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// ComponentSetupTypeProperties install 3rd party component setup type properties. +type ComponentSetupTypeProperties struct { + // ComponentName - The name of the 3rd party component. + ComponentName *string `json:"componentName,omitempty"` +} + // ConcurLinkedService concur Service linked service. type ConcurLinkedService struct { // ConcurLinkedServiceTypeProperties - Concur Service linked service properties. @@ -57753,6 +57987,100 @@ func (cdsls *CustomDataSourceLinkedService) UnmarshalJSON(body []byte) error { return nil } +// BasicCustomSetupBase the base definition of the custom setup. +type BasicCustomSetupBase interface { + AsComponentSetup() (*ComponentSetup, bool) + AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) + AsCmdkeySetup() (*CmdkeySetup, bool) + AsCustomSetupBase() (*CustomSetupBase, bool) +} + +// CustomSetupBase the base definition of the custom setup. +type CustomSetupBase struct { + // Type - Possible values include: 'TypeCustomSetupBase', 'TypeComponentSetup', 'TypeEnvironmentVariableSetup', 'TypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +func unmarshalBasicCustomSetupBase(body []byte) (BasicCustomSetupBase, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeComponentSetup): + var cs ComponentSetup + err := json.Unmarshal(body, &cs) + return cs, err + case string(TypeEnvironmentVariableSetup): + var evs EnvironmentVariableSetup + err := json.Unmarshal(body, &evs) + return evs, err + case string(TypeCmdkeySetup): + var cs CmdkeySetup + err := json.Unmarshal(body, &cs) + return cs, err + default: + var csb CustomSetupBase + err := json.Unmarshal(body, &csb) + return csb, err + } +} +func unmarshalBasicCustomSetupBaseArray(body []byte) ([]BasicCustomSetupBase, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + csbArray := make([]BasicCustomSetupBase, len(rawMessages)) + + for index, rawMessage := range rawMessages { + csb, err := unmarshalBasicCustomSetupBase(*rawMessage) + if err != nil { + return nil, err + } + csbArray[index] = csb + } + return csbArray, nil +} + +// MarshalJSON is the custom marshaler for CustomSetupBase. +func (csb CustomSetupBase) MarshalJSON() ([]byte, error) { + csb.Type = TypeCustomSetupBase + objectMap := make(map[string]interface{}) + if csb.Type != "" { + objectMap["type"] = csb.Type + } + return json.Marshal(objectMap) +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsComponentSetup() (*ComponentSetup, bool) { + return nil, false +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return nil, false +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsCmdkeySetup() (*CmdkeySetup, bool) { + return nil, false +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsCustomSetupBase() (*CustomSetupBase, bool) { + return &csb, true +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &csb, true +} + // DatabricksNotebookActivity databricksNotebook activity. type DatabricksNotebookActivity struct { // DatabricksNotebookActivityTypeProperties - Databricks Notebook activity properties. @@ -76624,6 +76952,93 @@ type EntityReference struct { 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', '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 evs.EnvironmentVariableSetupTypeProperties != nil { + objectMap["typeProperties"] = evs.EnvironmentVariableSetupTypeProperties + } + if evs.Type != "" { + objectMap["type"] = evs.Type + } + return json.Marshal(objectMap) +} + +// 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"` +} + // ExecutePipelineActivity execute pipeline activity. type ExecutePipelineActivity struct { // ExecutePipelineActivityTypeProperties - Execute pipeline activity properties. @@ -106961,6 +107376,8 @@ type IntegrationRuntimeSsisProperties struct { DataProxyProperties *IntegrationRuntimeDataProxyProperties `json:"dataProxyProperties,omitempty"` // Edition - The edition for the SSIS Integration Runtime. Possible values include: 'Standard', 'Enterprise' Edition IntegrationRuntimeEdition `json:"edition,omitempty"` + // ExpressCustomSetupProperties - Custom setup without script properties for a SSIS integration runtime. + ExpressCustomSetupProperties *[]BasicCustomSetupBase `json:"expressCustomSetupProperties,omitempty"` } // MarshalJSON is the custom marshaler for IntegrationRuntimeSsisProperties. @@ -106981,6 +107398,9 @@ func (irsp IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { if irsp.Edition != "" { objectMap["edition"] = irsp.Edition } + if irsp.ExpressCustomSetupProperties != nil { + objectMap["expressCustomSetupProperties"] = irsp.ExpressCustomSetupProperties + } for k, v := range irsp.AdditionalProperties { objectMap[k] = v } @@ -107053,6 +107473,14 @@ func (irsp *IntegrationRuntimeSsisProperties) UnmarshalJSON(body []byte) error { } irsp.Edition = edition } + case "expressCustomSetupProperties": + if v != nil { + expressCustomSetupProperties, err := unmarshalBasicCustomSetupBaseArray(*v) + if err != nil { + return err + } + irsp.ExpressCustomSetupProperties = &expressCustomSetupProperties + } } } @@ -111019,6 +111447,46 @@ func (jws *JSONWriteSettings) UnmarshalJSON(body []byte) error { return nil } +// LicensedComponentSetupTypeProperties installation of licensed component setup type properties. +type LicensedComponentSetupTypeProperties struct { + // LicenseKey - The license key to activate the component. + LicenseKey BasicSecretBase `json:"licenseKey,omitempty"` + // ComponentName - The name of the 3rd party component. + ComponentName *string `json:"componentName,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for LicensedComponentSetupTypeProperties struct. +func (lcstp *LicensedComponentSetupTypeProperties) 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 "licenseKey": + if v != nil { + licenseKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + lcstp.LicenseKey = licenseKey + } + case "componentName": + if v != nil { + var componentName string + err = json.Unmarshal(*v, &componentName) + if err != nil { + return err + } + lcstp.ComponentName = &componentName + } + } + } + + return nil +} + // LinkedIntegrationRuntime the linked integration runtime information. type LinkedIntegrationRuntime struct { // Name - READ-ONLY; The name of the linked integration runtime. From 62972b8ef53ac365001cf14c9e8d039a9f774049 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 16 Aug 2019 05:17:21 +0000 Subject: [PATCH 2/4] Generated from 4de64a2262df8e2e971620c95f7c3a2ba91d49d9 address comments --- .../datafactory/mgmt/datafactory/models.go | 1 - .../datafactory/mgmt/datafactory/models.go | 1 - .../mgmt/2018-06-01/datafactory/models.go | 38 ++++++++----------- 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index d42e6e684332..951c546c46d1 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -1287,7 +1287,6 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties = original.CommonDataSe type CommonDataServiceForAppsSink = original.CommonDataServiceForAppsSink type CommonDataServiceForAppsSource = original.CommonDataServiceForAppsSource type ComponentSetup = original.ComponentSetup -type ComponentSetupTypeProperties = original.ComponentSetupTypeProperties type ConcurLinkedService = original.ConcurLinkedService type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties type ConcurObjectDataset = original.ConcurObjectDataset diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index 58e8c47bd7bd..5c3276554a6c 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -1287,7 +1287,6 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties = original.CommonDataSe type CommonDataServiceForAppsSink = original.CommonDataServiceForAppsSink type CommonDataServiceForAppsSource = original.CommonDataServiceForAppsSource type ComponentSetup = original.ComponentSetup -type ComponentSetupTypeProperties = original.ComponentSetupTypeProperties type ConcurLinkedService = original.ConcurLinkedService type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties type ConcurObjectDataset = original.ConcurObjectDataset diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index cb0be703a8ad..21aa74f479fb 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -47622,8 +47622,8 @@ func (cdsfas *CommonDataServiceForAppsSource) UnmarshalJSON(body []byte) error { // ComponentSetup the custom setup of installing 3rd party components. type ComponentSetup struct { - // ComponentSetupTypeProperties - Install 3rd party component type properties. - *ComponentSetupTypeProperties `json:"typeProperties,omitempty"` + // LicensedComponentSetupTypeProperties - Install 3rd party component type properties. + *LicensedComponentSetupTypeProperties `json:"typeProperties,omitempty"` // Type - Possible values include: 'TypeCustomSetupBase', 'TypeComponentSetup', 'TypeEnvironmentVariableSetup', 'TypeCmdkeySetup' Type TypeBasicCustomSetupBase `json:"type,omitempty"` } @@ -47632,8 +47632,8 @@ type ComponentSetup struct { func (cs ComponentSetup) MarshalJSON() ([]byte, error) { cs.Type = TypeComponentSetup objectMap := make(map[string]interface{}) - if cs.ComponentSetupTypeProperties != nil { - objectMap["typeProperties"] = cs.ComponentSetupTypeProperties + if cs.LicensedComponentSetupTypeProperties != nil { + objectMap["typeProperties"] = cs.LicensedComponentSetupTypeProperties } if cs.Type != "" { objectMap["type"] = cs.Type @@ -47677,12 +47677,12 @@ func (cs *ComponentSetup) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var componentSetupTypeProperties ComponentSetupTypeProperties - err = json.Unmarshal(*v, &componentSetupTypeProperties) + var licensedComponentSetupTypeProperties LicensedComponentSetupTypeProperties + err = json.Unmarshal(*v, &licensedComponentSetupTypeProperties) if err != nil { return err } - cs.ComponentSetupTypeProperties = &componentSetupTypeProperties + cs.LicensedComponentSetupTypeProperties = &licensedComponentSetupTypeProperties } case "type": if v != nil { @@ -47699,12 +47699,6 @@ func (cs *ComponentSetup) UnmarshalJSON(body []byte) error { return nil } -// ComponentSetupTypeProperties install 3rd party component setup type properties. -type ComponentSetupTypeProperties struct { - // ComponentName - The name of the 3rd party component. - ComponentName *string `json:"componentName,omitempty"` -} - // ConcurLinkedService concur Service linked service. type ConcurLinkedService struct { // ConcurLinkedServiceTypeProperties - Concur Service linked service properties. @@ -111449,10 +111443,10 @@ func (jws *JSONWriteSettings) UnmarshalJSON(body []byte) error { // LicensedComponentSetupTypeProperties installation of licensed component setup type properties. type LicensedComponentSetupTypeProperties struct { - // LicenseKey - The license key to activate the component. - LicenseKey BasicSecretBase `json:"licenseKey,omitempty"` // ComponentName - The name of the 3rd party component. ComponentName *string `json:"componentName,omitempty"` + // LicenseKey - The license key to activate the component. + LicenseKey BasicSecretBase `json:"licenseKey,omitempty"` } // UnmarshalJSON is the custom unmarshaler for LicensedComponentSetupTypeProperties struct. @@ -111464,22 +111458,22 @@ func (lcstp *LicensedComponentSetupTypeProperties) UnmarshalJSON(body []byte) er } for k, v := range m { switch k { - case "licenseKey": + case "componentName": if v != nil { - licenseKey, err := unmarshalBasicSecretBase(*v) + var componentName string + err = json.Unmarshal(*v, &componentName) if err != nil { return err } - lcstp.LicenseKey = licenseKey + lcstp.ComponentName = &componentName } - case "componentName": + case "licenseKey": if v != nil { - var componentName string - err = json.Unmarshal(*v, &componentName) + licenseKey, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - lcstp.ComponentName = &componentName + lcstp.LicenseKey = licenseKey } } } From 736d03d819630ae29f9e527e384e0268e4abffb0 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 21 Aug 2019 02:41:52 +0000 Subject: [PATCH 3/4] Generated from fc0bdde313743dbbed8e8c506dd9e07107d04142 Merge branch 'master' into ivan/support-express-custom-setup-for-manged-ir --- .../datafactory/mgmt/datafactory/models.go | 14 + .../datafactory/mgmt/datafactory/models.go | 14 + .../mgmt/2018-06-01/datafactory/models.go | 985 ++++++++---------- 3 files changed, 448 insertions(+), 565 deletions(-) diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index 951c546c46d1..6a667cc9712b 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -1078,6 +1078,16 @@ const ( TypeSsisObjectMetadata TypeBasicSsisObjectMetadata = original.TypeSsisObjectMetadata ) +type TypeBasicStoreWriteSettings = original.TypeBasicStoreWriteSettings + +const ( + TypeAzureBlobFSWriteSettings TypeBasicStoreWriteSettings = original.TypeAzureBlobFSWriteSettings + TypeAzureBlobStorageWriteSettings TypeBasicStoreWriteSettings = original.TypeAzureBlobStorageWriteSettings + TypeAzureDataLakeStoreWriteSettings TypeBasicStoreWriteSettings = original.TypeAzureDataLakeStoreWriteSettings + TypeFileServerWriteSettings TypeBasicStoreWriteSettings = original.TypeFileServerWriteSettings + TypeStoreWriteSettings TypeBasicStoreWriteSettings = original.TypeStoreWriteSettings +) + type TypeBasicTrigger = original.TypeBasicTrigger const ( @@ -1258,6 +1268,7 @@ type BasicLinkedService = original.BasicLinkedService type BasicMultiplePipelineTrigger = original.BasicMultiplePipelineTrigger type BasicSecretBase = original.BasicSecretBase type BasicSsisObjectMetadata = original.BasicSsisObjectMetadata +type BasicStoreWriteSettings = original.BasicStoreWriteSettings type BasicTrigger = original.BasicTrigger type BasicTriggerDependencyReference = original.BasicTriggerDependencyReference type BasicWebLinkedServiceTypeProperties = original.BasicWebLinkedServiceTypeProperties @@ -2293,6 +2304,9 @@ func PossibleTypeBasicLinkedServiceValues() []TypeBasicLinkedService { func PossibleTypeBasicSsisObjectMetadataValues() []TypeBasicSsisObjectMetadata { return original.PossibleTypeBasicSsisObjectMetadataValues() } +func PossibleTypeBasicStoreWriteSettingsValues() []TypeBasicStoreWriteSettings { + return original.PossibleTypeBasicStoreWriteSettingsValues() +} func PossibleTypeBasicTriggerValues() []TypeBasicTrigger { return original.PossibleTypeBasicTriggerValues() } diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index 5c3276554a6c..a79474154a5a 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -1078,6 +1078,16 @@ const ( TypeSsisObjectMetadata TypeBasicSsisObjectMetadata = original.TypeSsisObjectMetadata ) +type TypeBasicStoreWriteSettings = original.TypeBasicStoreWriteSettings + +const ( + TypeAzureBlobFSWriteSettings TypeBasicStoreWriteSettings = original.TypeAzureBlobFSWriteSettings + TypeAzureBlobStorageWriteSettings TypeBasicStoreWriteSettings = original.TypeAzureBlobStorageWriteSettings + TypeAzureDataLakeStoreWriteSettings TypeBasicStoreWriteSettings = original.TypeAzureDataLakeStoreWriteSettings + TypeFileServerWriteSettings TypeBasicStoreWriteSettings = original.TypeFileServerWriteSettings + TypeStoreWriteSettings TypeBasicStoreWriteSettings = original.TypeStoreWriteSettings +) + type TypeBasicTrigger = original.TypeBasicTrigger const ( @@ -1258,6 +1268,7 @@ type BasicLinkedService = original.BasicLinkedService type BasicMultiplePipelineTrigger = original.BasicMultiplePipelineTrigger type BasicSecretBase = original.BasicSecretBase type BasicSsisObjectMetadata = original.BasicSsisObjectMetadata +type BasicStoreWriteSettings = original.BasicStoreWriteSettings type BasicTrigger = original.BasicTrigger type BasicTriggerDependencyReference = original.BasicTriggerDependencyReference type BasicWebLinkedServiceTypeProperties = original.BasicWebLinkedServiceTypeProperties @@ -2293,6 +2304,9 @@ func PossibleTypeBasicLinkedServiceValues() []TypeBasicLinkedService { func PossibleTypeBasicSsisObjectMetadataValues() []TypeBasicSsisObjectMetadata { return original.PossibleTypeBasicSsisObjectMetadataValues() } +func PossibleTypeBasicStoreWriteSettingsValues() []TypeBasicStoreWriteSettings { + return original.PossibleTypeBasicStoreWriteSettingsValues() +} func PossibleTypeBasicTriggerValues() []TypeBasicTrigger { return original.PossibleTypeBasicTriggerValues() } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index 21aa74f479fb..7e3610650028 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -2219,6 +2219,27 @@ func PossibleTypeBasicSsisObjectMetadataValues() []TypeBasicSsisObjectMetadata { return []TypeBasicSsisObjectMetadata{TypeEnvironment, TypeFolder, TypePackage, TypeProject, TypeSsisObjectMetadata} } +// TypeBasicStoreWriteSettings enumerates the values for type basic store write settings. +type TypeBasicStoreWriteSettings string + +const ( + // TypeAzureBlobFSWriteSettings ... + TypeAzureBlobFSWriteSettings TypeBasicStoreWriteSettings = "AzureBlobFSWriteSettings" + // TypeAzureBlobStorageWriteSettings ... + TypeAzureBlobStorageWriteSettings TypeBasicStoreWriteSettings = "AzureBlobStorageWriteSettings" + // TypeAzureDataLakeStoreWriteSettings ... + TypeAzureDataLakeStoreWriteSettings TypeBasicStoreWriteSettings = "AzureDataLakeStoreWriteSettings" + // TypeFileServerWriteSettings ... + TypeFileServerWriteSettings TypeBasicStoreWriteSettings = "FileServerWriteSettings" + // TypeStoreWriteSettings ... + TypeStoreWriteSettings TypeBasicStoreWriteSettings = "StoreWriteSettings" +) + +// PossibleTypeBasicStoreWriteSettingsValues returns an array of possible values for the TypeBasicStoreWriteSettings const type. +func PossibleTypeBasicStoreWriteSettingsValues() []TypeBasicStoreWriteSettings { + return []TypeBasicStoreWriteSettings{TypeAzureBlobFSWriteSettings, TypeAzureBlobStorageWriteSettings, TypeAzureDataLakeStoreWriteSettings, TypeFileServerWriteSettings, TypeStoreWriteSettings} +} + // TypeBasicTrigger enumerates the values for type basic trigger. type TypeBasicTrigger string @@ -9595,7 +9616,7 @@ func (af *AvroFormat) UnmarshalJSON(body []byte) error { // AvroSink a copy activity Avro sink. type AvroSink struct { // StoreSettings - Avro store settings. - StoreSettings *StoreWriteSettings `json:"storeSettings,omitempty"` + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` // FormatSettings - Avro format settings. FormatSettings *AvroWriteSettings `json:"formatSettings,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -9610,8 +9631,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -9620,9 +9639,7 @@ type AvroSink struct { func (as AvroSink) MarshalJSON() ([]byte, error) { as.Type = TypeAvroSink objectMap := make(map[string]interface{}) - if as.StoreSettings != nil { - objectMap["storeSettings"] = as.StoreSettings - } + objectMap["storeSettings"] = as.StoreSettings if as.FormatSettings != nil { objectMap["formatSettings"] = as.FormatSettings } @@ -9641,9 +9658,6 @@ func (as AvroSink) MarshalJSON() ([]byte, error) { if as.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = as.MaxConcurrentConnections } - if as.TableOption != nil { - objectMap["tableOption"] = as.TableOption - } if as.Type != "" { objectMap["type"] = as.Type } @@ -9834,12 +9848,11 @@ func (as *AvroSink) UnmarshalJSON(body []byte) error { switch k { case "storeSettings": if v != nil { - var storeSettings StoreWriteSettings - err = json.Unmarshal(*v, &storeSettings) + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) if err != nil { return err } - as.StoreSettings = &storeSettings + as.StoreSettings = storeSettings } case "formatSettings": if v != nil { @@ -9907,15 +9920,6 @@ func (as *AvroSink) UnmarshalJSON(body []byte) error { } as.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - as.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -13541,8 +13545,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -13569,9 +13571,6 @@ func (abfs AzureBlobFSSink) MarshalJSON() ([]byte, error) { if abfs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = abfs.MaxConcurrentConnections } - if abfs.TableOption != nil { - objectMap["tableOption"] = abfs.TableOption - } if abfs.Type != "" { objectMap["type"] = abfs.Type } @@ -13826,15 +13825,6 @@ func (abfs *AzureBlobFSSink) UnmarshalJSON(body []byte) error { } abfs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - abfs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -14423,21 +14413,24 @@ func (abfs *AzureBlobFSSource) UnmarshalJSON(body []byte) error { // AzureBlobFSWriteSettings azure blobFS write settings. type AzureBlobFSWriteSettings struct { + // BlockSizeInMB - Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). + BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - The write setting type. - Type *string `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"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for AzureBlobFSWriteSettings. func (abfws AzureBlobFSWriteSettings) MarshalJSON() ([]byte, error) { + abfws.Type = TypeAzureBlobFSWriteSettings objectMap := make(map[string]interface{}) - if abfws.Type != nil { - objectMap["type"] = abfws.Type + if abfws.BlockSizeInMB != nil { + objectMap["blockSizeInMB"] = abfws.BlockSizeInMB } if abfws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = abfws.MaxConcurrentConnections @@ -14445,12 +14438,45 @@ func (abfws AzureBlobFSWriteSettings) MarshalJSON() ([]byte, error) { if abfws.CopyBehavior != nil { objectMap["copyBehavior"] = abfws.CopyBehavior } + if abfws.Type != "" { + objectMap["type"] = abfws.Type + } for k, v := range abfws.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return &abfws, true +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &abfws, true +} + // UnmarshalJSON is the custom unmarshaler for AzureBlobFSWriteSettings struct. func (abfws *AzureBlobFSWriteSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -14460,6 +14486,15 @@ func (abfws *AzureBlobFSWriteSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { + case "blockSizeInMB": + if v != nil { + var blockSizeInMB interface{} + err = json.Unmarshal(*v, &blockSizeInMB) + if err != nil { + return err + } + abfws.BlockSizeInMB = blockSizeInMB + } default: if v != nil { var additionalProperties interface{} @@ -14472,15 +14507,6 @@ func (abfws *AzureBlobFSWriteSettings) UnmarshalJSON(body []byte) error { } abfws.AdditionalProperties[k] = additionalProperties } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abfws.Type = &typeVar - } case "maxConcurrentConnections": if v != nil { var maxConcurrentConnections interface{} @@ -14499,6 +14525,15 @@ func (abfws *AzureBlobFSWriteSettings) UnmarshalJSON(body []byte) error { } abfws.CopyBehavior = copyBehavior } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abfws.Type = typeVar + } } } @@ -15468,21 +15503,24 @@ func (absrs *AzureBlobStorageReadSettings) UnmarshalJSON(body []byte) error { // AzureBlobStorageWriteSettings azure blob write settings. type AzureBlobStorageWriteSettings struct { + // BlockSizeInMB - Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). + BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - The write setting type. - Type *string `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"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for AzureBlobStorageWriteSettings. func (absws AzureBlobStorageWriteSettings) MarshalJSON() ([]byte, error) { + absws.Type = TypeAzureBlobStorageWriteSettings objectMap := make(map[string]interface{}) - if absws.Type != nil { - objectMap["type"] = absws.Type + if absws.BlockSizeInMB != nil { + objectMap["blockSizeInMB"] = absws.BlockSizeInMB } if absws.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = absws.MaxConcurrentConnections @@ -15490,12 +15528,45 @@ func (absws AzureBlobStorageWriteSettings) MarshalJSON() ([]byte, error) { if absws.CopyBehavior != nil { objectMap["copyBehavior"] = absws.CopyBehavior } + if absws.Type != "" { + objectMap["type"] = absws.Type + } for k, v := range absws.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return &absws, true +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &absws, true +} + // UnmarshalJSON is the custom unmarshaler for AzureBlobStorageWriteSettings struct. func (absws *AzureBlobStorageWriteSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -15505,6 +15576,15 @@ func (absws *AzureBlobStorageWriteSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { + case "blockSizeInMB": + if v != nil { + var blockSizeInMB interface{} + err = json.Unmarshal(*v, &blockSizeInMB) + if err != nil { + return err + } + absws.BlockSizeInMB = blockSizeInMB + } default: if v != nil { var additionalProperties interface{} @@ -15517,15 +15597,6 @@ func (absws *AzureBlobStorageWriteSettings) UnmarshalJSON(body []byte) error { } absws.AdditionalProperties[k] = additionalProperties } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - absws.Type = &typeVar - } case "maxConcurrentConnections": if v != nil { var maxConcurrentConnections interface{} @@ -15544,6 +15615,15 @@ func (absws *AzureBlobStorageWriteSettings) UnmarshalJSON(body []byte) error { } absws.CopyBehavior = copyBehavior } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + absws.Type = typeVar + } } } @@ -17385,8 +17465,6 @@ type AzureDataExplorerSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -17419,9 +17497,6 @@ func (ades AzureDataExplorerSink) MarshalJSON() ([]byte, error) { if ades.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections } - if ades.TableOption != nil { - objectMap["tableOption"] = ades.TableOption - } if ades.Type != "" { objectMap["type"] = ades.Type } @@ -17694,15 +17769,6 @@ func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { } ades.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ades.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -21210,8 +21276,6 @@ type AzureDataLakeStoreSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -21241,9 +21305,6 @@ func (adlss AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { if adlss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections } - if adlss.TableOption != nil { - objectMap["tableOption"] = adlss.TableOption - } if adlss.Type != "" { objectMap["type"] = adlss.Type } @@ -21507,15 +21568,6 @@ func (adlss *AzureDataLakeStoreSink) UnmarshalJSON(body []byte) error { } adlss.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - adlss.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -22078,32 +22130,63 @@ func (adlss *AzureDataLakeStoreSource) UnmarshalJSON(body []byte) error { type AzureDataLakeStoreWriteSettings struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - The write setting type. - Type *string `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"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings' + 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.Type != nil { - objectMap["type"] = adlsws.Type - } 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) } +// 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 +} + +// 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 @@ -22125,15 +22208,6 @@ func (adlsws *AzureDataLakeStoreWriteSettings) UnmarshalJSON(body []byte) error } adlsws.AdditionalProperties[k] = additionalProperties } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsws.Type = &typeVar - } case "maxConcurrentConnections": if v != nil { var maxConcurrentConnections interface{} @@ -22152,6 +22226,15 @@ func (adlsws *AzureDataLakeStoreWriteSettings) UnmarshalJSON(body []byte) error } adlsws.CopyBehavior = copyBehavior } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlsws.Type = typeVar + } } } @@ -27578,8 +27661,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -27606,9 +27687,6 @@ func (amss AzureMySQLSink) MarshalJSON() ([]byte, error) { if amss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = amss.MaxConcurrentConnections } - if amss.TableOption != nil { - objectMap["tableOption"] = amss.TableOption - } if amss.Type != "" { objectMap["type"] = amss.Type } @@ -27863,15 +27941,6 @@ func (amss *AzureMySQLSink) UnmarshalJSON(body []byte) error { } amss.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - amss.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -29658,8 +29727,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -29686,9 +29753,6 @@ func (apss AzurePostgreSQLSink) MarshalJSON() ([]byte, error) { if apss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = apss.MaxConcurrentConnections } - if apss.TableOption != nil { - objectMap["tableOption"] = apss.TableOption - } if apss.Type != "" { objectMap["type"] = apss.Type } @@ -29943,15 +30007,6 @@ func (apss *AzurePostgreSQLSink) UnmarshalJSON(body []byte) error { } apss.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - apss.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -31138,8 +31193,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -31163,9 +31216,6 @@ func (aqs AzureQueueSink) MarshalJSON() ([]byte, error) { if aqs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = aqs.MaxConcurrentConnections } - if aqs.TableOption != nil { - objectMap["tableOption"] = aqs.TableOption - } if aqs.Type != "" { objectMap["type"] = aqs.Type } @@ -31411,15 +31461,6 @@ func (aqs *AzureQueueSink) UnmarshalJSON(body []byte) error { } aqs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - aqs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -32061,8 +32102,6 @@ type AzureSearchIndexSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -32089,9 +32128,6 @@ func (asis AzureSearchIndexSink) MarshalJSON() ([]byte, error) { if asis.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = asis.MaxConcurrentConnections } - if asis.TableOption != nil { - objectMap["tableOption"] = asis.TableOption - } if asis.Type != "" { objectMap["type"] = asis.Type } @@ -32346,15 +32382,6 @@ func (asis *AzureSearchIndexSink) UnmarshalJSON(body []byte) error { } asis.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - asis.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -36281,6 +36308,8 @@ type AzureSQLSink struct { 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. @@ -36293,8 +36322,6 @@ type AzureSQLSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -36318,6 +36345,9 @@ func (ass AzureSQLSink) MarshalJSON() ([]byte, error) { if ass.StoredProcedureTableTypeParameterName != nil { objectMap["storedProcedureTableTypeParameterName"] = ass.StoredProcedureTableTypeParameterName } + if ass.TableOption != nil { + objectMap["tableOption"] = ass.TableOption + } if ass.WriteBatchSize != nil { objectMap["writeBatchSize"] = ass.WriteBatchSize } @@ -36333,9 +36363,6 @@ func (ass AzureSQLSink) MarshalJSON() ([]byte, error) { if ass.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections } - if ass.TableOption != nil { - objectMap["tableOption"] = ass.TableOption - } if ass.Type != "" { objectMap["type"] = ass.Type } @@ -36569,6 +36596,15 @@ func (ass *AzureSQLSink) UnmarshalJSON(body []byte) error { } 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{} @@ -36626,15 +36662,6 @@ func (ass *AzureSQLSink) UnmarshalJSON(body []byte) error { } ass.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ass.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -39087,8 +39114,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -39124,9 +39149,6 @@ func (ats AzureTableSink) MarshalJSON() ([]byte, error) { if ats.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ats.MaxConcurrentConnections } - if ats.TableOption != nil { - objectMap["tableOption"] = ats.TableOption - } if ats.Type != "" { objectMap["type"] = ats.Type } @@ -39408,15 +39430,6 @@ func (ats *AzureTableSink) UnmarshalJSON(body []byte) error { } ats.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ats.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -41228,7 +41241,7 @@ func (bdtp *BinaryDatasetTypeProperties) UnmarshalJSON(body []byte) error { // BinarySink a copy activity Binary sink. type BinarySink struct { // StoreSettings - Binary store settings. - StoreSettings *StoreWriteSettings `json:"storeSettings,omitempty"` + StoreSettings BasicStoreWriteSettings `json:"storeSettings,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. @@ -41241,8 +41254,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -41251,9 +41262,7 @@ type BinarySink struct { func (bs BinarySink) MarshalJSON() ([]byte, error) { bs.Type = TypeBinarySink objectMap := make(map[string]interface{}) - if bs.StoreSettings != nil { - objectMap["storeSettings"] = bs.StoreSettings - } + objectMap["storeSettings"] = bs.StoreSettings if bs.WriteBatchSize != nil { objectMap["writeBatchSize"] = bs.WriteBatchSize } @@ -41269,9 +41278,6 @@ func (bs BinarySink) MarshalJSON() ([]byte, error) { if bs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections } - if bs.TableOption != nil { - objectMap["tableOption"] = bs.TableOption - } if bs.Type != "" { objectMap["type"] = bs.Type } @@ -41462,12 +41468,11 @@ func (bs *BinarySink) UnmarshalJSON(body []byte) error { switch k { case "storeSettings": if v != nil { - var storeSettings StoreWriteSettings - err = json.Unmarshal(*v, &storeSettings) + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) if err != nil { return err } - bs.StoreSettings = &storeSettings + bs.StoreSettings = storeSettings } default: if v != nil { @@ -41526,15 +41531,6 @@ func (bs *BinarySink) UnmarshalJSON(body []byte) error { } bs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - bs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -42296,8 +42292,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -42333,9 +42327,6 @@ func (bs BlobSink) MarshalJSON() ([]byte, error) { if bs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections } - if bs.TableOption != nil { - objectMap["tableOption"] = bs.TableOption - } if bs.Type != "" { objectMap["type"] = bs.Type } @@ -42617,15 +42608,6 @@ func (bs *BlobSink) UnmarshalJSON(body []byte) error { } bs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - bs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -46756,8 +46738,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -46787,9 +46767,6 @@ func (cdsfas CommonDataServiceForAppsSink) MarshalJSON() ([]byte, error) { if cdsfas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cdsfas.MaxConcurrentConnections } - if cdsfas.TableOption != nil { - objectMap["tableOption"] = cdsfas.TableOption - } if cdsfas.Type != "" { objectMap["type"] = cdsfas.Type } @@ -47053,15 +47030,6 @@ func (cdsfas *CommonDataServiceForAppsSink) UnmarshalJSON(body []byte) error { } cdsfas.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - cdsfas.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -50476,8 +50444,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -50662,9 +50628,6 @@ func (cs CopySink) MarshalJSON() ([]byte, error) { if cs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections } - if cs.TableOption != nil { - objectMap["tableOption"] = cs.TableOption - } if cs.Type != "" { objectMap["type"] = cs.Type } @@ -50910,15 +50873,6 @@ func (cs *CopySink) UnmarshalJSON(body []byte) error { } cs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - cs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -53749,8 +53703,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -53777,9 +53729,6 @@ func (cdmdas CosmosDbMongoDbAPISink) MarshalJSON() ([]byte, error) { if cdmdas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = cdmdas.MaxConcurrentConnections } - if cdmdas.TableOption != nil { - objectMap["tableOption"] = cdmdas.TableOption - } if cdmdas.Type != "" { objectMap["type"] = cdmdas.Type } @@ -54034,15 +53983,6 @@ func (cdmdas *CosmosDbMongoDbAPISink) UnmarshalJSON(body []byte) error { } cdmdas.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - cdmdas.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -64521,7 +64461,7 @@ func (dtrs *DelimitedTextReadSettings) UnmarshalJSON(body []byte) error { // DelimitedTextSink a copy activity DelimitedText sink. type DelimitedTextSink struct { // StoreSettings - DelimitedText store settings. - StoreSettings *StoreWriteSettings `json:"storeSettings,omitempty"` + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` // FormatSettings - DelimitedText format settings. FormatSettings *DelimitedTextWriteSettings `json:"formatSettings,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -64536,8 +64476,6 @@ type DelimitedTextSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -64546,9 +64484,7 @@ type DelimitedTextSink struct { func (dts DelimitedTextSink) MarshalJSON() ([]byte, error) { dts.Type = TypeDelimitedTextSink objectMap := make(map[string]interface{}) - if dts.StoreSettings != nil { - objectMap["storeSettings"] = dts.StoreSettings - } + objectMap["storeSettings"] = dts.StoreSettings if dts.FormatSettings != nil { objectMap["formatSettings"] = dts.FormatSettings } @@ -64567,9 +64503,6 @@ func (dts DelimitedTextSink) MarshalJSON() ([]byte, error) { if dts.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections } - if dts.TableOption != nil { - objectMap["tableOption"] = dts.TableOption - } if dts.Type != "" { objectMap["type"] = dts.Type } @@ -64760,12 +64693,11 @@ func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { switch k { case "storeSettings": if v != nil { - var storeSettings StoreWriteSettings - err = json.Unmarshal(*v, &storeSettings) + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) if err != nil { return err } - dts.StoreSettings = &storeSettings + dts.StoreSettings = storeSettings } case "formatSettings": if v != nil { @@ -64833,15 +64765,6 @@ func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { } dts.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - dts.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -66236,8 +66159,6 @@ type DocumentDbCollectionSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -66267,9 +66188,6 @@ func (ddcs DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { if ddcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections } - if ddcs.TableOption != nil { - objectMap["tableOption"] = ddcs.TableOption - } if ddcs.Type != "" { objectMap["type"] = ddcs.Type } @@ -66533,15 +66451,6 @@ func (ddcs *DocumentDbCollectionSink) UnmarshalJSON(body []byte) error { } ddcs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ddcs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -72039,8 +71948,6 @@ type DynamicsCrmSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -72070,9 +71977,6 @@ func (dcs DynamicsCrmSink) MarshalJSON() ([]byte, error) { if dcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections } - if dcs.TableOption != nil { - objectMap["tableOption"] = dcs.TableOption - } if dcs.Type != "" { objectMap["type"] = dcs.Type } @@ -72336,15 +72240,6 @@ func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error { } dcs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - dcs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -74240,8 +74135,6 @@ type DynamicsSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -74271,9 +74164,6 @@ func (ds DynamicsSink) MarshalJSON() ([]byte, error) { if ds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections } - if ds.TableOption != nil { - objectMap["tableOption"] = ds.TableOption - } if ds.Type != "" { objectMap["type"] = ds.Type } @@ -74537,15 +74427,6 @@ func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { } ds.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ds.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -79837,32 +79718,63 @@ func (fsrs *FileServerReadSettings) UnmarshalJSON(body []byte) error { type FileServerWriteSettings struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - The write setting type. - Type *string `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"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings' + 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.Type != nil { - objectMap["type"] = fsws.Type - } 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) } +// 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 +} + +// 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 @@ -79884,15 +79796,6 @@ func (fsws *FileServerWriteSettings) UnmarshalJSON(body []byte) error { } fsws.AdditionalProperties[k] = additionalProperties } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsws.Type = &typeVar - } case "maxConcurrentConnections": if v != nil { var maxConcurrentConnections interface{} @@ -79911,6 +79814,15 @@ func (fsws *FileServerWriteSettings) UnmarshalJSON(body []byte) error { } fsws.CopyBehavior = copyBehavior } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsws.Type = typeVar + } } } @@ -80631,8 +80543,6 @@ type FileSystemSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -80659,9 +80569,6 @@ func (fss FileSystemSink) MarshalJSON() ([]byte, error) { if fss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections } - if fss.TableOption != nil { - objectMap["tableOption"] = fss.TableOption - } if fss.Type != "" { objectMap["type"] = fss.Type } @@ -80916,15 +80823,6 @@ func (fss *FileSystemSink) UnmarshalJSON(body []byte) error { } fss.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - fss.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -104980,8 +104878,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -105008,9 +104904,6 @@ func (is InformixSink) MarshalJSON() ([]byte, error) { if is.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections } - if is.TableOption != nil { - objectMap["tableOption"] = is.TableOption - } if is.Type != "" { objectMap["type"] = is.Type } @@ -105265,15 +105158,6 @@ func (is *InformixSink) UnmarshalJSON(body []byte) error { } is.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - is.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -110492,7 +110376,7 @@ func (jf *JSONFormat) UnmarshalJSON(body []byte) error { // JSONSink a copy activity Json sink. type JSONSink struct { // StoreSettings - Json store settings. - StoreSettings *StoreWriteSettings `json:"storeSettings,omitempty"` + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` // FormatSettings - Json format settings. FormatSettings *JSONWriteSettings `json:"formatSettings,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -110507,8 +110391,6 @@ type JSONSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -110517,9 +110399,7 @@ type JSONSink struct { func (js JSONSink) MarshalJSON() ([]byte, error) { js.Type = TypeJSONSink objectMap := make(map[string]interface{}) - if js.StoreSettings != nil { - objectMap["storeSettings"] = js.StoreSettings - } + objectMap["storeSettings"] = js.StoreSettings if js.FormatSettings != nil { objectMap["formatSettings"] = js.FormatSettings } @@ -110538,9 +110418,6 @@ func (js JSONSink) MarshalJSON() ([]byte, error) { if js.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections } - if js.TableOption != nil { - objectMap["tableOption"] = js.TableOption - } if js.Type != "" { objectMap["type"] = js.Type } @@ -110731,12 +110608,11 @@ func (js *JSONSink) UnmarshalJSON(body []byte) error { switch k { case "storeSettings": if v != nil { - var storeSettings StoreWriteSettings - err = json.Unmarshal(*v, &storeSettings) + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) if err != nil { return err } - js.StoreSettings = &storeSettings + js.StoreSettings = storeSettings } case "formatSettings": if v != nil { @@ -110804,15 +110680,6 @@ func (js *JSONSink) UnmarshalJSON(body []byte) error { } js.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - js.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -119832,8 +119699,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -119860,9 +119725,6 @@ func (mas MicrosoftAccessSink) MarshalJSON() ([]byte, error) { if mas.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = mas.MaxConcurrentConnections } - if mas.TableOption != nil { - objectMap["tableOption"] = mas.TableOption - } if mas.Type != "" { objectMap["type"] = mas.Type } @@ -120117,15 +119979,6 @@ func (mas *MicrosoftAccessSink) UnmarshalJSON(body []byte) error { } mas.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - mas.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -131430,8 +131283,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -131458,9 +131309,6 @@ func (osVar OdbcSink) MarshalJSON() ([]byte, error) { if osVar.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections } - if osVar.TableOption != nil { - objectMap["tableOption"] = osVar.TableOption - } if osVar.Type != "" { objectMap["type"] = osVar.Type } @@ -131715,15 +131563,6 @@ func (osVar *OdbcSink) UnmarshalJSON(body []byte) error { } osVar.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - osVar.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -137537,8 +137376,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -137565,9 +137402,6 @@ func (osVar OracleSink) MarshalJSON() ([]byte, error) { if osVar.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections } - if osVar.TableOption != nil { - objectMap["tableOption"] = osVar.TableOption - } if osVar.Type != "" { objectMap["type"] = osVar.Type } @@ -137822,15 +137656,6 @@ func (osVar *OracleSink) UnmarshalJSON(body []byte) error { } osVar.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - osVar.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -139907,7 +139732,7 @@ func (pf *ParquetFormat) UnmarshalJSON(body []byte) error { // ParquetSink a copy activity Parquet sink. type ParquetSink struct { // StoreSettings - Parquet store settings. - StoreSettings *StoreWriteSettings `json:"storeSettings,omitempty"` + StoreSettings BasicStoreWriteSettings `json:"storeSettings,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. @@ -139920,8 +139745,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -139930,9 +139753,7 @@ type ParquetSink struct { func (ps ParquetSink) MarshalJSON() ([]byte, error) { ps.Type = TypeParquetSink objectMap := make(map[string]interface{}) - if ps.StoreSettings != nil { - objectMap["storeSettings"] = ps.StoreSettings - } + objectMap["storeSettings"] = ps.StoreSettings if ps.WriteBatchSize != nil { objectMap["writeBatchSize"] = ps.WriteBatchSize } @@ -139948,9 +139769,6 @@ func (ps ParquetSink) MarshalJSON() ([]byte, error) { if ps.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections } - if ps.TableOption != nil { - objectMap["tableOption"] = ps.TableOption - } if ps.Type != "" { objectMap["type"] = ps.Type } @@ -140141,12 +139959,11 @@ func (ps *ParquetSink) UnmarshalJSON(body []byte) error { switch k { case "storeSettings": if v != nil { - var storeSettings StoreWriteSettings - err = json.Unmarshal(*v, &storeSettings) + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) if err != nil { return err } - ps.StoreSettings = &storeSettings + ps.StoreSettings = storeSettings } default: if v != nil { @@ -140205,15 +140022,6 @@ func (ps *ParquetSink) UnmarshalJSON(body []byte) error { } ps.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ps.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -160824,8 +160632,6 @@ type SalesforceServiceCloudSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -160858,9 +160664,6 @@ func (sscs SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { if sscs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections } - if sscs.TableOption != nil { - objectMap["tableOption"] = sscs.TableOption - } if sscs.Type != "" { objectMap["type"] = sscs.Type } @@ -161133,15 +160936,6 @@ func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { } sscs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - sscs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -161734,8 +161528,6 @@ 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -161768,9 +161560,6 @@ func (ss SalesforceSink) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } - if ss.TableOption != nil { - objectMap["tableOption"] = ss.TableOption - } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -162043,15 +161832,6 @@ func (ss *SalesforceSink) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ss.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -165714,8 +165494,6 @@ type SapCloudForCustomerSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -165742,9 +165520,6 @@ func (scfcs SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { if scfcs.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections } - if scfcs.TableOption != nil { - objectMap["tableOption"] = scfcs.TableOption - } if scfcs.Type != "" { objectMap["type"] = scfcs.Type } @@ -165999,15 +165774,6 @@ func (scfcs *SapCloudForCustomerSink) UnmarshalJSON(body []byte) error { } scfcs.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - scfcs.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -181853,6 +181619,8 @@ type SQLDWSink struct { AllowPolyBase interface{} `json:"allowPolyBase,omitempty"` // PolyBaseSettings - Specifies PolyBase-related settings when allowPolyBase is true. PolyBaseSettings *PolybaseSettings `json:"polyBaseSettings,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. @@ -181865,8 +181633,6 @@ type SQLDWSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -181884,6 +181650,9 @@ func (sds SQLDWSink) MarshalJSON() ([]byte, error) { if sds.PolyBaseSettings != nil { objectMap["polyBaseSettings"] = sds.PolyBaseSettings } + if sds.TableOption != nil { + objectMap["tableOption"] = sds.TableOption + } if sds.WriteBatchSize != nil { objectMap["writeBatchSize"] = sds.WriteBatchSize } @@ -181899,9 +181668,6 @@ func (sds SQLDWSink) MarshalJSON() ([]byte, error) { if sds.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections } - if sds.TableOption != nil { - objectMap["tableOption"] = sds.TableOption - } if sds.Type != "" { objectMap["type"] = sds.Type } @@ -182117,6 +181883,15 @@ func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { } sds.PolyBaseSettings = &polyBaseSettings } + 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{} @@ -182174,15 +181949,6 @@ func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { } sds.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - sds.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -182781,6 +182547,8 @@ type SQLMISink struct { 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. @@ -182793,8 +182561,6 @@ type SQLMISink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -182818,6 +182584,9 @@ func (sms SQLMISink) MarshalJSON() ([]byte, error) { if sms.StoredProcedureTableTypeParameterName != nil { objectMap["storedProcedureTableTypeParameterName"] = sms.StoredProcedureTableTypeParameterName } + if sms.TableOption != nil { + objectMap["tableOption"] = sms.TableOption + } if sms.WriteBatchSize != nil { objectMap["writeBatchSize"] = sms.WriteBatchSize } @@ -182833,9 +182602,6 @@ func (sms SQLMISink) MarshalJSON() ([]byte, error) { if sms.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections } - if sms.TableOption != nil { - objectMap["tableOption"] = sms.TableOption - } if sms.Type != "" { objectMap["type"] = sms.Type } @@ -183069,6 +182835,15 @@ func (sms *SQLMISink) UnmarshalJSON(body []byte) error { } 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 { var additionalProperties interface{} @@ -183126,15 +182901,6 @@ func (sms *SQLMISink) UnmarshalJSON(body []byte) error { } sms.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - sms.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -184401,6 +184167,8 @@ type SQLServerSink struct { 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. @@ -184413,8 +184181,6 @@ type SQLServerSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -184438,6 +184204,9 @@ func (sss SQLServerSink) MarshalJSON() ([]byte, error) { if sss.StoredProcedureTableTypeParameterName != nil { objectMap["storedProcedureTableTypeParameterName"] = sss.StoredProcedureTableTypeParameterName } + if sss.TableOption != nil { + objectMap["tableOption"] = sss.TableOption + } if sss.WriteBatchSize != nil { objectMap["writeBatchSize"] = sss.WriteBatchSize } @@ -184453,9 +184222,6 @@ func (sss SQLServerSink) MarshalJSON() ([]byte, error) { if sss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections } - if sss.TableOption != nil { - objectMap["tableOption"] = sss.TableOption - } if sss.Type != "" { objectMap["type"] = sss.Type } @@ -184689,6 +184455,15 @@ func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { } 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{} @@ -184746,15 +184521,6 @@ func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { } sss.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - sss.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -186341,6 +186107,8 @@ type SQLSink struct { 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. @@ -186353,8 +186121,6 @@ type SQLSink 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"` - // 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"` // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -186378,6 +186144,9 @@ func (ss SQLSink) MarshalJSON() ([]byte, error) { if ss.StoredProcedureTableTypeParameterName != nil { objectMap["storedProcedureTableTypeParameterName"] = ss.StoredProcedureTableTypeParameterName } + if ss.TableOption != nil { + objectMap["tableOption"] = ss.TableOption + } if ss.WriteBatchSize != nil { objectMap["writeBatchSize"] = ss.WriteBatchSize } @@ -186393,9 +186162,6 @@ func (ss SQLSink) MarshalJSON() ([]byte, error) { if ss.MaxConcurrentConnections != nil { objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } - if ss.TableOption != nil { - objectMap["tableOption"] = ss.TableOption - } if ss.Type != "" { objectMap["type"] = ss.Type } @@ -186629,6 +186395,15 @@ func (ss *SQLSink) UnmarshalJSON(body []byte) error { } 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{} @@ -186686,15 +186461,6 @@ func (ss *SQLSink) UnmarshalJSON(body []byte) error { } ss.MaxConcurrentConnections = maxConcurrentConnections } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ss.TableOption = tableOption - } case "type": if v != nil { var typeVar TypeBasicCopySink @@ -189999,36 +189765,125 @@ func (srs *StoreReadSettings) UnmarshalJSON(body []byte) error { return nil } +// BasicStoreWriteSettings connector write settings. +type BasicStoreWriteSettings interface { + AsFileServerWriteSettings() (*FileServerWriteSettings, bool) + AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) + AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) + AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) + AsStoreWriteSettings() (*StoreWriteSettings, bool) +} + // StoreWriteSettings connector write settings. type StoreWriteSettings struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - The write setting type. - Type *string `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"` // CopyBehavior - The type of copy behavior for copy sink. CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +func unmarshalBasicStoreWriteSettings(body []byte) (BasicStoreWriteSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeFileServerWriteSettings): + var fsws FileServerWriteSettings + err := json.Unmarshal(body, &fsws) + return fsws, err + case string(TypeAzureDataLakeStoreWriteSettings): + var adlsws AzureDataLakeStoreWriteSettings + err := json.Unmarshal(body, &adlsws) + return adlsws, err + case string(TypeAzureBlobFSWriteSettings): + var abfws AzureBlobFSWriteSettings + err := json.Unmarshal(body, &abfws) + return abfws, err + case string(TypeAzureBlobStorageWriteSettings): + var absws AzureBlobStorageWriteSettings + err := json.Unmarshal(body, &absws) + return absws, err + default: + var sws StoreWriteSettings + err := json.Unmarshal(body, &sws) + return sws, err + } +} +func unmarshalBasicStoreWriteSettingsArray(body []byte) ([]BasicStoreWriteSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + swsArray := make([]BasicStoreWriteSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + sws, err := unmarshalBasicStoreWriteSettings(*rawMessage) + if err != nil { + return nil, err + } + swsArray[index] = sws + } + return swsArray, nil } // MarshalJSON is the custom marshaler for StoreWriteSettings. func (sws StoreWriteSettings) MarshalJSON() ([]byte, error) { + sws.Type = TypeStoreWriteSettings objectMap := make(map[string]interface{}) - if sws.Type != nil { - objectMap["type"] = sws.Type - } 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) } +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return &sws, true +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &sws, true +} + // UnmarshalJSON is the custom unmarshaler for StoreWriteSettings struct. func (sws *StoreWriteSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -190050,15 +189905,6 @@ func (sws *StoreWriteSettings) UnmarshalJSON(body []byte) error { } sws.AdditionalProperties[k] = additionalProperties } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sws.Type = &typeVar - } case "maxConcurrentConnections": if v != nil { var maxConcurrentConnections interface{} @@ -190077,6 +189923,15 @@ func (sws *StoreWriteSettings) UnmarshalJSON(body []byte) error { } sws.CopyBehavior = copyBehavior } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sws.Type = typeVar + } } } From 4479a995136a80508f3cb958442977f51d72c716 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 1 Sep 2019 04:34:31 +0000 Subject: [PATCH 4/4] Generated from fc0bdde313743dbbed8e8c506dd9e07107d04142 Merge branch 'master' into ivan/support-express-custom-setup-for-manged-ir --- .../datafactory/mgmt/datafactory/models.go | 3 + .../datafactory/mgmt/datafactory/models.go | 3 + .../mgmt/2018-06-01/datafactory/models.go | 290 +++++++++++++++++- 3 files changed, 288 insertions(+), 8 deletions(-) diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index 6a667cc9712b..bbca67a9fe2f 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -1093,6 +1093,7 @@ type TypeBasicTrigger = original.TypeBasicTrigger const ( TypeBlobEventsTrigger TypeBasicTrigger = original.TypeBlobEventsTrigger TypeBlobTrigger TypeBasicTrigger = original.TypeBlobTrigger + TypeChainingTrigger TypeBasicTrigger = original.TypeChainingTrigger TypeMultiplePipelineTrigger TypeBasicTrigger = original.TypeMultiplePipelineTrigger TypeRerunTumblingWindowTrigger TypeBasicTrigger = original.TypeRerunTumblingWindowTrigger TypeScheduleTrigger TypeBasicTrigger = original.TypeScheduleTrigger @@ -1287,6 +1288,8 @@ type CassandraLinkedServiceTypeProperties = original.CassandraLinkedServiceTypeP type CassandraSource = original.CassandraSource type CassandraTableDataset = original.CassandraTableDataset type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties +type ChainingTrigger = original.ChainingTrigger +type ChainingTriggerTypeProperties = original.ChainingTriggerTypeProperties type CloudError = original.CloudError type CloudErrorBody = original.CloudErrorBody type CmdkeySetup = original.CmdkeySetup diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index a79474154a5a..e22bb4593cf6 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -1093,6 +1093,7 @@ type TypeBasicTrigger = original.TypeBasicTrigger const ( TypeBlobEventsTrigger TypeBasicTrigger = original.TypeBlobEventsTrigger TypeBlobTrigger TypeBasicTrigger = original.TypeBlobTrigger + TypeChainingTrigger TypeBasicTrigger = original.TypeChainingTrigger TypeMultiplePipelineTrigger TypeBasicTrigger = original.TypeMultiplePipelineTrigger TypeRerunTumblingWindowTrigger TypeBasicTrigger = original.TypeRerunTumblingWindowTrigger TypeScheduleTrigger TypeBasicTrigger = original.TypeScheduleTrigger @@ -1287,6 +1288,8 @@ type CassandraLinkedServiceTypeProperties = original.CassandraLinkedServiceTypeP type CassandraSource = original.CassandraSource type CassandraTableDataset = original.CassandraTableDataset type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties +type ChainingTrigger = original.ChainingTrigger +type ChainingTriggerTypeProperties = original.ChainingTriggerTypeProperties type CloudError = original.CloudError type CloudErrorBody = original.CloudErrorBody type CmdkeySetup = original.CmdkeySetup diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index 7e3610650028..aab5202aa08c 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -2248,6 +2248,8 @@ const ( TypeBlobEventsTrigger TypeBasicTrigger = "BlobEventsTrigger" // TypeBlobTrigger ... TypeBlobTrigger TypeBasicTrigger = "BlobTrigger" + // TypeChainingTrigger ... + TypeChainingTrigger TypeBasicTrigger = "ChainingTrigger" // TypeMultiplePipelineTrigger ... TypeMultiplePipelineTrigger TypeBasicTrigger = "MultiplePipelineTrigger" // TypeRerunTumblingWindowTrigger ... @@ -2262,7 +2264,7 @@ const ( // PossibleTypeBasicTriggerValues returns an array of possible values for the TypeBasicTrigger const type. func PossibleTypeBasicTriggerValues() []TypeBasicTrigger { - return []TypeBasicTrigger{TypeBlobEventsTrigger, TypeBlobTrigger, TypeMultiplePipelineTrigger, TypeRerunTumblingWindowTrigger, TypeScheduleTrigger, TypeTrigger, TypeTumblingWindowTrigger} + return []TypeBasicTrigger{TypeBlobEventsTrigger, TypeBlobTrigger, TypeChainingTrigger, TypeMultiplePipelineTrigger, TypeRerunTumblingWindowTrigger, TypeScheduleTrigger, TypeTrigger, TypeTumblingWindowTrigger} } // VariableType enumerates the values for variable type. @@ -42103,7 +42105,7 @@ type BlobEventsTrigger struct { 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', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeChainingTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -42137,6 +42139,11 @@ func (bet BlobEventsTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindo return nil, false } +// AsChainingTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + // AsTumblingWindowTrigger is the BasicTrigger implementation for BlobEventsTrigger. func (bet BlobEventsTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { return nil, false @@ -43208,7 +43215,7 @@ type BlobTrigger struct { 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', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeChainingTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -43242,6 +43249,11 @@ func (bt BlobTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigge return nil, false } +// AsChainingTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + // AsTumblingWindowTrigger is the BasicTrigger implementation for BlobTrigger. func (bt BlobTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { return nil, false @@ -45218,6 +45230,191 @@ type CassandraTableDatasetTypeProperties struct { Keyspace interface{} `json:"keyspace,omitempty"` } +// ChainingTrigger trigger that allows the referenced pipeline to depend on other pipeline runs based on +// runDimension Name/Value pairs. Upstream pipelines should declare the same runDimension Name and their +// runs should have the values for those runDimensions. The referenced pipeline run would be triggered if +// the values for the runDimension match for all upstream pipeline runs. +type ChainingTrigger struct { + // Pipeline - Pipeline for which runs are created when all upstream pipelines complete successfully. + Pipeline *TriggerPipelineReference `json:"pipeline,omitempty"` + // ChainingTriggerTypeProperties - Chaining Trigger properties. + *ChainingTriggerTypeProperties `json:"typeProperties,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', 'TypeRerunTumblingWindowTrigger', 'TypeChainingTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ChainingTrigger. +func (ct ChainingTrigger) MarshalJSON() ([]byte, error) { + ct.Type = TypeChainingTrigger + objectMap := make(map[string]interface{}) + if ct.Pipeline != nil { + objectMap["pipeline"] = ct.Pipeline + } + if ct.ChainingTriggerTypeProperties != nil { + objectMap["typeProperties"] = ct.ChainingTriggerTypeProperties + } + if ct.Description != nil { + objectMap["description"] = ct.Description + } + if ct.Annotations != nil { + objectMap["annotations"] = ct.Annotations + } + if ct.Type != "" { + objectMap["type"] = ct.Type + } + for k, v := range ct.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsChainingTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return &ct, true +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return nil, false +} + +// AsTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &ct, true +} + +// UnmarshalJSON is the custom unmarshaler for ChainingTrigger struct. +func (ct *ChainingTrigger) 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 "pipeline": + if v != nil { + var pipeline TriggerPipelineReference + err = json.Unmarshal(*v, &pipeline) + if err != nil { + return err + } + ct.Pipeline = &pipeline + } + case "typeProperties": + if v != nil { + var chainingTriggerTypeProperties ChainingTriggerTypeProperties + err = json.Unmarshal(*v, &chainingTriggerTypeProperties) + if err != nil { + return err + } + ct.ChainingTriggerTypeProperties = &chainingTriggerTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ct.AdditionalProperties == nil { + ct.AdditionalProperties = make(map[string]interface{}) + } + ct.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ct.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + ct.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ct.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ct.Type = typeVar + } + } + } + + return nil +} + +// ChainingTriggerTypeProperties chaining Trigger properties. +type ChainingTriggerTypeProperties struct { + // DependsOn - Upstream Pipelines. + DependsOn *[]PipelineReference `json:"dependsOn,omitempty"` + // RunDimension - Run Dimension property that needs to be emitted by upstream pipelines. + RunDimension *string `json:"runDimension,omitempty"` +} + // CloudError the object that defines the structure of an Azure Data Factory error response. type CloudError struct { // CloudErrorBody - Error data @@ -124919,7 +125116,7 @@ type MultiplePipelineTrigger struct { 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', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeChainingTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -124995,6 +125192,11 @@ func (mpt MultiplePipelineTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblin return nil, false } +// AsChainingTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + // AsTumblingWindowTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. func (mpt MultiplePipelineTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { return nil, false @@ -144327,6 +144529,8 @@ type Pipeline struct { Concurrency *int32 `json:"concurrency,omitempty"` // Annotations - List of tags that can be used for describing the Pipeline. Annotations *[]interface{} `json:"annotations,omitempty"` + // RunDimensions - Dimensions emitted by Pipeline. + RunDimensions map[string]interface{} `json:"runDimensions"` // Folder - The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. Folder *PipelineFolder `json:"folder,omitempty"` } @@ -144352,6 +144556,9 @@ func (p Pipeline) MarshalJSON() ([]byte, error) { if p.Annotations != nil { objectMap["annotations"] = p.Annotations } + if p.RunDimensions != nil { + objectMap["runDimensions"] = p.RunDimensions + } if p.Folder != nil { objectMap["folder"] = p.Folder } @@ -144420,6 +144627,15 @@ func (p *Pipeline) UnmarshalJSON(body []byte) error { } p.Annotations = &annotations } + case "runDimensions": + if v != nil { + var runDimensions map[string]interface{} + err = json.Unmarshal(*v, &runDimensions) + if err != nil { + return err + } + p.RunDimensions = runDimensions + } case "folder": if v != nil { var folder PipelineFolder @@ -144714,6 +144930,8 @@ type PipelineRun struct { PipelineName *string `json:"pipelineName,omitempty"` // Parameters - READ-ONLY; The full or partial list of parameter name, value pair used in the pipeline run. Parameters map[string]*string `json:"parameters"` + // RunDimensions - READ-ONLY; Run dimensions emitted by Pipeline run. + RunDimensions map[string]*string `json:"runDimensions"` // InvokedBy - READ-ONLY; Entity that started the pipeline run. InvokedBy *PipelineRunInvokedBy `json:"invokedBy,omitempty"` // LastUpdated - READ-ONLY; The last updated timestamp for the pipeline run event in ISO8601 format. @@ -144805,6 +145023,15 @@ func (pr *PipelineRun) UnmarshalJSON(body []byte) error { } pr.Parameters = parameters } + case "runDimensions": + if v != nil { + var runDimensions map[string]*string + err = json.Unmarshal(*v, &runDimensions) + if err != nil { + return err + } + pr.RunDimensions = runDimensions + } case "invokedBy": if v != nil { var invokedBy PipelineRunInvokedBy @@ -152212,7 +152439,7 @@ type RerunTumblingWindowTrigger struct { 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', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeChainingTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -152243,6 +152470,11 @@ func (rtwt RerunTumblingWindowTrigger) AsRerunTumblingWindowTrigger() (*RerunTum return &rtwt, true } +// AsChainingTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + // AsTumblingWindowTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. func (rtwt RerunTumblingWindowTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { return nil, false @@ -173906,7 +174138,7 @@ type ScheduleTrigger struct { 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', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeChainingTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -173940,6 +174172,11 @@ func (st ScheduleTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTr return nil, false } +// AsChainingTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + // AsTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. func (st ScheduleTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { return nil, false @@ -193908,6 +194145,7 @@ func (tf *TextFormat) UnmarshalJSON(body []byte) error { // BasicTrigger azure data factory nested object which contains information about creating pipeline run type BasicTrigger interface { AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) + AsChainingTrigger() (*ChainingTrigger, bool) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) AsBlobTrigger() (*BlobTrigger, bool) @@ -193927,7 +194165,7 @@ type Trigger struct { 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', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeChainingTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -193943,6 +194181,10 @@ func unmarshalBasicTrigger(body []byte) (BasicTrigger, error) { var rtwt RerunTumblingWindowTrigger err := json.Unmarshal(body, &rtwt) return rtwt, err + case string(TypeChainingTrigger): + var ct ChainingTrigger + err := json.Unmarshal(body, &ct) + return ct, err case string(TypeTumblingWindowTrigger): var twt TumblingWindowTrigger err := json.Unmarshal(body, &twt) @@ -194012,6 +194254,11 @@ func (t Trigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bo return nil, false } +// AsChainingTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + // AsTumblingWindowTrigger is the BasicTrigger implementation for Trigger. func (t Trigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { return nil, false @@ -194477,6 +194724,10 @@ type TriggerRun struct { Properties map[string]*string `json:"properties"` // TriggeredPipelines - READ-ONLY; List of pipeline name and run Id triggered by the trigger run. TriggeredPipelines map[string]*string `json:"triggeredPipelines"` + // RunDimension - READ-ONLY; Run dimension for which trigger was fired. + RunDimension map[string]*string `json:"runDimension"` + // DependencyStatus - READ-ONLY; Status of the upstream pipelines. + DependencyStatus map[string]interface{} `json:"dependencyStatus"` } // MarshalJSON is the custom marshaler for TriggerRun. @@ -194581,6 +194832,24 @@ func (tr *TriggerRun) UnmarshalJSON(body []byte) error { } tr.TriggeredPipelines = triggeredPipelines } + case "runDimension": + if v != nil { + var runDimension map[string]*string + err = json.Unmarshal(*v, &runDimension) + if err != nil { + return err + } + tr.RunDimension = runDimension + } + case "dependencyStatus": + if v != nil { + var dependencyStatus map[string]interface{} + err = json.Unmarshal(*v, &dependencyStatus) + if err != nil { + return err + } + tr.DependencyStatus = dependencyStatus + } } } @@ -194723,7 +194992,7 @@ type TumblingWindowTrigger struct { 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', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeChainingTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -194757,6 +195026,11 @@ func (twt TumblingWindowTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingW return nil, false } +// AsChainingTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + // AsTumblingWindowTrigger is the BasicTrigger implementation for TumblingWindowTrigger. func (twt TumblingWindowTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { return &twt, true