Skip to content

Commit f6af79c

Browse files
Add oauthInfo to creation data model. (#18555)
1 parent 4448c5a commit f6af79c

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/SourceControls.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,11 @@
438438
"type": "object",
439439
"description": "Resources created in user's repository for the source-control.",
440440
"properties": {
441+
"oauthInfo": {
442+
"type": "object",
443+
"description": "The repository access authentication info.",
444+
"$ref": "#/definitions/OauthDetail"
445+
},
441446
"webhook": {
442447
"type": "object",
443448
"description": "The webhook object created for the source-control.",
@@ -477,6 +482,24 @@
477482
}
478483
}
479484
},
485+
"OauthDetail": {
486+
"description": "Resources created in GitHub repository.",
487+
"type": "object",
488+
"properties": {
489+
"accessCode": {
490+
"description": "Repository access authentication code.",
491+
"type": "string"
492+
},
493+
"state": {
494+
"description": "Repository access authentication state.",
495+
"type": "string"
496+
},
497+
"clientId": {
498+
"description": "Repository access authentication client id.",
499+
"type": "string"
500+
}
501+
}
502+
},
480503
"GitHubResourceInfo": {
481504
"description": "Resources created in GitHub repository.",
482505
"type": "object",

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/sourcecontrols/CreateSourceControl.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
"path": "path/to/workbooks"
3030
}
3131
]
32+
},
33+
"repositoryResourceInfo": {
34+
"oauthInfo": {
35+
"accessCode": "123456",
36+
"state": "testingstate",
37+
"clientId": "<optional client id>"
38+
}
3239
}
3340
}
3441
}
@@ -67,6 +74,7 @@
6774
]
6875
},
6976
"repositoryResourceInfo": {
77+
"oauthInfo": null,
7078
"webhook": {
7179
"webhookId": "342768323",
7280
"webhookUrl": "https://cac.sentinel.azure.com/workspaces/b7c525e9-1bfa-4435-88c0-817e13abb088/webhooks/ado/sourceControl/789e0c1f-4a3d-43ad-809c-e713b677b04a",
@@ -132,6 +140,7 @@
132140
]
133141
},
134142
"repositoryResourceInfo": {
143+
"oauthInfo": null,
135144
"webhook": {
136145
"webhookId": "342768323",
137146
"webhookUrl": "https://cac.sentinel.azure.com/workspaces/b7c525e9-1bfa-4435-88c0-817e13abb088/webhooks/ado/sourceControl/789e0c1f-4a3d-43ad-809c-e713b677b04a",

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/sourcecontrols/GetSourceControlById.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
]
4141
},
4242
"repositoryResourceInfo": {
43+
"oauthInfo": null,
4344
"webhook": {
4445
"webhookId": "342768323",
4546
"webhookUrl": "https://cac.sentinel.azure.com/workspaces/b7c525e9-1bfa-4435-88c0-817e13abb088/webhooks/ado/sourceControl/789e0c1f-4a3d-43ad-809c-e713b677b04a",

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/sourcecontrols/GetSourceControls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
]
4242
},
4343
"repositoryResourceInfo": {
44+
"oauthInfo": null,
4445
"webhook": {
4546
"webhookId": "342768323",
4647
"webhookUrl": "https://cac.sentinel.azure.com/workspaces/b7c525e9-1bfa-4435-88c0-817e13abb088/webhooks/ado/sourceControl/789e0c1f-4a3d-43ad-809c-e713b677b04a",

0 commit comments

Comments
 (0)