Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,57 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken": {
Copy link
Member

@simongdavies simongdavies Sep 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you expect this action to be used in an ARM template? If so you may want to change the name so it begins with list, if you do this the action will be able to be invoked from a template , you also need to make changes to your manifest to enable this functionality as there is data in the POST body. #Closed

Copy link
Contributor Author

@hvermis hvermis Sep 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this will not be used in ARM templates. #Closed

"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": [
Expand Down Expand Up @@ -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.",
Copy link
Contributor

@hovsepm hovsepm Sep 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"readOnly": true ? #Resolved

"type": "string"
}
}
},
"FactoryProperties": {
"description": "Factory resource properties.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"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": "Mon, 23 Jul 2018 17:04:45 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-reads": "14999",
"x-ms-request-id": "991aa7d9-ab27-4e0e-874c-5cf7bd4ef763",
"x-ms-correlation-request-id": "991aa7d9-ab27-4e0e-874c-5cf7bd4ef763"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName",
"name": "exampleIntegrationRuntime",
"type": "Microsoft.DataFactory/factories",
"properties": {
"provisioningState":"Succeeded",
"createTime":"2018-07-03T19:07:55.5145009Z",
"version":"2018-06-01"
},
"eTag":"0000b055-0000-0000-0000-5b3bc9e70000",
"location":"eastus2euap",
"tags":{"__gitRepoUrl__":"https://github.com/test/azure_data_factory","__gitRepoRootFolder__":"/","__gitRepoCollaborationBranch__":"master"}
}
}
}
}