Skip to content

Commit

Permalink
Generated from f6a13fa7483cb2d392efc9bcc5e106a29267871f
Browse files Browse the repository at this point in the history
Add more options on xml and cosmosdb copy source
  • Loading branch information
SDK Automation committed Jul 28, 2020
1 parent 370eb0d commit 87a2b16
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public class CosmosDbSqlApiSource extends CopySource {
@JsonProperty(value = "preferredRegions")
private Object preferredRegions;

/**
* Whether detect primitive values as datetime values. Type: boolean (or
* Expression with resultType boolean).
*/
@JsonProperty(value = "detectDatetime")
private Object detectDatetime;

/**
* Specifies the additional columns to be added to source data. Type: array
* of objects (or Expression with resultType array of objects).
Expand Down Expand Up @@ -106,6 +113,26 @@ public CosmosDbSqlApiSource withPreferredRegions(Object preferredRegions) {
return this;
}

/**
* Get whether detect primitive values as datetime values. Type: boolean (or Expression with resultType boolean).
*
* @return the detectDatetime value
*/
public Object detectDatetime() {
return this.detectDatetime;
}

/**
* Set whether detect primitive values as datetime values. Type: boolean (or Expression with resultType boolean).
*
* @param detectDatetime the detectDatetime value to set
* @return the CosmosDbSqlApiSource object itself.
*/
public CosmosDbSqlApiSource withDetectDatetime(Object detectDatetime) {
this.detectDatetime = detectDatetime;
return this;
}

/**
* Get specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects).
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ public class XmlReadSettings extends FormatReadSettings {
@JsonProperty(value = "validationMode")
private Object validationMode;

/**
* Indicates whether type detection is enabled when reading the xml files.
* Type: boolean (or Expression with resultType boolean).
*/
@JsonProperty(value = "detectDataType")
private Object detectDataType;

/**
* Indicates whether namespace is enabled when reading the xml files. Type:
* boolean (or Expression with resultType boolean).
*/
@JsonProperty(value = "namespaces")
private Object namespaces;

/**
* Namespace uri to prefix mappings to override the prefixes in column
* names when namespace is enabled, if no prefix is defined for a namespace
Expand Down Expand Up @@ -82,6 +96,46 @@ public XmlReadSettings withValidationMode(Object validationMode) {
return this;
}

/**
* Get indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
*
* @return the detectDataType value
*/
public Object detectDataType() {
return this.detectDataType;
}

/**
* Set indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
*
* @param detectDataType the detectDataType value to set
* @return the XmlReadSettings object itself.
*/
public XmlReadSettings withDetectDataType(Object detectDataType) {
this.detectDataType = detectDataType;
return this;
}

/**
* Get indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
*
* @return the namespaces value
*/
public Object namespaces() {
return this.namespaces;
}

/**
* Set indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
*
* @param namespaces the namespaces value to set
* @return the XmlReadSettings object itself.
*/
public XmlReadSettings withNamespaces(Object namespaces) {
this.namespaces = namespaces;
return this;
}

/**
* Get namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object).
*
Expand Down

0 comments on commit 87a2b16

Please sign in to comment.