From 886267cb0c43fc33535d5d2b44479cf6a0b641d3 Mon Sep 17 00:00:00 2001 From: khannarheams <47536412+khannarheams@users.noreply.github.com> Date: Fri, 10 Mar 2023 14:41:25 -0800 Subject: [PATCH] Move from azure-rest-api-specs-pr to azure-rest-api-specs (#23023) * Move from azure-rest-api-specs-pr to azure-rest-api-specs * Update customer words --- custom-words.txt | 5 + .../preview/2021-03-01-preview/chambers.json | 1042 +++++++++++++++++ .../2021-03-01-preview/connectors.json | 909 ++++++++++++++ .../examples/ChambersCreateOrUpdate.json | 41 + .../examples/ChambersDelete.json | 20 + .../examples/ChambersGet.json | 14 + .../examples/ChambersGetUploadUri.json | 19 + .../examples/ChambersLicenseRestart.json | 18 + .../examples/ChambersLicenseUpdate.json | 22 + .../examples/ChambersList.json | 13 + .../examples/ChambersPatch.json | 41 + .../examples/ChambersRestart.json | 17 + .../examples/ChambersStart.json | 17 + .../examples/ChambersStop.json | 17 + .../examples/ConnectorsCreateOrUpdate.json | 41 + .../examples/ConnectorsDelete.json | 21 + .../examples/ConnectorsGet.json | 15 + .../examples/ConnectorsLicenseAdd.json | 21 + .../examples/ConnectorsList.json | 14 + .../examples/ConnectorsPatch.json | 41 + .../examples/ConnectorsRestart.json | 18 + .../examples/ConnectorsStart.json | 18 + .../examples/ConnectorsStop.json | 18 + .../examples/FileRequestsGet.json | 15 + .../examples/FileRequestsGetDownloadUri.json | 20 + .../examples/FileRequestsList.json | 72 ++ .../examples/FileRequestsManage.json | 24 + .../examples/FilesDownloadRequest.json | 21 + .../2021-03-01-preview/examples/FilesGet.json | 15 + .../examples/FilesList.json | 44 + .../examples/FilesManage.json | 25 + .../examples/StoragesCreateOrUpdate.json | 56 + .../examples/StoragesDelete.json | 21 + .../examples/StoragesGet.json | 28 + .../examples/StoragesList.json | 45 + .../examples/StoragesPatch.json | 40 + .../examples/WorkbenchesCreateOrUpdate.json | 26 + .../examples/WorkbenchesDelete.json | 19 + .../examples/WorkbenchesGet.json | 18 + .../WorkbenchesListByResourceGroup.json | 12 + .../WorkbenchesListBySubscription.json | 11 + .../examples/WorkbenchesOperationList.json | 8 + .../examples/WorkbenchesPatch.json | 25 + .../examples/WorkloadsCreateOrUpdate.json | 44 + .../examples/WorkloadsDelete.json | 21 + .../examples/WorkloadsGet.json | 24 + .../examples/WorkloadsList.json | 37 + .../examples/WorkloadsPatch.json | 44 + .../examples/WorkloadsRestart.json | 18 + .../examples/WorkloadsStart.json | 18 + .../examples/WorkloadsStop.json | 18 + .../2021-03-01-preview/fileRequests.json | 493 ++++++++ .../preview/2021-03-01-preview/files.json | 476 ++++++++ .../2021-03-01-preview/modsimworkbenches.json | 656 +++++++++++ .../preview/2021-03-01-preview/storages.json | 490 ++++++++ .../preview/2021-03-01-preview/workloads.json | 708 +++++++++++ .../resource-manager/readme.cli.md | 1 + .../resource-manager/readme.csharp.md | 15 + .../resource-manager/readme.go.md | 12 + .../resource-manager/readme.md | 88 ++ .../resource-manager/readme.python.md | 22 + .../resource-manager/readme.typescript.md | 14 + 62 files changed, 6146 insertions(+) create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/chambers.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/connectors.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersCreateOrUpdate.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersDelete.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersGet.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersGetUploadUri.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersLicenseRestart.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersLicenseUpdate.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersList.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersPatch.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersRestart.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersStart.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersStop.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsCreateOrUpdate.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsDelete.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsGet.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsLicenseAdd.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsList.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsPatch.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsRestart.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsStart.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsStop.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsGet.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsGetDownloadUri.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsList.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsManage.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesDownloadRequest.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesGet.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesList.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesManage.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesCreateOrUpdate.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesDelete.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesGet.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesList.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesPatch.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesCreateOrUpdate.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesDelete.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesGet.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesListByResourceGroup.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesListBySubscription.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesOperationList.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesPatch.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsCreateOrUpdate.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsDelete.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsGet.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsList.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsPatch.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsRestart.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsStart.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsStop.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/fileRequests.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/files.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/modsimworkbenches.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/storages.json create mode 100644 specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/workloads.json create mode 100644 specification/modsimworkbench/resource-manager/readme.cli.md create mode 100644 specification/modsimworkbench/resource-manager/readme.csharp.md create mode 100644 specification/modsimworkbench/resource-manager/readme.go.md create mode 100644 specification/modsimworkbench/resource-manager/readme.md create mode 100644 specification/modsimworkbench/resource-manager/readme.python.md create mode 100644 specification/modsimworkbench/resource-manager/readme.typescript.md diff --git a/custom-words.txt b/custom-words.txt index a31ff8556c22..0d4c3b1e1859 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1026,6 +1026,7 @@ installableupdates integrationaccount integrationruntimes Intelli +Interdomain intervaled Intraorg intset @@ -1240,6 +1241,7 @@ Lumia LUNs Luxembourgish Lminimal +lmhost machinelearning machinelearningcompute machinelearningexperimentation @@ -1341,6 +1343,7 @@ mltable ML's mnist modelmanagement +modsimworkbenches modifiedtime MODIFYACLENTRIES monitoringconfiguration @@ -1514,6 +1517,8 @@ offboarding officedocument OLTP OIDC +OTDS +Otds onboarded Onboarding Onboards diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/chambers.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/chambers.json new file mode 100644 index 000000000000..9011da73e327 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/chambers.json @@ -0,0 +1,1042 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.ModSimWorkbench", + "description": "Microsoft.ModSimWorkbench resource provider OpenAPI Spec", + "version": "2021-03-01-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}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{name}/getUploadUri": { + "post": { + "tags": [ + "chambers_GetUploadUri" + ], + "summary": "Gets a URI to upload files to the specified Chamber resource.", + "operationId": "chambers_GetUploadUri", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "the file upload parameters.", + "schema": { + "$ref": "#/definitions/FileUploadParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GetUploadUri" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Chambers get upload Uri": { + "$ref": "./examples/ChambersGetUploadUri.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{name}/start": { + "post": { + "tags": [ + "chambers_Start" + ], + "summary": "Perform Start operation.", + "operationId": "chambers_Start", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the chamber name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Chambers start": { + "$ref": "./examples/ChambersStart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{name}/stop": { + "post": { + "tags": [ + "chambers_Stop" + ], + "summary": "Perform Stop operation.", + "operationId": "chambers_Stop", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the chamber name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Chambers stop": { + "$ref": "./examples/ChambersStop.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{name}/restart": { + "post": { + "tags": [ + "chambers_Restart" + ], + "summary": "Perform Restart operation.", + "operationId": "chambers_Restart", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the chamber name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Chambers Restart": { + "$ref": "./examples/ChambersRestart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{name}/licenseUpdate": { + "post": { + "tags": [ + "chambers_LicenseUpdate" + ], + "summary": "Perform Update LicenseServices operation.", + "operationId": "chambers_LicenseUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "the update license services parameters.", + "schema": { + "$ref": "#/definitions/UpdateLicenseParameters" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Update chamber license": { + "$ref": "./examples/ChambersLicenseUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{name}/licenseRestart": { + "post": { + "tags": [ + "chambers_LicenseRestart" + ], + "summary": "Perform License Restart operation.", + "operationId": "chambers_LicenseRestart", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Restart License body", + "schema": { + "$ref": "#/definitions/RestartLicenseParameters" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Chamber License Restart": { + "$ref": "./examples/ChambersLicenseRestart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}": { + "put": { + "tags": [ + "chambers_CreateOrUpdate" + ], + "operationId": "chambers_CreateOrUpdate", + "description": "Creates or updates the specified Chamber.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the create or update chamber operation.", + "schema": { + "$ref": "#/definitions/Chamber" + } + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting chamber resource.", + "schema": { + "$ref": "#/definitions/Chamber" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting chamber resource.", + "schema": { + "$ref": "#/definitions/Chamber" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create Chamber": { + "$ref": "./examples/ChambersCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "chambers_Update" + ], + "operationId": "chambers_Update", + "description": "Updates the specified Chamber.", + "consumes": [ + "application/merge-patch+json", + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the create or update Chamber operation.", + "schema": { + "$ref": "#/definitions/Chamber" + } + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Chamber resource.", + "schema": { + "$ref": "#/definitions/Chamber" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Chamber resource.", + "schema": { + "$ref": "#/definitions/Chamber" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Update Chamber": { + "$ref": "./examples/ChambersPatch.json" + } + } + }, + "get": { + "tags": [ + "chambers_Get" + ], + "operationId": "chambers_Get", + "description": "Gets information about the specified Chamber.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the specified Chamber.", + "schema": { + "$ref": "#/definitions/Chamber" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Get Chamber": { + "$ref": "./examples/ChambersGet.json" + } + } + }, + "delete": { + "tags": [ + "chambers_Delete" + ], + "operationId": "chambers_Delete", + "description": "Deletes the specified Chamber.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + } + ], + "responses": { + "200": { + "description": "The operation is completed successfully", + "schema": { + "$ref": "#/definitions/Chamber" + } + }, + "204": { + "description": "Request is successful. Resource with the specified name does not exist." + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete Chamber": { + "$ref": "./examples/ChambersDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers": { + "get": { + "tags": [ + "chambers_List" + ], + "operationId": "chambers_List", + "description": "Lists all Chambers.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the list of all Chambers", + "schema": { + "$ref": "#/definitions/ChamberPageableList" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Chambers": { + "$ref": "./examples/ChambersList.json" + } + } + } + } + }, + "definitions": { + "ChamberPageableList": { + "description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.", + "type": "object", + "properties": { + "nextLink": { + "description": "Gets or sets the URL (link) to the next result set.", + "type": "string" + }, + "value": { + "description": "Gets or sets the values to emit from this list.", + "type": "array", + "items": { + "$ref": "#/definitions/Chamber" + }, + "x-ms-identifiers": [ + "value" + ] + } + } + }, + "FileUploadParameters": { + "description": "File Upload Parameters DTO.", + "type": "object", + "properties": { + "fileSize": { + "format": "int64", + "description": "Gets or sets the size of the file being uploaded.", + "type": "integer", + "example": 1073741824 + } + } + }, + "RestartLicenseParameters": { + "description": "File Upload Parameters DTO.", + "type": "object", + "properties": { + "licenseService": { + "description": "Gets or sets the license service to update.", + "type": "string", + "enum": [ + "ansys", + "cadence", + "siemens", + "synopsys" + ], + "x-ms-enum": { + "name": "LicenseService", + "modelAsString": true + } + } + } + }, + "UpdateLicenseParameters": { + "description": "File Upload Parameters DTO.", + "type": "object", + "properties": { + "licenseService": { + "description": "Gets or sets the license service to update.", + "type": "string", + "enum": [ + "ansys", + "cadence", + "siemens", + "synopsys" + ], + "x-ms-enum": { + "name": "LicenseService", + "modelAsString": true + } + }, + "enable": { + "description": "Switch to show if License Service is activated.", + "type": "boolean" + }, + "licenseKey": { + "description": "EDA License file contents", + "type": "string" + } + } + }, + "Ansys": { + "type": "object", + "description": "Ansys Common Licensing.", + "properties": { + "enable": { + "type": "boolean", + "description": "Switch to show if License Service is activated." + }, + "server": { + "type": "string", + "description": "License Service server." + }, + "lmhostId": { + "type": "array", + "description": "Unique identifier of ModSim Workbench chamber license servers used by FlexNet Licensing Service.", + "items": { + "type": "string" + }, + "x-ms-identifiers": [ + "lmhostId" + ] + } + } + }, + "Cadence": { + "type": "object", + "description": "Cadence License Manager", + "properties": { + "enable": { + "type": "boolean", + "description": "Switch to show if License Service is activated." + }, + "server": { + "type": "string", + "description": "License Service server." + }, + "lmhostId": { + "type": "array", + "description": "Unique identifier of ModSim Workbench chamber license servers used by FlexNet Licensing Service.", + "items": { + "type": "string" + }, + "x-ms-identifiers": [ + "lmhostId" + ] + }, + "mfp": { + "type": "array", + "description": "License server information for Cadence License Manager.", + "items": { + "type": "string" + }, + "x-ms-identifiers": [ + "mfp" + ] + } + } + }, + "Siemens": { + "type": "object", + "description": "Siemens Standard Licensing.", + "properties": { + "enable": { + "type": "boolean", + "description": "Switch to show if License Service is activated." + }, + "server": { + "type": "string", + "description": "License Service server." + }, + "lmhostId": { + "type": "array", + "description": "Unique identifier of ModSim Workbench chamber license servers used by FlexNet Licensing Service.", + "items": { + "type": "string" + }, + "x-ms-identifiers": [ + "lmhostId" + ] + } + } + }, + "Synopsys": { + "type": "object", + "description": "Synopsys Common Licensing", + "properties": { + "enable": { + "type": "boolean", + "description": "Switch to show if License Service is activated." + }, + "server": { + "type": "string", + "description": "License Service server." + }, + "vmUuid": { + "type": "array", + "description": "Virtual machine universal unique identifier of ModSim Workbench chamber license servers used by FlexNet Licensing Service.", + "items": { + "type": "string" + }, + "x-ms-identifiers": [ + "vmUuid" + ] + } + } + }, + "ChamberPropertiesFormat": { + "type": "object", + "properties": { + "licenseServices": { + "x-ms-client-flatten": true, + "readOnly": true, + "description": "Gets or sets the license services for each EDA vendor.", + "type": "object", + "properties": { + "cadence": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/Cadence", + "description": "Gets or sets the cadence properties." + }, + "ansys": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/Ansys", + "description": "Gets or sets the ansys properties." + }, + "siemens": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/Siemens", + "description": "Gets or sets the siemens properties." + }, + "synopsys": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/Synopsys", + "description": "Gets or sets the synopsys properties." + } + } + }, + "provisioningState": { + "$ref": "./modsimworkbenches.json#/definitions/ProvisioningState", + "description": "Gets the status of the Chamber at the time the operation was called" + } + }, + "description": "Chamber properties." + }, + "GetUploadUri": { + "description": "Datasync file upload SAS token", + "type": "object", + "properties": { + "result": { + "type": "string", + "description": "Datasync file upload SAS token" + } + } + }, + "Chamber": { + "description": "Chamber resource", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ChamberPropertiesFormat", + "description": "Chamber properties.", + "type": "object" + } + }, + "allOf": [ + { + "$ref": "./modsimworkbenches.json#/definitions/Resource" + } + ] + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/connectors.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/connectors.json new file mode 100644 index 000000000000..762e6d9957bb --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/connectors.json @@ -0,0 +1,909 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.ModSimWorkbench", + "description": "Microsoft.ModSimWorkbench resource provider OpenAPI Spec", + "version": "2021-03-01-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}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/connectors/{name}/start": { + "post": { + "tags": [ + "connectors_Start" + ], + "summary": "Perform Start operation.", + "operationId": "connectors_Start", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "required": true, + "type": "string", + "description": "Name of the resource group" + }, + { + "in": "path", + "name": "workbenchName", + "required": true, + "type": "string", + "description": "Name of the workbench" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string", + "description": "Name of the connector" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Connectors Start": { + "$ref": "./examples/ConnectorsStart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/connectors/{name}/stop": { + "post": { + "tags": [ + "connectors_Stop" + ], + "summary": "Perform Stop operation.", + "operationId": "connectors_Stop", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the connector name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Connectors stop": { + "$ref": "./examples/ConnectorsStop.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/connectors/{name}/restart": { + "post": { + "tags": [ + "connectors_Restart" + ], + "summary": "Perform Restart operation.", + "operationId": "connectors_Restart", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the connector name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Connectors Restart": { + "$ref": "./examples/ConnectorsRestart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/connectors/{connectorName}": { + "put": { + "tags": [ + "connectors_CreateOrUpdate" + ], + "operationId": "connectors_CreateOrUpdate", + "description": "Creates or updates the specified connector.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the create or update connector operation.", + "schema": { + "$ref": "#/definitions/Connector" + } + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Connector resource.", + "schema": { + "$ref": "#/definitions/Connector" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Connector resource.", + "schema": { + "$ref": "#/definitions/Connector" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create Connector": { + "$ref": "./examples/ConnectorsCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "connectors_Update" + ], + "operationId": "connectors_Update", + "description": "Updates the specified connectors.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the create or update connector operation.", + "schema": { + "$ref": "#/definitions/Connector" + } + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Connector resource.", + "schema": { + "$ref": "#/definitions/Connector" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Connector resource.", + "schema": { + "$ref": "#/definitions/Connector" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Update Connector": { + "$ref": "./examples/ConnectorsPatch.json" + } + } + }, + "get": { + "tags": [ + "connectors_Get" + ], + "operationId": "connectors_Get", + "description": "Gets information about the specified connector.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the specified connector.", + "schema": { + "$ref": "#/definitions/Connector" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Get Connector": { + "$ref": "./examples/ConnectorsGet.json" + } + } + }, + "delete": { + "tags": [ + "connectors_Delete" + ], + "operationId": "connectors_Delete", + "description": "Deletes the specified connector.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + } + ], + "responses": { + "200": { + "description": "The operation is completed successfully", + "schema": { + "$ref": "#/definitions/Connector" + } + }, + "204": { + "description": "Request is successful. Resource with the specified name does not exist." + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete Connector": { + "$ref": "./examples/ConnectorsDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/connectors": { + "get": { + "tags": [ + "connectors_List" + ], + "operationId": "connectors_List", + "description": "Lists all connectors.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the list of all connectors", + "schema": { + "$ref": "#/definitions/ConnectorPageableList" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all connectors": { + "$ref": "./examples/ConnectorsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/connectors/{name}/licenseAdd": { + "post": { + "tags": [ + "connectors_LicenseAdd" + ], + "description": "Add license to an ModSim Workbench connector.", + "operationId": "connectors_LicenseAdd", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "required": true, + "type": "string", + "description": "The name of the resource group" + }, + { + "in": "path", + "name": "workbenchName", + "required": true, + "type": "string", + "description": "The name of the workbench" + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "in": "body", + "name": "body", + "required": true, + "description": "License key parameters", + "schema": { + "$ref": "#/definitions/LicenseKeyParameters" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Connectors License Add": { + "$ref": "./examples/ConnectorsLicenseAdd.json" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] + } + } + }, + "definitions": { + "RemoteDesktop": { + "type": "object", + "description": "Remote Desktop properties.", + "properties": { + "etx": { + "$ref": "#/definitions/Etx", + "description": "The etx object." + } + } + }, + "Etx": { + "type": "object", + "properties": { + "connectionNodeCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The connection node count." + }, + "licenseActivated": { + "description": "The license activated.", + "type": "string", + "readOnly": true, + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "licenseActivated", + "modelAsString": true + } + }, + "replyUrlEtx": { + "description": "The reply URL of ETX Server for Azure AD app.", + "type": "string", + "readOnly": true + }, + "replyUrlOtds": { + "description": "The reply URL of OTDS for Azure AD app.", + "type": "string", + "readOnly": true + }, + "licenseKeyUri": { + "description": "The license key uri.", + "type": "string" + } + }, + "description": "Etx properties." + }, + "AccessConfiguration": { + "type": "object", + "description": "Access configuration properties.", + "properties": { + "accessType": { + "description": "Gets or sets the AccessType.", + "type": "string", + "readOnly": true, + "enum": [ + "GUI" + ], + "x-ms-enum": { + "name": "AccessType", + "modelAsString": true + } + }, + "gatewayType": { + "description": "Gets or sets the GatewayType.", + "type": "string", + "enum": [ + "ExpressRoute", + "None", + "Vpn" + ], + "x-ms-enum": { + "name": "GatewayType", + "modelAsString": true + } + }, + "gatewayVnetId": { + "type": "string", + "description": "Gets or sets the GatewayVnetId." + }, + "accessUrl": { + "type": "string", + "readOnly": true, + "description": "Gets or sets the AccessUrl." + }, + "ipAddress": { + "type": "string", + "readOnly": true, + "description": "Gets or sets the IpAddress." + } + } + }, + "NetworkAcls": { + "type": "object", + "description": "Access configuration properties.", + "properties": { + "allowedAddressSpaces": { + "type": "array", + "description": "Gets or sets the AllowedAddressSpaces.", + "items": { + "type": "string" + }, + "x-ms-identifiers": [ + "allowedAddressSpaces" + ] + } + } + }, + "ConnectorPageableList": { + "description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.", + "type": "object", + "properties": { + "nextLink": { + "description": "Gets or sets the URL (link) to the next result set.", + "type": "string" + }, + "value": { + "description": "Gets or sets the values to emit from this list.", + "type": "array", + "items": { + "$ref": "#/definitions/Connector" + }, + "x-ms-identifiers": [ + "value" + ] + } + } + }, + "ConnectorPropertiesFormat": { + "type": "object", + "properties": { + "accessConfigurations": { + "type": "object", + "items": { + "$ref": "#/definitions/AccessConfiguration" + }, + "description": "Gets or sets the Access Configuration." + }, + "remoteDesktop": { + "type": "object", + "items": { + "$ref": "#/definitions/RemoteDesktop" + }, + "description": "Gets or sets the Remote Desktop." + }, + "networkAcls": { + "type": "object", + "items": { + "$ref": "#/definitions/NetworkAcls" + }, + "description": "Specifies set of source IP address ranges to allow access the ModSim Workbench workbench." + }, + "provisioningState": { + "$ref": "./modsimworkbenches.json#/definitions/ProvisioningState", + "description": "Gets the status of the connector at the time the operation was called" + } + }, + "description": "Connector properties." + }, + "Connector": { + "description": "Connector resource", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ConnectorPropertiesFormat", + "description": "Connector properties.", + "type": "object" + } + }, + "allOf": [ + { + "$ref": "./modsimworkbenches.json#/definitions/Resource" + } + ] + }, + "LicenseKeyParameters": { + "type": "object", + "description": "License Key Parameters", + "properties": { + "licenseKey": { + "x-ms-secret": true, + "description": "Value of License Key", + "type": "string" + } + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersCreateOrUpdate.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersCreateOrUpdate.json new file mode 100644 index 000000000000..0eac34671c6f --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersCreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "body": { + "location": "Central US", + "properties": { + "provisioningState": "Succeeded", + "licenseServices": { + "cadence": { + "enable": true, + "lmhostId": "000d3a6f40a1" + }, + "ansys": { + "enable": true, + "lmhostId": "000d3a6f40a1" + }, + "siemens": { + "enable": true, + "lmhostId": "000d3a6f40a1" + }, + "synopsys": { + "enable": true, + "vmUuid": "AA31075F-AFEB-0442-B40A-9AAE5D3C2830" + } + } + } + } + }, + "responses": { + "200": { + "body": {} + }, + "201": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersDelete.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersDelete.json new file mode 100644 index 000000000000..16c1bdfb86e4 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber" + }, + "responses": { + "200": { + "body": {} + }, + "204": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersGet.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersGet.json new file mode 100644 index 000000000000..8adf8587c3c0 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersGet.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersGetUploadUri.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersGetUploadUri.json new file mode 100644 index 000000000000..6d26bc3ca7fc --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersGetUploadUri.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "name": "test-chamber", + "body": { + "fileSize": 1073741824 + } + }, + "responses": { + "200": { + "body": { + "result": "test-uri" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersLicenseRestart.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersLicenseRestart.json new file mode 100644 index 000000000000..cfb2c04a0e2a --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersLicenseRestart.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "name": "test-chamber", + "licenseService": "ansys" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersLicenseUpdate.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersLicenseUpdate.json new file mode 100644 index 000000000000..7d512477333c --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersLicenseUpdate.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "name": "test-chamber", + "body": { + "licenseService": "ansys", + "enable": true, + "licenseKey": "licenseKey" + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersList.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersList.json new file mode 100644 index 000000000000..333ac8ffa0fc --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersList.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersPatch.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersPatch.json new file mode 100644 index 000000000000..0eac34671c6f --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersPatch.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "body": { + "location": "Central US", + "properties": { + "provisioningState": "Succeeded", + "licenseServices": { + "cadence": { + "enable": true, + "lmhostId": "000d3a6f40a1" + }, + "ansys": { + "enable": true, + "lmhostId": "000d3a6f40a1" + }, + "siemens": { + "enable": true, + "lmhostId": "000d3a6f40a1" + }, + "synopsys": { + "enable": true, + "vmUuid": "AA31075F-AFEB-0442-B40A-9AAE5D3C2830" + } + } + } + } + }, + "responses": { + "200": { + "body": {} + }, + "201": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersRestart.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersRestart.json new file mode 100644 index 000000000000..26fbbfef5a61 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersRestart.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "name": "test-chamber" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersStart.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersStart.json new file mode 100644 index 000000000000..26fbbfef5a61 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersStart.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "name": "test-chamber" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersStop.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersStop.json new file mode 100644 index 000000000000..26fbbfef5a61 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ChambersStop.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "name": "test-chamber" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsCreateOrUpdate.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsCreateOrUpdate.json new file mode 100644 index 000000000000..0fc07665380d --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsCreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "connectorName": "test-connector", + "body": { + "location": "Central US", + "properties": { + "accessConfigurations": { + "accessType": "GUI", + "gatewayType": "Vpn", + "gatewayVnetId": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/test-virtualNetwork", + "ipAddress": "10.1.0.0/16" + }, + "remoteDesktop": { + "Etx": { + "connectionNodeCount": 2, + "licenseActivated": true + } + }, + "networkAcls": { + "allowedAddressSpaces": [ + "10.1.0.0/16" + ] + }, + "provisioningState": "Succeeded" + } + } + }, + "responses": { + "200": { + "body": {} + }, + "201": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsDelete.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsDelete.json new file mode 100644 index 000000000000..857b53b3fd9c --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsDelete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "connectorName": "test-connector" + }, + "responses": { + "200": { + "body": {} + }, + "204": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsGet.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsGet.json new file mode 100644 index 000000000000..8ee3471c734c --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsGet.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "connectorName": "test-connector" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsLicenseAdd.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsLicenseAdd.json new file mode 100644 index 000000000000..b86293c14b2d --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsLicenseAdd.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "name": "test-connector", + "body": { + "licenseKey": "licenseKey" + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsList.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsList.json new file mode 100644 index 000000000000..8adf8587c3c0 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsList.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsPatch.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsPatch.json new file mode 100644 index 000000000000..0fc07665380d --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsPatch.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "connectorName": "test-connector", + "body": { + "location": "Central US", + "properties": { + "accessConfigurations": { + "accessType": "GUI", + "gatewayType": "Vpn", + "gatewayVnetId": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/test-virtualNetwork", + "ipAddress": "10.1.0.0/16" + }, + "remoteDesktop": { + "Etx": { + "connectionNodeCount": 2, + "licenseActivated": true + } + }, + "networkAcls": { + "allowedAddressSpaces": [ + "10.1.0.0/16" + ] + }, + "provisioningState": "Succeeded" + } + } + }, + "responses": { + "200": { + "body": {} + }, + "201": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsRestart.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsRestart.json new file mode 100644 index 000000000000..e678c6ee6209 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsRestart.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "name": "test-connector" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsStart.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsStart.json new file mode 100644 index 000000000000..e678c6ee6209 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsStart.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "name": "test-connector" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsStop.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsStop.json new file mode 100644 index 000000000000..e678c6ee6209 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/ConnectorsStop.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "name": "test-connector" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsGet.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsGet.json new file mode 100644 index 000000000000..b3f13bc819ca --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsGet.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroupName": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "requestName": "request-name" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsGetDownloadUri.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsGetDownloadUri.json new file mode 100644 index 000000000000..381e71a67fbf --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsGetDownloadUri.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroupName": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "requestName": "request-name" + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsList.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsList.json new file mode 100644 index 000000000000..0d275d7d49a4 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsList.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroupName": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "requestName": "test-request" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-request1", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/rg1/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench1/chambers/test-chamber1/fileRequests/test-request1", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/fileRequests", + "properties": { + "timestamp": "2022-06-03T03:33:30.333Z", + "fileId": "string", + "requestUserId": "string", + "linuxUsername": "string", + "status": "string", + "description": "string", + "approve": { + "id": "string", + "timestamp": "2022-06-03T03:33:30.333Z", + "userId": "string", + "description": "string" + }, + "download": { + "location": "string", + "startTime": "2022-06-03T03:33:30.333Z", + "completeTime": "2022-06-03T03:33:30.333Z" + }, + "internalMetadata": { + "sasUriId": "string" + } + } + }, + { + "name": "test-request2", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/rg2/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench2/chambers/test-chamber2/fileRequests/test-request2", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/fileRequests", + "properties": { + "timestamp": "2022-06-03T03:33:30.333Z", + "fileId": "string", + "requestUserId": "string", + "linuxUsername": "string", + "status": "string", + "description": "string", + "approve": { + "id": "string", + "timestamp": "2022-06-03T03:33:30.333Z", + "userId": "string", + "description": "string" + }, + "download": { + "location": "string", + "startTime": "2022-06-03T03:33:30.333Z", + "completeTime": "2022-06-03T03:33:30.333Z" + }, + "internalMetadata": { + "sasUriId": "string" + } + } + } + ] + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsManage.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsManage.json new file mode 100644 index 000000000000..be12f1031c44 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FileRequestsManage.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroupName": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "requestName": "request-name", + "body": { + "action": "Approve", + "description": "Manage ModSim Workbench chamber data pipeline file request" + } + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesDownloadRequest.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesDownloadRequest.json new file mode 100644 index 000000000000..1da6a1dbbd32 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesDownloadRequest.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroupName": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "fileName": "test-file", + "description": "Request to download files from an ModSim Workbench chamber data pipeline." + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesGet.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesGet.json new file mode 100644 index 000000000000..15c3feae0d42 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesGet.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroupName": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "fileName": "test-file" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesList.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesList.json new file mode 100644 index 000000000000..1c020fc388eb --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroupName": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "fileName": "test-file" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-file1", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/rg1/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench1/chambers/test-chamber1/files/test-file1", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/files", + "properties": { + "timestamp": "2022-06-03T03:33:30.333Z", + "dataPipeline": "", + "requestId": "", + "filePath": "", + "size": 1073741824, + "checksum": "" + } + }, + { + "name": "test-file2", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/rg2/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench2/chambers/test-chamber2/files/test-file2", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/files", + "properties": { + "timestamp": "2022-06-03T03:33:30.333Z", + "dataPipeline": "", + "requestId": "", + "filePath": "", + "size": 1073741824, + "checksum": "" + } + } + ] + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesManage.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesManage.json new file mode 100644 index 000000000000..5437abaadd7c --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/FilesManage.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroupName": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "fileName": "test-file", + "body": { + "dataPipeline": "Outbound", + "action": "Delete", + "force": "False" + } + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesCreateOrUpdate.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesCreateOrUpdate.json new file mode 100644 index 000000000000..21e2476e7bdc --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesCreateOrUpdate.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "storageName": "test-storage", + "body": { + "location": "Central US", + "properties": { + "provisioningState": "Succeeded", + "capacityAllocated": 4, + "performanceTier": "Premium", + "localMountPath": "/mount/private", + "dataPipelineInboundPath": "/mount/private/datain", + "dataPipelineOutboundPath": "/mount/private/dataout", + "capacityUsed": 2 + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-storage", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/storages/test-storage", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/storages", + "properties": { + "provisioningState": "Succeeded", + "capacityAllocated": 4, + "performanceTier": "Premium", + "localMountPath": "/mount/private", + "dataPipelineInboundPath": "/mount/private/datain", + "dataPipelineOutboundPath": "/mount/private/dataout", + "capacityUsed": 2 + } + } + }, + "201": { + "body": { + "name": "test-storage", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/storages/test-storage", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/storages", + "properties": { + "provisioningState": "Succeeded", + "capacityAllocated": 4, + "performanceTier": "Premium", + "localMountPath": "/mount/private", + "dataPipelineInboundPath": "/mount/private/datain", + "dataPipelineOutboundPath": "/mount/private/dataout", + "capacityUsed": 2 + } + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesDelete.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesDelete.json new file mode 100644 index 000000000000..bdedfe27755b --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesDelete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "storageName": "test-storage" + }, + "responses": { + "200": { + "body": {} + }, + "204": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesGet.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesGet.json new file mode 100644 index 000000000000..094ff15fd191 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "storageName": "test-storage" + }, + "responses": { + "200": { + "body": { + "name": "test-storage", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/storages/test-storage", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/storages", + "properties": { + "provisioningState": "Succeeded", + "capacityAllocated": 4, + "performanceTier": "Premium", + "localMountPath": "/mount/private", + "dataPipelineInboundPath": "/mount/private/datain", + "dataPipelineOutboundPath": "/mount/private/dataout", + "capacityUsed": 2 + } + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesList.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesList.json new file mode 100644 index 000000000000..3cdf8048a699 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-storage", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/storages/test-storage", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/storages", + "properties": { + "provisioningState": "Succeeded", + "capacityAllocated": 4, + "performanceTier": "Premium", + "localMountPath": "/mount/private", + "dataPipelineInboundPath": "/mount/private/datain", + "dataPipelineOutboundPath": "/mount/private/dataout", + "capacityUsed": 2 + } + }, + { + "name": "test-storage2", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/storages/test-storage2", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/storages", + "properties": { + "provisioningState": "Succeeded", + "capacityAllocated": 4, + "performanceTier": "Standard", + "localMountPath": "/mount/private", + "dataPipelineInboundPath": "/mount/private/datain", + "dataPipelineOutboundPath": "/mount/private/dataout", + "capacityUsed": 4 + } + } + ] + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesPatch.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesPatch.json new file mode 100644 index 000000000000..0777a8f85542 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/StoragesPatch.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "rg1", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "storageName": "test-storage", + "body": { + "location": "Central US", + "properties": { + "provisioningState": "Succeeded", + "capacityAllocated": 4, + "performanceTier": "Premium", + "localMountPath": "/mount/private", + "dataPipelineInboundPath": "/mount/private/datain", + "dataPipelineOutboundPath": "/mount/private/dataout", + "capacityUsed": 2 + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-storage", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbenchWorkbench/workbenches/test-workbench/chambers/test-chamber/storages/test-storage", + "type": "Microsoft.ModSimWorkbenchWorkbench/workbenches/chambers/storages", + "properties": { + "provisioningState": "Succeeded", + "capacityAllocated": 4, + "performanceTier": "Premium", + "localMountPath": "/mount/private", + "dataPipelineInboundPath": "/mount/private/datain", + "dataPipelineOutboundPath": "/mount/private/dataout", + "capacityUsed": 2 + } + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesCreateOrUpdate.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesCreateOrUpdate.json new file mode 100644 index 000000000000..ec10b2442219 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesCreateOrUpdate.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "rg1", + "name": "test-workbench", + "body": { + "properties": { + "addressSpace": "192.168.0.0/24", + "appOidc": { + "clientId": "test-clientid", + "secretUri": "test-clientsecret" + }, + "sku": "Basic" + } + } + }, + "responses": { + "200": { + "body": {} + }, + "201": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesDelete.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesDelete.json new file mode 100644 index 000000000000..1826fc8dbc0b --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "test-resourcegroup", + "name": "test-workbench" + }, + "responses": { + "200": { + "body": {} + }, + "204": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesGet.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesGet.json new file mode 100644 index 000000000000..319a6b9ab76f --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesGet.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "rg1", + "name": "test-workbench" + }, + "responses": { + "200": { + "body": {} + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesListByResourceGroup.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesListByResourceGroup.json new file mode 100644 index 000000000000..30feeb892cff --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesListByResourceGroup.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "rg1" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesListBySubscription.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesListBySubscription.json new file mode 100644 index 000000000000..00a3f8836541 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesListBySubscription.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesOperationList.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesOperationList.json new file mode 100644 index 000000000000..34d69238264d --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesOperationList.json @@ -0,0 +1,8 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview" + }, + "responses": { + "200": {} + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesPatch.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesPatch.json new file mode 100644 index 000000000000..b4df81d1f55b --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkbenchesPatch.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "rg1", + "name": "test-workbench", + "body": { + "properties": { + "addressSpace": "192.168.0.0/24", + "appOidc": { + "clientId": "test-clientid", + "secretUri": "test-clientsecret" + } + } + } + }, + "responses": { + "200": { + "body": {} + }, + "201": { + "body": {} + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsCreateOrUpdate.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsCreateOrUpdate.json new file mode 100644 index 000000000000..4ac3a334cc7e --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsCreateOrUpdate.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "workloadName": "test-workload", + "body": { + "location": "Central US", + "properties": { + "vmSize": "Standard_HC44rs", + "edaType": "Common", + "provisioningState": "Succeeded" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-workload", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/workloads/test-workload", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/workloads", + "properties": { + "provisioningState": "Succeeded", + "vmSize": "Standard_D4d_v4", + "edaType": "Common" + } + } + }, + "201": { + "body": { + "name": "test-workload", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/workloads/test-workload", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/workloads", + "properties": { + "provisioningState": "Succeeded", + "vmSize": "Standard_D4d_v4", + "edaType": "Common" + } + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsDelete.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsDelete.json new file mode 100644 index 000000000000..aedd77df8a17 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsDelete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "workloadName": "test-workload" + }, + "responses": { + "200": { + "body": {} + }, + "204": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsGet.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsGet.json new file mode 100644 index 000000000000..c812f5352b73 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "workloadName": "test-workload" + }, + "responses": { + "200": { + "body": { + "name": "test-workload", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/rg1/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench1/chambers/test-chamber1/workloads/test-workload", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/workloads", + "properties": { + "provisioningState": "Succeeded", + "vmSize": "Standard_D4d_v4", + "edaType": "Common" + } + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsList.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsList.json new file mode 100644 index 000000000000..d68eb47f0908 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-workload1", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/rg1/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench1/chambers/test-chamber1/workloads/test-workload1", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/workloads", + "properties": { + "provisioningState": "Succeeded", + "vmSize": "Standard_D4d_v4", + "edaType": "Common" + } + }, + { + "name": "test-workload2", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/rg2/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench2/chambers/test-chamber2/workloads/test-workload2", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/workloads", + "properties": { + "provisioningState": "Succeeded", + "vmSize": "Standard_D4d_v4", + "edaType": "Common" + } + } + ] + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsPatch.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsPatch.json new file mode 100644 index 000000000000..f269cc49ebac --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsPatch.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "rg1", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "workloadName": "test-workload", + "body": { + "location": "Central US", + "properties": { + "vmSize": "Standard_HC44rs", + "edaType": "Common", + "provisioningState": "Succeeded" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-workload", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/workloads/test-workload", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/workloads", + "properties": { + "provisioningState": "Succeeded", + "vmSize": "Standard_D4d_v4", + "edaType": "Common" + } + } + }, + "201": { + "body": { + "name": "test-workload", + "id": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.ModSimWorkbench/workbenches/test-workbench/chambers/test-chamber/workloads/test-workload", + "type": "Microsoft.ModSimWorkbench/workbenches/chambers/workloads", + "properties": { + "provisioningState": "Succeeded", + "vmSize": "Standard_D4d_v4", + "edaType": "Common" + } + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsRestart.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsRestart.json new file mode 100644 index 000000000000..08cf0416c85b --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsRestart.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "name": "test-workload" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsStart.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsStart.json new file mode 100644 index 000000000000..08cf0416c85b --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsStart.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "name": "test-workload" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsStop.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsStop.json new file mode 100644 index 000000000000..08cf0416c85b --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/examples/WorkloadsStop.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "d9f252e3-8046-4707-bfbd-e5b9e6011e07", + "resourceGroup": "resourceGroup", + "api-version": "2021-03-01-preview", + "workbenchName": "test-workbench", + "chamberName": "test-chamber", + "name": "test-workload" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2021-10-01&operationResultResponseType=Location" + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/fileRequests.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/fileRequests.json new file mode 100644 index 000000000000..0833f330b25f --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/fileRequests.json @@ -0,0 +1,493 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.ModSimWorkbench", + "description": "Microsoft.ModSimWorkbench resource provider OpenAPI Spec", + "version": "2021-03-01-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}/resourceGroups/{resourceGroupName}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/fileRequests/{requestName}": { + "get": { + "tags": [ + "fileRequests_Get" + ], + "operationId": "fileRequests_Get", + "summary": "Get a specific ModSim Workbench chamber data pipeline file request resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "requestName", + "description": "the request name.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Request" + } + }, + "default": { + "description": "Default error response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "x-ms-examples": { + "Request Get": { + "$ref": "./examples/FileRequestsGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/fileRequests/{requestName}/manage": { + "post": { + "tags": [ + "fileRequestsName_manage" + ], + "summary": "Manage download file requests in an ModSim Workbench chamber Data pipeline.", + "operationId": "fileRequests_manage", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "requestName", + "description": "the file request name.", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Manage download file requests parameters.", + "schema": { + "$ref": "#/definitions/FileRequestsManageParameters" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FileRequestsManage" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Files Data Inbound Sync": { + "$ref": "./examples/FileRequestsManage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/fileRequests/{requestName}/getDownloadUri": { + "post": { + "tags": [ + "fileRequest_getDownloadUri" + ], + "summary": "Get SAS URI to download a file from an ModSim Workbench chamber data pipeline.", + "operationId": "fileRequest_getDownloadUri", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "requestName", + "description": "the file request name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FileDownloadSasUri" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Files Data Inbound Sync": { + "$ref": "./examples/FileRequestsGetDownloadUri.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/fileRequests": { + "get": { + "tags": [ + "fileRequests_List" + ], + "operationId": "fileRequests_List", + "description": "Get ModSim Workbench chamber data pipeline file request resource collection.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the list of all files", + "schema": { + "$ref": "#/definitions/RequestPageableList" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all files": { + "$ref": "./examples/FileRequestsList.json" + } + } + } + } + }, + "definitions": { + "RequestPageableList": { + "description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.", + "type": "object", + "properties": { + "nextLink": { + "description": "Gets or sets the URL (link) to the next result set.", + "type": "string" + }, + "value": { + "description": "Gets or sets the values to emit from this list.", + "type": "array", + "items": { + "$ref": "#/definitions/Request" + }, + "x-ms-identifiers": [ + "value" + ] + } + } + }, + "FileRequestsManage": { + "description": "Manage download file requests in an chamber Data pipeline.", + "type": "object", + "properties": { + "result": { + "type": "string", + "description": "Manage download file requests in an chamber Data pipeline action" + } + } + }, + "FileDownloadSasUri": { + "description": "Get SAS URI to download a file from an chamber data pipeline.", + "type": "object", + "properties": { + "result": { + "type": "string", + "description": "Get SAS URI to download a file action" + } + } + }, + "FileRequestsManageParameters": { + "description": "Manage files in an ModSim Workbench chamber data pipeline.", + "type": "object", + "properties": { + "action": { + "description": "Specifies the file management action.", + "type": "string", + "enum": [ + "Approve", + "Reject" + ], + "x-ms-enum": { + "name": "FileRequestsAction", + "modelAsString": true + } + }, + "description": { + "description": "Specifies the reason for the action.", + "type": "string" + } + } + }, + "RequestPropertiesFormat": { + "description": "File requests properties.", + "type": "object", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The timestamp for the resource creation." + }, + "fileId": { + "type": "string", + "description": "FileId for the operation" + }, + "requestUserId": { + "type": "string", + "description": "Specifies the principal ID of Azure Active Directory User who requested to download." + }, + "linuxUsername": { + "type": "string", + "description": "The ModSim Workbench chamber workloads local username used when login." + }, + "status": { + "type": "string", + "description": "The status of ModSim Workbench chamber data pipeline request." + }, + "description": { + "type": "string", + "description": "Description for the operation" + }, + "approve": { + "type": "object", + "properties": { + "id": { + "x-ms-client-flatten": true, + "type": "string", + "description": "The globally unique identifier for the approval." + }, + "description": { + "x-ms-client-flatten": true, + "type": "string", + "description": "Description of approval" + }, + "userId": { + "x-ms-client-flatten": true, + "type": "string", + "description": "Specifies the principal ID of Azure Active Directory User who approved to download." + }, + "timestamp": { + "x-ms-client-flatten": true, + "type": "string", + "format": "date-time", + "description": "The timestamp for the approval" + } + } + }, + "download": { + "type": "object", + "properties": { + "location": { + "x-ms-client-flatten": true, + "type": "string", + "description": "Download destination location." + }, + "startTime": { + "x-ms-client-flatten": true, + "type": "string", + "format": "date-time", + "description": "The timestamp for the start of download." + }, + "completeTime": { + "x-ms-client-flatten": true, + "type": "string", + "format": "date-time", + "description": "The timestamp for the completion of download." + } + } + }, + "internalMetadata": { + "type": "object", + "properties": { + "sasUriId": { + "x-ms-client-flatten": true, + "type": "string", + "description": "sas uri id" + } + } + }, + "provisioningState": { + "$ref": "./modsimworkbenches.json#/definitions/ProvisioningState", + "description": "Gets the status of the request at the time the operation was called" + } + } + }, + "Request": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RequestPropertiesFormat", + "description": "Request properties", + "type": "object" + } + }, + "allOf": [ + { + "$ref": "./modsimworkbenches.json#/definitions/Resource" + } + ], + "description": "Request resource" + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/files.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/files.json new file mode 100644 index 000000000000..da2ec7ced005 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/files.json @@ -0,0 +1,476 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.ModSimWorkbench", + "description": "Microsoft.ModSimWorkbench resource provider OpenAPI Spec", + "version": "2021-03-01-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}/resourceGroups/{resourceGroupName}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/files/{fileName}": { + "get": { + "tags": [ + "files_Get" + ], + "summary": "Get a specific ModSim Workbench chamber data pipeline file resource.", + "operationId": "files_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fileName", + "description": "the file name.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/File" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "x-ms-examples": { + "Files Get": { + "$ref": "./examples/FilesGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/files/{fileName}/manage": { + "post": { + "tags": [ + "fileChamber_manage" + ], + "summary": "Manage files in an ModSim Workbench chamber data pipeline.", + "operationId": "file_manage", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fileName", + "description": "the file name.", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Manage download file parameters.", + "schema": { + "$ref": "#/definitions/FilesManageParameters" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FilesManage" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Files Data Inbound Sync": { + "$ref": "./examples/FilesManage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/files/{fileName}/downloadRequest": { + "post": { + "tags": [ + "filesChamber_downloadRequest" + ], + "summary": "Request to download files from an ModSim Workbench chamber data pipeline.", + "operationId": "files_downloadRequest", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fileName", + "description": "the file name.", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "the file download request parameters.", + "schema": { + "$ref": "#/definitions/FilesDownloadRequestParameters" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DownloadRequest" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Files downloadRequest": { + "$ref": "./examples/FilesDownloadRequest.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/files": { + "get": { + "tags": [ + "files_List" + ], + "summary": "Get ModSim Workbench chamber data pipeline file resource collection.", + "operationId": "files_List", + "description": "Lists all files.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the list of all files", + "schema": { + "$ref": "#/definitions/FilePageableList" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all files": { + "$ref": "./examples/FilesList.json" + } + } + } + } + }, + "definitions": { + "FilePageableList": { + "description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.", + "type": "object", + "properties": { + "nextLink": { + "description": "Gets or sets the URL (link) to the next result set.", + "type": "string" + }, + "value": { + "description": "Gets or sets the values to emit from this list.", + "type": "array", + "items": { + "$ref": "#/definitions/File" + }, + "x-ms-identifiers": [ + "value" + ] + } + } + }, + "FilesManage": { + "description": "Manage files in an chamber data pipeline.", + "type": "object", + "properties": { + "result": { + "type": "string", + "description": "Manage files in an ModSim Workbench chamber data pipeline action" + } + } + }, + "DownloadRequest": { + "description": "Request to download files from an chamber data pipeline.", + "type": "object", + "properties": { + "result": { + "type": "string", + "description": "Request to download files from an ModSim Workbench chamber data pipeline action" + } + } + }, + "FilePropertiesFormat": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "./modsimworkbenches.json#/definitions/ProvisioningState", + "description": "Gets the status of the file at the time the operation was called" + }, + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The modified timestamp of the file." + }, + "dataPipeline": { + "type": "string", + "description": "The direction of ModSim Workbench chamber data pipeline where the file located." + }, + "requestId": { + "type": "string", + "description": "The resource ID of ModSim Workbench chamber data pipeline request Works and required only if requested is true." + }, + "filePath": { + "type": "string", + "description": "The Linux File System path for the ModSim Workbench chamber data pipeline file." + }, + "size": { + "type": "integer", + "format": "int64", + "description": "The size of the file.", + "example": 1073741824 + }, + "checksum": { + "type": "string", + "description": "The MD5 hash of the file." + } + }, + "description": "File properties." + }, + "File": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/FilePropertiesFormat", + "description": "File properties", + "type": "object" + } + }, + "allOf": [ + { + "$ref": "./modsimworkbenches.json#/definitions/Resource" + } + ], + "description": "File resource" + }, + "FilesManageParameters": { + "description": "Manage files in an ModSim Workbench chamber data pipeline.", + "type": "object", + "properties": { + "dataPipeline": { + "description": "Inbound or outbound of the ModSim Workbench chamber Data pipeline.", + "type": "string", + "enum": [ + "Inbound", + "Outbound" + ], + "x-ms-enum": { + "name": "dataPipeline", + "modelAsString": true + } + }, + "action": { + "description": "Specifies the file management action.", + "type": "string", + "enum": [ + "Delete", + "Archive" + ], + "x-ms-enum": { + "name": "action", + "modelAsString": true + } + }, + "force": { + "description": "Specifies whether to force delete. Works if action is Delete", + "type": "string", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "force", + "modelAsString": true + } + } + } + }, + "FilesDownloadRequestParameters": { + "description": "Request to download files from an ModSim Workbench chamber data pipeline.", + "type": "object", + "properties": { + "description": { + "description": "Specifies the reason for the download request.", + "type": "string" + } + } + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/modsimworkbenches.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/modsimworkbenches.json new file mode 100644 index 000000000000..f7d223368ddd --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/modsimworkbenches.json @@ -0,0 +1,656 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.ModSimWorkbench", + "description": "Microsoft.ModSimWorkbench resource provider OpenAPI Spec", + "version": "2021-03-01-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": { + "/providers/Microsoft.ModSimWorkbench/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists Operations.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists Operations": { + "$ref": "./examples/WorkbenchesOperationList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ModSimWorkbench/workbenches": { + "get": { + "tags": [ + "workbenches_ListBySubscription" + ], + "description": "Lists Workbenches by subscription.", + "operationId": "workbenches_ListBySubscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/WorkbenchPageableList" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Workbenches by Subscription": { + "$ref": "./examples/WorkbenchesListBySubscription.json" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches": { + "get": { + "tags": [ + "workbenches_ListByResourceGroup" + ], + "description": "Lists workbenches by resource group.", + "operationId": "workbenches_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/WorkbenchPageableList" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Workbenches by Resource Group": { + "$ref": "./examples/WorkbenchesListByResourceGroup.json" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{name}": { + "get": { + "tags": [ + "workbenches_Get" + ], + "description": "Lists workbenches.", + "operationId": "workbenches_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Workbench" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Workbenches Get": { + "$ref": "./examples/WorkbenchesGet.json" + } + } + }, + "put": { + "tags": [ + "workbenches_CreateOrUpdate" + ], + "description": "Create workbenches.", + "operationId": "workbenches_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Parameters supplied to the create or update workbench operation.", + "schema": { + "$ref": "#/definitions/Workbench" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Workbench" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Workbench resource.", + "schema": { + "$ref": "#/definitions/Workbench" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Workbenches create or update": { + "$ref": "./examples/WorkbenchesCreateOrUpdate.json" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] + }, + "patch": { + "tags": [ + "workbenches_Update" + ], + "description": "Update workbenches.", + "operationId": "workbenches_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Parameters supplied to the create or update chamber operation.", + "schema": { + "$ref": "#/definitions/Workbench" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Workbench" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Workbench resource.", + "schema": { + "$ref": "#/definitions/Workbench" + } + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Workbenches Update": { + "$ref": "./examples/WorkbenchesPatch.json" + } + } + }, + "delete": { + "tags": [ + "workbenches_Delete" + ], + "description": "Delete workbenches.", + "operationId": "workbenches_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Workbench" + } + }, + "204": { + "description": "Success, no content" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Workbenches Update": { + "$ref": "./examples/WorkbenchesDelete.json" + } + } + } + } + }, + "definitions": { + "ArmId": { + "description": "Structure that represents the components of an ARM Resource Identifier.", + "type": "string" + }, + "AzureRegion": { + "description": "Handles Azure Region strings by parsing either key (e.g eastus) or friendly name (e.g. East US).", + "type": "string" + }, + "ErrorDetail": { + "type": "object", + "description": "The error detail.", + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The error target." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetail" + }, + "description": "The error details.", + "x-ms-identifiers": [ + "details" + ] + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "description": "The error additional info.", + "x-ms-identifiers": [ + "additionalInfo" + ] + } + } + }, + "WorkbenchPageableList": { + "description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.", + "type": "object", + "properties": { + "nextLink": { + "description": "Gets or sets the URL (link) to the next result set.", + "type": "string" + }, + "value": { + "description": "Gets or sets the values to emit from this list.", + "type": "array", + "items": { + "$ref": "#/definitions/Workbench" + }, + "x-ms-identifiers": [ + "value" + ] + } + } + }, + "ProvisioningState": { + "description": "The provisioning state of resource.", + "enum": [ + "Unknown", + "Validating", + "Processing", + "Deleting", + "Accepted", + "Canceled", + "Completed", + "Succeeded", + "Failed", + "Deleted" + ], + "type": "string", + "readOnly": true + }, + "ErrorResponse": { + "type": "object", + "title": "Error response", + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", + "properties": { + "error": { + "description": "The error object.", + "$ref": "#/definitions/ErrorDetail" + } + } + }, + "ErrorAdditionalInfo": { + "type": "object", + "properties": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, + "type": "object", + "description": "The additional info." + } + }, + "description": "The resource management error additional info." + }, + "Resource": { + "type": "object", + "description": "Common resource representation.", + "x-ms-azure-resource": true, + "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." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + }, + "systemData": { + "description": "system data", + "title": "system data", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" + }, + "sku": { + "type": "string", + "description": "Name of SKU." + } + } + }, + "CidrBlock": { + "description": "this is an extension of IPAddress which includes logic related to Classes Interdomain Routing (CIDR) formatted IP Addresses. \r\nE.g. 192.168.0.0/24, most people's default class C RFC 1918 IP space for their home router", + "type": "string" + }, + "AppOidc": { + "description": "Workbench properties.", + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "Client Id" + }, + "secretUri": { + "type": "string", + "description": "Client secret" + } + } + }, + "WorkbenchPropertiesFormat": { + "type": "object", + "properties": { + "addressSpace": { + "$ref": "#/definitions/CidrBlock" + }, + "appOidc": { + "$ref": "#/definitions/AppOidc" + }, + "sku": { + "description": "Name of SKU.", + "type": "string" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Gets the status of the workbench at the time the operation was called" + } + }, + "required": [ + "appOidc" + ], + "description": "Workbench properties." + }, + "Workbench": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkbenchPropertiesFormat", + "description": "Workbench properties", + "type": "object" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Workbench resource" + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/storages.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/storages.json new file mode 100644 index 000000000000..540ce6e30ec0 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/storages.json @@ -0,0 +1,490 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.ModSimWorkbench", + "description": "Microsoft.ModSimWorkbench resource provider OpenAPI Spec", + "version": "2021-03-01-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}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/storages/{storageName}": { + "put": { + "tags": [ + "storages_CreateOrUpdate" + ], + "operationId": "storages_CreateOrUpdate", + "description": "Creates or updates the storage.", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "storageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the storage." + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the create or update storage resource.", + "schema": { + "$ref": "#/definitions/Storage" + } + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting storage resource.", + "schema": { + "$ref": "#/definitions/Storage" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting storage resource.", + "schema": { + "$ref": "#/definitions/Storage" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create storage": { + "$ref": "./examples/StoragesCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "storages_Update" + ], + "operationId": "storages_Update", + "description": "Updates the storage.", + "consumes": [ + "application/merge-patch+json", + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "storageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the storage." + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the create or update storage resource.", + "schema": { + "$ref": "#/definitions/Storage" + } + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting storage resource.", + "schema": { + "$ref": "#/definitions/Storage" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Update storage": { + "$ref": "./examples/StoragesPatch.json" + } + } + }, + "get": { + "tags": [ + "storages_Get" + ], + "operationId": "storages_Get", + "description": "Gets information about the storage.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "storageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the storage." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the storage resource.", + "schema": { + "$ref": "#/definitions/Storage" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Get Storage": { + "$ref": "./examples/StoragesGet.json" + } + } + }, + "delete": { + "tags": [ + "storages_Delete" + ], + "operationId": "storages_Delete", + "description": "Deletes the storage.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "storageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the storage." + } + ], + "responses": { + "200": { + "description": "The operation is completed successfully", + "schema": { + "$ref": "#/definitions/Storage" + } + }, + "204": { + "description": "Request is successful. Resource with the specified name does not exist." + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete Storage": { + "$ref": "./examples/StoragesDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/storages": { + "get": { + "tags": [ + "storages_List" + ], + "operationId": "storages_List", + "description": "Lists all storages.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the list of all storages", + "schema": { + "$ref": "#/definitions/StoragePageableList" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all storages": { + "$ref": "./examples/StoragesList.json" + } + } + } + } + }, + "definitions": { + "StoragePageableList": { + "description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.", + "type": "object", + "properties": { + "nextLink": { + "description": "Gets or sets the URL (link) to the next result set.", + "type": "string" + }, + "value": { + "description": "Gets or sets the values to emit from this list.", + "type": "array", + "items": { + "$ref": "#/definitions/Storage" + } + } + } + }, + "StoragePropertiesFormat": { + "description": "Storage properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "./modsimworkbenches.json#/definitions/ProvisioningState", + "description": "Gets the status of the storage at the time the operation was called" + }, + "capacityAllocated": { + "description": "Provisioned size of the ModSim Workbench chamber storage in terabytes", + "format": "int32", + "type": "integer" + }, + "performanceTier": { + "description": "Specifies performance tier of the ModSim Workbench chamber storage.", + "type": "string", + "enum": [ + "Standard", + "Premium", + "Ultra" + ], + "default": "Premium", + "x-ms-enum": { + "name": "performanceTier", + "modelAsString": true + } + }, + "localMountPath": { + "description": "Directory where the SDW Private Storage volume mounted.", + "type": "string" + }, + "dataPipelineInboundPath": { + "description": "Directory for the ModSim Workbench chamber data pipeline inbound.", + "type": "string" + }, + "dataPipelineOutboundPath": { + "description": "Directory for the ModSim Workbench chamber data pipeline outbound.", + "type": "string" + }, + "capacityUsed": { + "description": "Capacity used in the SDW Private Storage volume in gigabytes.", + "format": "int32", + "type": "integer" + } + } + }, + "Storage": { + "description": "Storage resource", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/StoragePropertiesFormat", + "description": "Storage properties." + } + }, + "allOf": [ + { + "$ref": "./modsimworkbenches.json#/definitions/Resource" + } + ] + } + } +} diff --git a/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/workloads.json b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/workloads.json new file mode 100644 index 000000000000..f1d0e81fb8e6 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/Microsoft.ModSimWorkbench/preview/2021-03-01-preview/workloads.json @@ -0,0 +1,708 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.ModSimWorkbench", + "description": "Microsoft.ModSimWorkbench resource provider OpenAPI Spec", + "version": "2021-03-01-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}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/workloads/{name}/start": { + "post": { + "tags": [ + "workloads_Start" + ], + "summary": "Perform Start operation.", + "operationId": "workloads_Start", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the workload name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Workloads Start": { + "$ref": "./examples/WorkloadsStart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/workloads/{name}/stop": { + "post": { + "tags": [ + "workloads_Stop" + ], + "summary": "Perform Stop operation.", + "operationId": "workloads_Stop", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the workload name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Workloads Stop": { + "$ref": "./examples/WorkloadsStop.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/workloads/{name}/restart": { + "post": { + "tags": [ + "workloads_Restart" + ], + "summary": "Perform Restart operation.", + "operationId": "workloads_Restart", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "path", + "name": "resourceGroup", + "description": "the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "workbenchName", + "description": "the workbench name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "chamberName", + "description": "the chamber name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "description": "the workload name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Workloads Restart": { + "$ref": "./examples/WorkloadsRestart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/workloads/{workloadName}": { + "put": { + "tags": [ + "workloads_CreateOrUpdate" + ], + "operationId": "workloads_CreateOrUpdate", + "description": "Creates or updates the specified workload.", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "workloadName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workload." + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the create or update workload operation.", + "schema": { + "$ref": "#/definitions/Workload" + } + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting workload resource.", + "schema": { + "$ref": "#/definitions/Workload" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting workload resource.", + "schema": { + "$ref": "#/definitions/Workload" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create Workload": { + "$ref": "./examples/WorkloadsCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "workloads_Update" + ], + "operationId": "workloads_Update", + "description": "Updates the specified workload.", + "consumes": [ + "application/merge-patch+json", + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "workloadName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workload." + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the create or update workload operation.", + "schema": { + "$ref": "#/definitions/Workload" + } + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting workload resource.", + "schema": { + "$ref": "#/definitions/Workload" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Workload resource.", + "schema": { + "$ref": "#/definitions/Workload" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Update workload": { + "$ref": "./examples/WorkloadsPatch.json" + } + } + }, + "get": { + "tags": [ + "workloads_Get" + ], + "operationId": "workloads_Get", + "description": "Gets information about the specified workload.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "workloadName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workload." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the specified workload.", + "schema": { + "$ref": "#/definitions/Workload" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-examples": { + "Get Workload": { + "$ref": "./examples/WorkloadsGet.json" + } + } + }, + "delete": { + "tags": [ + "workloads_Delete" + ], + "operationId": "workloads_Delete", + "description": "Deletes the specified workload.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + }, + { + "name": "workloadName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workload." + } + ], + "responses": { + "200": { + "description": "The operation is completed successfully", + "schema": { + "$ref": "#/definitions/Workload" + } + }, + "204": { + "description": "Request is successful. Resource with the specified name does not exist." + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete Workload": { + "$ref": "./examples/WorkloadsDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ModSimWorkbench/workbenches/{workbenchName}/chambers/{chamberName}/workloads": { + "get": { + "tags": [ + "workloads_List" + ], + "operationId": "workloads_List", + "description": "Lists all workloads.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroup", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "workbenchName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the workbench." + }, + { + "name": "chamberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the chamber." + } + ], + "responses": { + "200": { + "description": "Request is successful. The operation returns the list of all workloads", + "schema": { + "$ref": "#/definitions/WorkloadPageableList" + } + }, + "default": { + "description": "Default Error Response", + "schema": { + "$ref": "./modsimworkbenches.json#/definitions/ErrorResponse" + }, + "x-ms-error-response": true + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all workloads": { + "$ref": "./examples/WorkloadsList.json" + } + } + } + } + }, + "definitions": { + "WorkloadPageableList": { + "description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.", + "type": "object", + "properties": { + "nextLink": { + "description": "Gets or sets the URL (link) to the next result set.", + "type": "string" + }, + "value": { + "description": "Gets or sets the values to emit from this list.", + "type": "array", + "items": { + "$ref": "#/definitions/Workload" + }, + "x-ms-identifiers": [ + "value" + ] + } + } + }, + "WorkloadPropertiesFormat": { + "description": "Workload properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "./modsimworkbenches.json#/definitions/ProvisioningState", + "description": "Gets the status of the workload at the time the operation was called" + }, + "vmSize": { + "description": "Gets or sets the VmSize.", + "type": "string" + }, + "edaType": { + "description": "Gets or sets the edaType.", + "type": "string" + }, + "status": { + "description": "Gets or sets the status.", + "type": "string", + "readOnly": true + }, + "privateIP": { + "description": "Gets or sets the private IpAddress of workload.", + "type": "string", + "readOnly": true + } + } + }, + "Workload": { + "description": "Workload resource", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkloadPropertiesFormat", + "description": "Workload properties.", + "type": "object" + } + }, + "allOf": [ + { + "$ref": "./modsimworkbenches.json#/definitions/Resource" + } + ] + } + } +} diff --git a/specification/modsimworkbench/resource-manager/readme.cli.md b/specification/modsimworkbench/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/modsimworkbench/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/modsimworkbench/resource-manager/readme.csharp.md b/specification/modsimworkbench/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..a66b1facd1cb --- /dev/null +++ b/specification/modsimworkbench/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.ModSimWorkbench + output-folder: $(csharp-sdks-folder)/modsimworkbench/management/Microsoft.ModSimWorkbench/GeneratedProtocol +``` diff --git a/specification/modsimworkbench/resource-manager/readme.go.md b/specification/modsimworkbench/resource-manager/readme.go.md new file mode 100644 index 000000000000..d56a25f41aec --- /dev/null +++ b/specification/modsimworkbench/resource-manager/readme.go.md @@ -0,0 +1,12 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) +go: +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/modsimworkbench/armmodsimworkbench +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +azure-arm: true +``` diff --git a/specification/modsimworkbench/resource-manager/readme.md b/specification/modsimworkbench/resource-manager/readme.md new file mode 100644 index 000000000000..2cb0a4db299e --- /dev/null +++ b/specification/modsimworkbench/resource-manager/readme.md @@ -0,0 +1,88 @@ +# modsimworkbench + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for modsimworkbench. + +## 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 modsimworkbench. + +```yaml +openapi-type: arm +openapi-subtype: providerHub +tag: package-2021-03-01-preview +``` + +### Tag: package-2021-03-01-preview + +These settings apply only when `--tag=package-2021-03-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2021-03-01-preview' +input-file: + - Microsoft.ModSimWorkbench/preview/2021-03-01-preview/modsimworkbenches.json + - Microsoft.ModSimWorkbench/preview/2021-03-01-preview/connectors.json + - Microsoft.ModSimWorkbench/preview/2021-03-01-preview/chambers.json + - Microsoft.ModSimWorkbench/preview/2021-03-01-preview/workloads.json + - Microsoft.ModSimWorkbench/preview/2021-03-01-preview/storages.json + - Microsoft.ModSimWorkbench/preview/2021-03-01-preview/files.json + - Microsoft.ModSimWorkbench/preview/2021-03-01-preview/fileRequests.json +``` + +--- + +# 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-js + - repo: azure-resource-manager-schemas + after_scripts: + - node sdkauto_afterscript.js modsimworkbench/resource-manager +``` +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## 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) \ No newline at end of file diff --git a/specification/modsimworkbench/resource-manager/readme.python.md b/specification/modsimworkbench/resource-manager/readme.python.md new file mode 100644 index 000000000000..a7341172d1bf --- /dev/null +++ b/specification/modsimworkbench/resource-manager/readme.python.md @@ -0,0 +1,22 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-modsimworkbench +no-namespace-folders: true +package-version: 1.0.0b1 +``` + +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/modsimworkbench/azure-mgmt-modsimworkbench/azure/mgmt/modsimworkbench +``` + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/modsimworkbench/azure-mgmt-modsimworkbench +``` diff --git a/specification/modsimworkbench/resource-manager/readme.typescript.md b/specification/modsimworkbench/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..f856403e9653 --- /dev/null +++ b/specification/modsimworkbench/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-modsimworkbench" + output-folder: "$(typescript-sdks-folder)/sdk/modsimworkbench/arm-modsimworkbench" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +```