diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json index 917caf7f0037..487980ca3532 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json @@ -395,6 +395,57 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken": { + "post": { + "tags": [ + "factories" + ], + "operationId": "Factories_GetGitHubAccessToken", + "x-ms-examples": { + "Factories_GetGitHubAccessToken": { + "$ref": "./examples/Factories_GetGitHubAccessToken.json" + } + }, + "description": "Get GitHub Access Token.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/factoryName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "gitHubAccessTokenRequest", + "description": "Get GitHub access token request definition.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GitHubAccessTokenRequest" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/GitHubAccessTokenResponse" + } + }, + "default": { + "description": "An error response received from the Azure Data Factory service.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes": { "get": { "tags": [ @@ -3177,6 +3228,36 @@ } } }, + "GitHubAccessTokenRequest": { + "description": "Get GitHub access token request definition.", + "properties": { + "gitHubAccessCode": { + "description": "GitHub access code.", + "type": "string" + }, + "gitHubClientId": { + "description": "GitHub application client ID.", + "type": "string" + }, + "gitHubAccessTokenBaseUrl": { + "description": "GitHub access token base URL.", + "type": "string" + } + }, + "required": [ + "gitHubAccessCode", + "gitHubAccessTokenBaseUrl" + ] + }, + "GitHubAccessTokenResponse": { + "description": "Get GitHub access token response definition.", + "properties": { + "gitHubAccessToken": { + "description": "GitHub access token.", + "type": "string" + } + } + }, "FactoryProperties": { "description": "Factory resource properties.", "properties": { diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json new file mode 100644 index 000000000000..519664661711 --- /dev/null +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-12345678abc", + "resourceGroupName": "exampleResourceGroup", + "factoryName": "exampleFactoryName", + "gitHubAccessTokenRequest": { + "gitHubAccessCode": "some", + "gitHubClientId": "some", + "gitHubAccessTokenBaseUrl": "some" + }, + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": { + "Date": "Fri, 7 Sep 2018 18:42:45 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-ratelimit-remaining-subscription-reads": "1199", + "x-ms-request-id": "da630ed9-35e4-41cd-9f93-be14dbcbd099", + "x-ms-correlation-request-id": "da630ed9-35e4-41cd-9f93-be14dbcbd099" + }, + "body": { + "gitHubAccessToken":"myAccessTokenExample" + } + } + } +} \ No newline at end of file