diff --git a/sdk/datafactory/2018-06-01/datafactory/enums.go b/sdk/datafactory/2018-06-01/datafactory/enums.go index ec11022..8470f82 100644 --- a/sdk/datafactory/2018-06-01/datafactory/enums.go +++ b/sdk/datafactory/2018-06-01/datafactory/enums.go @@ -1459,21 +1459,6 @@ func PossibleSalesforceV2SinkWriteBehaviorValues() []SalesforceV2SinkWriteBehavi return []SalesforceV2SinkWriteBehavior{SalesforceV2SinkWriteBehaviorInsert, SalesforceV2SinkWriteBehaviorUpsert} } -// SalesforceV2SourceReadBehavior enumerates the values for salesforce v2 source read behavior. -type SalesforceV2SourceReadBehavior string - -const ( - // SalesforceV2SourceReadBehaviorQuery ... - SalesforceV2SourceReadBehaviorQuery SalesforceV2SourceReadBehavior = "query" - // SalesforceV2SourceReadBehaviorQueryAll ... - SalesforceV2SourceReadBehaviorQueryAll SalesforceV2SourceReadBehavior = "queryAll" -) - -// PossibleSalesforceV2SourceReadBehaviorValues returns an array of possible values for the SalesforceV2SourceReadBehavior const type. -func PossibleSalesforceV2SourceReadBehaviorValues() []SalesforceV2SourceReadBehavior { - return []SalesforceV2SourceReadBehavior{SalesforceV2SourceReadBehaviorQuery, SalesforceV2SourceReadBehaviorQueryAll} -} - // SapCloudForCustomerSinkWriteBehavior enumerates the values for sap cloud for customer sink write behavior. type SapCloudForCustomerSinkWriteBehavior string diff --git a/sdk/datafactory/2018-06-01/datafactory/models.go b/sdk/datafactory/2018-06-01/datafactory/models.go index 2898b46..5f0b53a 100644 --- a/sdk/datafactory/2018-06-01/datafactory/models.go +++ b/sdk/datafactory/2018-06-01/datafactory/models.go @@ -236314,6 +236314,8 @@ func (sscvls *SalesforceServiceCloudV2LinkedService) UnmarshalJSON(body []byte) type SalesforceServiceCloudV2LinkedServiceTypeProperties struct { // EnvironmentURL - The URL of Salesforce Service Cloud instance. For example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the Salesforce. Currently, we only support OAuth2ClientCredentials, it is also the default value + AuthenticationType interface{} `json:"authenticationType,omitempty"` // ClientID - The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // ClientSecret - The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. @@ -236342,6 +236344,15 @@ func (sscvlstp *SalesforceServiceCloudV2LinkedServiceTypeProperties) UnmarshalJS } sscvlstp.EnvironmentURL = environmentURL } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + sscvlstp.AuthenticationType = authenticationType + } case "clientId": if v != nil { var clientID interface{} @@ -237493,8 +237504,8 @@ func (sscvs *SalesforceServiceCloudV2Sink) UnmarshalJSON(body []byte) error { type SalesforceServiceCloudV2Source struct { // SOQLQuery - Database query. Type: string (or Expression with resultType string). SOQLQuery interface{} `json:"SOQLQuery,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is query. Allowed values: query/queryAll. Type: string (or Expression with resultType string). - ReadBehavior interface{} `json:"readBehavior,omitempty"` + // IncludeDeletedObjects - This property control whether query result contains Deleted objects. Default is false. Type: boolean (or Expression with resultType boolean). + IncludeDeletedObjects interface{} `json:"includeDeletedObjects,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). AdditionalColumns interface{} `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -237518,8 +237529,8 @@ func (sscvs SalesforceServiceCloudV2Source) MarshalJSON() ([]byte, error) { if sscvs.SOQLQuery != nil { objectMap["SOQLQuery"] = sscvs.SOQLQuery } - if sscvs.ReadBehavior != nil { - objectMap["readBehavior"] = sscvs.ReadBehavior + if sscvs.IncludeDeletedObjects != nil { + objectMap["includeDeletedObjects"] = sscvs.IncludeDeletedObjects } if sscvs.AdditionalColumns != nil { objectMap["additionalColumns"] = sscvs.AdditionalColumns @@ -238083,14 +238094,14 @@ func (sscvs *SalesforceServiceCloudV2Source) UnmarshalJSON(body []byte) error { } sscvs.SOQLQuery = sOQLQuery } - case "readBehavior": + case "includeDeletedObjects": if v != nil { - var readBehavior interface{} - err = json.Unmarshal(*v, &readBehavior) + var includeDeletedObjects interface{} + err = json.Unmarshal(*v, &includeDeletedObjects) if err != nil { return err } - sscvs.ReadBehavior = readBehavior + sscvs.IncludeDeletedObjects = includeDeletedObjects } case "additionalColumns": if v != nil { @@ -239997,6 +240008,8 @@ func (svls *SalesforceV2LinkedService) UnmarshalJSON(body []byte) error { type SalesforceV2LinkedServiceTypeProperties struct { // EnvironmentURL - The URL of Salesforce instance. For example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the Salesforce. Currently, we only support OAuth2ClientCredentials, it is also the default value + AuthenticationType interface{} `json:"authenticationType,omitempty"` // ClientID - The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` // ClientSecret - The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. @@ -240025,6 +240038,15 @@ func (svlstp *SalesforceV2LinkedServiceTypeProperties) UnmarshalJSON(body []byte } svlstp.EnvironmentURL = environmentURL } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + svlstp.AuthenticationType = authenticationType + } case "clientId": if v != nil { var clientID interface{} @@ -241175,8 +241197,8 @@ func (svs *SalesforceV2Sink) UnmarshalJSON(body []byte) error { type SalesforceV2Source struct { // SOQLQuery - Database query. Type: string (or Expression with resultType string). SOQLQuery interface{} `json:"SOQLQuery,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is query. Allowed values: query/queryAll. Type: string (or Expression with resultType string). - ReadBehavior interface{} `json:"readBehavior,omitempty"` + // IncludeDeletedObjects - This property control whether query result contains Deleted objects. Default is false. Type: boolean (or Expression with resultType boolean). + IncludeDeletedObjects interface{} `json:"includeDeletedObjects,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). @@ -241202,8 +241224,8 @@ func (svs SalesforceV2Source) MarshalJSON() ([]byte, error) { if svs.SOQLQuery != nil { objectMap["SOQLQuery"] = svs.SOQLQuery } - if svs.ReadBehavior != nil { - objectMap["readBehavior"] = svs.ReadBehavior + if svs.IncludeDeletedObjects != nil { + objectMap["includeDeletedObjects"] = svs.IncludeDeletedObjects } if svs.QueryTimeout != nil { objectMap["queryTimeout"] = svs.QueryTimeout @@ -241770,14 +241792,14 @@ func (svs *SalesforceV2Source) UnmarshalJSON(body []byte) error { } svs.SOQLQuery = sOQLQuery } - case "readBehavior": + case "includeDeletedObjects": if v != nil { - var readBehavior interface{} - err = json.Unmarshal(*v, &readBehavior) + var includeDeletedObjects interface{} + err = json.Unmarshal(*v, &includeDeletedObjects) if err != nil { return err } - svs.ReadBehavior = readBehavior + svs.IncludeDeletedObjects = includeDeletedObjects } case "queryTimeout": if v != nil {