From 85c7216097b687490b9aeb7018794024d700b73e Mon Sep 17 00:00:00 2001 From: Bin Yu <56588422+BinYuMSFT@users.noreply.github.com> Date: Tue, 27 Apr 2021 15:43:28 +0800 Subject: [PATCH] Add Test Base Swagger Spec from RPSaaSMaster (#14113) Co-authored-by: Bin Yu --- .../examples/AvailableOSGet.json | 26 + .../examples/AvailableOSsList.json | 79 + .../CPURegressionAnalysisResultGet.json | 40 + .../CPURegressionAnalysisResultsList.json | 44 + .../CPUUtilizationAnalysisResultGet.json | 92 + .../CPUUtilizationAnalysisResultsList.json | 96 + .../CheckPackageNameAvailability.json | 19 + .../examples/FavoriteProcessCreate.json | 27 + .../examples/FavoriteProcessDelete.json | 14 + .../examples/FavoriteProcessGet.json | 22 + .../examples/FavoriteProcessesList.json | 33 + .../examples/FlightingRingGet.json | 21 + .../examples/FlightingRingsList.json | 32 + .../MemoryRegressionAnalysisResultGet.json | 40 + .../MemoryRegressionAnalysisResultsList.json | 44 + .../MemoryUtilizationAnalysisResultGet.json | 92 + .../MemoryUtilizationAnalysisResultsList.json | 96 + .../examples/OSUpdateGet.json | 25 + .../examples/OSUpdatesList.json | 51 + .../examples/OperationsList.json | 41 + .../examples/PackageCreate.json | 285 ++ .../examples/PackageDelete.json | 19 + .../examples/PackageGet.json | 109 + .../examples/PackageGetDownloadURL.json | 17 + .../examples/PackageHardDelete.json | 19 + .../examples/PackageUpdate.json | 194 + .../examples/PackagesList.json | 248 + .../examples/TestBaseAccountCreate.json | 84 + .../examples/TestBaseAccountDelete.json | 18 + .../examples/TestBaseAccountGet.json | 41 + .../TestBaseAccountGetFileUploadUrl.json | 19 + .../examples/TestBaseAccountOffboard.json | 18 + .../examples/TestBaseAccountSKUsList.json | 33 + .../examples/TestBaseAccountUpdate.json | 61 + .../examples/TestBaseAccountUsagesList.json | 37 + .../examples/TestBaseAccountsList.json | 73 + .../TestBaseAccountsListBySubscription.json | 72 + .../examples/TestResultGet.json | 58 + .../examples/TestResultGetDownloadURL.json | 18 + .../TestResultGetVideoDownloadURL.json | 18 + .../examples/TestResultsList.json | 107 + .../examples/TestSummariesList.json | 180 + .../examples/TestSummaryGet.json | 95 + .../examples/TestTypeGet.json | 21 + .../examples/TestTypesList.json | 32 + .../preview/2020-12-16-preview/testbase.json | 4051 +++++++++++++++++ .../readme.azureresourceschema.md | 23 + .../resource-manager/readme.csharp.md | 15 + .../testbase/resource-manager/readme.go.md | 26 + .../testbase/resource-manager/readme.md | 94 + .../resource-manager/readme.python.md | 20 + .../resource-manager/readme.typescript.md | 14 + 52 files changed, 7053 insertions(+) create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CheckPackageNameAvailability.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessCreate.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessDelete.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessesList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FlightingRingGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FlightingRingsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryRegressionAnalysisResultGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryRegressionAnalysisResultsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryUtilizationAnalysisResultGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryUtilizationAnalysisResultsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OSUpdateGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OSUpdatesList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OperationsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageCreate.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageDelete.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageGetDownloadURL.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageHardDelete.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageUpdate.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackagesList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountCreate.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountDelete.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountGetFileUploadUrl.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountOffboard.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountSKUsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountUpdate.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountUsagesList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountsListBySubscription.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGetDownloadURL.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGetVideoDownloadURL.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultsList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestSummariesList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestSummaryGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestTypeGet.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestTypesList.json create mode 100644 specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/testbase.json create mode 100644 specification/testbase/resource-manager/readme.azureresourceschema.md create mode 100644 specification/testbase/resource-manager/readme.csharp.md create mode 100644 specification/testbase/resource-manager/readme.go.md create mode 100644 specification/testbase/resource-manager/readme.md create mode 100644 specification/testbase/resource-manager/readme.python.md create mode 100644 specification/testbase/resource-manager/readme.typescript.md diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSGet.json new file mode 100644 index 000000000000..ec1a56b504ad --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg", + "testBaseAccountName": "contoso-testBaseAccount", + "availableOSResourceName": "Windows-10-2004", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "Windows-10-2004", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-2004", + "type": "Microsoft.TestBase/testBaseAccounts/availableOSs", + "properties": { + "osId": "Windows 10 2004", + "osName": "Windows 10 2004", + "osVersion": "Windows 10", + "insiderChannel": "Channel 1", + "osUpdateType": "Feature update", + "osPlatform": "Client" + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSsList.json new file mode 100644 index 000000000000..1209b1a8007b --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSsList.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg", + "testBaseAccountName": "contoso-testBaseAccount", + "osUpdateType": "SecurityUpdate", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Windows-10-2004", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-2004", + "type": "Microsoft.TestBase/testBaseAccounts/availableOSs", + "properties": { + "osId": "Windows 10 2004", + "osName": "Windows 10 2004", + "osVersion": "Windows 10", + "insiderChannel": "Channel 1", + "osUpdateType": "Feature update", + "osPlatform": "Client" + } + }, + { + "name": "Windows-10-1909", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-1909", + "type": "Microsoft.TestBase/testBaseAccounts/availableOSs", + "properties": { + "osId": "Windows 10 1909", + "osName": "Windows 10 1909", + "osVersion": "Windows 10", + "osUpdateType": "Security update", + "osPlatform": "Client" + } + }, + { + "name": "Windows-10-1903", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-1903", + "type": "Microsoft.TestBase/testBaseAccounts/availableOSs", + "properties": { + "osId": "Windows 10 1903", + "osName": "Windows 10 1903", + "osVersion": "Windows 10", + "osUpdateType": "Security update", + "osPlatform": "Client" + } + }, + { + "name": "Windows-10-1809", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-1809", + "type": "Microsoft.TestBase/testBaseAccounts/availableOSs", + "properties": { + "osId": "Windows 10 1809", + "osName": "Windows 10 1809", + "osVersion": "Windows 10", + "insiderChannel": "Channel 3", + "osUpdateType": "Feature update", + "osPlatform": "Client" + } + }, + { + "name": "Windows-Server-2016", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-Server-2016", + "type": "Microsoft.TestBase/testBaseAccounts/availableOSs", + "properties": { + "osId": "Windows Server 2016", + "osName": "Windows Server 2016", + "osVersion": "Windows Server 2016", + "osUpdateType": "Security update", + "osPlatform": "Server" + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultGet.json new file mode 100644 index 000000000000..43280d227ec1 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultGet.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-Test-Id", + "analysisResultName": "cpuRegression", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "cpuRegression", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/cpuRegression", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", + "properties": { + "grade": "Pass", + "analysisResultType": "CPURegression", + "cpuRegressionResults": [ + { + "fileName": "testApp.exe", + "grade": "Pass", + "details": "Some details of testApp", + "diff": 0.1, + "isRegressed": false + }, + { + "fileName": "dependencies.exe", + "grade": "Pass", + "details": "Some details of dependencies", + "diff": 0.15, + "isRegressed": false + } + ] + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultsList.json new file mode 100644 index 000000000000..8d0ad17411df --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultsList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-Test-Id", + "analysisResultType": "CPURegression", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "cpuRegression", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/cpuRegression", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", + "properties": { + "grade": "Pass", + "analysisResultType": "CPURegression", + "cpuRegressionResults": [ + { + "fileName": "testApp.exe", + "grade": "Pass", + "details": "Some details of testApp", + "diff": 0.1, + "isRegressed": false + }, + { + "fileName": "dependencies.exe", + "grade": "Pass", + "details": "Some details of dependencies", + "diff": 0.15, + "isRegressed": false + } + ] + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultGet.json new file mode 100644 index 000000000000..f2f12a85cdf6 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultGet.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-Test-Id", + "analysisResultName": "cpuUtilization", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "cpuUtilization", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/cpuUtilization", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", + "properties": { + "grade": "Pass", + "analysisResultType": "CPUUtilization", + "cpuUtilizationResults": [ + { + "process": "app.exe", + "upperBound": { + "percentile": 90.0, + "value": 60.0 + }, + "lowerBound": { + "percentile": 50.0, + "value": 20.0 + }, + "utilization": [ + { + "timestamp": "2020-12-28T17:30:00Z", + "value": 34.7 + }, + { + "timestamp": "2020-12-28T17:31:00Z", + "value": 35.9 + }, + { + "timestamp": "2020-12-28T17:32:00Z", + "value": 27.1 + }, + { + "timestamp": "2020-12-28T17:33:00Z", + "value": 49.8 + }, + { + "timestamp": "2020-12-28T17:34:00Z", + "value": 45.6 + } + ] + }, + { + "process": "anotherProcess.exe", + "upperBound": { + "percentile": 90.0, + "value": 60.0 + }, + "lowerBound": { + "percentile": 50.0, + "value": 20.0 + }, + "utilization": [ + { + "timestamp": "2020-12-28T17:30:00Z", + "value": 34.7 + }, + { + "timestamp": "2020-12-28T17:31:00Z", + "value": 35.9 + }, + { + "timestamp": "2020-12-28T17:32:00Z", + "value": 27.1 + }, + { + "timestamp": "2020-12-28T17:33:00Z", + "value": 49.8 + }, + { + "timestamp": "2020-12-28T17:34:00Z", + "value": 45.6 + } + ] + } + ] + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultsList.json new file mode 100644 index 000000000000..80de4df56e12 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultsList.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-Test-Id", + "analysisResultType": "CPUUtilization", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "cpuUtilization", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/cpuUtilization", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", + "properties": { + "grade": "Pass", + "analysisResultType": "CPUUtilization", + "cpuUtilizationResults": [ + { + "process": "app.exe", + "upperBound": { + "percentile": 90.0, + "value": 60.0 + }, + "lowerBound": { + "percentile": 50.0, + "value": 20.0 + }, + "utilization": [ + { + "timestamp": "2020-12-28T17:30:00Z", + "value": 34.7 + }, + { + "timestamp": "2020-12-28T17:31:00Z", + "value": 35.9 + }, + { + "timestamp": "2020-12-28T17:32:00Z", + "value": 27.1 + }, + { + "timestamp": "2020-12-28T17:33:00Z", + "value": 49.8 + }, + { + "timestamp": "2020-12-28T17:34:00Z", + "value": 45.6 + } + ] + }, + { + "process": "anotherProcess.exe", + "upperBound": { + "percentile": 90.0, + "value": 60.0 + }, + "lowerBound": { + "percentile": 50.0, + "value": 20.0 + }, + "utilization": [ + { + "timestamp": "2020-12-28T17:30:00Z", + "value": 34.7 + }, + { + "timestamp": "2020-12-28T17:31:00Z", + "value": 35.9 + }, + { + "timestamp": "2020-12-28T17:32:00Z", + "value": 27.1 + }, + { + "timestamp": "2020-12-28T17:33:00Z", + "value": 49.8 + }, + { + "timestamp": "2020-12-28T17:34:00Z", + "value": 45.6 + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CheckPackageNameAvailability.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CheckPackageNameAvailability.json new file mode 100644 index 000000000000..e79fc4ea363b --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/CheckPackageNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview", + "parameters": { + "name": "testApp", + "applicationName": "testApp", + "version": "1.0.0", + "type": "Microsoft.TestBase/testBaseAccounts/packages" + } + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessCreate.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessCreate.json new file mode 100644 index 000000000000..9247859bf24b --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessCreate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "favoriteProcessResourceName": "testAppProcess", + "api-version": "2020-12-16-preview", + "parameters": { + "properties": { + "actualProcessName": "testApp&.exe" + } + } + }, + "responses": { + "200": { + "body": { + "name": "testAppProcess", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/favoriteProcesses/testAppProcess", + "type": "Microsoft.TestBase/testBaseAccounts/packages/favoriteProcesses", + "properties": { + "actualProcessName": "testApp&.exe" + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessDelete.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessDelete.json new file mode 100644 index 000000000000..ecb77019c633 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "favoriteProcessResourceName": "testAppProcess", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessGet.json new file mode 100644 index 000000000000..92037d75bc2e --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "favoriteProcessResourceName": "testAppProcess", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "testAppProcess", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/favoriteProcesses/testAppProcess", + "type": "Microsoft.TestBase/testBaseAccounts/packages/favoriteProcesses", + "properties": { + "actualProcessName": "testApp&.exe" + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessesList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessesList.json new file mode 100644 index 000000000000..e104f2c07846 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FavoriteProcessesList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testAppProcess", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/favoriteProcesses/testAppProcess", + "type": "Microsoft.TestBase/testBaseAccounts/packages/favoriteProcesses", + "properties": { + "actualProcessName": "testApp&.exe" + } + }, + { + "name": "anotherProcess", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/favoriteProcesses/anotherProcess", + "type": "Microsoft.TestBase/testBaseAccounts/packages/favoriteProcesses", + "properties": { + "actualProcessName": "anotherProcess&&.exe" + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FlightingRingGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FlightingRingGet.json new file mode 100644 index 000000000000..69722dafe911 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FlightingRingGet.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg", + "testBaseAccountName": "contoso-testBaseAccount", + "flightingRingResourceName": "Insider-Beta-Channel", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "Insider-Beta-Channel", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/flightingRings/Insider-Beta-Channel", + "type": "Microsoft.TestBase/testBaseAccounts/flightingRings", + "properties": { + "actualFlightingRingName": "Insider Beta Channel" + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FlightingRingsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FlightingRingsList.json new file mode 100644 index 000000000000..ec5d6ba01d07 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/FlightingRingsList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg", + "testBaseAccountName": "contoso-testBaseAccount", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Insider-Beta-Channel", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/flightingRings/Insider-Beta-Channel", + "type": "Microsoft.TestBase/testBaseAccounts/flightingRings", + "properties": { + "actualFlightingRingName": "Insider Beta Channel" + } + }, + { + "name": "Another-Channel", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/flightingRings/Another-Channel", + "type": "Microsoft.TestBase/testBaseAccounts/flightingRings", + "properties": { + "actualFlightingRingName": "Another Channel" + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryRegressionAnalysisResultGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryRegressionAnalysisResultGet.json new file mode 100644 index 000000000000..61b81e5822f5 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryRegressionAnalysisResultGet.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-Test-Id", + "analysisResultName": "memoryRegression", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "memoryRegression", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/memoryRegression", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", + "properties": { + "grade": "Pass", + "analysisResultType": "MemoryRegression", + "memoryRegressionResults": [ + { + "fileName": "testApp.exe", + "grade": "Pass", + "details": "Some details of testApp", + "diff": 0.1, + "isRegressed": false + }, + { + "fileName": "dependencies.exe", + "grade": "Pass", + "details": "Some details of dependencies", + "diff": 0.15, + "isRegressed": false + } + ] + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryRegressionAnalysisResultsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryRegressionAnalysisResultsList.json new file mode 100644 index 000000000000..1a3755b5f390 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryRegressionAnalysisResultsList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-Test-Id", + "analysisResultType": "MemoryRegression", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "memoryRegression", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/memoryRegression", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", + "properties": { + "grade": "Pass", + "analysisResultType": "MemoryRegression", + "memoryRegressionResults": [ + { + "fileName": "testApp.exe", + "grade": "Pass", + "details": "Some details of testApp", + "diff": 0.1, + "isRegressed": false + }, + { + "fileName": "dependencies.exe", + "grade": "Pass", + "details": "Some details of dependencies", + "diff": 0.15, + "isRegressed": false + } + ] + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryUtilizationAnalysisResultGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryUtilizationAnalysisResultGet.json new file mode 100644 index 000000000000..c091f91d4700 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryUtilizationAnalysisResultGet.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-Test-Id", + "analysisResultName": "memoryUtilization", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "memoryUtilization", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/memoryUtilization", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", + "properties": { + "grade": "Pass", + "analysisResultType": "MemoryUtilization", + "memoryUtilizationResults": [ + { + "process": "app.exe", + "upperBound": { + "percentile": 90.0, + "value": 60.0 + }, + "lowerBound": { + "percentile": 50.0, + "value": 20.0 + }, + "utilization": [ + { + "timestamp": "2020-12-28T17:30:00Z", + "value": 34.7 + }, + { + "timestamp": "2020-12-28T17:31:00Z", + "value": 35.9 + }, + { + "timestamp": "2020-12-28T17:32:00Z", + "value": 27.1 + }, + { + "timestamp": "2020-12-28T17:33:00Z", + "value": 49.8 + }, + { + "timestamp": "2020-12-28T17:34:00Z", + "value": 45.6 + } + ] + }, + { + "process": "anotherProcess.exe", + "upperBound": { + "percentile": 90.0, + "value": 60.0 + }, + "lowerBound": { + "percentile": 50.0, + "value": 20.0 + }, + "utilization": [ + { + "timestamp": "2020-12-28T17:30:00Z", + "value": 34.7 + }, + { + "timestamp": "2020-12-28T17:31:00Z", + "value": 35.9 + }, + { + "timestamp": "2020-12-28T17:32:00Z", + "value": 27.1 + }, + { + "timestamp": "2020-12-28T17:33:00Z", + "value": 49.8 + }, + { + "timestamp": "2020-12-28T17:34:00Z", + "value": 45.6 + } + ] + } + ] + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryUtilizationAnalysisResultsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryUtilizationAnalysisResultsList.json new file mode 100644 index 000000000000..72c025fbcf7b --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/MemoryUtilizationAnalysisResultsList.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-Test-Id", + "analysisResultType": "MemoryUtilization", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "cpuUtilization", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/memoryUtilization", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", + "properties": { + "grade": "Pass", + "analysisResultType": "MemoryUtilization", + "memoryUtilizationResults": [ + { + "process": "app.exe", + "upperBound": { + "percentile": 90.0, + "value": 60.0 + }, + "lowerBound": { + "percentile": 50.0, + "value": 20.0 + }, + "utilization": [ + { + "timestamp": "2020-12-28T17:30:00Z", + "value": 34.7 + }, + { + "timestamp": "2020-12-28T17:31:00Z", + "value": 35.9 + }, + { + "timestamp": "2020-12-28T17:32:00Z", + "value": 27.1 + }, + { + "timestamp": "2020-12-28T17:33:00Z", + "value": 49.8 + }, + { + "timestamp": "2020-12-28T17:34:00Z", + "value": 45.6 + } + ] + }, + { + "process": "anotherProcess.exe", + "upperBound": { + "percentile": 90.0, + "value": 60.0 + }, + "lowerBound": { + "percentile": 50.0, + "value": 20.0 + }, + "utilization": [ + { + "timestamp": "2020-12-28T17:30:00Z", + "value": 34.7 + }, + { + "timestamp": "2020-12-28T17:31:00Z", + "value": 35.9 + }, + { + "timestamp": "2020-12-28T17:32:00Z", + "value": 27.1 + }, + { + "timestamp": "2020-12-28T17:33:00Z", + "value": 49.8 + }, + { + "timestamp": "2020-12-28T17:34:00Z", + "value": 45.6 + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OSUpdateGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OSUpdateGet.json new file mode 100644 index 000000000000..dd58a92726c0 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OSUpdateGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "osUpdateResourceName": "Windows-10-2004-2020-12-B-505", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "Windows-10-2004-2020-12-B-505", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/osUpdates/Windows-10-2004-2020-12-B-505", + "type": "Microsoft.TestBase/testBaseAccounts/packages/osUpdates", + "properties": { + "osName": "Windows 10 2004", + "release": "2020.12B", + "buildRevision": "505", + "type": "SecurityUpdate" + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OSUpdatesList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OSUpdatesList.json new file mode 100644 index 000000000000..0fd5814f795d --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OSUpdatesList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "osUpdateType": "SecurityUpdate", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Windows-10-2004-2020-12-B-505", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/osUpdates/Windows-10-2004-2020-12-B-505", + "type": "Microsoft.TestBase/testBaseAccounts/packages/osUpdates", + "properties": { + "osName": "Windows 10 2004", + "release": "2020.12B", + "buildRevision": "505", + "type": "SecurityUpdate" + } + }, + { + "name": "Windows-10-2004-2020-10-B-413", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/osUpdates/Windows-10-2004-2020-10-B-413", + "type": "Microsoft.TestBase/testBaseAccounts/packages/osUpdates", + "properties": { + "osName": "Windows 10 2004", + "release": "2020.10B", + "buildRevision": "413", + "type": "SecurityUpdate" + } + }, + { + "name": "Windows-10-2004-2020-08-B-226", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/osUpdates/Windows-10-2004-2020-08-B-226", + "type": "Microsoft.TestBase/testBaseAccounts/packages/osUpdates", + "properties": { + "osName": "Windows 10 2004", + "release": "2020.08B", + "buildRevision": "226", + "type": "SecurityUpdate" + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OperationsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OperationsList.json new file mode 100644 index 000000000000..7aea36ad123c --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/OperationsList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/providers/Microsoft.TestBase/operations?api-version=2020-12-16-preview&$skipToken=dummySkipToken", + "value": [ + { + "name": "Microsoft.TestBase/testBaseAccounts/read", + "display": { + "provider": "Microsoft Test Base", + "resource": "Test Base Account", + "operation": "View Test Base Account", + "description": "View the properties of a Test Base Account." + } + }, + { + "name": "Microsoft.TestBase/testBaseAccounts/write", + "display": { + "provider": "Microsoft Test Base", + "resource": "Test Base Account", + "operation": "Update Test Base Account", + "description": "Create a new Test Base Account or update the properties of an existing Test Base Account." + } + }, + { + "name": "Microsoft.TestBase/testBaseAccounts/delete", + "display": { + "provider": "Microsoft Test Base", + "resource": "Test Base Account", + "operation": "Delete Test Base Account", + "description": "Delete a Test Base Account." + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageCreate.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageCreate.json new file mode 100644 index 000000000000..2a2c28bd3f8d --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageCreate.json @@ -0,0 +1,285 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "api-version": "2020-12-16-preview", + "parameters": { + "location": "westus", + "tags": {}, + "properties": { + "applicationName": "contoso-package2", + "version": "1.0.0", + "targetOSList": [ + { + "osUpdateType": "Security updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903" + ] + } + ], + "flightingRing": "Insider Beta Channel", + "blobPath": "storageAccountPath/package.zip", + "tests": [ + { + "testType": "OutOfBoxTest", + "isActive": true, + "commands": [ + { + "name": "Install", + "action": "Install", + "contentType": "Path", + "content": "app/scripts/install/job.ps1", + "runElevated": true, + "restartAfter": true, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Launch", + "action": "Launch", + "contentType": "Path", + "content": "app/scripts/launch/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": true + }, + { + "name": "Close", + "action": "Close", + "contentType": "Path", + "content": "app/scripts/close/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": false + }, + { + "name": "Uninstall", + "action": "Uninstall", + "contentType": "Path", + "content": "app/scripts/uninstall/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2", + "name": "contoso-package2", + "type": "Microsoft.TestBase/testBaseAccounts/packages", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "applicationName": "contoso-package2", + "version": "1.0.0", + "testTypes": [ + "OutOfBoxTest" + ], + "targetOSList": [ + { + "osUpdateType": "Security updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903" + ] + } + ], + "packageStatus": "Ready", + "lastModifiedTime": "2020-12-28T17:30:00Z", + "flightingRing": "Insider Beta Channel", + "isEnabled": true, + "blobPath": "storageAccountPath/package.zip", + "validationResults": [ + { + "validationName": "Syntax Validation", + "isValid": true + }, + { + "validationName": "Package Run Validation", + "isValid": true + } + ], + "tests": [ + { + "testType": "OutOfBoxTest", + "validationRunStatus": "Passed", + "isActive": true, + "commands": [ + { + "name": "Install", + "action": "Install", + "contentType": "Path", + "content": "app/scripts/install/job.ps1", + "runElevated": true, + "restartAfter": true, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Launch", + "action": "Launch", + "contentType": "Path", + "content": "app/scripts/launch/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": true + }, + { + "name": "Close", + "action": "Close", + "contentType": "Path", + "content": "app/scripts/close/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": false + }, + { + "name": "Uninstall", + "action": "Uninstall", + "contentType": "Path", + "content": "app/scripts/uninstall/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + } + ] + } + ] + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + }, + "body": { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2", + "name": "contoso-package2", + "type": "Microsoft.TestBase/testBaseAccounts/packages", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Creating", + "applicationName": "contoso-package2", + "version": "1.0.0", + "testTypes": [ + "OutOfBoxTest" + ], + "targetOSList": [ + { + "osUpdateType": "Security updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903" + ] + } + ], + "packageStatus": "Ready", + "lastModifiedTime": "2020-12-28T17:30:00Z", + "flightingRing": "Insider Beta Channel", + "isEnabled": true, + "blobPath": "storageAccountPath/package.zip", + "validationResults": [ + { + "validationName": "Syntax Validation", + "isValid": true + }, + { + "validationName": "Package Run Validation", + "isValid": true + } + ], + "tests": [ + { + "testType": "OutOfBoxTest", + "validationRunStatus": "Passed", + "isActive": true, + "commands": [ + { + "name": "Install", + "action": "Install", + "contentType": "Path", + "content": "app/scripts/install/job.ps1", + "runElevated": true, + "restartAfter": true, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Launch", + "action": "Launch", + "contentType": "Path", + "content": "app/scripts/launch/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": true + }, + { + "name": "Close", + "action": "Close", + "contentType": "Path", + "content": "app/scripts/close/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": false + }, + { + "name": "Uninstall", + "action": "Uninstall", + "contentType": "Path", + "content": "app/scripts/uninstall/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + } + ] + } + ] + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageDelete.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageDelete.json new file mode 100644 index 000000000000..3e1e8e761793 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview", + "Location": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + } + }, + "204": {} + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageGet.json new file mode 100644 index 000000000000..c1f10d59ef5f --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageGet.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2", + "name": "contoso-package2", + "type": "Microsoft.TestBase/testBaseAccounts/packages", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "applicationName": "contoso-package2", + "version": "1.0.0", + "testTypes": [ + "OutOfBoxTest" + ], + "targetOSList": [ + { + "osUpdateType": "Security updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903" + ] + } + ], + "packageStatus": "Ready", + "lastModifiedTime": "2020-12-28T17:30:00Z", + "flightingRing": "Insider Beta Channel", + "isEnabled": true, + "blobPath": "storageAccountPath/package.zip", + "validationResults": [ + { + "validationName": "Syntax Validation", + "isValid": true + }, + { + "validationName": "Package Run Validation", + "isValid": true + } + ], + "tests": [ + { + "testType": "OutOfBoxTest", + "validationRunStatus": "Passed", + "isActive": true, + "commands": [ + { + "name": "Install", + "action": "Install", + "contentType": "Path", + "content": "app/scripts/install/job.ps1", + "runElevated": true, + "restartAfter": true, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Launch", + "action": "Launch", + "contentType": "Path", + "content": "app/scripts/launch/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": true + }, + { + "name": "Close", + "action": "Close", + "contentType": "Path", + "content": "app/scripts/close/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": false + }, + { + "name": "Uninstall", + "action": "Uninstall", + "contentType": "Path", + "content": "app/scripts/uninstall/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + } + ] + } + ] + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageGetDownloadURL.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageGetDownloadURL.json new file mode 100644 index 000000000000..3e0f8579c0f2 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageGetDownloadURL.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "downloadUrl": "some URL", + "expirationTime": "2021-01-10T06:00:00Z" + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageHardDelete.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageHardDelete.json new file mode 100644 index 000000000000..3e1e8e761793 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageHardDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview", + "Location": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + } + }, + "204": {} + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageUpdate.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageUpdate.json new file mode 100644 index 000000000000..1f9483c35488 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackageUpdate.json @@ -0,0 +1,194 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "api-version": "2020-12-16-preview", + "parameters": { + "tags": {}, + "properties": { + "targetOSList": [ + { + "osUpdateType": "Security updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903" + ] + } + ], + "flightingRing": "Insider Beta Channel", + "isEnabled": false, + "blobPath": "storageAccountPath/package.zip", + "tests": [ + { + "testType": "OutOfBoxTest", + "isActive": true, + "commands": [ + { + "name": "Install", + "action": "Install", + "contentType": "Path", + "content": "app/scripts/install/job.ps1", + "runElevated": true, + "restartAfter": true, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Launch", + "action": "Launch", + "contentType": "Path", + "content": "app/scripts/launch/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": true + }, + { + "name": "Close", + "action": "Close", + "contentType": "Path", + "content": "app/scripts/close/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": false + }, + { + "name": "Uninstall", + "action": "Uninstall", + "contentType": "Path", + "content": "app/scripts/uninstall/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2", + "name": "contoso-package2", + "type": "Microsoft.TestBase/testBaseAccounts/packages", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "applicationName": "contoso-package2", + "version": "1.0.0", + "testTypes": [ + "OutOfBoxTest" + ], + "targetOSList": [ + { + "osUpdateType": "Security updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903" + ] + } + ], + "packageStatus": "Ready", + "lastModifiedTime": "2020-12-28T17:30:00Z", + "flightingRing": "Insider Beta Channel", + "isEnabled": false, + "blobPath": "storageAccountPath/package.zip", + "validationResults": [ + { + "validationName": "Syntax Validation", + "isValid": true + }, + { + "validationName": "Package Run Validation", + "isValid": true + } + ], + "tests": [ + { + "testType": "OutOfBoxTest", + "validationRunStatus": "Passed", + "isActive": true, + "commands": [ + { + "name": "Install", + "action": "Install", + "contentType": "Path", + "content": "app/scripts/install/job.ps1", + "runElevated": true, + "restartAfter": true, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Launch", + "action": "Launch", + "contentType": "Path", + "content": "app/scripts/launch/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": true + }, + { + "name": "Close", + "action": "Close", + "contentType": "Path", + "content": "app/scripts/close/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": false + }, + { + "name": "Uninstall", + "action": "Uninstall", + "contentType": "Path", + "content": "app/scripts/uninstall/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + } + ] + } + ] + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview", + "Location": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview", + "Location": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackagesList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackagesList.json new file mode 100644 index 000000000000..29c9a54c8583 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/PackagesList.json @@ -0,0 +1,248 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package1", + "name": "contoso-package1", + "type": "Microsoft.TestBase/testBaseAccounts/packages", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "applicationName": "contoso-package1", + "version": "1.0.0", + "testTypes": [ + "OutOfBoxTest", + "FunctionalTest" + ], + "targetOSList": [ + { + "osUpdateType": "Security updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903" + ] + }, + { + "osUpdateType": "Feature updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903", + "Windows 10 1809" + ] + } + ], + "packageStatus": "Ready", + "lastModifiedTime": "2020-12-28T17:30:00Z", + "flightingRing": "Insider Beta Channel", + "isEnabled": true, + "blobPath": "storageAccountPath/package.zip", + "validationResults": [ + { + "validationName": "Syntax Validation", + "isValid": true + }, + { + "validationName": "Package Run Validation", + "isValid": true + } + ], + "tests": [ + { + "testType": "OutOfBoxTest", + "validationRunStatus": "Passed", + "isActive": true, + "commands": [ + { + "name": "Install", + "action": "Install", + "contentType": "Path", + "content": "app/scripts/install/job.ps1", + "runElevated": true, + "restartAfter": true, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Launch", + "action": "Launch", + "contentType": "Path", + "content": "app/scripts/launch/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": true + }, + { + "name": "Close", + "action": "Close", + "contentType": "Path", + "content": "app/scripts/close/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": false + }, + { + "name": "Uninstall", + "action": "Uninstall", + "contentType": "Path", + "content": "app/scripts/uninstall/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + } + ] + }, + { + "testType": "FunctionalTest", + "validationRunStatus": "Passed", + "isActive": true, + "commands": [ + { + "name": "Custom1", + "action": "Custom", + "contentType": "Path", + "content": "app/scripts/custom/custom1.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Custom2", + "action": "Custom", + "contentType": "Path", + "content": "app/scripts/custom/custom2.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": true + } + ] + } + ] + } + }, + { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2", + "name": "contoso-package2", + "type": "Microsoft.TestBase/testBaseAccounts/packages", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "applicationName": "contoso-package2", + "version": "1.0.0", + "testTypes": [ + "OutOfBoxTest" + ], + "targetOSList": [ + { + "osUpdateType": "Security updates", + "targetOSs": [ + "Windows 10 2004", + "Windows 10 1903" + ] + } + ], + "packageStatus": "Ready", + "lastModifiedTime": "2020-12-28T17:30:00Z", + "flightingRing": "Insider Beta Channel", + "isEnabled": true, + "blobPath": "storageAccountPath/package.zip", + "validationResults": [ + { + "validationName": "Syntax Validation", + "isValid": true + }, + { + "validationName": "Package Run Validation", + "isValid": true + } + ], + "tests": [ + { + "testType": "OutOfBoxTest", + "validationRunStatus": "Passed", + "isActive": true, + "commands": [ + { + "name": "Install", + "action": "Install", + "contentType": "Path", + "content": "app/scripts/install/job.ps1", + "runElevated": true, + "restartAfter": true, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + }, + { + "name": "Launch", + "action": "Launch", + "contentType": "Path", + "content": "app/scripts/launch/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": true + }, + { + "name": "Close", + "action": "Close", + "contentType": "Path", + "content": "app/scripts/close/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": false, + "applyUpdateBefore": false + }, + { + "name": "Uninstall", + "action": "Uninstall", + "contentType": "Path", + "content": "app/scripts/uninstall/job.ps1", + "runElevated": true, + "restartAfter": false, + "maxRunTime": 1800, + "runAsInteractive": true, + "alwaysRun": true, + "applyUpdateBefore": false + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountCreate.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountCreate.json new file mode 100644 index 000000000000..597968ebebef --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountCreate.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview", + "parameters": { + "location": "westus", + "properties": { + "sku": { + "name": "B0", + "tier": "Basic" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1", + "name": "contoso-testBaseAccount1", + "type": "Microsoft.TestBase/testBaseAccounts", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "B0", + "tier": "Basic", + "capabilities": [ + { + "name": "SLA", + "value": "99.9%" + }, + { + "name": "maximumPackageCount", + "value": "5" + }, + { + "name": "packageMaximumRunSeconds", + "value": "3600" + } + ] + }, + "accessLevel": "StandardAccess" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + }, + "body": { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1", + "name": "contoso-testBaseAccount1", + "type": "Microsoft.TestBase/testBaseAccounts", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Creating", + "sku": { + "name": "B0", + "tier": "Basic", + "capabilities": [ + { + "name": "SLA", + "value": "99.9%" + }, + { + "name": "maximumPackageCount", + "value": "5" + }, + { + "name": "packageMaximumRunSeconds", + "value": "3600" + } + ] + }, + "accessLevel": "StandardAccess" + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountDelete.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountDelete.json new file mode 100644 index 000000000000..ba011f665c69 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview", + "Location": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + } + }, + "204": {} + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountGet.json new file mode 100644 index 000000000000..be4c84df7571 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1", + "name": "contoso-testBaseAccount1", + "type": "Microsoft.TestBase/testBaseAccounts", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "B0", + "tier": "Basic", + "capabilities": [ + { + "name": "SLA", + "value": "99.9%" + }, + { + "name": "maximumPackageCount", + "value": "5" + }, + { + "name": "packageMaximumRunSeconds", + "value": "3600" + } + ] + }, + "accessLevel": "EarlyAccess" + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountGetFileUploadUrl.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountGetFileUploadUrl.json new file mode 100644 index 000000000000..b7c1b0f6c27f --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountGetFileUploadUrl.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview", + "parameters": { + "blobName": "package.zip" + } + }, + "responses": { + "200": { + "body": { + "uploadUrl": "https://uslwestusdevsa.blob.core.windows.net/usltest/temp/20c0d7e0-1bb6-477f-bc04-57c734453000/token", + "blobPath": "https://uslwestusdevsa.blob.core.windows.net/usltest/temp/20c0d7e0-1bb6-477f-bc04-57c734453000/package.zip" + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountOffboard.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountOffboard.json new file mode 100644 index 000000000000..ba011f665c69 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountOffboard.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview", + "Location": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + } + }, + "204": {} + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountSKUsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountSKUsList.json new file mode 100644 index 000000000000..3bded9783410 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountSKUsList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/providers/Microsoft.TestBase/skus?api-version=2020-12-16-preview&$skipToken=dummySkipToken", + "value": [ + { + "resourceType": "testBaseAccounts", + "name": "B0", + "tier": "Basic", + "locations": [ + "global" + ], + "capabilities": [] + }, + { + "resourceType": "testBaseAccounts", + "name": "S0", + "tier": "Standard", + "locations": [ + "global" + ], + "capabilities": [] + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountUpdate.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountUpdate.json new file mode 100644 index 000000000000..fd7aed735237 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountUpdate.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview", + "parameters": { + "properties": { + "sku": { + "name": "B0", + "tier": "Basic" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1", + "name": "contoso-testBaseAccount1", + "type": "Microsoft.TestBase/testBaseAccounts", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "B0", + "tier": "Basic", + "capabilities": [ + { + "name": "SLA", + "value": "99.9%" + }, + { + "name": "maximumPackageCount", + "value": "5" + }, + { + "name": "packageMaximumRunSeconds", + "value": "3600" + } + ] + }, + "accessLevel": "EarlyAccess" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview", + "Location": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview", + "Location": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2020-12-16-preview" + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountUsagesList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountUsagesList.json new file mode 100644 index 000000000000..fb869bcde76c --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountUsagesList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/providers/Microsoft.TestBase/contoso-testBaseAccount1/usages?api-version=2020-12-16-preview&$skipToken=dummySkipToken", + "value": [ + { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/usages/contoso-package1-usage", + "name": { + "value": "contoso-package1-usage", + "localizedValue": "contoso-package1-usage" + }, + "unit": "Seconds", + "limit": -1, + "currentValue": 7531 + }, + { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/usages/contoso-package2-usage", + "name": { + "value": "contoso-package2-usage", + "localizedValue": "contoso-package2-usage" + }, + "unit": "Seconds", + "limit": -1, + "currentValue": 3157 + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountsList.json new file mode 100644 index 000000000000..c2b764d5f20f --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountsList.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1", + "name": "contoso-testBaseAccount1", + "type": "Microsoft.TestBase/testBaseAccounts", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "B0", + "tier": "Basic", + "capabilities": [ + { + "name": "SLA", + "value": "99.9%" + }, + { + "name": "maximumPackageCount", + "value": "5" + }, + { + "name": "packageMaximumRunSeconds", + "value": "3600" + } + ] + }, + "accessLevel": "EarlyAccess" + } + }, + { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg2/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount2", + "name": "contoso-testBaseAccount2", + "type": "Microsoft.TestBase/testBaseAccounts", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "S0", + "tier": "Standard", + "capabilities": [ + { + "name": "SLA", + "value": "99.999%" + }, + { + "name": "maximumPackageCount", + "value": "100" + }, + { + "name": "packageMaximumRunSeconds", + "value": "10800" + } + ] + }, + "accessLevel": "EarlyAccess" + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountsListBySubscription.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountsListBySubscription.json new file mode 100644 index 000000000000..b572382fadee --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestBaseAccountsListBySubscription.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1", + "name": "contoso-testBaseAccount1", + "type": "Microsoft.TestBase/testBaseAccounts", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "B0", + "tier": "Basic", + "capabilities": [ + { + "name": "SLA", + "value": "99.9%" + }, + { + "name": "maximumPackageCount", + "value": "5" + }, + { + "name": "packageMaximumRunSeconds", + "value": "3600" + } + ] + }, + "accessLevel": "EarlyAccess" + } + }, + { + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg2/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount2", + "name": "contoso-testBaseAccount2", + "type": "Microsoft.TestBase/testBaseAccounts", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "S0", + "tier": "Standard", + "capabilities": [ + { + "name": "SLA", + "value": "99.999%" + }, + { + "name": "maximumPackageCount", + "value": "100" + }, + { + "name": "packageMaximumRunSeconds", + "value": "10800" + } + ] + }, + "accessLevel": "EarlyAccess" + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGet.json new file mode 100644 index 000000000000..88f932c94265 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGet.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-99b1f80d-03a9-4148-997f-806ba5bac8e0", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "Windows-10-1909-99b1f80d-03a9-4148-997f-806ba5bac8e0", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-99b1f80d-03a9-4148-997f-806ba5bac8e0", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults", + "properties": { + "baselineTestResultId": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/anotherId", + "packageId": "b5ed1bcc-e74c-40d8-82f2-1773f616f93e", + "applicationName": "contoso-package2", + "applicationVersion": "1.0.0", + "osName": "Windows 10 1909", + "releaseName": "2020.12B", + "releaseVersionDate": "2020-12-28T17:30:00Z", + "buildRevision": "505", + "testType": "Out of box test", + "testRunTime": "00:21:30", + "isDownloadDataAvailable": true, + "executionStatus": "Succeeded", + "grade": "Pass", + "kbNumber": "KB1984839", + "packageVersion": "3.0.1", + "analysisSummaries": [ + { + "name": "Memory Regression Analysis Result", + "analysisStatus": "Succeeded", + "grade": "Pass" + }, + { + "name": "CPU Regression Analysis Result", + "analysisStatus": "Succeeded", + "grade": "Pass" + }, + { + "name": "Memory Utilization Analysis Result", + "analysisStatus": "Succeeded", + "grade": "Pass" + }, + { + "name": "CPU Utilization Analysis Result", + "analysisStatus": "Succeeded", + "grade": "Pass" + } + ] + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGetDownloadURL.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGetDownloadURL.json new file mode 100644 index 000000000000..64381584b16c --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGetDownloadURL.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-99b1f80d-03a9-4148-997f-806ba5bac8e0", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "downloadUrl": "test result download URL", + "expirationTime": "2021-01-10T06:00:00Z" + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGetVideoDownloadURL.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGetVideoDownloadURL.json new file mode 100644 index 000000000000..e61c21fa8571 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultGetVideoDownloadURL.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "testResultName": "Windows-10-1909-99b1f80d-03a9-4148-997f-806ba5bac8e0", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "downloadUrl": "test result video download URL", + "expirationTime": "2021-01-10T06:00:00Z" + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultsList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultsList.json new file mode 100644 index 000000000000..1956ff18f2b0 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestResultsList.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "packageName": "contoso-package2", + "osUpdateType": "SecurityUpdate", + "$filter": "osName eq 'Windows 10 2004' and releaseName eq '2020.11B'", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Windows-10-2004-8e8e3200-284b-4a99-8c30-cb46c54d4c1e", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-2004-8e8e3200-284b-4a99-8c30-cb46c54d4c1e", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults", + "properties": { + "baselineTestResultId": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/anotherId", + "packageId": "b5ed1bcc-e74c-40d8-82f2-1773f616f93e", + "applicationName": "contoso-package2", + "applicationVersion": "1.0.0", + "osName": "Windows 10 2004", + "releaseName": "2020.11B", + "releaseVersionDate": "2020-11-28T17:30:00Z", + "buildRevision": "478", + "testType": "Out of box test", + "testRunTime": "00:21:30", + "isDownloadDataAvailable": true, + "executionStatus": "Succeeded", + "grade": "Pass", + "kbNumber": "KB1984839", + "packageVersion": "3.0.1", + "analysisSummaries": [ + { + "name": "Memory Regression Analysis Result", + "analysisStatus": "Succeeded", + "grade": "Pass" + }, + { + "name": "CPU Regression Analysis Result", + "analysisStatus": "Succeeded", + "grade": "Pass" + }, + { + "name": "Memory Utilization Analysis Result", + "analysisStatus": "Succeeded", + "grade": "Pass" + }, + { + "name": "CPU Utilization Analysis Result", + "analysisStatus": "Succeeded", + "grade": "Pass" + } + ] + } + }, + { + "name": "Windows-10-2004-d19baae0-9ab4-432b-a752-878343fa4481", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-2004-d19baae0-9ab4-432b-a752-878343fa4481", + "type": "Microsoft.TestBase/testBaseAccounts/packages/testResults", + "properties": { + "baselineTestResultId": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/anotherId", + "packageId": "b5ed1bcc-e74c-40d8-82f2-1773f616f93e", + "applicationName": "contoso-package2", + "applicationVersion": "1.0.0", + "osName": "Windows 10 2004", + "releaseName": "2020.11B", + "releaseVersionDate": "2020-11-28T17:30:00Z", + "buildRevision": "309", + "testType": "Out of box test", + "testRunTime": "01:00:00", + "isDownloadDataAvailable": false, + "executionStatus": "Failed", + "grade": "Fail", + "kbNumber": "KB1784831", + "packageVersion": "3.0.1", + "analysisSummaries": [ + { + "name": "Memory Regression Analysis Result", + "analysisStatus": "NotAvailable", + "grade": "NotAvailable" + }, + { + "name": "CPU Regression Analysis Result", + "analysisStatus": "NotAvailable", + "grade": "NotAvailable" + }, + { + "name": "Memory Utilization Analysis Result", + "analysisStatus": "NotAvailable", + "grade": "NotAvailable" + }, + { + "name": "CPU Utilization Analysis Result", + "analysisStatus": "NotAvailable", + "grade": "NotAvailable" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestSummariesList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestSummariesList.json new file mode 100644 index 000000000000..7b812af9830e --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestSummariesList.json @@ -0,0 +1,180 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "contoso-package1-38960b32-3541-4cf1-8ccc-fd22774395cc", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/testSummaries/contoso-package1-38960b32-3541-4cf1-8ccc-fd22774395cc", + "type": "Microsoft.TestBase/testBaseAccounts/testSummaries", + "properties": { + "testSummaryId": "38960b32-3541-4cf1-8ccc-fd22774395cc", + "packageId": "57199102-9738-42e0-9fec-db7709d62a71", + "applicationName": "contoso-package1", + "applicationVersion": "1.0.0", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "featureUpdatesTestSummary": { + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:33:21", + "osUpdateTestSummaries": [ + { + "osName": "Windows 10 1909", + "releaseName": "2020.12.B", + "buildVersion": "513", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "testType": "OutOfBoxTest" + }, + { + "osName": "Windows 10 1903", + "releaseName": "2020.11.B", + "buildVersion": "765", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:13:28", + "testType": "OutOfBoxTest" + }, + { + "osName": "Windows 10 1809", + "releaseName": "2020.11.B", + "buildVersion": "313", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:42:08", + "testType": "OutOfBoxTest" + } + ] + }, + "securityUpdatesTestSummary": { + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "osUpdateTestSummaries": [ + { + "osName": "Windows 10 1909", + "releaseName": "2020.12.B", + "buildVersion": "513", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "testType": "OutOfBoxTest" + }, + { + "osName": "Windows 10 1903", + "releaseName": "2020.11.B", + "buildVersion": "765", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:13:28", + "testType": "OutOfBoxTest" + }, + { + "osName": "Windows 10 1809", + "releaseName": "2020.11.B", + "buildVersion": "313", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:42:08", + "testType": "OutOfBoxTest" + } + ] + } + } + }, + { + "name": "contoso-package2-096bffb5-5d3d-4305-a66a-953372ed6e88", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/testSummaries/contoso-package2-096bffb5-5d3d-4305-a66a-953372ed6e88", + "type": "Microsoft.TestBase/testBaseAccounts/testSummaries", + "properties": { + "testSummaryId": "096bffb5-5d3d-4305-a66a-953372ed6e88", + "packageId": "b5ed1bcc-e74c-40d8-82f2-1773f616f93e", + "applicationName": "contoso-package2", + "applicationVersion": "1.0.0", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "featureUpdatesTestSummary": { + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:33:21", + "osUpdateTestSummaries": [ + { + "osName": "Windows 10 1909", + "releaseName": "2020.12.B", + "buildVersion": "513", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "testType": "FunctionalTest" + }, + { + "osName": "Windows 10 1903", + "releaseName": "2020.11.B", + "buildVersion": "765", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:13:28", + "testType": "FunctionalTest" + }, + { + "osName": "Windows 10 1809", + "releaseName": "2020.11.B", + "buildVersion": "313", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:42:08", + "testType": "FunctionalTest" + } + ] + }, + "securityUpdatesTestSummary": { + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "osUpdateTestSummaries": [ + { + "osName": "Windows 10 1909", + "releaseName": "2020.12.B", + "buildVersion": "513", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "testType": "FunctionalTest" + }, + { + "osName": "Windows 10 1903", + "releaseName": "2020.11.B", + "buildVersion": "765", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:13:28", + "testType": "FunctionalTest" + }, + { + "osName": "Windows 10 1809", + "releaseName": "2020.11.B", + "buildVersion": "313", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:42:08", + "testType": "FunctionalTest" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestSummaryGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestSummaryGet.json new file mode 100644 index 000000000000..5da30233e8f3 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestSummaryGet.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg1", + "testBaseAccountName": "contoso-testBaseAccount1", + "testSummaryName": "contoso-package2-096bffb5-5d3d-4305-a66a-953372ed6e88", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "contoso-package2-096bffb5-5d3d-4305-a66a-953372ed6e88", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/testSummaries/contoso-package2-096bffb5-5d3d-4305-a66a-953372ed6e88", + "type": "Microsoft.TestBase/testBaseAccounts/testSummaries", + "properties": { + "testSummaryId": "096bffb5-5d3d-4305-a66a-953372ed6e88", + "packageId": "b5ed1bcc-e74c-40d8-82f2-1773f616f93e", + "applicationName": "contoso-package2", + "applicationVersion": "1.0.0", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "featureUpdatesTestSummary": { + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:33:21", + "osUpdateTestSummaries": [ + { + "osName": "Windows 10 1909", + "releaseName": "2020.12.B", + "buildVersion": "513", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "testType": "OutOfBoxTest" + }, + { + "osName": "Windows 10 1903", + "releaseName": "2020.11.B", + "buildVersion": "765", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:13:28", + "testType": "OutOfBoxTest" + }, + { + "osName": "Windows 10 1809", + "releaseName": "2020.11.B", + "buildVersion": "313", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:42:08", + "testType": "OutOfBoxTest" + } + ] + }, + "securityUpdatesTestSummary": { + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "osUpdateTestSummaries": [ + { + "osName": "Windows 10 1909", + "releaseName": "2020.12.B", + "buildVersion": "513", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:43:21", + "testType": "OutOfBoxTest" + }, + { + "osName": "Windows 10 1903", + "releaseName": "2020.11.B", + "buildVersion": "765", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:13:28", + "testType": "OutOfBoxTest" + }, + { + "osName": "Windows 10 1809", + "releaseName": "2020.11.B", + "buildVersion": "313", + "executionStatus": "Succeeded", + "grade": "Pass", + "testRunTime": "00:42:08", + "testType": "OutOfBoxTest" + } + ] + } + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestTypeGet.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestTypeGet.json new file mode 100644 index 000000000000..534cb44be8fa --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestTypeGet.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg", + "testBaseAccountName": "contoso-testBaseAccount", + "testTypeResourceName": "Functional-Test", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "name": "Functional-Test", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/testTypes/Functional-Test", + "type": "Microsoft.TestBase/testBaseAccounts/testTypes", + "properties": { + "actualTestTypeName": "Functional Test" + } + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestTypesList.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestTypesList.json new file mode 100644 index 000000000000..676431bc4758 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/TestTypesList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", + "resourceGroupName": "contoso-rg", + "testBaseAccountName": "contoso-testBaseAccount", + "api-version": "2020-12-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Functional-Test", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/testTypes/Functional-Test", + "type": "Microsoft.TestBase/testBaseAccounts/testTypes", + "properties": { + "actualTestTypeName": "Functional Test" + } + }, + { + "name": "Out-of-Box-Test", + "id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/testTypes/Out-of-Box-Test", + "type": "Microsoft.TestBase/testBaseAccounts/testTypes", + "properties": { + "actualTestTypeName": "Out of Box Test" + } + } + ] + } + } + } +} diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/testbase.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/testbase.json new file mode 100644 index 000000000000..adb9a2370d20 --- /dev/null +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/testbase.json @@ -0,0 +1,4051 @@ +{ + "swagger": "2.0", + "info": { + "title": "REST API for Test Base", + "description": "REST API for Test Base", + "version": "2020-12-16-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.TestBase/skus": { + "get": { + "tags": [ + "Test Base Account" + ], + "operationId": "SKUs_List", + "description": "Lists the available SKUs of Test Base Account in a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestBaseAccountSKUListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TestBaseAccountSKUsList": { + "$ref": "./examples/TestBaseAccountSKUsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.TestBase/testBaseAccounts": { + "get": { + "tags": [ + "Test Base Account" + ], + "operationId": "TestBaseAccounts_ListBySubscription", + "description": "Lists all the Test Base Accounts in a subscription. This API is required by ARM guidelines.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountIncludeSoftDeletedParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestBaseAccountListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TestBaseAccountsListBySubscription": { + "$ref": "./examples/TestBaseAccountsListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts": { + "get": { + "tags": [ + "Test Base Account" + ], + "operationId": "TestBaseAccounts_ListByResourceGroup", + "description": "Lists all the Test Base Accounts in a resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountIncludeSoftDeletedParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestBaseAccountListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TestBaseAccountsList": { + "$ref": "./examples/TestBaseAccountsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}": { + "put": { + "tags": [ + "Test Base Account" + ], + "operationId": "TestBaseAccount_Create", + "description": "Create or replace (overwrite/recreate, with potential downtime) a Test Base Account in the specified subscription.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TestBaseAccountResource" + }, + "description": "Parameters supplied to create a Test Base Account." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountRestoreSoftDeletedParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Test Base Account was successfully created or updated.", + "schema": { + "$ref": "#/definitions/TestBaseAccountResource" + } + }, + "201": { + "description": "The Test Base Account 'create' or 'update' operation was successfully enqueued. Check provisioningState to see detailed status.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/TestBaseAccountResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestBaseAccountCreate": { + "$ref": "./examples/TestBaseAccountCreate.json" + } + } + }, + "patch": { + "tags": [ + "Test Base Account" + ], + "operationId": "TestBaseAccount_Update", + "description": "Update an existing Test Base Account.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TestBaseAccountUpdateParameters" + }, + "description": "Parameters supplied to update a Test Base Account." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The existing Test Base Account was successfully updated.", + "schema": { + "$ref": "#/definitions/TestBaseAccountResource" + } + }, + "201": { + "description": "The Test Base Account 'update' operation was successfully enqueued. Follow the Location header to poll for final outcome.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "202": { + "description": "The Test Base Account 'update' operation was successfully enqueued. Follow the Location header to poll for final outcome.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestBaseAccountUpdate": { + "$ref": "./examples/TestBaseAccountUpdate.json" + } + } + }, + "delete": { + "tags": [ + "Test Base Account" + ], + "operationId": "TestBaseAccount_Delete", + "description": "Deletes a Test Base Account.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Test Base Account 'delete' operation was completed successfully." + }, + "202": { + "description": "The Test Base Account 'delete' operation was successfully enqueued. Follow the Location header to poll for final outcome.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "The Test Base Account 'delete' operation was completed successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestBaseAccountDelete": { + "$ref": "./examples/TestBaseAccountDelete.json" + } + } + }, + "get": { + "tags": [ + "Test Base Account" + ], + "operationId": "TestBaseAccount_Get", + "description": "Gets a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Test Base Account was successfully found.", + "schema": { + "$ref": "#/definitions/TestBaseAccountResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestBaseAccountGet": { + "$ref": "./examples/TestBaseAccountGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/offboard": { + "post": { + "tags": [ + "Test Base Account" + ], + "operationId": "TestBaseAccount_Offboard", + "description": "Offboard a Test Base Account.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Test Base Account 'offboard' operation was completed successfully." + }, + "202": { + "description": "The Test Base Account 'offboard' operation was successfully enqueued. Follow the Location header to poll for final outcome.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "The Test Base Account 'offboard' operation was completed successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestBaseAccountOffboard": { + "$ref": "./examples/TestBaseAccountOffboard.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/usages": { + "get": { + "tags": [ + "Test Base Account" + ], + "operationId": "TestBaseAccountUsage_List", + "description": "Lists the usage data of a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The usage of the Test Base Account was returned.", + "schema": { + "$ref": "#/definitions/TestBaseAccountUsageDataList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TestBaseAccountUsagesList": { + "$ref": "./examples/TestBaseAccountUsagesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/getFileUploadUrl": { + "post": { + "tags": [ + "Test Base Package" + ], + "operationId": "TestBaseAccountGetFileUploadUrl", + "description": "Gets the file upload URL of a Test Base Account.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/GetFileUploadURLParameters" + }, + "description": "Parameters supplied to the Test Base Account GetFileUploadURL operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The file upload URL of the Test Base Account was returned.", + "schema": { + "$ref": "#/definitions/FileUploadURLResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestBaseAccountGetFileUploadUrl": { + "$ref": "./examples/TestBaseAccountGetFileUploadUrl.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/availableOSs": { + "get": { + "tags": [ + "Test Base Package" + ], + "operationId": "TestBaseAccountAvailableOSs_List", + "description": "Lists all the available OSs to run a package under a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/OSUpdateTypeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/AvailableOSListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "AvailableOSsList": { + "$ref": "./examples/AvailableOSsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/availableOSs/{availableOSResourceName}": { + "get": { + "tags": [ + "Test Base Package" + ], + "operationId": "TestBaseAccountAvailableOS_Get", + "description": "Gets an available OS to run a package under a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "name": "availableOSResourceName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource name of an Available OS." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/AvailableOSResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AvailableOSGet": { + "$ref": "./examples/AvailableOSGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/flightingRings": { + "get": { + "tags": [ + "Test Base Package" + ], + "operationId": "TestBaseAccountFlightingRings_List", + "description": "Lists all the flighting rings of a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/FlightingRingListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "FlightingRingsList": { + "$ref": "./examples/FlightingRingsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/flightingRings/{flightingRingResourceName}": { + "get": { + "tags": [ + "Test Base Package" + ], + "operationId": "TestBaseAccountFlightingRing_Get", + "description": "Gets a flighting ring of a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "name": "flightingRingResourceName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource name of a flighting ring." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/FlightingRingResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FlightingRingGet": { + "$ref": "./examples/FlightingRingGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/testTypes": { + "get": { + "tags": [ + "Test Base Package" + ], + "operationId": "TestBaseAccountTestTypes_List", + "description": "Lists all the test types of a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestTypeListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TestTypesList": { + "$ref": "./examples/TestTypesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/testTypes/{testTypeResourceName}": { + "get": { + "tags": [ + "Test Base Package" + ], + "operationId": "TestBaseAccountTestType_Get", + "description": "Gets a test type of a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "name": "testTypeResourceName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource name of a test type." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestTypeResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestTypeGet": { + "$ref": "./examples/TestTypeGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/checkPackageNameAvailability": { + "post": { + "tags": [ + "Test Base Package" + ], + "operationId": "CheckPackageNameAvailability", + "description": "Checks that the Test Base Package name and version is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PackageCheckNameAvailabilityParameters" + }, + "description": "Parameters supplied to the Test Base Package CheckNameAvailability operation." + } + ], + "responses": { + "200": { + "description": "Name is available", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CheckPackageNameAvailability": { + "$ref": "./examples/CheckPackageNameAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages": { + "get": { + "tags": [ + "Test Base Package" + ], + "operationId": "Packages_ListByTestBaseAccount", + "description": "Lists all the packages under a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/PackageListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "PackagesList": { + "$ref": "./examples/PackagesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}": { + "put": { + "tags": [ + "Test Base Package" + ], + "operationId": "Package_Create", + "description": "Create or replace (overwrite/recreate, with potential downtime) a Test Base Package.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PackageResource" + }, + "description": "Parameters supplied to create a Test Base Package." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Test Base Package was successfully created or updated.", + "schema": { + "$ref": "#/definitions/PackageResource" + } + }, + "201": { + "description": "The Test Base Package 'create' or 'update' operation was successfully enqueued. Check provisioningState to see detailed status.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/PackageResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PackageCreate": { + "$ref": "./examples/PackageCreate.json" + } + } + }, + "patch": { + "tags": [ + "Test Base Package" + ], + "operationId": "Package_Update", + "description": "Update an existing Test Base Package.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PackageUpdateParameters" + }, + "description": "Parameters supplied to update a Test Base Package." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The existing Test Base Package was successfully updated. Check provisioningState to see detailed status.", + "schema": { + "$ref": "#/definitions/PackageResource" + } + }, + "201": { + "description": "The Test Base Package 'update' operation was successfully enqueued. Follow the Location header to poll for final outcome.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "202": { + "description": "The Test Base Package 'update' operation was successfully enqueued. Follow the Location header to poll for final outcome.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PackageUpdate": { + "$ref": "./examples/PackageUpdate.json" + } + } + }, + "delete": { + "tags": [ + "Test Base Package" + ], + "operationId": "Package_Delete", + "description": "Deletes a Test Base Package.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Test Base Package 'delete' operation was completed successfully." + }, + "202": { + "description": "The Test Base Package 'delete' operation was successfully enqueued. Follow the Location header to poll for final outcome.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "The Test Base Package 'delete' operation was completed successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PackageDelete": { + "$ref": "./examples/PackageDelete.json" + } + } + }, + "get": { + "tags": [ + "Test Base Package" + ], + "operationId": "Package_Get", + "description": "Gets a Test Base Package.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Test Base Package was successfully found.", + "schema": { + "$ref": "#/definitions/PackageResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PackageGet": { + "$ref": "./examples/PackageGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/hardDelete": { + "post": { + "tags": [ + "Test Base Package" + ], + "operationId": "Package_HardDelete", + "description": "Hard Delete a Test Base Package.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Test Base Package 'HardDelete' operation was completed successfully." + }, + "202": { + "description": "The Test Base Package 'HardDelete' operation was successfully enqueued. Follow the Location header to poll for final outcome.", + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "204": { + "description": "The Test Base Package 'HardDelete' operation was completed successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PackageHardDelete": { + "$ref": "./examples/PackageHardDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/getDownloadUrl": { + "post": { + "tags": [ + "Test Base Package" + ], + "operationId": "PackageGetDownloadURL", + "description": "Gets the download URL of a package.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The package download URL is returned.", + "schema": { + "$ref": "#/definitions/DownloadURLResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PackageGetDownloadURL": { + "$ref": "./examples/PackageGetDownloadURL.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/testSummaries": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "TestSummaries_List", + "description": "Lists the Test Summaries of all the packages under a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestSummaryListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TestSummariesList": { + "$ref": "./examples/TestSummariesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/testSummaries/{testSummaryName}": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "TestSummary_Get", + "description": "Gets a Test Summary with specific name from all the Test Summaries of all the packages under a Test Base Account.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "name": "testSummaryName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the Test Summary." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestSummaryResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestSummaryGet": { + "$ref": "./examples/TestSummaryGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/testResults": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "TestResults_List", + "description": "Lists all the Test Results with specified OS Update type for a Test Base Package. Can be filtered by osName, releaseName, flightingRing, buildVersion, buildRevision.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/OSUpdateTypeParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestResultListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TestResultsList": { + "$ref": "./examples/TestResultsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/testResults/{testResultName}": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "TestResult_Get", + "description": "Get the Test Result by Id with specified OS Update type for a Test Base Package.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/TestResultNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/TestResultResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestResultGet": { + "$ref": "./examples/TestResultGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/osUpdates": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "OSUpdates_List", + "description": "Lists the OS Updates in which the package were tested before.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/OSUpdateTypeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/OSUpdateListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "OSUpdatesList": { + "$ref": "./examples/OSUpdatesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/osUpdates/{osUpdateResourceName}": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "OSUpdate_Get", + "description": "Gets an OS Update by name in which the package was tested before.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "name": "osUpdateResourceName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource name of an OS Update." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/OSUpdateResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "OSUpdateGet": { + "$ref": "./examples/OSUpdateGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/favoriteProcesses": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "FavoriteProcesses_List", + "description": "Lists the favorite processes for a specific package.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/FavoriteProcessListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "FavoriteProcessesList": { + "$ref": "./examples/FavoriteProcessesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/favoriteProcesses/{favoriteProcessResourceName}": { + "put": { + "tags": [ + "Test Result" + ], + "operationId": "FavoriteProcess_Create", + "description": "Create or replace a favorite process for a Test Base Package.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FavoriteProcessResource" + }, + "description": "Parameters supplied to create a favorite process in a package." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/FavoriteProcessResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The favorite processes was successfully created or updated.", + "schema": { + "$ref": "#/definitions/FavoriteProcessResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FavoriteProcessCreate": { + "$ref": "./examples/FavoriteProcessCreate.json" + } + } + }, + "delete": { + "tags": [ + "Test Result" + ], + "operationId": "FavoriteProcess_Delete", + "description": "Deletes a favorite process for a specific package.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/FavoriteProcessResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The package favorite process 'delete' operation was completed successfully." + }, + "204": { + "description": "The package favorite process 'delete' operation was completed successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FavoriteProcessDelete": { + "$ref": "./examples/FavoriteProcessDelete.json" + } + } + }, + "get": { + "tags": [ + "Test Result" + ], + "operationId": "FavoriteProcess_Get", + "description": "Gets a favorite process for a Test Base Package.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/FavoriteProcessResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/FavoriteProcessResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FavoriteProcessGet": { + "$ref": "./examples/FavoriteProcessGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/testResults/{testResultName}/analysisResults": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "AnalysisResults_List", + "description": "Lists the Analysis Results of a Test Result. The result collection will only contain one element as all the data will be nested in a singleton object.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/TestResultNameParameter" + }, + { + "$ref": "#/parameters/AnalysisResultTypeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/AnalysisResultListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "MemoryUtilizationAnalysisResultsList": { + "$ref": "./examples/MemoryUtilizationAnalysisResultsList.json" + }, + "CPUUtilizationAnalysisResultsList": { + "$ref": "./examples/CPUUtilizationAnalysisResultsList.json" + }, + "MemoryRegressionAnalysisResultsList": { + "$ref": "./examples/MemoryRegressionAnalysisResultsList.json" + }, + "CPURegressionAnalysisResultsList": { + "$ref": "./examples/CPURegressionAnalysisResultsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/testResults/{testResultName}/analysisResults/{analysisResultName}": { + "get": { + "tags": [ + "Test Result" + ], + "operationId": "AnalysisResult_Get", + "description": "Gets an Analysis Result of a Test Result by name.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/TestResultNameParameter" + }, + { + "$ref": "#/parameters/AnalysisResultNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/AnalysisResultSingletonResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MemoryUtilizationAnalysisResultGet": { + "$ref": "./examples/MemoryUtilizationAnalysisResultGet.json" + }, + "CPUUtilizationAnalysisResultGet": { + "$ref": "./examples/CPUUtilizationAnalysisResultGet.json" + }, + "MemoryRegressionAnalysisResultGet": { + "$ref": "./examples/MemoryRegressionAnalysisResultGet.json" + }, + "CPURegressionAnalysisResultGet": { + "$ref": "./examples/CPURegressionAnalysisResultGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/testResults/{testResultName}/getDownloadUrl": { + "post": { + "tags": [ + "Test Result" + ], + "operationId": "TestResultGetDownloadURL", + "description": "Gets the download URL or the test result.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/TestResultNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/DownloadURLResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestResultGetDownloadURL": { + "$ref": "./examples/TestResultGetDownloadURL.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/testResults/{testResultName}/getVideoDownloadUrl": { + "post": { + "tags": [ + "Test Result" + ], + "operationId": "TestResultGetVideoDownloadURL", + "description": "Gets the download URL of the test execution screen recording.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/TestBaseAccountNameParameter" + }, + { + "$ref": "#/parameters/PackageNameParameter" + }, + { + "$ref": "#/parameters/TestResultNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation is completed.", + "schema": { + "$ref": "#/definitions/DownloadURLResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TestResultGetVideoDownloadURL": { + "$ref": "./examples/TestResultGetVideoDownloadURL.json" + } + } + } + }, + "/providers/Microsoft.TestBase/operations": { + "get": { + "tags": [ + "Operation" + ], + "description": "Lists all of the available REST API operations of the Microsoft.TestBase provider.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success. The response describes the list of operations.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "OperationsList": { + "$ref": "./examples/OperationsList.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "description": "The Resource definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "x-ms-azure-resource": true + }, + "ProxyResource": { + "description": "The resource model definition for an ARM proxy resource. It will have everything other than required location and tags", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "Tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + }, + "TrackedResource": { + "description": "The resource model definition for an ARM tracked top level resource", + "properties": { + "tags": { + "description": "The tags of the resource.", + "$ref": "#/definitions/Tags" + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Resource Etag." + } + }, + "required": [ + "location" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "ErrorResponse": { + "description": "The error response send when an operation fails.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "description": "Error definition.", + "properties": { + "code": { + "description": "The error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "The error message.", + "type": "string", + "readOnly": true + }, + "target": { + "type": "string", + "description": "The target of the particular error.", + "readOnly": true + }, + "details": { + "description": "The error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "readOnly": true + } + } + }, + "TestBaseAccountSKUListResult": { + "description": "A list of Test Base Account SKUs.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TestBaseAccountSKU" + }, + "description": "The list of Test Base Account SKUs." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "TestBaseAccountSKU": { + "description": "Describes a Test Base Account SKU.", + "properties": { + "resourceType": { + "type": "string", + "description": "The type of resource the SKU applies to." + }, + "name": { + "type": "string", + "description": "The name of the SKU. This is typically a letter + number code, such as B0 or S0." + }, + "tier": { + "type": "string", + "description": "The tier of this particular SKU.", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "tier", + "modelAsString": true + } + }, + "capabilities": { + "type": "array", + "description": "The capabilities of a SKU.", + "readOnly": true, + "items": { + "$ref": "#/definitions/TestBaseAccountSKUCapability" + } + }, + "locations": { + "description": "The locations that the SKU is available.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "name", + "tier" + ] + }, + "TestBaseAccountSKUCapability": { + "description": "Properties of the Test Base Account SKU Capability.", + "properties": { + "name": { + "type": "string", + "description": "An invariant to describe the feature, such as 'SLA'." + }, + "value": { + "type": "string", + "description": "An invariant if the feature is measured by quantity, such as 99.9%." + } + }, + "required": [ + "name", + "value" + ] + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The type of identity that last modified the resource." + } + } + }, + "TestBaseAccountListResult": { + "description": "A list of Test Base Accounts.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TestBaseAccountResource" + }, + "description": "The list of Test Base Accounts." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "TestBaseAccountResource": { + "description": "The Test Base Account resource.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TestBaseAccountResourceProperties", + "description": "Properties of a Test Base Account." + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "TestBaseAccountResourceProperties": { + "description": "The properties of a Test Base Account resource.", + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "#/definitions/ProvisioningState" + }, + "sku": { + "description": "The SKU of the Test Base Account.", + "$ref": "#/definitions/TestBaseAccountSKU" + }, + "accessLevel": { + "description": "The access level of the Test Base Account.", + "readOnly": true, + "type": "string" + } + }, + "required": [ + "sku" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property", + "enum": [ + "Succeeded", + "Failed", + "Cancelled", + "Creating", + "Deleting", + "Updating" + ], + "readOnly": true, + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true + } + }, + "TestBaseAccountUpdateParameters": { + "description": "Parameters supplied to update a Test Base Account.", + "properties": { + "properties": { + "$ref": "#/definitions/TestBaseAccountUpdateParameterProperties", + "x-ms-client-flatten": true, + "description": "Test Base Account update parameters." + }, + "tags": { + "description": "The tags of the Test Base Account.", + "$ref": "#/definitions/Tags" + } + } + }, + "TestBaseAccountUpdateParameterProperties": { + "description": "Parameters supplied to update a Test Base Account.", + "properties": { + "sku": { + "description": "The SKU of the Test Base Account.", + "$ref": "#/definitions/TestBaseAccountSKU" + } + } + }, + "TestBaseAccountUsageDataList": { + "description": "A list of Test Base Account usage data.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TestBaseAccountUsageData" + }, + "description": "The list of Test Base Account usage data." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "TestBaseAccountUsageData": { + "description": "The usage data of a Test Base Account.", + "properties": { + "id": { + "description": "Fully qualified ARM resource id", + "type": "string" + }, + "name": { + "$ref": "#/definitions/TestBaseAccountUsageName", + "description": "Localizable String object containing the name and a localized value." + }, + "unit": { + "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.", + "type": "string" + }, + "limit": { + "format": "int64", + "description": "The maximum permitted value for the usage quota. If there is no limit, this value will be -1.", + "type": "integer" + }, + "currentValue": { + "format": "int64", + "description": "Current value for the usage quota.", + "type": "integer" + } + } + }, + "TestBaseAccountUsageName": { + "description": "Localizable String object containing the name and a localized value.", + "type": "object", + "properties": { + "value": { + "description": "The identifier of the usage.", + "type": "string" + }, + "localizedValue": { + "description": "Localized name of the usage.", + "type": "string" + } + } + }, + "GetFileUploadURLParameters": { + "description": "The parameters supplied to the Test Base Account GetFileUploadURL action.", + "properties": { + "blobName": { + "type": "string", + "description": "The custom file name of the uploaded blob." + } + } + }, + "FileUploadURLResponse": { + "description": "The URL response", + "properties": { + "uploadUrl": { + "type": "string", + "readOnly": true, + "description": "The URL used for uploading the package." + }, + "blobPath": { + "type": "string", + "readOnly": true, + "description": "The blob path of the uploaded package. It will be used as the 'blobPath' property of PackageResource." + } + } + }, + "AvailableOSListResult": { + "description": "A list of available OSs.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailableOSResource" + }, + "description": "The list of available OSs." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "AvailableOSResource": { + "description": "The Available OS resource.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "$ref": "#/definitions/AvailableOSProperties", + "x-ms-client-flatten": true, + "description": "Available OS properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "AvailableOSProperties": { + "description": "The Available OS properties.", + "properties": { + "osId": { + "type": "string", + "description": "The Id of an Available OS of a Test Base Account." + }, + "osName": { + "type": "string", + "description": "The name of an Available OS of a Test Base Account." + }, + "osVersion": { + "type": "string", + "description": "The version of an Available OS of a Test Base Account." + }, + "insiderChannel": { + "type": "string", + "description": "The insider channel of an Available OS of a Test Base Account." + }, + "osUpdateType": { + "type": "string", + "description": "The OS update type of an Available OS of a Test Base Account." + }, + "osPlatform": { + "type": "string", + "description": "The Platform of an Available OS of a Test Base Account." + } + } + }, + "FlightingRingListResult": { + "description": "A list of flighting rings.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FlightingRingResource" + }, + "description": "The list of flighting rings." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "FlightingRingResource": { + "description": "The flighting ring resource.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "$ref": "#/definitions/FlightingRingProperties", + "x-ms-client-flatten": true, + "description": "Flighting Ring properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "FlightingRingProperties": { + "description": "The Flighting Ring properties.", + "properties": { + "actualFlightingRingName": { + "type": "string", + "description": "The actual name of a flighting ring of a Test Base Account." + } + } + }, + "TestTypeListResult": { + "description": "A list of test types.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TestTypeResource" + }, + "description": "The list of test types." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "TestTypeResource": { + "description": "The test type resource.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "$ref": "#/definitions/TestTypeProperties", + "x-ms-client-flatten": true, + "description": "Test Type properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "TestTypeProperties": { + "description": "The Test Type properties.", + "properties": { + "actualTestTypeName": { + "type": "string", + "description": "The actual name of a test type of a Test Base Account." + } + } + }, + "PackageCheckNameAvailabilityParameters": { + "description": "Parameters body to pass for Test Base Package name availability check.", + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "applicationName": { + "type": "string", + "description": "Application name to verify." + }, + "version": { + "type": "string", + "description": "Version name to verify." + }, + "type": { + "type": "string", + "description": "fully qualified resource type which includes provider namespace." + } + }, + "required": [ + "name", + "applicationName", + "version", + "type" + ] + }, + "CheckNameAvailabilityResult": { + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Value indicating the availability of the name: true if the name is available; otherwise, false." + }, + "reason": { + "type": "string", + "description": "The reason for unavailability of a name. Required if nameAvailable == false.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "reason", + "modelAsString": true + } + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The detailed info regarding the reason associated with the name. Required if nameAvailable == false." + } + }, + "description": "Description of a Check Name availability response properties." + }, + "PackageListResult": { + "description": "A list of Test Base Packages.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PackageResource" + }, + "description": "The list of Test Base Packages." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "PackageResource": { + "description": "The Test Base Package resource.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "$ref": "#/definitions/PackageProperties", + "x-ms-client-flatten": true, + "description": "Test Base Package properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "PackageProperties": { + "description": "The properties of the Test Base Package.", + "properties": { + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "#/definitions/ProvisioningState" + }, + "applicationName": { + "type": "string", + "description": "Application name" + }, + "version": { + "type": "string", + "description": "Application version" + }, + "testTypes": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/TestType" + }, + "description": "OOB, functional or both. Mapped to the data in 'tests' property." + }, + "targetOSList": { + "type": "array", + "items": { + "$ref": "#/definitions/TargetOSInfo" + }, + "description": "Specifies the target OSs of specific OS Update types." + }, + "packageStatus": { + "readOnly": true, + "type": "string", + "description": "The status of the package.", + "enum": [ + "Unknown", + "Registered", + "Ready", + "Error", + "ValidatingPackage", + "PreValidationCheckPass", + "Deleted", + "ValidationLongerThanUsual", + "VerifyingPackage" + ], + "x-ms-enum": { + "name": "packageStatus", + "modelAsString": true + } + }, + "lastModifiedTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The UTC timestamp when the package was last modified." + }, + "flightingRing": { + "type": "string", + "description": "The flighting ring for feature update." + }, + "isEnabled": { + "type": "boolean", + "readOnly": true, + "description": "Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled." + }, + "blobPath": { + "type": "string", + "description": "The file path of the package." + }, + "validationResults": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PackageValidationResult" + }, + "description": "The validation results. There's validation on package when it's created or updated." + }, + "tests": { + "type": "array", + "items": { + "$ref": "#/definitions/Test" + }, + "description": "The detailed test information." + } + }, + "required": [ + "applicationName", + "version", + "targetOSList", + "flightingRing", + "blobPath", + "tests" + ] + }, + "TestType": { + "type": "string", + "description": "The test type.", + "enum": [ + "OutOfBoxTest", + "FunctionalTest" + ], + "x-ms-enum": { + "name": "testType", + "modelAsString": true + } + }, + "TargetOSInfo": { + "description": "The information of the target OS to be tested.", + "properties": { + "osUpdateType": { + "type": "string", + "description": "Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'." + }, + "targetOSs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the target OSs to be tested." + } + }, + "required": [ + "osUpdateType", + "targetOSs" + ] + }, + "PackageValidationResult": { + "description": "The validation results. There's validation on package when it's created or updated.", + "properties": { + "validationName": { + "type": "string", + "readOnly": true, + "description": "Validation name." + }, + "isValid": { + "type": "boolean", + "readOnly": true, + "description": "Indicates whether the package passed the validation." + }, + "errors": { + "type": "array", + "readOnly": true, + "items": { + "type": "string" + }, + "description": "Error information." + } + } + }, + "Test": { + "description": "The definition of a Test.", + "properties": { + "testType": { + "$ref": "#/definitions/TestType", + "description": "The type of the test." + }, + "validationRunStatus": { + "readOnly": true, + "type": "string", + "description": "The status of the validation run of the package.", + "enum": [ + "Unknown", + "Pending", + "Passed", + "Failed" + ], + "x-ms-enum": { + "name": "validationRunStatus", + "modelAsString": true + } + }, + "isActive": { + "type": "boolean", + "description": "Indicates if this test is active.It doesn't schedule test for not active Test." + }, + "commands": { + "type": "array", + "items": { + "$ref": "#/definitions/Command" + }, + "description": "The commands used in the test." + } + }, + "required": [ + "testType", + "commands" + ] + }, + "Command": { + "description": "The command used in the test", + "properties": { + "name": { + "type": "string", + "description": "The name of the command." + }, + "action": { + "type": "string", + "description": "The action of the command.", + "enum": [ + "Install", + "Launch", + "Close", + "Uninstall", + "Custom" + ], + "x-ms-enum": { + "name": "action", + "modelAsString": true + } + }, + "contentType": { + "type": "string", + "description": "The type of command content.", + "enum": [ + "Inline", + "File", + "Path" + ], + "x-ms-enum": { + "name": "contentType", + "modelAsString": true + } + }, + "content": { + "type": "string", + "description": "The content of the command. The content depends on source type." + }, + "runElevated": { + "type": "boolean", + "description": "Specifies whether to run the command as administrator." + }, + "restartAfter": { + "type": "boolean", + "description": "Specifies whether to restart the VM after the command executed." + }, + "maxRunTime": { + "type": "integer", + "format": "int32", + "description": "Specifies the max run time of the command." + }, + "runAsInteractive": { + "type": "boolean", + "description": "Specifies whether to run the command in interactive mode." + }, + "alwaysRun": { + "type": "boolean", + "description": "Specifies whether to run the command even if a previous command is failed." + }, + "applyUpdateBefore": { + "type": "boolean", + "description": "Specifies whether to apply update before the command." + } + }, + "required": [ + "name", + "action", + "contentType", + "content" + ] + }, + "PackageUpdateParameters": { + "description": "Parameters supplied to update a Test Base Package.", + "properties": { + "properties": { + "$ref": "#/definitions/PackageUpdateParameterProperties", + "x-ms-client-flatten": true, + "description": "Test Base Package update parameters." + }, + "tags": { + "description": "The tags of the Package.", + "$ref": "#/definitions/Tags" + } + } + }, + "PackageUpdateParameterProperties": { + "description": "Parameters supplied to update a Test Base Package.", + "properties": { + "targetOSList": { + "type": "array", + "items": { + "$ref": "#/definitions/TargetOSInfo" + }, + "description": "Specifies the target OSs of specific OS Update types." + }, + "flightingRing": { + "type": "string", + "description": "The flighting ring for feature update." + }, + "isEnabled": { + "type": "boolean", + "description": "Specifies whether the package is enabled. It doesn't schedule test for package which is not enabled." + }, + "blobPath": { + "type": "string", + "description": "The file name of the package." + }, + "tests": { + "type": "array", + "items": { + "$ref": "#/definitions/Test" + }, + "description": "The detailed test information." + } + } + }, + "DownloadURLResponse": { + "description": "The response of getting a download URL.", + "properties": { + "downloadUrl": { + "type": "string", + "readOnly": true, + "x-ms-secret": true, + "description": "The download URL." + }, + "expirationTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Expiry date of the download URL." + } + } + }, + "TestSummaryListResult": { + "description": "A list of Test Summaries.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TestSummaryResource" + }, + "description": "The list of Test Summaries." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "TestSummaryResource": { + "description": "Summary of a Test.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TestSummaryProperties", + "description": "Properties of a Test Summary." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "TestSummaryProperties": { + "description": "Properties of a Test Summary.", + "properties": { + "testSummaryId": { + "type": "string", + "description": "The Id of the current Test Summary." + }, + "packageId": { + "type": "string", + "description": "The Azure resource Id of package." + }, + "applicationName": { + "type": "string", + "description": "Application name." + }, + "applicationVersion": { + "type": "string", + "description": "Application version." + }, + "executionStatus": { + "$ref": "#/definitions/TestExecutionStatus", + "description": "The execution status of last test." + }, + "grade": { + "$ref": "#/definitions/TestGrade", + "description": "The grade of the test." + }, + "testRunTime": { + "type": "string", + "description": "The run time of the last test." + }, + "featureUpdatesTestSummary": { + "$ref": "#/definitions/OSUpdatesTestSummary", + "description": "The result summary of tests triggered by feature updates" + }, + "securityUpdatesTestSummary": { + "$ref": "#/definitions/OSUpdatesTestSummary", + "description": "The result summary of tests triggered by security updates" + } + } + }, + "TestExecutionStatus": { + "type": "string", + "description": "The execution status of a test.", + "enum": [ + "None", + "InProgress", + "Processing", + "Completed", + "NotExecuted", + "Incomplete", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "executionStatus", + "modelAsString": true + } + }, + "TestGrade": { + "type": "string", + "description": "The grade of a test.", + "enum": [ + "None", + "NotAvailable", + "Pass", + "Fail" + ], + "x-ms-enum": { + "name": "grade", + "modelAsString": true + } + }, + "OSUpdatesTestSummary": { + "description": "The summary of some tests.", + "properties": { + "executionStatus": { + "$ref": "#/definitions/TestExecutionStatus", + "description": "The status of the last test." + }, + "grade": { + "$ref": "#/definitions/TestGrade", + "description": "The grade of last test." + }, + "testRunTime": { + "type": "string", + "description": "The run time of the last test." + }, + "osUpdateTestSummaries": { + "type": "array", + "items": { + "$ref": "#/definitions/OSUpdateTestSummary" + }, + "description": "Detailed summary for each OS update" + } + } + }, + "OSUpdateTestSummary": { + "description": "The summary of a test.", + "properties": { + "osName": { + "type": "string", + "description": "The operating system name. e.g. Windows 10 1809." + }, + "releaseName": { + "type": "string", + "description": "The name of the tested release (OS update)." + }, + "buildVersion": { + "type": "string", + "description": "The build version of the tested release (OS update)" + }, + "buildRevision": { + "type": "string", + "description": "The build revision of the tested release (OS update)" + }, + "releaseVersionDate": { + "type": "string", + "format": "date-time", + "description": "The release version date." + }, + "flightingRing": { + "type": "string", + "description": "The flighting ring, only for release of feature updates." + }, + "executionStatus": { + "$ref": "#/definitions/TestExecutionStatus", + "description": "The execution status of the test." + }, + "grade": { + "$ref": "#/definitions/TestGrade", + "description": "The grade of the test." + }, + "testRunTime": { + "type": "string", + "description": "The run time of the test." + }, + "testType": { + "type": "string", + "description": "The test type of the package" + } + } + }, + "TestResultListResult": { + "description": "A list of Test Results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TestResultResource" + }, + "description": "The list of Test Results." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "TestResultResource": { + "description": "The Test Result Resource.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "$ref": "#/definitions/TestResultProperties", + "x-ms-client-flatten": true, + "description": "The properties of a Test Result." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "TestResultProperties": { + "description": "The properties of a Test Result.", + "properties": { + "baselineTestResultId": { + "type": "string", + "description": "Azure Id of the baseline test result." + }, + "packageId": { + "type": "string", + "description": "Resource Id of the package." + }, + "applicationName": { + "type": "string", + "description": "Application name." + }, + "applicationVersion": { + "type": "string", + "description": "Application version." + }, + "osName": { + "type": "string", + "description": "The operating system name, e.g. Windows 10 1809." + }, + "releaseName": { + "type": "string", + "description": "The name of the tested release (OS update)." + }, + "releaseVersionDate": { + "type": "string", + "format": "date-time", + "description": "The release version date of the tested release." + }, + "flightingRing": { + "type": "string", + "description": "The flighting ring, only for release of feature updates." + }, + "buildVersion": { + "type": "string", + "description": "The build version of the tested release (OS update)." + }, + "buildRevision": { + "type": "string", + "description": "The build revision of the tested release (OS update)." + }, + "testType": { + "type": "string", + "description": "Test type. E.g. 'Out of box test' or 'Functional test'." + }, + "testRunTime": { + "type": "string", + "description": "The run time of the test." + }, + "isDownloadDataAvailable": { + "type": "boolean", + "description": "Whether download data is available." + }, + "isVideoAvailable": { + "type": "boolean", + "description": "Whether video data is available." + }, + "executionStatus": { + "$ref": "#/definitions/TestExecutionStatus", + "description": "The execution status of the test." + }, + "grade": { + "$ref": "#/definitions/TestGrade", + "description": "The grade of the test." + }, + "kbNumber": { + "type": "string", + "description": "KB number." + }, + "packageVersion": { + "type": "string", + "description": "The version of the Windows update package." + }, + "analysisSummaries": { + "type": "array", + "items": { + "$ref": "#/definitions/TestResultAnalysisSummary" + }, + "description": "List of analysis summaries." + } + } + }, + "TestResultAnalysisSummary": { + "description": "The summary of a Test Analysis Result.", + "properties": { + "name": { + "type": "string", + "description": "Metric name" + }, + "analysisStatus": { + "type": "string", + "description": "The analysis status.", + "enum": [ + "None", + "Completed", + "InProgress", + "Failed", + "Succeeded", + "Available", + "NotAvailable" + ], + "x-ms-enum": { + "name": "analysisStatus", + "modelAsString": true + } + }, + "grade": { + "$ref": "#/definitions/TestGrade", + "description": "The grade of the test result." + } + } + }, + "OSUpdateListResult": { + "description": "A list of OS Updates.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OSUpdateResource" + }, + "description": "The list of OS Updates." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "OSUpdateResource": { + "description": "An OS Update.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OSUpdateProperties", + "description": "Properties of an OS Update." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "OSUpdateProperties": { + "description": "Properties of an OS Update.", + "properties": { + "osName": { + "type": "string", + "description": "The name of the OS." + }, + "release": { + "type": "string", + "description": "The name of tested release." + }, + "flightingRing": { + "type": "string", + "description": "The flighting ring, only for release of feature updates." + }, + "buildVersion": { + "type": "string", + "description": "The build version of the tested release (OS update)." + }, + "buildRevision": { + "type": "string", + "description": "The build revision of the tested release (OS update)" + }, + "type": { + "type": "string", + "description": "The type of this release (OS update).", + "enum": [ + "SecurityUpdate", + "FeatureUpdate" + ], + "x-ms-enum": { + "name": "type", + "modelAsString": true + } + }, + "releaseVersionDate": { + "type": "string", + "format": "date-time", + "description": "The release version date the tested release (OS update)" + } + } + }, + "FavoriteProcessListResult": { + "description": "A list of favorite processes for a package.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FavoriteProcessResource" + }, + "description": "The list of favorite processes for a package." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "FavoriteProcessResource": { + "description": "A favorite process identifier.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/FavoriteProcessProperties", + "description": "Properties of a favorite process identifier." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "FavoriteProcessProperties": { + "description": "Properties of a favorite process identifier.", + "properties": { + "actualProcessName": { + "type": "string", + "description": "The actual name of the favorite process. It will be equal to resource name except for the scenario that the process name contains characters that are not allowed in the resource name." + } + }, + "required": [ + "actualProcessName" + ] + }, + "AnalysisResultListResult": { + "description": "A list of Analysis Results. It will only contain one element as all the data will be nested in a singleton object.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AnalysisResultSingletonResource" + }, + "description": "The list of Analysis Results." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link to the next set of results. Not empty if value contains incomplete list of results." + } + } + }, + "AnalysisResultSingletonResource": { + "description": "The Analysis Result Singleton Resource.", + "properties": { + "systemData": { + "description": "The system metadata relating to this resource", + "$ref": "#/definitions/SystemData" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AnalysisResultSingletonResourceProperties", + "description": "Properties of an Analysis Result." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "AnalysisResultSingletonResourceProperties": { + "description": "The properties of Analysis Result resource.", + "discriminator": "analysisResultType", + "required": [ + "analysisResultType" + ], + "properties": { + "grade": { + "$ref": "#/definitions/TestGrade", + "description": "The grade of the test." + }, + "analysisResultType": { + "description": "Type of the Analysis Result.", + "enum": [ + "ScriptExecution", + "Reliability", + "CPUUtilization", + "MemoryUtilization", + "CPURegression", + "MemoryRegression" + ], + "type": "string", + "x-ms-enum": { + "name": "analysisResultType", + "modelAsString": true + } + } + } + }, + "ScriptExecutionResultSingletonResourceProperties": { + "description": "The properties of Script Execution Result.", + "x-ms-discriminator-value": "ScriptExecution", + "properties": { + "scriptExecutionResults": { + "description": "The result array data.", + "type": "array", + "items": { + "$ref": "#/definitions/ScriptExecutionResult" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalysisResultSingletonResourceProperties" + } + ] + }, + "ScriptExecutionResult": { + "description": "The Script Execution Result.", + "properties": { + "scriptName": { + "type": "string", + "description": "Name of script." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Start time of script execution." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "End time of script execution." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "description": "Exit code." + }, + "timeOut": { + "type": "boolean", + "description": "Whether the subscription execution is timeout." + } + } + }, + "ReliabilityResultSingletonResourceProperties": { + "description": "The properties of Reliability Result.", + "x-ms-discriminator-value": "Reliability", + "properties": { + "reliabilityResults": { + "description": "The result array data.", + "type": "array", + "items": { + "$ref": "#/definitions/ReliabilityResult" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalysisResultSingletonResourceProperties" + } + ] + }, + "ReliabilityResult": { + "description": "The Reliability Result.", + "properties": { + "fileName": { + "type": "string", + "description": "File name." + }, + "launchCount": { + "type": "integer", + "format": "int32", + "description": "Count of number of launches." + }, + "crashCount": { + "type": "integer", + "format": "int32", + "description": "Count of number of crashes." + }, + "hangCount": { + "type": "integer", + "format": "int32", + "description": "Count of number of hangs." + }, + "regressionGrade": { + "$ref": "#/definitions/TestGrade", + "description": "The regression grade." + }, + "crashRegressionGrade": { + "$ref": "#/definitions/TestGrade", + "description": "The statistic regression grade for crash signal." + }, + "crashRegressionTestDetails": { + "$ref": "#/definitions/RegressionTestDetails", + "description": "Details related to the crash regression analysis." + }, + "hangRegressionGrade": { + "$ref": "#/definitions/TestGrade", + "description": "The statistic regression grade for hang signal." + }, + "hangRegressionTestDetails": { + "$ref": "#/definitions/RegressionTestDetails", + "description": "Details related to the hang regression analysis." + } + } + }, + "RegressionTestDetails": { + "description": "The details of a regression test.", + "properties": { + "diff": { + "type": "number", + "format": "double", + "description": "Difference between the two datasets being analyzed." + }, + "isRegressed": { + "type": "boolean", + "description": "Indicates if a regression was inferred." + } + } + }, + "CPUUtilizationResultSingletonResourceProperties": { + "description": "The properties of CPU Utilization Result.", + "x-ms-discriminator-value": "CPUUtilization", + "properties": { + "cpuUtilizationResults": { + "description": "The result array data.", + "type": "array", + "items": { + "$ref": "#/definitions/UtilizationResult" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalysisResultSingletonResourceProperties" + } + ] + }, + "MemoryUtilizationResultSingletonResourceProperties": { + "description": "The properties of Memory Utilization Result.", + "x-ms-discriminator-value": "MemoryUtilization", + "properties": { + "memoryUtilizationResults": { + "description": "The result array data.", + "type": "array", + "items": { + "$ref": "#/definitions/UtilizationResult" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalysisResultSingletonResourceProperties" + } + ] + }, + "UtilizationResult": { + "description": "The Utilization Result.", + "properties": { + "process": { + "type": "string", + "description": "Process name, or '_total' for all processes" + }, + "upperBound": { + "$ref": "#/definitions/UtilizationBound", + "description": "Upper bound" + }, + "lowerBound": { + "$ref": "#/definitions/UtilizationBound", + "description": "Lower bound" + }, + "utilization": { + "type": "array", + "items": { + "$ref": "#/definitions/UtilizationEntry" + }, + "description": "Utilization data" + } + } + }, + "UtilizationBound": { + "description": "The bound of a utilization result.", + "properties": { + "percentile": { + "type": "number", + "format": "double", + "description": "The percentile of the bound." + }, + "value": { + "type": "number", + "format": "double", + "description": "The value of the bound." + } + } + }, + "UtilizationEntry": { + "description": "The utilization entry.", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The timestamp." + }, + "value": { + "type": "number", + "format": "double", + "description": "The value." + } + } + }, + "CPURegressionResultSingletonResourceProperties": { + "description": "The properties of CPU Regression Result.", + "x-ms-discriminator-value": "CPURegression", + "properties": { + "cpuRegressionResults": { + "description": "The result array data.", + "type": "array", + "items": { + "$ref": "#/definitions/RegressionResult" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalysisResultSingletonResourceProperties" + } + ] + }, + "MemoryRegressionResultSingletonResourceProperties": { + "description": "The properties of Memory Regression Result.", + "x-ms-discriminator-value": "MemoryRegression", + "properties": { + "memoryRegressionResults": { + "description": "The result array data.", + "type": "array", + "items": { + "$ref": "#/definitions/RegressionResult" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalysisResultSingletonResourceProperties" + } + ] + }, + "RegressionResult": { + "description": "The regression result.", + "properties": { + "fileName": { + "type": "string", + "description": "FileName of the binary being analyzed." + }, + "grade": { + "$ref": "#/definitions/TestGrade", + "description": "The grade of the test." + }, + "details": { + "type": "string", + "description": "Message that facilitates debugging a particular regression, if any was inferred." + }, + "diff": { + "type": "number", + "format": "double", + "description": "Difference between the two datasets being analyzed." + }, + "isRegressed": { + "type": "boolean", + "description": "Indicates if a regression was inferred." + } + } + }, + "OperationListResult": { + "description": "A list of operations supported by the resource provider.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by the Test Base resource provider." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "readOnly": true, + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "readOnly": true, + "type": "boolean" + }, + "origin": { + "description": "Origin of the operation", + "readOnly": true, + "type": "string" + }, + "display": { + "description": "The object that describes the operation.", + "properties": { + "provider": { + "description": "The resource provider name: Microsoft.TestBase.", + "readOnly": true, + "type": "string" + }, + "operation": { + "description": "Operation type: read, write, delete, listPackages, etc.", + "readOnly": true, + "type": "string" + }, + "resource": { + "description": "Resource type on which the operation is performed.", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Friendly name of the operation.", + "readOnly": true, + "type": "string" + } + } + }, + "properties": { + "$ref": "#/definitions/OperationProperties", + "description": "Extra properties of the operation.", + "x-ms-client-flatten": true + } + } + }, + "OperationProperties": { + "description": "Operation properties.", + "type": "object", + "properties": {} + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string." + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the resource group that contains the resource." + }, + "TestBaseAccountNameParameter": { + "name": "testBaseAccountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource name of the Test Base Account." + }, + "PackageNameParameter": { + "name": "packageName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource name of the Test Base Package." + }, + "FavoriteProcessResourceNameParameter": { + "name": "favoriteProcessResourceName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use 'actualProcessName' in request body to submit the name." + }, + "TestResultNameParameter": { + "name": "testResultName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The Test Result Name. It equals to {osName}-{TestResultId} string." + }, + "OSUpdateTypeParameter": { + "name": "osUpdateType", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "SecurityUpdate", + "FeatureUpdate" + ], + "x-ms-enum": { + "name": "osUpdateType", + "modelAsString": true + }, + "x-ms-parameter-location": "method", + "description": "The type of the OS Update." + }, + "AnalysisResultTypeParameter": { + "name": "analysisResultType", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "ScriptExecution", + "Reliability", + "MemoryUtilization", + "CPUUtilization", + "MemoryRegression", + "CPURegression" + ], + "x-ms-enum": { + "name": "analysisResultType", + "modelAsString": true + }, + "x-ms-parameter-location": "method", + "description": "The type of the Analysis Result of a Test Result." + }, + "AnalysisResultNameParameter": { + "name": "analysisResultName", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "scriptExecution", + "reliability", + "memoryUtilization", + "cpuUtilization", + "memoryRegression", + "cpuRegression" + ], + "x-ms-enum": { + "name": "analysisResultName", + "modelAsString": true + }, + "x-ms-parameter-location": "method", + "description": "The name of the Analysis Result of a Test Result." + }, + "FilterParameter": { + "name": "$filter", + "in": "query", + "type": "string", + "x-ms-parameter-location": "method", + "description": "Odata filter" + }, + "TestBaseAccountIncludeSoftDeletedParameter": { + "name": "getDeleted", + "in": "query", + "required": false, + "type": "boolean", + "x-ms-parameter-location": "method", + "description": "The flag indicating if we need to include the Test Base Accounts which were soft deleted before." + }, + "TestBaseAccountRestoreSoftDeletedParameter": { + "name": "restore", + "in": "query", + "required": false, + "type": "boolean", + "x-ms-parameter-location": "method", + "description": "The flag indicating if we would like to restore the Test Base Accounts which were soft deleted before." + } + } +} diff --git a/specification/testbase/resource-manager/readme.azureresourceschema.md b/specification/testbase/resource-manager/readme.azureresourceschema.md new file mode 100644 index 000000000000..8b79f0c82d5a --- /dev/null +++ b/specification/testbase/resource-manager/readme.azureresourceschema.md @@ -0,0 +1,23 @@ +## AzureResourceSchema + +These settings apply only when `--azureresourceschema` is specified on the command line. + +### AzureResourceSchema multi-api + +``` yaml $(azureresourceschema) && $(multiapi) +batch: + - tag: schema-testbase-2020-12-16-preview + +``` + +Please also specify `--azureresourceschema-folder=`. + +### Tag: schema-testbase-2020-12-16-preview and azureresourceschema + +``` yaml $(tag) == 'schema-testbase-2020-12-16-preview' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.TestBase/preview/2020-12-16-preview/testbase.json +``` diff --git a/specification/testbase/resource-manager/readme.csharp.md b/specification/testbase/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..4027d15ea2bc --- /dev/null +++ b/specification/testbase/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.TestBase + output-folder: $(csharp-sdks-folder)/testbase/management/Microsoft.TestBase/GeneratedProtocol +``` diff --git a/specification/testbase/resource-manager/readme.go.md b/specification/testbase/resource-manager/readme.go.md new file mode 100644 index 000000000000..3e88a13fc511 --- /dev/null +++ b/specification/testbase/resource-manager/readme.go.md @@ -0,0 +1,26 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: testbase + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2020-12-16-preview +``` + +### Tag: package-2020-12-16-preview and go + +These settings apply only when `--tag=package-2020-12-16-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag) == 'package-2020-12-16-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-12-16-preview/$(namespace) +``` diff --git a/specification/testbase/resource-manager/readme.md b/specification/testbase/resource-manager/readme.md new file mode 100644 index 000000000000..20f67e3d2664 --- /dev/null +++ b/specification/testbase/resource-manager/readme.md @@ -0,0 +1,94 @@ +# testbase + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for testbase. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the testbase. + +```yaml +openapi-type: arm +openapi-subtype: rpaas +tag: package-2020-12-16-preview +``` + +### Tag: package-2020-12-16-preview + +These settings apply only when `--tag=package-2020-12-16-preview` is specified on the command line. + +```yaml $(tag) == 'package-2020-12-16-preview' +input-file: + - Microsoft.TestBase/preview/2020-12-16-preview/testbase.json +directive: +- suppress: R4031 + from: testbase.json + reason: provisioningState is not required for Proxy Resources. +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + after_scripts: + - node sdkauto_afterscript.js testbase/resource-manager +``` +## Suppression +``` +directive: + - suppress: SECRET_PROPERTY + from: + - Microsoft.TestBase/preview/2020-12-16-preview/testbase.json + where: + - $.definitions.DownloadURLResponse.properties.downloadUrl + reason: Secrets are OK to return in a POST response according to ARM. +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) + +## AzureResourceSchema + +See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) diff --git a/specification/testbase/resource-manager/readme.python.md b/specification/testbase/resource-manager/readme.python.md new file mode 100644 index 000000000000..5153796cde47 --- /dev/null +++ b/specification/testbase/resource-manager/readme.python.md @@ -0,0 +1,20 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-testbase +no-namespace-folders: true +package-version: 1.0.0b1 +``` + +``` yaml $(python-mode) == 'update' +output-folder: $(python-sdks-folder)/testbase/azure-mgmt-testbase/azure/mgmt/testbase +``` +``` yaml $(python-mode) == 'create' +basic-setup-py: true +output-folder: $(python-sdks-folder)/testbase/azure-mgmt-testbase +``` diff --git a/specification/testbase/resource-manager/readme.typescript.md b/specification/testbase/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..b4ee6bc45671 --- /dev/null +++ b/specification/testbase/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-testbase" + output-folder: "$(typescript-sdks-folder)/sdk/testbase/arm-testbase" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +```