RestSource Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. CopySource - com.
azure. analytics. synapse. artifacts. models. RestSource
- com.
- com.
public final class RestSource
extends CopySource
A copy activity Rest service source.
Constructor Summary
| Constructor | Description |
|---|---|
| RestSource() |
Creates an instance of Rest |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Rest |
fromJson(JsonReader jsonReader)
Reads an instance of Rest |
| Object |
getAdditionalColumns()
Get the additional |
| Object |
getAdditionalHeaders()
Get the additional |
| Object |
getHttpRequestTimeout()
Get the http |
| Object |
getPaginationRules()
Get the pagination |
| Object |
getRequestBody()
Get the request |
| Object |
getRequestInterval()
Get the request |
| Object |
getRequestMethod()
Get the request |
| String |
getType()
Get the type property: Copy source type. |
|
Rest |
setAdditionalColumns(Object additionalColumns)
Set the additional |
|
Rest |
setAdditionalHeaders(Object additionalHeaders)
Set the additional |
|
Rest |
setHttpRequestTimeout(Object httpRequestTimeout)
Set the http |
|
Rest |
setMaxConcurrentConnections(Object maxConcurrentConnections)
Set the max |
|
Rest |
setPaginationRules(Object paginationRules)
Set the pagination |
|
Rest |
setRequestBody(Object requestBody)
Set the request |
|
Rest |
setRequestInterval(Object requestInterval)
Set the request |
|
Rest |
setRequestMethod(Object requestMethod)
Set the request |
|
Rest |
setSourceRetryCount(Object sourceRetryCount)
Set the source |
|
Rest |
setSourceRetryWait(Object sourceRetryWait)
Set the source |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from CopySource
Methods inherited from java.lang.Object
Constructor Details
RestSource
public RestSource()
Creates an instance of RestSource class.
Method Details
fromJson
public static RestSource fromJson(JsonReader jsonReader)
Reads an instance of RestSource from the JsonReader.
Parameters:
Returns:
Throws:
getAdditionalColumns
public Object getAdditionalColumns()
Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).
Returns:
getAdditionalHeaders
public Object getAdditionalHeaders()
Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string).
Returns:
getHttpRequestTimeout
public Object getHttpRequestTimeout()
Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Returns:
getPaginationRules
public Object getPaginationRules()
Get the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression with resultType string).
Returns:
getRequestBody
public Object getRequestBody()
Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string).
Returns:
getRequestInterval
public Object getRequestInterval()
Get the requestInterval property: The time to await before sending next page request.
Returns:
getRequestMethod
public Object getRequestMethod()
Get the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string).
Returns:
getType
public String getType()
Get the type property: Copy source type.
Overrides:
RestSource.getType()Returns:
setAdditionalColumns
public RestSource setAdditionalColumns(Object additionalColumns)
Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).
Parameters:
Returns:
setAdditionalHeaders
public RestSource setAdditionalHeaders(Object additionalHeaders)
Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string).
Parameters:
Returns:
setHttpRequestTimeout
public RestSource setHttpRequestTimeout(Object httpRequestTimeout)
Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Parameters:
Returns:
setMaxConcurrentConnections
public RestSource setMaxConcurrentConnections(Object maxConcurrentConnections)
Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
Overrides:
RestSource.setMaxConcurrentConnections(Object maxConcurrentConnections)Parameters:
setPaginationRules
public RestSource setPaginationRules(Object paginationRules)
Set the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression with resultType string).
Parameters:
Returns:
setRequestBody
public RestSource setRequestBody(Object requestBody)
Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string).
Parameters:
Returns:
setRequestInterval
public RestSource setRequestInterval(Object requestInterval)
Set the requestInterval property: The time to await before sending next page request.
Parameters:
Returns:
setRequestMethod
public RestSource setRequestMethod(Object requestMethod)
Set the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string).
Parameters:
Returns:
setSourceRetryCount
public RestSource setSourceRetryCount(Object sourceRetryCount)
Set the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer).
Overrides:
RestSource.setSourceRetryCount(Object sourceRetryCount)Parameters:
setSourceRetryWait
public RestSource setSourceRetryWait(Object sourceRetryWait)
Set the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Overrides:
RestSource.setSourceRetryWait(Object sourceRetryWait)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RestSource.toJson(JsonWriter jsonWriter)Parameters:
Throws: