forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sherylueen appcomplianceautomation microsoft.app compliance automatio…
…n 2024 06 27 (Azure#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]>
- Loading branch information
1 parent
ad9955f
commit 12ff370
Showing
92 changed files
with
11,340 additions
and
2 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
...ation/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"evidenceName": "evidence1", | ||
"parameters": { | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"filePath": "/test-byos/evidence1.png", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
} | ||
}, | ||
"reportName": "testReportName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "evidence1", | ||
"type": "Microsfot.AppComplianceAutomation/reports/evidences", | ||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1", | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"extraData": "sampleData", | ||
"filePath": "/acat-container/evidence1.png", | ||
"provisioningState": "Succeeded", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
}, | ||
"systemData": { | ||
"createdAt": "2021-05-14T22:34:55.4499903Z", | ||
"createdBy": "00000000-0000-0000-0000-000000000000", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z", | ||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000", | ||
"lastModifiedByType": "User" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "evidence1", | ||
"type": "Microsfot.AppComplianceAutomation/reports/evidences", | ||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1", | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"extraData": "sampleData", | ||
"filePath": "/acat-container/evidence1.png", | ||
"provisioningState": "Succeeded", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
}, | ||
"systemData": { | ||
"createdAt": "2021-05-14T22:34:55.4499903Z", | ||
"createdBy": "00000000-0000-0000-0000-000000000000", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z", | ||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000", | ||
"lastModifiedByType": "User" | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "Evidence_CreateOrUpdate", | ||
"title": "Evidence_CreateOrUpdate" | ||
} |
13 changes: 13 additions & 0 deletions
13
...nceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"evidenceName": "evidence1", | ||
"reportName": "testReportName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
}, | ||
"operationId": "Evidence_Delete", | ||
"title": "Evidence_Delete" | ||
} |
22 changes: 22 additions & 0 deletions
22
...eautomation/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Download.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"evidenceName": "evidence1", | ||
"parameters": { | ||
"offerGuid": "00000000-0000-0000-0000-000000000000", | ||
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"reportName": "testReportName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"evidenceFile": { | ||
"url": "this is a url" | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "Evidence_Download", | ||
"title": "Evidence_Download" | ||
} |
34 changes: 34 additions & 0 deletions
34
...lianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"evidenceName": "evidence1", | ||
"reportName": "testReportName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "evidence1", | ||
"type": "Microsfot.AppComplianceAutomation/reports/evidences", | ||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1", | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"extraData": "sampleData", | ||
"filePath": "/acat-container/evidence1.png", | ||
"provisioningState": "Succeeded", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
}, | ||
"systemData": { | ||
"createdAt": "2021-05-14T22:34:55.4499903Z", | ||
"createdBy": "00000000-0000-0000-0000-000000000000", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z", | ||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000", | ||
"lastModifiedByType": "User" | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "Evidence_Get", | ||
"title": "Evidence_Get" | ||
} |
37 changes: 37 additions & 0 deletions
37
...omation/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_ListByReport.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"reportName": "reportName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "evidence1", | ||
"type": "Microsfot.AppComplianceAutomation/reports/evidences", | ||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1", | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"extraData": "sampleData", | ||
"filePath": "/acat-container/evidence1.png", | ||
"provisioningState": "Succeeded", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
}, | ||
"systemData": { | ||
"createdAt": "2021-05-14T22:34:55.4499903Z", | ||
"createdBy": "00000000-0000-0000-0000-000000000000", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z", | ||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000", | ||
"lastModifiedByType": "User" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"operationId": "Evidence_ListByReport", | ||
"title": "Evidence_ListByReport" | ||
} |
33 changes: 33 additions & 0 deletions
33
...eAutomation.Management/examples/2024-06-27/ListInUseStorageAccountsWithSubscriptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"operationId": "ProviderActions_ListInUseStorageAccounts", | ||
"title": "ListInUseStorageAccountsWithSubscriptions", | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"parameters": { | ||
"subscriptionIds": [ | ||
"0000000-0000-0000-0000-000000000001", | ||
"0000000-0000-0000-0000-000000000002" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"storageAccountList": [ | ||
{ | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroup": "tetsRG", | ||
"accountName": "SA_name1", | ||
"location": "WEST US" | ||
}, | ||
{ | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroup": "tetsRG", | ||
"accountName": "SA_name2", | ||
"location": "WEST US" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...tomation.Management/examples/2024-06-27/ListInUseStorageAccountsWithoutSubscriptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"operationId": "ProviderActions_ListInUseStorageAccounts", | ||
"title": "ListInUseStorageAccountsWithoutSubscriptions", | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"parameters": {} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"storageAccountList": [ | ||
{ | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroup": "tetsRG", | ||
"accountName": "SA_name1", | ||
"location": "WEST US" | ||
}, | ||
{ | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroup": "tetsRG", | ||
"accountName": "SA_name2", | ||
"location": "WEST US" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...pcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Onboard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"operationId": "ProviderActions_Onboard", | ||
"title": "Onboard", | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"parameters": { | ||
"subscriptionIds": [ | ||
"00000000-0000-0000-0000-000000000000", | ||
"00000000-0000-0000-0000-000000000001" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"subscriptionIds": [ | ||
"00000000-0000-0000-0000-000000000000", | ||
"00000000-0000-0000-0000-000000000001" | ||
] | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}", | ||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}" | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...nceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Operations_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"title": "Operations_List", | ||
"operationId": "Operations_List", | ||
"parameters": { | ||
"api-version": "2024-06-27" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.AppComplianceAutomation/reports/write", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft AppComplianceAutomation", | ||
"resource": "Microsoft.AppComplianceAutomation/reports", | ||
"operation": "Microsoft.AppComplianceAutomation/reports/write", | ||
"description": "Create new reports." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../AppComplianceAutomation.Management/examples/2024-06-27/Report_CheckNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"operationId": "ProviderActions_CheckNameAvailability", | ||
"title": "Report_CheckNameAvailability", | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"parameters": { | ||
"name": "reportABC", | ||
"type": "Microsoft.AppComplianceAutomation/reports" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"message": "An report named 'reportABC' is already in use.", | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.