Skip to content

Commit 481e9b9

Browse files
hvermishovsepm
authored andcommitted
[Datafactory] Adding new API to get GitHub access token (#3827)
* [ADF] Bringing back additionalProperties in Activity removed by mistake * add github token api and exposure control api * Removing Exposure Control API for now. * Removing the example for ExposureControl API * Fixed the example and made the response readonly * Removing readonly from access token
1 parent 6704d71 commit 481e9b9

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed

specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,57 @@
395395
}
396396
}
397397
},
398+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken": {
399+
"post": {
400+
"tags": [
401+
"factories"
402+
],
403+
"operationId": "Factories_GetGitHubAccessToken",
404+
"x-ms-examples": {
405+
"Factories_GetGitHubAccessToken": {
406+
"$ref": "./examples/Factories_GetGitHubAccessToken.json"
407+
}
408+
},
409+
"description": "Get GitHub Access Token.",
410+
"parameters": [
411+
{
412+
"$ref": "#/parameters/subscriptionId"
413+
},
414+
{
415+
"$ref": "#/parameters/resourceGroupName"
416+
},
417+
{
418+
"$ref": "#/parameters/factoryName"
419+
},
420+
{
421+
"$ref": "#/parameters/api-version"
422+
},
423+
{
424+
"name": "gitHubAccessTokenRequest",
425+
"description": "Get GitHub access token request definition.",
426+
"in": "body",
427+
"required": true,
428+
"schema": {
429+
"$ref": "#/definitions/GitHubAccessTokenRequest"
430+
}
431+
}
432+
],
433+
"responses": {
434+
"200": {
435+
"description": "OK.",
436+
"schema": {
437+
"$ref": "#/definitions/GitHubAccessTokenResponse"
438+
}
439+
},
440+
"default": {
441+
"description": "An error response received from the Azure Data Factory service.",
442+
"schema": {
443+
"$ref": "#/definitions/CloudError"
444+
}
445+
}
446+
}
447+
}
448+
},
398449
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes": {
399450
"get": {
400451
"tags": [
@@ -3177,6 +3228,36 @@
31773228
}
31783229
}
31793230
},
3231+
"GitHubAccessTokenRequest": {
3232+
"description": "Get GitHub access token request definition.",
3233+
"properties": {
3234+
"gitHubAccessCode": {
3235+
"description": "GitHub access code.",
3236+
"type": "string"
3237+
},
3238+
"gitHubClientId": {
3239+
"description": "GitHub application client ID.",
3240+
"type": "string"
3241+
},
3242+
"gitHubAccessTokenBaseUrl": {
3243+
"description": "GitHub access token base URL.",
3244+
"type": "string"
3245+
}
3246+
},
3247+
"required": [
3248+
"gitHubAccessCode",
3249+
"gitHubAccessTokenBaseUrl"
3250+
]
3251+
},
3252+
"GitHubAccessTokenResponse": {
3253+
"description": "Get GitHub access token response definition.",
3254+
"properties": {
3255+
"gitHubAccessToken": {
3256+
"description": "GitHub access token.",
3257+
"type": "string"
3258+
}
3259+
}
3260+
},
31803261
"FactoryProperties": {
31813262
"description": "Factory resource properties.",
31823263
"properties": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "12345678-1234-1234-1234-12345678abc",
4+
"resourceGroupName": "exampleResourceGroup",
5+
"factoryName": "exampleFactoryName",
6+
"gitHubAccessTokenRequest": {
7+
"gitHubAccessCode": "some",
8+
"gitHubClientId": "some",
9+
"gitHubAccessTokenBaseUrl": "some"
10+
},
11+
"api-version": "2018-06-01"
12+
},
13+
"responses": {
14+
"200": {
15+
"headers": {
16+
"Date": "Fri, 7 Sep 2018 18:42:45 GMT",
17+
"X-Content-Type-Options": "nosniff",
18+
"x-ms-ratelimit-remaining-subscription-reads": "1199",
19+
"x-ms-request-id": "da630ed9-35e4-41cd-9f93-be14dbcbd099",
20+
"x-ms-correlation-request-id": "da630ed9-35e4-41cd-9f93-be14dbcbd099"
21+
},
22+
"body": {
23+
"gitHubAccessToken":"myAccessTokenExample"
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)