Skip to content

Commit 80b0e88

Browse files
SherylueenYanwen LiumarkcowlmsyycAlancere
committed
Sherylueen appcomplianceautomation microsoft.app compliance automation 2024 06 27 (#28981)
* Adds base for updating Microsoft.AppComplianceAutomation from version preview/2022-11-16-preview to version 2024-06-27 * Updates readme * Updates API version in new specs and examples * add new stable version for Microsoft.AppComplianceAutomation * remove the useless example file * fix spell check * remove query in get evidence api * remove the singleton annotation * fix compile error * fix compile error of v56 * fix compile error * fix all compile error and make the swagger align with before * tsp prettier * change scoping name * upgrade the commontypes from v3 to v5 * change commonTypes version to v3 * add service-dir * format tspconfig.yaml * modify tspconfig.yaml * remove custom operations * modify re pattern of snapshot name * make the resource x-ms-client-name properties * format typespec * remove suffix of snapshot * use requestBody replace parameters * Revert "use requestBody replace parameters" This reverts commit e4dd975. * tsp format * remove dotnet from tspconfig.yaml and add azure-sdk-for-net-track2 in readme * add sdk-suppressions.yaml * Update tspconfig.yaml * Update tspconfig.yaml * rename operationid * rename getScopingQuestions and move model reportBaseProperties to alias --------- Co-authored-by: Yanwen Liu <[email protected]> Co-authored-by: Mark Cowlishaw <[email protected]> Co-authored-by: Yuchao Yan <[email protected]> Co-authored-by: Alancere <[email protected]> Co-authored-by: Weidong Xu <[email protected]>
1 parent eefab8e commit 80b0e88

File tree

92 files changed

+11340
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+11340
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-27",
4+
"evidenceName": "evidence1",
5+
"parameters": {
6+
"properties": {
7+
"controlId": "Operational_Security_10",
8+
"evidenceType": "File",
9+
"filePath": "/test-byos/evidence1.png",
10+
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services"
11+
}
12+
},
13+
"reportName": "testReportName"
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"name": "evidence1",
19+
"type": "Microsfot.AppComplianceAutomation/reports/evidences",
20+
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1",
21+
"properties": {
22+
"controlId": "Operational_Security_10",
23+
"evidenceType": "File",
24+
"extraData": "sampleData",
25+
"filePath": "/acat-container/evidence1.png",
26+
"provisioningState": "Succeeded",
27+
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services"
28+
},
29+
"systemData": {
30+
"createdAt": "2021-05-14T22:34:55.4499903Z",
31+
"createdBy": "00000000-0000-0000-0000-000000000000",
32+
"createdByType": "User",
33+
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z",
34+
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
35+
"lastModifiedByType": "User"
36+
}
37+
}
38+
},
39+
"201": {
40+
"body": {
41+
"name": "evidence1",
42+
"type": "Microsfot.AppComplianceAutomation/reports/evidences",
43+
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1",
44+
"properties": {
45+
"controlId": "Operational_Security_10",
46+
"evidenceType": "File",
47+
"extraData": "sampleData",
48+
"filePath": "/acat-container/evidence1.png",
49+
"provisioningState": "Succeeded",
50+
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services"
51+
},
52+
"systemData": {
53+
"createdAt": "2021-05-14T22:34:55.4499903Z",
54+
"createdBy": "00000000-0000-0000-0000-000000000000",
55+
"createdByType": "User",
56+
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z",
57+
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
58+
"lastModifiedByType": "User"
59+
}
60+
}
61+
}
62+
},
63+
"operationId": "Evidence_CreateOrUpdate",
64+
"title": "Evidence_CreateOrUpdate"
65+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-27",
4+
"evidenceName": "evidence1",
5+
"reportName": "testReportName"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
},
11+
"operationId": "Evidence_Delete",
12+
"title": "Evidence_Delete"
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-27",
4+
"evidenceName": "evidence1",
5+
"parameters": {
6+
"offerGuid": "00000000-0000-0000-0000-000000000000",
7+
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000"
8+
},
9+
"reportName": "testReportName"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"evidenceFile": {
15+
"url": "this is a url"
16+
}
17+
}
18+
}
19+
},
20+
"operationId": "Evidence_Download",
21+
"title": "Evidence_Download"
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-27",
4+
"evidenceName": "evidence1",
5+
"reportName": "testReportName"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"name": "evidence1",
11+
"type": "Microsfot.AppComplianceAutomation/reports/evidences",
12+
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1",
13+
"properties": {
14+
"controlId": "Operational_Security_10",
15+
"evidenceType": "File",
16+
"extraData": "sampleData",
17+
"filePath": "/acat-container/evidence1.png",
18+
"provisioningState": "Succeeded",
19+
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services"
20+
},
21+
"systemData": {
22+
"createdAt": "2021-05-14T22:34:55.4499903Z",
23+
"createdBy": "00000000-0000-0000-0000-000000000000",
24+
"createdByType": "User",
25+
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z",
26+
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
27+
"lastModifiedByType": "User"
28+
}
29+
}
30+
}
31+
},
32+
"operationId": "Evidence_Get",
33+
"title": "Evidence_Get"
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-27",
4+
"reportName": "reportName"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "evidence1",
12+
"type": "Microsfot.AppComplianceAutomation/reports/evidences",
13+
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1",
14+
"properties": {
15+
"controlId": "Operational_Security_10",
16+
"evidenceType": "File",
17+
"extraData": "sampleData",
18+
"filePath": "/acat-container/evidence1.png",
19+
"provisioningState": "Succeeded",
20+
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services"
21+
},
22+
"systemData": {
23+
"createdAt": "2021-05-14T22:34:55.4499903Z",
24+
"createdBy": "00000000-0000-0000-0000-000000000000",
25+
"createdByType": "User",
26+
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z",
27+
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
28+
"lastModifiedByType": "User"
29+
}
30+
}
31+
]
32+
}
33+
}
34+
},
35+
"operationId": "Evidence_ListByReport",
36+
"title": "Evidence_ListByReport"
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"operationId": "ProviderActions_ListInUseStorageAccounts",
3+
"title": "ListInUseStorageAccountsWithSubscriptions",
4+
"parameters": {
5+
"api-version": "2024-06-27",
6+
"parameters": {
7+
"subscriptionIds": [
8+
"0000000-0000-0000-0000-000000000001",
9+
"0000000-0000-0000-0000-000000000002"
10+
]
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"storageAccountList": [
17+
{
18+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
19+
"resourceGroup": "tetsRG",
20+
"accountName": "SA_name1",
21+
"location": "WEST US"
22+
},
23+
{
24+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
25+
"resourceGroup": "tetsRG",
26+
"accountName": "SA_name2",
27+
"location": "WEST US"
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"operationId": "ProviderActions_ListInUseStorageAccounts",
3+
"title": "ListInUseStorageAccountsWithoutSubscriptions",
4+
"parameters": {
5+
"api-version": "2024-06-27",
6+
"parameters": {}
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"storageAccountList": [
12+
{
13+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
14+
"resourceGroup": "tetsRG",
15+
"accountName": "SA_name1",
16+
"location": "WEST US"
17+
},
18+
{
19+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
20+
"resourceGroup": "tetsRG",
21+
"accountName": "SA_name2",
22+
"location": "WEST US"
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"operationId": "ProviderActions_Onboard",
3+
"title": "Onboard",
4+
"parameters": {
5+
"api-version": "2024-06-27",
6+
"parameters": {
7+
"subscriptionIds": [
8+
"00000000-0000-0000-0000-000000000000",
9+
"00000000-0000-0000-0000-000000000001"
10+
]
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"subscriptionIds": [
17+
"00000000-0000-0000-0000-000000000000",
18+
"00000000-0000-0000-0000-000000000001"
19+
]
20+
}
21+
},
22+
"202": {
23+
"headers": {
24+
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
25+
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
26+
}
27+
}
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"title": "Operations_List",
3+
"operationId": "Operations_List",
4+
"parameters": {
5+
"api-version": "2024-06-27"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "Microsoft.AppComplianceAutomation/reports/write",
13+
"isDataAction": false,
14+
"display": {
15+
"provider": "Microsoft AppComplianceAutomation",
16+
"resource": "Microsoft.AppComplianceAutomation/reports",
17+
"operation": "Microsoft.AppComplianceAutomation/reports/write",
18+
"description": "Create new reports."
19+
}
20+
}
21+
]
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"operationId": "ProviderActions_CheckNameAvailability",
3+
"title": "Report_CheckNameAvailability",
4+
"parameters": {
5+
"api-version": "2024-06-27",
6+
"parameters": {
7+
"name": "reportABC",
8+
"type": "Microsoft.AppComplianceAutomation/reports"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"message": "An report named 'reportABC' is already in use.",
15+
"nameAvailable": false,
16+
"reason": "AlreadyExists"
17+
}
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)