Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR datafactory/resource-manager] [DataFactory] Add a alternateKeyName property in dynamics sink #5748

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions services/datafactory/mgmt/2018-06-01/datafactory/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -47168,6 +47168,8 @@ type CommonDataServiceForAppsSink struct {
WriteBehavior *string `json:"writeBehavior,omitempty"`
// IgnoreNullValues - The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean).
IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"`
// AlternateKeyName - The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string).
AlternateKeyName interface{} `json:"alternateKeyName,omitempty"`
// AdditionalProperties - Unmatched properties from the message are deserialized this collection
AdditionalProperties map[string]interface{} `json:""`
// WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
Expand All @@ -47194,6 +47196,9 @@ func (cdsfas CommonDataServiceForAppsSink) MarshalJSON() ([]byte, error) {
if cdsfas.IgnoreNullValues != nil {
objectMap["ignoreNullValues"] = cdsfas.IgnoreNullValues
}
if cdsfas.AlternateKeyName != nil {
objectMap["alternateKeyName"] = cdsfas.AlternateKeyName
}
if cdsfas.WriteBatchSize != nil {
objectMap["writeBatchSize"] = cdsfas.WriteBatchSize
}
Expand Down Expand Up @@ -47420,6 +47425,15 @@ func (cdsfas *CommonDataServiceForAppsSink) UnmarshalJSON(body []byte) error {
}
cdsfas.IgnoreNullValues = ignoreNullValues
}
case "alternateKeyName":
if v != nil {
var alternateKeyName interface{}
err = json.Unmarshal(*v, &alternateKeyName)
if err != nil {
return err
}
cdsfas.AlternateKeyName = alternateKeyName
}
default:
if v != nil {
var additionalProperties interface{}
Expand Down Expand Up @@ -72523,6 +72537,8 @@ type DynamicsCrmSink struct {
WriteBehavior *string `json:"writeBehavior,omitempty"`
// IgnoreNullValues - The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean).
IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"`
// AlternateKeyName - The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string).
AlternateKeyName interface{} `json:"alternateKeyName,omitempty"`
// AdditionalProperties - Unmatched properties from the message are deserialized this collection
AdditionalProperties map[string]interface{} `json:""`
// WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
Expand All @@ -72549,6 +72565,9 @@ func (dcs DynamicsCrmSink) MarshalJSON() ([]byte, error) {
if dcs.IgnoreNullValues != nil {
objectMap["ignoreNullValues"] = dcs.IgnoreNullValues
}
if dcs.AlternateKeyName != nil {
objectMap["alternateKeyName"] = dcs.AlternateKeyName
}
if dcs.WriteBatchSize != nil {
objectMap["writeBatchSize"] = dcs.WriteBatchSize
}
Expand Down Expand Up @@ -72775,6 +72794,15 @@ func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error {
}
dcs.IgnoreNullValues = ignoreNullValues
}
case "alternateKeyName":
if v != nil {
var alternateKeyName interface{}
err = json.Unmarshal(*v, &alternateKeyName)
if err != nil {
return err
}
dcs.AlternateKeyName = alternateKeyName
}
default:
if v != nil {
var additionalProperties interface{}
Expand Down Expand Up @@ -74725,6 +74753,8 @@ type DynamicsSink struct {
WriteBehavior *string `json:"writeBehavior,omitempty"`
// IgnoreNullValues - The flag indicating whether ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean).
IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"`
// AlternateKeyName - The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string).
AlternateKeyName interface{} `json:"alternateKeyName,omitempty"`
// AdditionalProperties - Unmatched properties from the message are deserialized this collection
AdditionalProperties map[string]interface{} `json:""`
// WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
Expand All @@ -74751,6 +74781,9 @@ func (ds DynamicsSink) MarshalJSON() ([]byte, error) {
if ds.IgnoreNullValues != nil {
objectMap["ignoreNullValues"] = ds.IgnoreNullValues
}
if ds.AlternateKeyName != nil {
objectMap["alternateKeyName"] = ds.AlternateKeyName
}
if ds.WriteBatchSize != nil {
objectMap["writeBatchSize"] = ds.WriteBatchSize
}
Expand Down Expand Up @@ -74977,6 +75010,15 @@ func (ds *DynamicsSink) UnmarshalJSON(body []byte) error {
}
ds.IgnoreNullValues = ignoreNullValues
}
case "alternateKeyName":
if v != nil {
var alternateKeyName interface{}
err = json.Unmarshal(*v, &alternateKeyName)
if err != nil {
return err
}
ds.AlternateKeyName = alternateKeyName
}
default:
if v != nil {
var additionalProperties interface{}
Expand Down