Skip to content

Commit e8f7c89

Browse files
authored
[Hub Generated] Publish private branch 'dev/armohommed/200' (#21820)
* add or modify files * fix model
1 parent f5a5c43 commit e8f7c89

File tree

7 files changed

+152
-31
lines changed

7 files changed

+152
-31
lines changed

specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgUpdate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@
2424
"provisioningState": "Accepted"
2525
}
2626
}
27+
},
28+
"200": {
29+
"body": {
30+
"id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg",
31+
"name": "myOrg",
32+
"type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs",
33+
"properties": {
34+
"provisioningState": "Succeeded"
35+
}
36+
}
2737
}
2838
}
2939
}

specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectUpdate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
"provisioningState": "Accepted"
2626
}
2727
}
28+
},
29+
"200": {
30+
"body": {
31+
"id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject",
32+
"name": "myProject",
33+
"type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects",
34+
"properties": {
35+
"provisioningState": "Succeeded"
36+
}
37+
}
2838
}
2939
}
3040
}

specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoCreateOrUpdate.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,26 @@
2222
"main"
2323
]
2424
}
25-
},
26-
"repoId": "00000000-0000-0000-0000-000000000000",
27-
"repoUrl": "https://dev.azure.com/myOrg/myProject/_git/myRepo"
25+
}
2826
}
2927
}
3028
},
3129
"responses": {
32-
"201": {
30+
"202": {
3331
"headers": {
3432
"Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview"
3533
},
34+
"body": {
35+
"id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject/repos/myRepo",
36+
"name": "myRepo",
37+
"type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects/repos",
38+
"properties": {
39+
"provisioningState": "Accepted"
40+
}
41+
}
42+
},
43+
"200": {
44+
"headers": {},
3645
"body": {
3746
"id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject/repos/myRepo",
3847
"name": "myRepo",
@@ -54,12 +63,11 @@
5463
},
5564
"repoId": "00000000-0000-0000-0000-000000000000",
5665
"repoUrl": "https://dev.azure.com/myOrg/myProject/_git/myRepo",
57-
"provisioningState": "Created"
66+
"provisioningState": "Succeeded"
5867
}
5968
}
6069
},
61-
"200": {
62-
"headers": {},
70+
"201": {
6371
"body": {
6472
"id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject/repos/myRepo",
6573
"name": "myRepo",
@@ -81,7 +89,7 @@
8189
},
8290
"repoId": "00000000-0000-0000-0000-000000000000",
8391
"repoUrl": "https://dev.azure.com/myOrg/myProject/_git/myRepo",
84-
"provisioningState": "Succeeded"
92+
"provisioningState": "Created"
8593
}
8694
}
8795
}

specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoUpdate.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,32 @@
2222
"provisioningState": "Accepted"
2323
}
2424
}
25+
},
26+
"200": {
27+
"body": {
28+
"id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject/repos/myRepo",
29+
"name": "myRepo",
30+
"type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects/repos",
31+
"properties": {
32+
"actionableRemediation": {
33+
"state": "Enabled",
34+
"categories": [
35+
"Secrets"
36+
],
37+
"severityLevels": [
38+
"High"
39+
],
40+
"branchConfiguration": {
41+
"names": [
42+
"main"
43+
]
44+
}
45+
},
46+
"repoId": "00000000-0000-0000-0000-000000000000",
47+
"repoUrl": "https://dev.azure.com/myOrg/myProject/_git/myRepo",
48+
"provisioningState": "Succeeded"
49+
}
50+
}
2551
}
2652
}
2753
}

specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerUpdate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@
2121
"provisioningState": "Succeeded"
2222
}
2323
}
24+
},
25+
"200": {
26+
"body": {
27+
"id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure",
28+
"name": "Azure",
29+
"type": "Microsoft.SecurityDevOps/owners",
30+
"properties": {
31+
"ownerUrl": "https://github.com/Azure",
32+
"provisioningState": "Succeeded"
33+
}
34+
}
2435
}
2536
}
2637
}

specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoUpdate.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@
2424
"provisioningState": "Succeeded"
2525
}
2626
}
27+
},
28+
"200": {
29+
"body": {
30+
"id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure/repos/azure-rest-api-specs",
31+
"name": "azure-rest-api-specs",
32+
"type": "Microsoft.SecurityDevOps/owners/repos",
33+
"properties": {
34+
"accountId": 6844498,
35+
"ownerName": "Azure",
36+
"repoUrl": "https://github.com/Azure/azure-rest-api-specs",
37+
"provisioningState": "Succeeded"
38+
}
39+
}
2740
}
2841
}
2942
}

specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/securitydevops.json

Lines changed: 66 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,12 @@
570570
"$ref": "#/definitions/AzureDevOpsOrg"
571571
}
572572
},
573+
"200": {
574+
"description": "Success",
575+
"schema": {
576+
"$ref": "#/definitions/AzureDevOpsOrg"
577+
}
578+
},
573579
"default": {
574580
"description": "Error response describing why the operation failed.",
575581
"schema": {
@@ -790,7 +796,7 @@
790796
{
791797
"in": "body",
792798
"name": "azureDevOpsProject",
793-
"description": "Azure DevOps Org resource payload.",
799+
"description": "Azure DevOps Project resource payload.",
794800
"schema": {
795801
"$ref": "#/definitions/AzureDevOpsProject"
796802
}
@@ -803,6 +809,12 @@
803809
"$ref": "#/definitions/AzureDevOpsProject"
804810
}
805811
},
812+
"200": {
813+
"description": "Success",
814+
"schema": {
815+
"$ref": "#/definitions/AzureDevOpsProject"
816+
}
817+
},
806818
"default": {
807819
"description": "Error response describing why the operation failed.",
808820
"schema": {
@@ -981,6 +993,12 @@
981993
"$ref": "#/definitions/AzureDevOpsRepo"
982994
}
983995
},
996+
"202": {
997+
"description": "Accepted",
998+
"schema": {
999+
"$ref": "#/definitions/AzureDevOpsRepo"
1000+
}
1001+
},
9841002
"default": {
9851003
"description": "Error response describing why the operation failed.",
9861004
"schema": {
@@ -1002,7 +1020,7 @@
10021020
"tags": [
10031021
"default"
10041022
],
1005-
"summary": "Update monitored AzureDevOps Project details.",
1023+
"summary": "Update monitored AzureDevOps Repo details.",
10061024
"operationId": "AzureDevOpsRepo_Update",
10071025
"consumes": [
10081026
"application/json"
@@ -1035,7 +1053,7 @@
10351053
{
10361054
"in": "body",
10371055
"name": "azureDevOpsRepo",
1038-
"description": "Azure DevOps Org resource payload.",
1056+
"description": "Azure DevOps Repo resource payload.",
10391057
"schema": {
10401058
"$ref": "#/definitions/AzureDevOpsRepo"
10411059
}
@@ -1048,6 +1066,12 @@
10481066
"$ref": "#/definitions/AzureDevOpsRepo"
10491067
}
10501068
},
1069+
"200": {
1070+
"description": "Success",
1071+
"schema": {
1072+
"$ref": "#/definitions/AzureDevOpsRepo"
1073+
}
1074+
},
10511075
"default": {
10521076
"description": "Error response describing why the operation failed.",
10531077
"schema": {
@@ -1585,7 +1609,7 @@
15851609
"tags": [
15861610
"default"
15871611
],
1588-
"summary": "Patch a monitored GitHub repository.",
1612+
"summary": "Update a monitored GitHub repository.",
15891613
"operationId": "GitHubOwner_Update",
15901614
"consumes": [
15911615
"application/json"
@@ -1625,6 +1649,12 @@
16251649
"$ref": "#/definitions/GitHubOwner"
16261650
}
16271651
},
1652+
"200": {
1653+
"description": "Success",
1654+
"schema": {
1655+
"$ref": "#/definitions/GitHubOwner"
1656+
}
1657+
},
16281658
"default": {
16291659
"description": "Error response describing why the operation failed.",
16301660
"schema": {
@@ -1816,7 +1846,7 @@
18161846
"tags": [
18171847
"default"
18181848
],
1819-
"summary": "Patch a monitored GitHub repository.",
1849+
"summary": "Update a monitored GitHub repository.",
18201850
"operationId": "GitHubRepo_Update",
18211851
"consumes": [
18221852
"application/json"
@@ -1859,6 +1889,12 @@
18591889
"$ref": "#/definitions/GitHubRepo"
18601890
}
18611891
},
1892+
"200": {
1893+
"description": "Success",
1894+
"schema": {
1895+
"$ref": "#/definitions/GitHubRepo"
1896+
}
1897+
},
18621898
"default": {
18631899
"description": "Error response describing why the operation failed.",
18641900
"schema": {
@@ -2022,6 +2058,7 @@
20222058
}
20232059
},
20242060
"ActionableRemediationState": {
2061+
"description": "ActionableRemediation Setting.\r\nNone - the setting was never set.\r\nEnabled - ActionableRemediation is enabled.\r\nDisabled - ActionableRemediation is disabled.",
20252062
"enum": [
20262063
"None",
20272064
"Disabled",
@@ -2038,7 +2075,7 @@
20382075
"type": "object",
20392076
"properties": {
20402077
"code": {
2041-
"description": "Gets or sets one-time OAuth code to exchange for refresh and access tokens.",
2078+
"description": "Gets or sets one-time OAuth code to exchange for refresh and access tokens.\r\n\r\nOnly used during PUT operations. The secret is cleared during GET.\r\nIn general, RPaaS does not return any property marked as a secret.",
20422079
"type": "string",
20432080
"example": "00000000000000000000.",
20442081
"x-ms-secret": true
@@ -2281,12 +2318,12 @@
22812318
"provisioningState": {
22822319
"$ref": "#/definitions/ProvisioningState"
22832320
},
2284-
"projectId": {
2285-
"description": "Gets or sets AzureDevOps Project Id.",
2321+
"orgName": {
2322+
"description": "Gets or sets AzureDevOps org Name.",
22862323
"type": "string"
22872324
},
2288-
"orgName": {
2289-
"description": "Gets or sets AzureDevOps Org Name.",
2325+
"projectId": {
2326+
"description": "Gets or sets AzureDevOps Project Id.",
22902327
"type": "string"
22912328
},
22922329
"autoDiscovery": {
@@ -2332,25 +2369,30 @@
23322369
"provisioningState": {
23332370
"$ref": "#/definitions/ProvisioningState"
23342371
},
2372+
"orgName": {
2373+
"description": "Gets or sets AzureDevOps org Name.",
2374+
"type": "string",
2375+
"readOnly": true
2376+
},
2377+
"projectName": {
2378+
"description": "Gets or sets AzureDevOps project Name.",
2379+
"type": "string",
2380+
"readOnly": true
2381+
},
23352382
"repoId": {
23362383
"description": "Gets or sets Azure DevOps repo id.",
2337-
"type": "string"
2384+
"type": "string",
2385+
"readOnly": true
23382386
},
23392387
"repoUrl": {
23402388
"description": "Gets or sets AzureDevOps repo url.",
2341-
"type": "string"
2342-
},
2343-
"orgName": {
2344-
"description": "Gets or sets AzureDevOps Org Name.",
2345-
"type": "string"
2346-
},
2347-
"projectName": {
2348-
"description": "Gets or sets AzureDevOps Project Name.",
2349-
"type": "string"
2389+
"type": "string",
2390+
"readOnly": true
23502391
},
23512392
"visibility": {
23522393
"description": "Gets or sets AzureDevOps repo visibility, whether it is public or private etc.",
2353-
"type": "string"
2394+
"type": "string",
2395+
"readOnly": true
23542396
},
23552397
"actionableRemediation": {
23562398
"$ref": "#/definitions/ActionableRemediation"
@@ -2396,7 +2438,7 @@
23962438
"$ref": "#/definitions/ProvisioningState"
23972439
},
23982440
"code": {
2399-
"description": "Gets or sets one-time OAuth code to exchange for refresh and access tokens.",
2441+
"description": "Gets or sets one-time OAuth code to exchange for refresh and access tokens.\r\n\r\nOnly used during PUT operations. The secret is cleared during GET.\r\nIn general, RPaaS does not return any property marked as a secret.",
24002442
"type": "string",
24012443
"example": "00000000000000000000.",
24022444
"x-ms-secret": true
@@ -2580,7 +2622,8 @@
25802622
"name": "ProvisioningState",
25812623
"modelAsString": true,
25822624
"modelAsExtensible": true
2583-
}
2625+
},
2626+
"readOnly": true
25842627
},
25852628
"RuleCategory": {
25862629
"enum": [

0 commit comments

Comments
 (0)