Skip to content

Commit

Permalink
DataFactory Swagger Change for SapOpenHub and Rest (#5195)
Browse files Browse the repository at this point in the history
* DataFactory Swagger Change for SapOpenHub and Rest

* correct indentation

* address comment of REST

* fix syntax issue

* Fix issue with AutoRest
  • Loading branch information
wenbof authored and jhendrixMSFT committed Feb 19, 2019
1 parent 3f2dbe7 commit aa409a4
Show file tree
Hide file tree
Showing 3 changed files with 253 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,46 @@
"path"
]
},
"SapOpenHubTableDataset": {
"x-ms-discriminator-value": "SapOpenHubTable",
"description": "Sap Business Warehouse Open Hub Destination Table properties.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"typeProperties": {
"description": "Sap Business Warehouse Open Hub Destination Table properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/SapOpenHubTableDatasetTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SapOpenHubTableDatasetTypeProperties": {
"description": "Sap Business Warehouse Open Hub Destination Table properties.",
"properties": {
"openHubDestinationName": {
"type": "object",
"description": "The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with resultType string)."
},
"excludeLastRequest": {
"type": "object",
"description": "Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean)."
},
"baseRequestId": {
"type": "object",
"description": "The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression with resultType integer )."
}
},
"required": [
"openHubDestinationName"
]
},
"SqlServerTableDataset": {
"x-ms-discriminator-value": "SqlServerTable",
"description": "The on-premises SQL Server dataset.",
Expand Down Expand Up @@ -994,6 +1034,48 @@
"tableName"
]
},
"RestResourceDataset": {
"x-ms-discriminator-value": "RestResource",
"description": "A Rest service dataset.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"typeProperties": {
"description": "Properties specific to this dataset type.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/RestResourceDatasetTypeProperties"
}
}
},
"RestResourceDatasetTypeProperties": {
"description": "Properties specific to this dataset type.",
"properties": {
"relativeUrl": {
"type": "object",
"description": "The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string)."
},
"requestMethod": {
"type": "object",
"description": "The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string)."
},
"requestBody": {
"type": "object",
"description": "The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string)."
},
"additionalHeaders": {
"type": "object",
"description": "The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string)."
},
"paginationRules": {
"type": "object",
"description": "The pagination rules to compose next page requests. Type: string (or Expression with resultType string)."
}
}
},
"WebTableDataset": {
"x-ms-discriminator-value": "WebTable",
"description": "The dataset points to a HTML table in the web page.",
Expand Down Expand Up @@ -1632,3 +1714,4 @@
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -1603,6 +1603,143 @@
"url"
]
},
"SapOpenHubLinkedService": {
"x-ms-discriminator-value": "SapOpenHub",
"description": "SAP Business Warehouse Open Hub Destination Linked Service.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/LinkedService"
}
],
"properties": {
"typeProperties": {
"description": "Properties specific to SAP Business Warehouse Open Hub Destination linked service type.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/SapOpenHubLinkedServiceTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SapOpenHubLinkedServiceTypeProperties": {
"description": "Properties specific to SAP Business Warehouse Open Hub Destination linked service type.",
"properties": {
"server": {
"type": "object",
"description": "Host name of the SAP BW instance where the open hub destination is located. Type: string (or Expression with resultType string)."
},
"systemNumber": {
"type": "object",
"description": "System number of the BW system where the open hub destination is located. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string)."
},
"clientId": {
"type": "object",
"description": "Client ID of the client on the BW system where the open hub destination is located. (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType string)."
},
"language": {
"type": "object",
"description": "Language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression with resultType string)."
},
"userName": {
"type": "object",
"description": "Username to access the SAP BW server where the open hub destination is located. Type: string (or Expression with resultType string)."
},
"password": {
"description": "Password to access the SAP BW server where the open hub destination is located.",
"$ref": "../datafactory.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
"description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string)."
}
},
"required": [
"server",
"systemNumber",
"clientId"
]
},
"RestServiceLinkedService": {
"x-ms-discriminator-value": "RestService",
"description": "Rest Service linked service.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/LinkedService"
}
],
"properties": {
"typeProperties": {
"description": "Rest Service linked service properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/RestServiceLinkedServiceTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"RestServiceLinkedServiceTypeProperties": {
"description": "Rest Service linked service properties.",
"properties": {
"url": {
"description": "The base URL of the REST service.",
"type": "object"
},
"enableServerCertificateValidation": {
"type": "object",
"description": "Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean)."
},
"authenticationType": {
"description": "Type of authentication used to connect to the REST service.",
"type": "string",
"enum": [
"Anonymous",
"Basic",
"AadServicePrincipal",
"ManagedServiceIdentity"
],
"x-ms-enum": {
"name": "RestServiceAuthenticationType",
"modelAsString": true
}
},
"userName": {
"description": "The user name used in Basic authentication type.",
"type": "object"
},
"password": {
"description": "The password used in Basic authentication type.",
"$ref": "../datafactory.json#/definitions/SecretBase"
},
"servicePrincipalId": {
"description": "The application's client ID used in AadServicePrincipal authentication type.",
"type": "object"
},
"servicePrincipalKey": {
"description": "The application's key used in AadServicePrincipal authentication type.",
"$ref": "../datafactory.json#/definitions/SecretBase"
},
"tenant": {
"description": "The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides.",
"type": "object"
},
"aadResourceId": {
"description": "The resource you are requesting authorization to use.",
"type": "object"
},
"encryptedCredential": {
"description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).",
"type": "object"
}
},
"required": [
"url",
"authenticationType"
]
},
"AmazonS3LinkedService": {
"x-ms-discriminator-value": "AmazonS3",
"description": "Linked service for Amazon S3.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,35 @@
}
}
},
"SapOpenHubSource": {
"description": "A copy activity source for SAP Business Warehouse Open Hub Destination source.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySource"
}
],
"properties": {}
},
"RestSource": {
"description": "A copy activity Rest service source.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySource"
}
],
"properties": {
"httpRequestTimeout": {
"type": "object",
"description": "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]))."
},
"requestInterval": {
"type": "object",
"description": "The time to await before sending next page request. "
}
}
},
"SqlSource": {
"description": "A copy activity SQL source.",
"type": "object",
Expand Down Expand Up @@ -1680,6 +1709,10 @@
"schemaMapping": {
"type": "object",
"description": "The schema mapping to map between tabular data and hierarchical data. Example: {\"Column1\": \"$.Column1\", \"Column2\": \"$.Column2.Property1\", \"Column3\": \"$.Column2.Property2\"}. Type: object (or Expression with resultType object)."
},
"collectionReference": {
"type": "object",
"description": "The JSON Path of the Nested Array that is going to do cross-apply. Type: object (or Expression with resultType object)."
}
}
},
Expand Down

0 comments on commit aa409a4

Please sign in to comment.