diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/actionrequest.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/actionrequest.json index 1204aa304475..d79dfcacb60a 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/actionrequest.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/actionrequest.json @@ -115,6 +115,12 @@ "$ref": "#/definitions/ActionRequest" } }, + "201": { + "description": "Succeeded to create (submit) an action request.", + "schema": { + "$ref": "#/definitions/ActionRequest" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -355,7 +361,8 @@ "in": "path", "required": true, "type": "string", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[A-Za-z0-9]([A-Za-z0-9_]|([-. ][A-Za-z0-9]))+$" }, "RequestTypeFilter": { "name": "requestType", diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/customimage.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/customimage.json index dd281db7d0e4..3cb001d89f1a 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/customimage.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/customimage.json @@ -176,9 +176,6 @@ } ], "responses": { - "200": { - "description": "The test base custom image was deleted successfully." - }, "202": { "description": "The test base custom image 'delete' operation was successfully enqueued. Follow the Location header to poll for final outcome.", "headers": { diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/draftpackage.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/draftpackage.json index 59a017d91e78..38bf8ff91df0 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/draftpackage.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/draftpackage.json @@ -125,6 +125,12 @@ "$ref": "#/definitions/DraftPackageResource" } }, + "201": { + "description": "The Test Base Draft Package was successfully created.", + "schema": { + "$ref": "#/definitions/DraftPackageResource" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -373,9 +379,6 @@ } } }, - "200": { - "description": "The files and metadata are copied from the package successfully." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -441,9 +444,6 @@ } } }, - "200": { - "description": "The 'ExtractFile' operation of Draft Package is completed." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -509,9 +509,6 @@ } } }, - "200": { - "description": "The folder and package files are generated successfully." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1123,7 +1120,8 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The resource name of the Test Base Draft Package." + "description": "The resource name of the Test Base Draft Package.", + "pattern": "^[A-Za-z0-9]([A-Za-z0-9_]|([-. ][A-Za-z0-9]))+$" }, "PackageNameQueryParameter": { "name": "packageName", diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/ActionRequestPut.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/ActionRequestPut.json index b22d69e2c8b8..ab5b37402ea2 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/ActionRequestPut.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/ActionRequestPut.json @@ -31,6 +31,31 @@ "status": "InReview" } } + }, + "201": { + "body": { + "name": "167184141414254", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/actionRequests/167184141414254", + "type": "Microsoft.TestBase/testBaseAccounts/actionRequests", + "properties": { + "requestType": "PreReleaseAccess", + "preReleaseAccessRequestSpec": { + "organizationName": "example-org-name", + "email": "example@example.com", + "engagements": [ + "MVI" + ], + "streetAddress": "example", + "city": "example", + "stateOrProvince": "example", + "zipCode": "example", + "countryAndRegion": "example", + "companyWebsite": "example.com" + }, + "creationDate": "2022-12-24T06:52:16.820Z", + "status": "InReview" + } + } } } } diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/CustomImageDelete.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/CustomImageDelete.json index 576f8ce7f01a..fde035aeeba4 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/CustomImageDelete.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/CustomImageDelete.json @@ -7,7 +7,6 @@ "api-version": "2023-11-01-preview" }, "responses": { - "200": {}, "202": { "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/customImages/image-2cfb2edc-13bc-4d54-8d6e-38b2a233b003/operationResults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2023-11-01-preview", diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageCopyFromPackage.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageCopyFromPackage.json index b48bfa028005..c2d13894bc9c 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageCopyFromPackage.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageCopyFromPackage.json @@ -15,7 +15,6 @@ "Azure-AsyncOperation": "https://management.azure.com/providers/MICROSOFT.TESTBASE/locations/WESTUS/operationStatuses/5b0a0eba-9487-411a-abdd-6aa12cc8d3fd*B91D9DCE4897B22607EFF0E21B7CDE4BEF5F59D1F7664BB8C638ADB23926DFDB?api-version=2022-04-01-preview", "Location": "https://management.azure.com/providers/MICROSOFT.TESTBASE/locations/WESTUS/operationStatuses/5b0a0eba-9487-411a-abdd-6aa12cc8d3fd*B91D9DCE4897B22607EFF0E21B7CDE4BEF5F59D1F7664BB8C638ADB23926DFDB?api-version=2022-04-01-preview" } - }, - "200": {} + } } } diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageCreate.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageCreate.json index 3f5e4d3f93a7..f4bcca1f043e 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageCreate.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageCreate.json @@ -29,6 +29,20 @@ "sourceType": "Native" } } + }, + "201": { + "body": { + "name": "61d99543-14ff-47ae-bf03-8a8b8445502e", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/draftPackages/61d99543-14ff-47ae-bf03-8a8b8445502e", + "type": "Microsoft.TestBase/testBaseAccounts/draftpackages", + "properties": { + "applicationName": "contoso-package", + "version": "1.0", + "appFileName": "TestBaseM365DigitalClock.msi", + "useSample": false, + "sourceType": "Native" + } + } } } } diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageExtractFile.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageExtractFile.json index 9495f77e8ecd..9e2ccb15ef76 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageExtractFile.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageExtractFile.json @@ -16,7 +16,6 @@ "Azure-AsyncOperation": "https://management.azure.com/providers/MICROSOFT.TESTBASE/locations/WESTUS/operationStatuses/5b0a0eba-9487-411a-abdd-6aa12cc8d3fd*B91D9DCE4897B22607EFF0E21B7CDE4BEF5F59D1F7664BB8C638ADB23926DFDB?api-version=2022-04-01-preview", "Location": "https://management.azure.com/providers/MICROSOFT.TESTBASE/locations/WESTUS/operationStatuses/5b0a0eba-9487-411a-abdd-6aa12cc8d3fd*B91D9DCE4897B22607EFF0E21B7CDE4BEF5F59D1F7664BB8C638ADB23926DFDB?api-version=2022-04-01-preview" } - }, - "200": {} + } } } diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageGenerateFoldersAndScripts.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageGenerateFoldersAndScripts.json index 22965b579256..0f34297a7698 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageGenerateFoldersAndScripts.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/examples/DraftPackageGenerateFoldersAndScripts.json @@ -15,7 +15,6 @@ "Azure-AsyncOperation": "https://management.azure.com/providers/MICROSOFT.TESTBASE/locations/WESTUS/operationStatuses/5b0a0eba-9487-411a-abdd-6aa12cc8d3fd*B91D9DCE4897B22607EFF0E21B7CDE4BEF5F59D1F7664BB8C638ADB23926DFDB?api-version=2022-04-01-preview", "Location": "https://management.azure.com/providers/MICROSOFT.TESTBASE/locations/WESTUS/operationStatuses/5b0a0eba-9487-411a-abdd-6aa12cc8d3fd*B91D9DCE4897B22607EFF0E21B7CDE4BEF5F59D1F7664BB8C638ADB23926DFDB?api-version=2022-04-01-preview" } - }, - "200": {} + } } } diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/testbase.json b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/testbase.json index 683cab8bd1e6..462b3740c5e0 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/testbase.json +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2023-11-01-preview/testbase.json @@ -967,7 +967,8 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The resource name of a first party application." + "description": "The resource name of a first party application.", + "pattern": "^[A-Za-z0-9]([A-Za-z0-9]|(-[A-Za-z0-9]))+$" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1196,7 +1197,8 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The resource name of a gallery application SKU." + "description": "The resource name of a gallery application SKU.", + "pattern": "^[A-Za-z0-9]([A-Za-z0-9]|(-[A-Za-z0-9]))+$" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -3131,7 +3133,8 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The resource name of an Available In-place Upgrade OS." + "description": "The resource name of an Available In-place Upgrade OS.", + "pattern": "^[A-Za-z0-9]([A-Za-z0-9_]|(-{1,3}[A-Za-z0-9]))+$" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -6500,7 +6503,8 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The resource name of a gallery application." + "description": "The resource name of a gallery application.", + "pattern": "^[A-Za-z0-9]([A-Za-z0-9]|(-[A-Za-z0-9]))+$" }, "KeywordParameter": { "name": "keyword", @@ -6533,7 +6537,8 @@ "modelAsString": true }, "x-ms-parameter-location": "method", - "description": "The name of the free hour balance of a Test Base Account." + "description": "The name of the free hour balance of a Test Base Account.", + "pattern": "^[A-Za-z]+$" } } }