From 9e0df72a1fa657419ad71ced8de77208352904e3 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Fri, 27 Mar 2020 14:02:49 -0700 Subject: [PATCH 01/34] add specification for stable and preview version --- .../2020-04-01-preview/cloudShell.json | 881 ++++++++++++++++++ .../examples/CachedImagesList.json | 27 + .../examples/CapabilitiesList.json | 39 + .../examples/ContainerExec.json | 24 + .../examples/ContainerGroupUsage.json | 25 + .../ContainerGroupsCreateOrUpdate.json | 300 ++++++ .../examples/ContainerGroupsDelete.json | 12 + .../examples/ContainerGroupsGet_Failed.json | 115 +++ .../ContainerGroupsGet_Succeeded.json | 76 ++ .../examples/ContainerGroupsList.json | 87 ++ .../ContainerGroupsListByResourceGroup.json | 79 ++ .../examples/ContainerGroupsRestart.json | 11 + .../examples/ContainerGroupsStart.json | 11 + .../examples/ContainerGroupsStop.json | 11 + .../examples/ContainerGroupsUpdate.json | 100 ++ .../examples/ContainerListLogs.json | 17 + .../examples/DeleteConsole.json | 10 + .../examples/DeleteUserSettings.json | 11 + .../examples/GetConsole.json | 18 + .../examples/GetUserSettings.json | 28 + .../examples/KeepAlive.json | 19 + .../examples/OperationsList.json | 23 + .../examples/PutConsole.json | 23 + .../examples/PutUserSettings.json | 43 + .../ServiceAssociationLink_Delete.json | 13 + .../stable/2018-10-01/cloudShell.json | 848 +++++++++++++++++ .../2018-10-01/examples/CachedImagesList.json | 27 + .../2018-10-01/examples/CapabilitiesList.json | 39 + .../2018-10-01/examples/ContainerExec.json | 24 + .../examples/ContainerGroupUsage.json | 25 + .../ContainerGroupsCreateOrUpdate.json | 300 ++++++ .../examples/ContainerGroupsDelete.json | 12 + .../examples/ContainerGroupsGet_Failed.json | 115 +++ .../ContainerGroupsGet_Succeeded.json | 76 ++ .../examples/ContainerGroupsList.json | 87 ++ .../ContainerGroupsListByResourceGroup.json | 79 ++ .../examples/ContainerGroupsRestart.json | 11 + .../examples/ContainerGroupsStart.json | 11 + .../examples/ContainerGroupsStop.json | 11 + .../examples/ContainerGroupsUpdate.json | 100 ++ .../examples/ContainerListLogs.json | 17 + .../2018-10-01/examples/DeleteConsole.json | 10 + .../examples/DeleteUserSettings.json | 11 + .../2018-10-01/examples/GetConsole.json | 18 + .../2018-10-01/examples/GetUserSettings.json | 29 + .../stable/2018-10-01/examples/KeepAlive.json | 19 + .../2018-10-01/examples/OperationsList.json | 23 + .../2018-10-01/examples/PutConsole.json | 23 + .../2018-10-01/examples/PutUserSettings.json | 45 + .../ServiceAssociationLink_Delete.json | 13 + 50 files changed, 3976 insertions(+) create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CachedImagesList.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CapabilitiesList.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerExec.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupUsage.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsCreateOrUpdate.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsDelete.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Failed.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Succeeded.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsList.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsListByResourceGroup.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsRestart.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStart.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStop.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsUpdate.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerListLogs.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/OperationsList.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ServiceAssociationLink_Delete.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CachedImagesList.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CapabilitiesList.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerExec.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupUsage.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsDelete.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Failed.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Succeeded.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsList.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsListByResourceGroup.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsRestart.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStart.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStop.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsUpdate.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerListLogs.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/OperationsList.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ServiceAssociationLink_Delete.json diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json new file mode 100644 index 000000000000..545818a3f1ab --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json @@ -0,0 +1,881 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-04-01-preview", + "title": "CloudShellClient" + }, + "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.Portal/locations/{location}/userSettings/{userSettingsName}": { + "get": { + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/GetUserSettings.json" + } + }, + "summary": "Get user settings.", + "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetUserSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "summary": "patch user settings.", + "description": "Patch cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "delete user settings.", + "x-ms-examples": { + "DeleteUserSettings": { + "$ref": "./examples/DeleteUserSettings.json" + } + }, + "description": "Delete cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "put user settings.", + "x-ms-examples": { + "PutUserSettings": { + "$ref": "./examples/PutUserSettings.json" + } + }, + "description": "Create or update cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { + "get": { + "summary": "Get console", + "x-ms-examples": { + "GetConsole": { + "$ref": "./examples/GetConsole.json" + } + }, + "description": "Gets the console for the user.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "Put console", + "x-ms-examples": { + "PutConsole": { + "$ref": "./examples/PutConsole.json" + } + }, + "description": "Puts a request for a console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "Delete console", + "x-ms-examples": { + "DeleteConsole": { + "$ref": "./examples/DeleteConsole.json" + } + }, + "description": "Deletes the console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { + "post": { + "summary": "Keep alive", + "description": "Keep console alive", + "parameters": [ + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-ms-console-remaining-seconds": { + "type": "integer", + "description": "Remaining time left in session, in seconds." + } + } + } + } + } + }, + "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { + "get": { + "operationId": "GetUserSettings", + "summary": "Get user settings.", + "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetUserSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "summary": "patch user settings.", + "description": "Patch cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "delete user settings.", + "description": "Delete cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "put user settings.", + "description": "Create or update cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/consoles/{consoleName}": { + "get": { + "summary": "Get console", + "description": "Gets the console for the user.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "Put console", + "description": "Puts a request for a console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "name": "ConsoleDefinition", + "description": "The console definition.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/ConsoleDefinition" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "Delete console", + "description": "Deletes the console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { + "post": { + "summary": "Keep alive", + "description": "Keep console alive", + "parameters": [ + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-ms-console-remaining-seconds": { + "type": "integer", + "description": "Remaining time left in session, in seconds." + } + } + } + } + } + } + }, + "definitions": { + "CloudShellConsole": { + "description": "Cloud shell console", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConsoleProperties" + } + } + }, + "ConsoleProperties": { + "description": "Cloud shell console properties.", + "type": "object", + "required": [ + "OsType", + "ProvisioningState", + "Uri" + ], + "properties": { + "OsType": { + "description": "The operating system type of the cloud shell.", + "type": "string", + "enum": [ + "Linux", + "Windows" + ] + }, + "ProvisioningState": { + "description": "Provisioning state of the console.", + "type": "string", + "enum": [ + "NotSpecified", + "Accepted", + "Pending", + "Updating", + "Creating", + "Repairing", + "Failed", + "Canceled", + "Succeeded" + ] + }, + "Uri": { + "description": "Uri of the console.", + "type": "string" + } + } + }, + "ConsoleCreateProperties": { + "description": "Cloud shell properties for creating a console.", + "type": "object", + "required": [ + "OsType" + ], + "properties": { + "OsType": { + "description": "The operating system type of the cloud shell.", + "type": "string", + "enum": [ + "Linux", + "Windows" + ] + }, + "ProvisioningState": { + "description": "Provisioning state of the console.", + "type": "string", + "enum": [ + "NotSpecified", + "Accepted", + "Pending", + "Updating", + "Creating", + "Repairing", + "Failed", + "Canceled", + "Succeeded" + ] + }, + "Uri": { + "description": "Uri of the console.", + "type": "string" + } + } + }, + "ConsoleDefinition": { + "description": "Console definition", + "type": "object", + "required": [ + "properties", + "name" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConsoleCreateProperties" + } + } + }, + "GetUserSettingsResponse": { + "description": "Response to get user settings", + "type": "object", + "required": [ + "properties", + "name" + ], + "properties": { + "properties": { + "$ref": "#/definitions/GetUserSettingsResponseContent" + } + } + }, + "GetUserSettingsResponseContent": { + "description": "The user settings response content", + "type": "object", + "required": [ + "userSettings", + "headers" + ], + "properties": { + "userSettings": { + "$ref": "#/definitions/CloudShellUserSettings" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } + } + } + }, + "CloudShellUserSettings": { + "description": "Cloud shell user settings.", + "type": "object", + "required": [ + "properties", + "name" + ], + "properties": { + "properties": { + "$ref": "#/definitions/UserProperties" + } + } + }, + "UserProperties": { + "description": "The cloud shell user settings properties.", + "type": "object", + "required": [ + "preferredOsType", + "preferredLocation", + "storageProfile", + "terminalSettings", + "preferredShellType", + "networkType" + ], + "properties": { + "preferredOsType": { + "description": "The operating system type of the cloud shell. Deprecated, use preferedShellType.", + "type": "string", + "enum": [ + "Windows", + "Linux" + ] + }, + "preferredLocation": { + "description": "The preferred location of the cloud shell.", + "type": "string" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile" + }, + "terminalSettings": { + "$ref": "#/definitions/TerminalSettings" + }, + "vnetSettings": { + "$ref": "#/definitions/VnetSettings" + }, + "preferredShellType": { + "description": "The shell type of the cloud shell.", + "type": "string", + "enum": [ + "bash", + "pwsh", + "powershell" + ] + }, + "networkType": { + "description": "Type of network to use for cloud shell container", + "type": "string", + "enum": [ + "isolated", + "default" + ] + } + } + }, + "StorageProfile": { + "description": "The storage profile of the user settings.", + "type": "object", + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "Full resource ID of storage account." + }, + "fileShareName": { + "type": "string", + "description": "Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -" + }, + "diskSizeInGB": { + "type": "integer", + "description": "Size of file share" + } + } + }, + "TerminalSettings": { + "description": "Settings for terminal appearance.", + "type": "object", + "properties": { + "fontSize": { + "type": "string", + "description": "Size of terminal font.", + "enum": [ + "NotSpecified", + "Small", + "Medium", + "Large" + ] + }, + "fontStyle": { + "type": "string", + "description": "Style of terminal font.", + "enum": [ + "NotSpecified", + "Monospace", + "Courier" + ] + } + } + }, + "VnetSettings": { + "description": "Settings for virtual network configuration.", + "type": "object", + "properties": { + "gatewayEndpoint": { + "type": "string", + "description": "Web address of the gateway endpoint." + }, + "networkProfileResourceId": { + "type": "string", + "description": "Full resource ID of the network profile." + }, + "isolatedStorageProfile": { + "$ref": "#/definitions/StorageProfile" + }, + "location": { + "type": "string", + "description": "Location of virtual network." + } + } + }, + "ErrorResponse": { + "title": "ErrorResponse", + "description": "Contains details when the response code indicates an error.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetail" + } + }, + "required": [ + "error" + ] + }, + "ErrorDetail": { + "title": "ErrorDetail", + "type": "object", + "properties": { + "code": { + "description": "The error's code.", + "type": "string" + }, + "message": { + "description": "A human readable error message.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ] + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version", + "x-ms-parameter-location": "client" + }, + "ConsoleNameParameter": { + "name": "consoleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the console" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The provider location" + }, + "UserSettingsNameParameter": { + "name": "userSettingsName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the user settings" + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CachedImagesList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CachedImagesList.json new file mode 100644 index 000000000000..de3ee2a11221 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CachedImagesList.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westcentralus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "osType": "Linux", + "image": "ubuntu:16.04" + }, + { + "osType": "Linux", + "image": "alpine:3.6" + }, + { + "osType": "Windows", + "image": "microsoft/nanoserver:10.0.14393.2485" + } + ] + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CapabilitiesList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CapabilitiesList.json new file mode 100644 index 000000000000..c312e05d75c8 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CapabilitiesList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "containerGroups", + "osType": "Linux", + "location": "West US", + "ipAddressType": "Public", + "gpu": "K80", + "capabilities": { + "maxMemoryInGB": 14, + "maxCPU": 4, + "maxGpuCount": 4 + } + }, + { + "resourceType": "containerGroups", + "osType": "Windows", + "location": "West US", + "ipAddressType": "Public", + "gpu": "None", + "capabilities": { + "maxMemoryInGB": 14, + "maxCPU": 4, + "maxGpuCount": 0 + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerExec.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerExec.json new file mode 100644 index 000000000000..0baba25420f0 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerExec.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerName": "container1", + "containerExecRequest": { + "command": "/bin/bash", + "terminalSize": { + "row": 12, + "column": 12 + } + } + }, + "responses": { + "200": { + "body": { + "webSocketUri": "wss://web-socket-uri", + "password": "password" + } + } + } + } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupUsage.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupUsage.json new file mode 100644 index 000000000000..7479fd886705 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupUsage.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westcentralus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Count", + "currentValue": 1, + "limit": 2000, + "name": { + "value": "ContainerGroups", + "localizedValue": "Container Groups" + } + } + ] + } + } + } + } + \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsCreateOrUpdate.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsCreateOrUpdate.json new file mode 100644 index 000000000000..8218af17be94 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsCreateOrUpdate.json @@ -0,0 +1,300 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerGroup": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "west us", + "name": "demo1", + "identity": { + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {} + } + }, + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "workspaceid", + "workspaceKey": "workspaceKey", + "logType": "ContainerInsights", + "metadata": { + "test-key": "test-metadata-value" + } + } + }, + "networkProfile": { + "id": "test-network-profile-id" + }, + "dnsConfig": { + "nameServers": [ "1.1.1.1" ], + "searchDomains": "cluster.local svc.cluster.local", + "options": "ndots:2" + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ports": [ + { + "protocol": "TCP", + "port": 80 + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1" + }, + "osType": "Linux", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName", + "storageAccountKey": "accountKey" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": + { + "secretKey1": "SecretValue1InBase64", + "secretKey2": "SecretValue2InBase64" + } + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "workspaceid", + "workspaceKey": "" + } + }, + "dnsConfig": { + "nameServers": [ "1.1.1.1" ], + "searchDomains": "cluster.local svc.cluster.local", + "options": "ndots:2" + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": {} + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "dnsConfig": { + "nameServers": [ "1.1.1.1" ] + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret":{} + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsDelete.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsDelete.json new file mode 100644 index 000000000000..2b79daf27fc6 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Failed.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Failed.json new file mode 100644 index 000000000000..d187770eed84 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Failed.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "instanceView": { + "restartCount": 0, + "currentState": { + "state": "Waiting", + "startTime": "2017-08-08T00:09:10Z", + "detailStatus": "" + }, + "events": [ + { + "count": 1, + "firstTimestamp": "2017-08-08T00:09:01Z", + "lastTimestamp": "2017-08-08T00:09:01Z", + "message": "pulling image \"nginx\"", + "name": "Pulling", + "type": "Normal" + }, + { + "count": 1, + "firstTimestamp": "2017-08-08T00:09:10Z", + "lastTimestamp": "2017-08-08T00:09:10Z", + "message": "Successfully pulled image \"nginx\"", + "name": "Pulled", + "type": "Normal" + } + ] + }, + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "instanceView": { + "events": [ + { + "count": 1, + "firstTimestamp": "2017-10-08T00:19:10Z", + "lastTimestamp": "2017-10-08T00:19:10Z", + "message": "Output: mount error(2): Permission denied", + "name": "FailedMount", + "type": "Normal" + } + ], + "state": "Pending" + }, + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Failed", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Succeeded.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Succeeded.json new file mode 100644 index 000000000000..4fb6b98e07d7 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Succeeded.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsList.json new file mode 100644 index 000000000000..92cc12338a93 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsList.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "instanceView": { + "restartCount": 0, + "currentState": { + "state": "Running", + "startTime": "2017-10-17T17:27:21Z", + "detailStatus": "" + }, + "events":[] + }, + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsListByResourceGroup.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsListByResourceGroup.json new file mode 100644 index 000000000000..a5a323658f93 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsListByResourceGroup.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsRestart.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsRestart.json new file mode 100644 index 000000000000..ceaa1376b456 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsRestart.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "204": {} + } + } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStart.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStart.json new file mode 100644 index 000000000000..ceaa1376b456 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStart.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "204": {} + } + } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStop.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStop.json new file mode 100644 index 000000000000..ceaa1376b456 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStop.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "204": {} + } + } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsUpdate.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsUpdate.json new file mode 100644 index 000000000000..8a8fd7174a3f --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsUpdate.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demoResource", + "containerGroupName": "demo1", + "Resource": { + "tags": { + "tag1key": "tag1Value", + "tag2key": "tag2Value" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demoResource/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "type": "Microsoft.ContainerInstance/containerGroups", + "tags": { + "tag1key": "tag1Value", + "tag2key": "tag2Value" + }, + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": {} + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerListLogs.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerListLogs.json new file mode 100644 index 000000000000..18aa8e411e0c --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerListLogs.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerName": "container1", + "tail": 10 + }, + "responses": { + "200": { + "body": { + "content": "log content" + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json new file mode 100644 index 000000000000..8d039e005f57 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json new file mode 100644 index 000000000000..27bbd69c2415 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } + } + \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json new file mode 100644 index 000000000000..dd72cc793554 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json new file mode 100644 index 000000000000..e9fd632acc4e --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" + } + } + } + } + } + \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json new file mode 100644 index 000000000000..529c5397c7b2 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "200": { + "headers": { + "x-ms-console-remaining-seconds": 300 + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/OperationsList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/OperationsList.json new file mode 100644 index 000000000000..b57c64e5a5d2 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/OperationsList.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerInstance/containerGroups/read", + "display": { + "provider": "Microsoft Container Instance", + "resource": "Container Group", + "operation": "Get Container Groups", + "description": "Get all container goups." + }, + "origin": "User" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json new file mode 100644 index 000000000000..248ea5cdca03 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json new file mode 100644 index 000000000000..aad6f53463fb --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" + } + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ServiceAssociationLink_Delete.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ServiceAssociationLink_Delete.json new file mode 100644 index 000000000000..fc736f99e256 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ServiceAssociationLink_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "virtualNetworkName": "demo1", + "subnetName": "demo1" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json new file mode 100644 index 000000000000..1de9c9419032 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -0,0 +1,848 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-04-01-preview", + "title": "CloudShellClient" + }, + "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.Portal/locations/{location}/userSettings/{userSettingsName}": { + "get": { + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/GetUserSettings.json" + } + }, + "summary": "Get user settings.", + "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetUserSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "summary": "patch user settings.", + "description": "Patch cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "delete user settings.", + "x-ms-examples": { + "DeleteUserSettings": { + "$ref": "./examples/DeleteUserSettings.json" + } + }, + "description": "Delete cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "put user settings.", + "x-ms-examples": { + "PutUserSettings": { + "$ref": "./examples/PutUserSettings.json" + } + }, + "description": "Create or update cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { + "get": { + "summary": "Get console", + "x-ms-examples": { + "GetConsole": { + "$ref": "./examples/GetConsole.json" + } + }, + "description": "Gets the console for the user.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "Put console", + "x-ms-examples": { + "PutConsole": { + "$ref": "./examples/PutConsole.json" + } + }, + "description": "Puts a request for a console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "Delete console", + "x-ms-examples": { + "DeleteConsole": { + "$ref": "./examples/DeleteConsole.json" + } + }, + "description": "Deletes the console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { + "post": { + "summary": "Keep alive", + "description": "Keep console alive", + "parameters": [ + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-ms-console-remaining-seconds": { + "type": "integer", + "description": "Remaining time left in session, in seconds." + } + } + } + } + } + }, + "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { + "get": { + "operationId": "GetUserSettings", + "summary": "Get user settings.", + "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetUserSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "summary": "patch user settings.", + "description": "Patch cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "delete user settings.", + "description": "Delete cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "put user settings.", + "description": "Create or update cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/consoles/{consoleName}": { + "get": { + "summary": "Get console", + "description": "Gets the console for the user.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "Put console", + "description": "Puts a request for a console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "name": "ConsoleDefinition", + "description": "The console definition.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/ConsoleDefinition" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "Delete console", + "description": "Deletes the console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { + "post": { + "summary": "Keep alive", + "description": "Keep console alive", + "parameters": [ + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-ms-console-remaining-seconds": { + "type": "integer", + "description": "Remaining time left in session, in seconds." + } + } + } + } + } + } + }, + "definitions": { + "CloudShellConsole": { + "description": "Cloud shell console", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConsoleProperties" + } + } + }, + "ConsoleProperties": { + "description": "Cloud shell console properties.", + "type": "object", + "required": [ + "OsType", + "ProvisioningState", + "Uri" + ], + "properties": { + "OsType": { + "description": "The operating system type of the cloud shell.", + "type": "string", + "enum": [ + "Linux", + "Windows" + ] + }, + "ProvisioningState": { + "description": "Provisioning state of the console.", + "type": "string", + "enum": [ + "NotSpecified", + "Accepted", + "Pending", + "Updating", + "Creating", + "Repairing", + "Failed", + "Canceled", + "Succeeded" + ] + }, + "Uri": { + "description": "Uri of the console.", + "type": "string" + } + } + }, + "ConsoleCreateProperties": { + "description": "Cloud shell properties for creating a console.", + "type": "object", + "required": [ + "OsType" + ], + "properties": { + "OsType": { + "description": "The operating system type of the cloud shell.", + "type": "string", + "enum": [ + "Linux", + "Windows" + ] + }, + "ProvisioningState": { + "description": "Provisioning state of the console.", + "type": "string", + "enum": [ + "NotSpecified", + "Accepted", + "Pending", + "Updating", + "Creating", + "Repairing", + "Failed", + "Canceled", + "Succeeded" + ] + }, + "Uri": { + "description": "Uri of the console.", + "type": "string" + } + } + }, + "ConsoleDefinition": { + "description": "Console definition", + "type": "object", + "required": [ + "properties", + "name" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConsoleCreateProperties" + } + } + }, + "GetUserSettingsResponse": { + "description": "Response to get user settings", + "type": "object", + "required": [ + "properties", + "name" + ], + "properties": { + "properties": { + "$ref": "#/definitions/GetUserSettingsResponseContent" + } + } + }, + "GetUserSettingsResponseContent": { + "description": "The user settings response content", + "type": "object", + "required": [ + "userSettings", + "headers" + ], + "properties": { + "userSettings": { + "$ref": "#/definitions/CloudShellUserSettings" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } + } + } + }, + "CloudShellUserSettings": { + "description": "Cloud shell user settings.", + "type": "object", + "required": [ + "properties", + "name" + ], + "properties": { + "properties": { + "$ref": "#/definitions/UserProperties" + } + } + }, + "UserProperties": { + "description": "The cloud shell user settings properties.", + "type": "object", + "required": [ + "preferredOsType", + "preferredLocation", + "storageProfile", + "terminalSettings", + "preferredShellType" + ], + "properties": { + "preferredOsType": { + "description": "The operating system type of the cloud shell. Deprecated, use preferedShellType.", + "type": "string", + "enum": [ + "Windows", + "Linux" + ] + }, + "preferredLocation": { + "description": "The preferred location of the cloud shell.", + "type": "string" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile" + }, + "terminalSettings": { + "$ref": "#/definitions/TerminalSettings" + }, + "preferredShellType": { + "description": "The shell type of the cloud shell.", + "type": "string", + "enum": [ + "bash", + "pwsh", + "powershell" + ] + } + } + }, + "StorageProfile": { + "description": "The storage profile of the user settings.", + "type": "object", + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "Full resource ID of storage account." + }, + "fileShareName": { + "type": "string", + "description": "Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -" + }, + "diskSizeInGB": { + "type": "integer", + "description": "Size of file share" + } + } + }, + "TerminalSettings": { + "description": "Settings for terminal appearance.", + "type": "object", + "properties": { + "fontSize": { + "type": "string", + "description": "Size of terminal font.", + "enum": [ + "NotSpecified", + "Small", + "Medium", + "Large" + ] + }, + "fontStyle": { + "type": "string", + "description": "Style of terminal font.", + "enum": [ + "NotSpecified", + "Monospace", + "Courier" + ] + } + } + }, + "ErrorResponse": { + "title": "ErrorResponse", + "description": "Contains details when the response code indicates an error.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetail" + } + }, + "required": [ + "error" + ] + }, + "ErrorDetail": { + "title": "ErrorDetail", + "type": "object", + "properties": { + "code": { + "description": "The error's code.", + "type": "string" + }, + "message": { + "description": "A human readable error message.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ] + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version", + "x-ms-parameter-location": "client" + }, + "ConsoleNameParameter": { + "name": "consoleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the console" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The provider location" + }, + "UserSettingsNameParameter": { + "name": "userSettingsName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the user settings" + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CachedImagesList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CachedImagesList.json new file mode 100644 index 000000000000..de3ee2a11221 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CachedImagesList.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westcentralus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "osType": "Linux", + "image": "ubuntu:16.04" + }, + { + "osType": "Linux", + "image": "alpine:3.6" + }, + { + "osType": "Windows", + "image": "microsoft/nanoserver:10.0.14393.2485" + } + ] + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CapabilitiesList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CapabilitiesList.json new file mode 100644 index 000000000000..c312e05d75c8 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CapabilitiesList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "containerGroups", + "osType": "Linux", + "location": "West US", + "ipAddressType": "Public", + "gpu": "K80", + "capabilities": { + "maxMemoryInGB": 14, + "maxCPU": 4, + "maxGpuCount": 4 + } + }, + { + "resourceType": "containerGroups", + "osType": "Windows", + "location": "West US", + "ipAddressType": "Public", + "gpu": "None", + "capabilities": { + "maxMemoryInGB": 14, + "maxCPU": 4, + "maxGpuCount": 0 + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerExec.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerExec.json new file mode 100644 index 000000000000..0baba25420f0 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerExec.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerName": "container1", + "containerExecRequest": { + "command": "/bin/bash", + "terminalSize": { + "row": 12, + "column": 12 + } + } + }, + "responses": { + "200": { + "body": { + "webSocketUri": "wss://web-socket-uri", + "password": "password" + } + } + } + } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupUsage.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupUsage.json new file mode 100644 index 000000000000..7479fd886705 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupUsage.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "westcentralus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Count", + "currentValue": 1, + "limit": 2000, + "name": { + "value": "ContainerGroups", + "localizedValue": "Container Groups" + } + } + ] + } + } + } + } + \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.json new file mode 100644 index 000000000000..8218af17be94 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.json @@ -0,0 +1,300 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerGroup": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "west us", + "name": "demo1", + "identity": { + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {} + } + }, + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "workspaceid", + "workspaceKey": "workspaceKey", + "logType": "ContainerInsights", + "metadata": { + "test-key": "test-metadata-value" + } + } + }, + "networkProfile": { + "id": "test-network-profile-id" + }, + "dnsConfig": { + "nameServers": [ "1.1.1.1" ], + "searchDomains": "cluster.local svc.cluster.local", + "options": "ndots:2" + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ports": [ + { + "protocol": "TCP", + "port": 80 + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1" + }, + "osType": "Linux", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName", + "storageAccountKey": "accountKey" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": + { + "secretKey1": "SecretValue1InBase64", + "secretKey2": "SecretValue2InBase64" + } + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "diagnostics": { + "logAnalytics": { + "workspaceId": "workspaceid", + "workspaceKey": "" + } + }, + "dnsConfig": { + "nameServers": [ "1.1.1.1" ], + "searchDomains": "cluster.local svc.cluster.local", + "options": "ndots:2" + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": {} + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5, + "gpu": { + "count": 1, + "sku": "K80" + } + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "dnsConfig": { + "nameServers": [ "1.1.1.1" ] + }, + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret":{} + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsDelete.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsDelete.json new file mode 100644 index 000000000000..2b79daf27fc6 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Failed.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Failed.json new file mode 100644 index 000000000000..d187770eed84 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Failed.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "instanceView": { + "restartCount": 0, + "currentState": { + "state": "Waiting", + "startTime": "2017-08-08T00:09:10Z", + "detailStatus": "" + }, + "events": [ + { + "count": 1, + "firstTimestamp": "2017-08-08T00:09:01Z", + "lastTimestamp": "2017-08-08T00:09:01Z", + "message": "pulling image \"nginx\"", + "name": "Pulling", + "type": "Normal" + }, + { + "count": 1, + "firstTimestamp": "2017-08-08T00:09:10Z", + "lastTimestamp": "2017-08-08T00:09:10Z", + "message": "Successfully pulled image \"nginx\"", + "name": "Pulled", + "type": "Normal" + } + ] + }, + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "instanceView": { + "events": [ + { + "count": 1, + "firstTimestamp": "2017-10-08T00:19:10Z", + "lastTimestamp": "2017-10-08T00:19:10Z", + "message": "Output: mount error(2): Permission denied", + "name": "FailedMount", + "type": "Normal" + } + ], + "state": "Pending" + }, + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Failed", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Succeeded.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Succeeded.json new file mode 100644 index 000000000000..4fb6b98e07d7 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Succeeded.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsList.json new file mode 100644 index 000000000000..92cc12338a93 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsList.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "instanceView": { + "restartCount": 0, + "currentState": { + "state": "Running", + "startTime": "2017-10-17T17:27:21Z", + "detailStatus": "" + }, + "events":[] + }, + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsListByResourceGroup.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsListByResourceGroup.json new file mode 100644 index 000000000000..a5a323658f93 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsListByResourceGroup.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "demo", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "mountPath": "/mnt/volume1", + "name": "volume1", + "readOnly": false + } + ] + } + } + ], + "imageRegistryCredentials": [ + { + "server": "azcloudconsoleregistry.azurecr.io", + "username": "azcloudconsoleregistry" + } + ], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "azureFile": { + "readOnly": false, + "shareName": "share1", + "storageAccountName": "storage1" + }, + "name": "volume1" + } + ] + }, + "type": "Microsoft.ContainerInstance/containerGroups" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsRestart.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsRestart.json new file mode 100644 index 000000000000..ceaa1376b456 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsRestart.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "204": {} + } + } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStart.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStart.json new file mode 100644 index 000000000000..ceaa1376b456 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStart.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "204": {} + } + } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStop.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStop.json new file mode 100644 index 000000000000..ceaa1376b456 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStop.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1" + }, + "responses": { + "204": {} + } + } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsUpdate.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsUpdate.json new file mode 100644 index 000000000000..8a8fd7174a3f --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsUpdate.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demoResource", + "containerGroupName": "demo1", + "Resource": { + "tags": { + "tag1key": "tag1Value", + "tag2key": "tag2Value" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/demoResource/providers/Microsoft.ContainerInstance/containerGroups/demo1", + "location": "WestUs", + "name": "demo1", + "type": "Microsoft.ContainerInstance/containerGroups", + "tags": { + "tag1key": "tag1Value", + "tag2key": "tag2Value" + }, + "properties": { + "containers": [ + { + "name": "demo1", + "properties": { + "command": [], + "environmentVariables": [], + "image": "nginx", + "ports": [ + { + "port": 80 + } + ], + "resources": { + "requests": { + "cpu": 1, + "memoryInGB": 1.5 + } + }, + "volumeMounts": [ + { + "name": "volume1", + "mountPath": "/mnt/volume1", + "readOnly": false + }, + { + "name": "volume2", + "mountPath": "/mnt/volume2", + "readOnly": false + }, + { + "name": "volume3", + "mountPath": "/mnt/volume3", + "readOnly": true + } + ] + } + } + ], + "imageRegistryCredentials": [], + "ipAddress": { + "ip": "10.0.0.1", + "ports": [ + { + "port": 80, + "protocol": "TCP" + } + ], + "type": "Public", + "dnsNameLabel": "dnsnamelabel1", + "fqdn": "dnsnamelabel1.azure-container.io" + }, + "osType": "Linux", + "provisioningState": "Succeeded", + "volumes": [ + { + "name": "volume1", + "azureFile": { + "shareName": "shareName", + "storageAccountName": "accountName" + } + }, + { + "name": "volume2", + "emptyDir": {} + }, + { + "name": "volume3", + "secret": {} + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerListLogs.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerListLogs.json new file mode 100644 index 000000000000..18aa8e411e0c --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerListLogs.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "containerGroupName": "demo1", + "containerName": "container1", + "tail": 10 + }, + "responses": { + "200": { + "body": { + "content": "log content" + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json new file mode 100644 index 000000000000..8d039e005f57 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json new file mode 100644 index 000000000000..27bbd69c2415 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } + } + \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json new file mode 100644 index 000000000000..dd72cc793554 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json new file mode 100644 index 000000000000..d1b16244d14b --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash", + "networkType": "default" + } + } + } + } + } + \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json new file mode 100644 index 000000000000..529c5397c7b2 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "200": { + "headers": { + "x-ms-console-remaining-seconds": 300 + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/OperationsList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/OperationsList.json new file mode 100644 index 000000000000..b57c64e5a5d2 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/OperationsList.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerInstance/containerGroups/read", + "display": { + "provider": "Microsoft Container Instance", + "resource": "Container Group", + "operation": "Get Container Groups", + "description": "Get all container goups." + }, + "origin": "User" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json new file mode 100644 index 000000000000..248ea5cdca03 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json new file mode 100644 index 000000000000..3018e135afd0 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash", + "networkType": "default" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash", + "networkType": "default" + } + } + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ServiceAssociationLink_Delete.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ServiceAssociationLink_Delete.json new file mode 100644 index 000000000000..fc736f99e256 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ServiceAssociationLink_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-10-01", + "resourceGroupName": "demo", + "virtualNetworkName": "demo1", + "subnetName": "demo1" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file From 918b99af50c846b9a36534e4ef69ea01a1ddf932 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 31 Mar 2020 10:17:16 -0700 Subject: [PATCH 02/34] readme and remove aci examples --- .../examples/CachedImagesList.json | 27 -- .../examples/CapabilitiesList.json | 39 --- .../examples/ContainerExec.json | 24 -- .../examples/ContainerGroupUsage.json | 25 -- .../ContainerGroupsCreateOrUpdate.json | 300 ------------------ .../examples/ContainerGroupsDelete.json | 12 - .../examples/ContainerGroupsGet_Failed.json | 115 ------- .../ContainerGroupsGet_Succeeded.json | 76 ----- .../examples/ContainerGroupsList.json | 87 ----- .../ContainerGroupsListByResourceGroup.json | 79 ----- .../examples/ContainerGroupsRestart.json | 11 - .../examples/ContainerGroupsStart.json | 11 - .../examples/ContainerGroupsStop.json | 11 - .../examples/ContainerGroupsUpdate.json | 100 ------ .../examples/ContainerListLogs.json | 17 - .../examples/OperationsList.json | 23 -- .../ServiceAssociationLink_Delete.json | 13 - .../2018-10-01/examples/CachedImagesList.json | 27 -- .../2018-10-01/examples/CapabilitiesList.json | 39 --- .../2018-10-01/examples/ContainerExec.json | 24 -- .../examples/ContainerGroupUsage.json | 25 -- .../ContainerGroupsCreateOrUpdate.json | 300 ------------------ .../examples/ContainerGroupsDelete.json | 12 - .../examples/ContainerGroupsGet_Failed.json | 115 ------- .../ContainerGroupsGet_Succeeded.json | 76 ----- .../examples/ContainerGroupsList.json | 87 ----- .../ContainerGroupsListByResourceGroup.json | 79 ----- .../examples/ContainerGroupsRestart.json | 11 - .../examples/ContainerGroupsStart.json | 11 - .../examples/ContainerGroupsStop.json | 11 - .../examples/ContainerGroupsUpdate.json | 100 ------ .../examples/ContainerListLogs.json | 17 - .../2018-10-01/examples/OperationsList.json | 23 -- .../ServiceAssociationLink_Delete.json | 13 - .../cloudshell/resource-manager/readme.md | 157 +++++++++ 35 files changed, 157 insertions(+), 1940 deletions(-) delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CachedImagesList.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CapabilitiesList.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerExec.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupUsage.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsCreateOrUpdate.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsDelete.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Failed.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Succeeded.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsList.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsListByResourceGroup.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsRestart.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStart.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStop.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsUpdate.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerListLogs.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/OperationsList.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ServiceAssociationLink_Delete.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CachedImagesList.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CapabilitiesList.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerExec.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupUsage.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsDelete.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Failed.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Succeeded.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsList.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsListByResourceGroup.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsRestart.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStart.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStop.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsUpdate.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerListLogs.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/OperationsList.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ServiceAssociationLink_Delete.json create mode 100644 specification/cloudshell/resource-manager/readme.md diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CachedImagesList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CachedImagesList.json deleted file mode 100644 index de3ee2a11221..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CachedImagesList.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "location": "westcentralus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "osType": "Linux", - "image": "ubuntu:16.04" - }, - { - "osType": "Linux", - "image": "alpine:3.6" - }, - { - "osType": "Windows", - "image": "microsoft/nanoserver:10.0.14393.2485" - } - ] - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CapabilitiesList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CapabilitiesList.json deleted file mode 100644 index c312e05d75c8..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/CapabilitiesList.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "location": "westus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "resourceType": "containerGroups", - "osType": "Linux", - "location": "West US", - "ipAddressType": "Public", - "gpu": "K80", - "capabilities": { - "maxMemoryInGB": 14, - "maxCPU": 4, - "maxGpuCount": 4 - } - }, - { - "resourceType": "containerGroups", - "osType": "Windows", - "location": "West US", - "ipAddressType": "Public", - "gpu": "None", - "capabilities": { - "maxMemoryInGB": 14, - "maxCPU": 4, - "maxGpuCount": 0 - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerExec.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerExec.json deleted file mode 100644 index 0baba25420f0..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerExec.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "containerName": "container1", - "containerExecRequest": { - "command": "/bin/bash", - "terminalSize": { - "row": 12, - "column": 12 - } - } - }, - "responses": { - "200": { - "body": { - "webSocketUri": "wss://web-socket-uri", - "password": "password" - } - } - } - } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupUsage.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupUsage.json deleted file mode 100644 index 7479fd886705..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupUsage.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "location": "westcentralus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "unit": "Count", - "currentValue": 1, - "limit": 2000, - "name": { - "value": "ContainerGroups", - "localizedValue": "Container Groups" - } - } - ] - } - } - } - } - \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsCreateOrUpdate.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsCreateOrUpdate.json deleted file mode 100644 index 8218af17be94..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsCreateOrUpdate.json +++ /dev/null @@ -1,300 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "containerGroup": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "west us", - "name": "demo1", - "identity": { - "type": "SystemAssigned, UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {} - } - }, - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5, - "gpu": { - "count": 1, - "sku": "K80" - } - } - }, - "volumeMounts": [ - { - "name": "volume1", - "mountPath": "/mnt/volume1", - "readOnly": false - }, - { - "name": "volume2", - "mountPath": "/mnt/volume2", - "readOnly": false - }, - { - "name": "volume3", - "mountPath": "/mnt/volume3", - "readOnly": true - } - ] - } - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "workspaceid", - "workspaceKey": "workspaceKey", - "logType": "ContainerInsights", - "metadata": { - "test-key": "test-metadata-value" - } - } - }, - "networkProfile": { - "id": "test-network-profile-id" - }, - "dnsConfig": { - "nameServers": [ "1.1.1.1" ], - "searchDomains": "cluster.local svc.cluster.local", - "options": "ndots:2" - }, - "imageRegistryCredentials": [], - "ipAddress": { - "ports": [ - { - "protocol": "TCP", - "port": 80 - } - ], - "type": "Public", - "dnsNameLabel": "dnsnamelabel1" - }, - "osType": "Linux", - "volumes": [ - { - "name": "volume1", - "azureFile": { - "shareName": "shareName", - "storageAccountName": "accountName", - "storageAccountKey": "accountKey" - } - }, - { - "name": "volume2", - "emptyDir": {} - }, - { - "name": "volume3", - "secret": - { - "secretKey1": "SecretValue1InBase64", - "secretKey2": "SecretValue2InBase64" - } - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5, - "gpu": { - "count": 1, - "sku": "K80" - } - } - }, - "volumeMounts": [ - { - "name": "volume1", - "mountPath": "/mnt/volume1", - "readOnly": false - }, - { - "name": "volume2", - "mountPath": "/mnt/volume2", - "readOnly": false - }, - { - "name": "volume3", - "mountPath": "/mnt/volume3", - "readOnly": true - } - ] - } - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "workspaceid", - "workspaceKey": "" - } - }, - "dnsConfig": { - "nameServers": [ "1.1.1.1" ], - "searchDomains": "cluster.local svc.cluster.local", - "options": "ndots:2" - }, - "imageRegistryCredentials": [], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public", - "dnsNameLabel": "dnsnamelabel1", - "fqdn": "dnsnamelabel1.azure-container.io" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "name": "volume1", - "azureFile": { - "shareName": "shareName", - "storageAccountName": "accountName" - } - }, - { - "name": "volume2", - "emptyDir": {} - }, - { - "name": "volume3", - "secret": {} - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - }, - "201": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5, - "gpu": { - "count": 1, - "sku": "K80" - } - } - }, - "volumeMounts": [ - { - "name": "volume1", - "mountPath": "/mnt/volume1", - "readOnly": false - }, - { - "name": "volume2", - "mountPath": "/mnt/volume2", - "readOnly": false - }, - { - "name": "volume3", - "mountPath": "/mnt/volume3", - "readOnly": true - } - ] - } - } - ], - "dnsConfig": { - "nameServers": [ "1.1.1.1" ] - }, - "imageRegistryCredentials": [], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public", - "dnsNameLabel": "dnsnamelabel1", - "fqdn": "dnsnamelabel1.azure-container.io" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "name": "volume1", - "azureFile": { - "shareName": "shareName", - "storageAccountName": "accountName" - } - }, - { - "name": "volume2", - "emptyDir": {} - }, - { - "name": "volume3", - "secret":{} - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsDelete.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsDelete.json deleted file mode 100644 index 2b79daf27fc6..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsDelete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1" - }, - "responses": { - "200": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Failed.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Failed.json deleted file mode 100644 index d187770eed84..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Failed.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "instanceView": { - "restartCount": 0, - "currentState": { - "state": "Waiting", - "startTime": "2017-08-08T00:09:10Z", - "detailStatus": "" - }, - "events": [ - { - "count": 1, - "firstTimestamp": "2017-08-08T00:09:01Z", - "lastTimestamp": "2017-08-08T00:09:01Z", - "message": "pulling image \"nginx\"", - "name": "Pulling", - "type": "Normal" - }, - { - "count": 1, - "firstTimestamp": "2017-08-08T00:09:10Z", - "lastTimestamp": "2017-08-08T00:09:10Z", - "message": "Successfully pulled image \"nginx\"", - "name": "Pulled", - "type": "Normal" - } - ] - }, - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "mountPath": "/mnt/volume1", - "name": "volume1", - "readOnly": false - } - ] - } - } - ], - "imageRegistryCredentials": [ - { - "server": "azcloudconsoleregistry.azurecr.io", - "username": "azcloudconsoleregistry" - } - ], - "instanceView": { - "events": [ - { - "count": 1, - "firstTimestamp": "2017-10-08T00:19:10Z", - "lastTimestamp": "2017-10-08T00:19:10Z", - "message": "Output: mount error(2): Permission denied", - "name": "FailedMount", - "type": "Normal" - } - ], - "state": "Pending" - }, - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public" - }, - "osType": "Linux", - "provisioningState": "Failed", - "volumes": [ - { - "azureFile": { - "readOnly": false, - "shareName": "share1", - "storageAccountName": "storage1" - }, - "name": "volume1" - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Succeeded.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Succeeded.json deleted file mode 100644 index 4fb6b98e07d7..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsGet_Succeeded.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "mountPath": "/mnt/volume1", - "name": "volume1", - "readOnly": false - } - ] - } - } - ], - "imageRegistryCredentials": [ - { - "server": "azcloudconsoleregistry.azurecr.io", - "username": "azcloudconsoleregistry" - } - ], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "azureFile": { - "readOnly": false, - "shareName": "share1", - "storageAccountName": "storage1" - }, - "name": "volume1" - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsList.json deleted file mode 100644 index 92cc12338a93..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsList.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "instanceView": { - "restartCount": 0, - "currentState": { - "state": "Running", - "startTime": "2017-10-17T17:27:21Z", - "detailStatus": "" - }, - "events":[] - }, - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "mountPath": "/mnt/volume1", - "name": "volume1", - "readOnly": false - } - ] - } - } - ], - "imageRegistryCredentials": [ - { - "server": "azcloudconsoleregistry.azurecr.io", - "username": "azcloudconsoleregistry" - } - ], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "azureFile": { - "readOnly": false, - "shareName": "share1", - "storageAccountName": "storage1" - }, - "name": "volume1" - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsListByResourceGroup.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsListByResourceGroup.json deleted file mode 100644 index a5a323658f93..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsListByResourceGroup.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "demo", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "mountPath": "/mnt/volume1", - "name": "volume1", - "readOnly": false - } - ] - } - } - ], - "imageRegistryCredentials": [ - { - "server": "azcloudconsoleregistry.azurecr.io", - "username": "azcloudconsoleregistry" - } - ], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "azureFile": { - "readOnly": false, - "shareName": "share1", - "storageAccountName": "storage1" - }, - "name": "volume1" - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsRestart.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsRestart.json deleted file mode 100644 index ceaa1376b456..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsRestart.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1" - }, - "responses": { - "204": {} - } - } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStart.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStart.json deleted file mode 100644 index ceaa1376b456..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStart.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1" - }, - "responses": { - "204": {} - } - } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStop.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStop.json deleted file mode 100644 index ceaa1376b456..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsStop.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1" - }, - "responses": { - "204": {} - } - } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsUpdate.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsUpdate.json deleted file mode 100644 index 8a8fd7174a3f..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerGroupsUpdate.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demoResource", - "containerGroupName": "demo1", - "Resource": { - "tags": { - "tag1key": "tag1Value", - "tag2key": "tag2Value" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demoResource/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "type": "Microsoft.ContainerInstance/containerGroups", - "tags": { - "tag1key": "tag1Value", - "tag2key": "tag2Value" - }, - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "name": "volume1", - "mountPath": "/mnt/volume1", - "readOnly": false - }, - { - "name": "volume2", - "mountPath": "/mnt/volume2", - "readOnly": false - }, - { - "name": "volume3", - "mountPath": "/mnt/volume3", - "readOnly": true - } - ] - } - } - ], - "imageRegistryCredentials": [], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public", - "dnsNameLabel": "dnsnamelabel1", - "fqdn": "dnsnamelabel1.azure-container.io" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "name": "volume1", - "azureFile": { - "shareName": "shareName", - "storageAccountName": "accountName" - } - }, - { - "name": "volume2", - "emptyDir": {} - }, - { - "name": "volume3", - "secret": {} - } - ] - } - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerListLogs.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerListLogs.json deleted file mode 100644 index 18aa8e411e0c..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ContainerListLogs.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "containerName": "container1", - "tail": 10 - }, - "responses": { - "200": { - "body": { - "content": "log content" - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/OperationsList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/OperationsList.json deleted file mode 100644 index b57c64e5a5d2..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/OperationsList.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.ContainerInstance/containerGroups/read", - "display": { - "provider": "Microsoft Container Instance", - "resource": "Container Group", - "operation": "Get Container Groups", - "description": "Get all container goups." - }, - "origin": "User" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ServiceAssociationLink_Delete.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ServiceAssociationLink_Delete.json deleted file mode 100644 index fc736f99e256..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/ServiceAssociationLink_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "virtualNetworkName": "demo1", - "subnetName": "demo1" - }, - "responses": { - "200": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CachedImagesList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CachedImagesList.json deleted file mode 100644 index de3ee2a11221..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CachedImagesList.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "location": "westcentralus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "osType": "Linux", - "image": "ubuntu:16.04" - }, - { - "osType": "Linux", - "image": "alpine:3.6" - }, - { - "osType": "Windows", - "image": "microsoft/nanoserver:10.0.14393.2485" - } - ] - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CapabilitiesList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CapabilitiesList.json deleted file mode 100644 index c312e05d75c8..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/CapabilitiesList.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "location": "westus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "resourceType": "containerGroups", - "osType": "Linux", - "location": "West US", - "ipAddressType": "Public", - "gpu": "K80", - "capabilities": { - "maxMemoryInGB": 14, - "maxCPU": 4, - "maxGpuCount": 4 - } - }, - { - "resourceType": "containerGroups", - "osType": "Windows", - "location": "West US", - "ipAddressType": "Public", - "gpu": "None", - "capabilities": { - "maxMemoryInGB": 14, - "maxCPU": 4, - "maxGpuCount": 0 - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerExec.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerExec.json deleted file mode 100644 index 0baba25420f0..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerExec.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "containerName": "container1", - "containerExecRequest": { - "command": "/bin/bash", - "terminalSize": { - "row": 12, - "column": 12 - } - } - }, - "responses": { - "200": { - "body": { - "webSocketUri": "wss://web-socket-uri", - "password": "password" - } - } - } - } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupUsage.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupUsage.json deleted file mode 100644 index 7479fd886705..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupUsage.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "location": "westcentralus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "unit": "Count", - "currentValue": 1, - "limit": 2000, - "name": { - "value": "ContainerGroups", - "localizedValue": "Container Groups" - } - } - ] - } - } - } - } - \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.json deleted file mode 100644 index 8218af17be94..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.json +++ /dev/null @@ -1,300 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "containerGroup": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "west us", - "name": "demo1", - "identity": { - "type": "SystemAssigned, UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {} - } - }, - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5, - "gpu": { - "count": 1, - "sku": "K80" - } - } - }, - "volumeMounts": [ - { - "name": "volume1", - "mountPath": "/mnt/volume1", - "readOnly": false - }, - { - "name": "volume2", - "mountPath": "/mnt/volume2", - "readOnly": false - }, - { - "name": "volume3", - "mountPath": "/mnt/volume3", - "readOnly": true - } - ] - } - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "workspaceid", - "workspaceKey": "workspaceKey", - "logType": "ContainerInsights", - "metadata": { - "test-key": "test-metadata-value" - } - } - }, - "networkProfile": { - "id": "test-network-profile-id" - }, - "dnsConfig": { - "nameServers": [ "1.1.1.1" ], - "searchDomains": "cluster.local svc.cluster.local", - "options": "ndots:2" - }, - "imageRegistryCredentials": [], - "ipAddress": { - "ports": [ - { - "protocol": "TCP", - "port": 80 - } - ], - "type": "Public", - "dnsNameLabel": "dnsnamelabel1" - }, - "osType": "Linux", - "volumes": [ - { - "name": "volume1", - "azureFile": { - "shareName": "shareName", - "storageAccountName": "accountName", - "storageAccountKey": "accountKey" - } - }, - { - "name": "volume2", - "emptyDir": {} - }, - { - "name": "volume3", - "secret": - { - "secretKey1": "SecretValue1InBase64", - "secretKey2": "SecretValue2InBase64" - } - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5, - "gpu": { - "count": 1, - "sku": "K80" - } - } - }, - "volumeMounts": [ - { - "name": "volume1", - "mountPath": "/mnt/volume1", - "readOnly": false - }, - { - "name": "volume2", - "mountPath": "/mnt/volume2", - "readOnly": false - }, - { - "name": "volume3", - "mountPath": "/mnt/volume3", - "readOnly": true - } - ] - } - } - ], - "diagnostics": { - "logAnalytics": { - "workspaceId": "workspaceid", - "workspaceKey": "" - } - }, - "dnsConfig": { - "nameServers": [ "1.1.1.1" ], - "searchDomains": "cluster.local svc.cluster.local", - "options": "ndots:2" - }, - "imageRegistryCredentials": [], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public", - "dnsNameLabel": "dnsnamelabel1", - "fqdn": "dnsnamelabel1.azure-container.io" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "name": "volume1", - "azureFile": { - "shareName": "shareName", - "storageAccountName": "accountName" - } - }, - { - "name": "volume2", - "emptyDir": {} - }, - { - "name": "volume3", - "secret": {} - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - }, - "201": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5, - "gpu": { - "count": 1, - "sku": "K80" - } - } - }, - "volumeMounts": [ - { - "name": "volume1", - "mountPath": "/mnt/volume1", - "readOnly": false - }, - { - "name": "volume2", - "mountPath": "/mnt/volume2", - "readOnly": false - }, - { - "name": "volume3", - "mountPath": "/mnt/volume3", - "readOnly": true - } - ] - } - } - ], - "dnsConfig": { - "nameServers": [ "1.1.1.1" ] - }, - "imageRegistryCredentials": [], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public", - "dnsNameLabel": "dnsnamelabel1", - "fqdn": "dnsnamelabel1.azure-container.io" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "name": "volume1", - "azureFile": { - "shareName": "shareName", - "storageAccountName": "accountName" - } - }, - { - "name": "volume2", - "emptyDir": {} - }, - { - "name": "volume3", - "secret":{} - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsDelete.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsDelete.json deleted file mode 100644 index 2b79daf27fc6..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsDelete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1" - }, - "responses": { - "200": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Failed.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Failed.json deleted file mode 100644 index d187770eed84..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Failed.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "instanceView": { - "restartCount": 0, - "currentState": { - "state": "Waiting", - "startTime": "2017-08-08T00:09:10Z", - "detailStatus": "" - }, - "events": [ - { - "count": 1, - "firstTimestamp": "2017-08-08T00:09:01Z", - "lastTimestamp": "2017-08-08T00:09:01Z", - "message": "pulling image \"nginx\"", - "name": "Pulling", - "type": "Normal" - }, - { - "count": 1, - "firstTimestamp": "2017-08-08T00:09:10Z", - "lastTimestamp": "2017-08-08T00:09:10Z", - "message": "Successfully pulled image \"nginx\"", - "name": "Pulled", - "type": "Normal" - } - ] - }, - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "mountPath": "/mnt/volume1", - "name": "volume1", - "readOnly": false - } - ] - } - } - ], - "imageRegistryCredentials": [ - { - "server": "azcloudconsoleregistry.azurecr.io", - "username": "azcloudconsoleregistry" - } - ], - "instanceView": { - "events": [ - { - "count": 1, - "firstTimestamp": "2017-10-08T00:19:10Z", - "lastTimestamp": "2017-10-08T00:19:10Z", - "message": "Output: mount error(2): Permission denied", - "name": "FailedMount", - "type": "Normal" - } - ], - "state": "Pending" - }, - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public" - }, - "osType": "Linux", - "provisioningState": "Failed", - "volumes": [ - { - "azureFile": { - "readOnly": false, - "shareName": "share1", - "storageAccountName": "storage1" - }, - "name": "volume1" - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Succeeded.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Succeeded.json deleted file mode 100644 index 4fb6b98e07d7..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsGet_Succeeded.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "mountPath": "/mnt/volume1", - "name": "volume1", - "readOnly": false - } - ] - } - } - ], - "imageRegistryCredentials": [ - { - "server": "azcloudconsoleregistry.azurecr.io", - "username": "azcloudconsoleregistry" - } - ], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "azureFile": { - "readOnly": false, - "shareName": "share1", - "storageAccountName": "storage1" - }, - "name": "volume1" - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsList.json deleted file mode 100644 index 92cc12338a93..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsList.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "instanceView": { - "restartCount": 0, - "currentState": { - "state": "Running", - "startTime": "2017-10-17T17:27:21Z", - "detailStatus": "" - }, - "events":[] - }, - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "mountPath": "/mnt/volume1", - "name": "volume1", - "readOnly": false - } - ] - } - } - ], - "imageRegistryCredentials": [ - { - "server": "azcloudconsoleregistry.azurecr.io", - "username": "azcloudconsoleregistry" - } - ], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "azureFile": { - "readOnly": false, - "shareName": "share1", - "storageAccountName": "storage1" - }, - "name": "volume1" - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsListByResourceGroup.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsListByResourceGroup.json deleted file mode 100644 index a5a323658f93..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsListByResourceGroup.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "demo", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "mountPath": "/mnt/volume1", - "name": "volume1", - "readOnly": false - } - ] - } - } - ], - "imageRegistryCredentials": [ - { - "server": "azcloudconsoleregistry.azurecr.io", - "username": "azcloudconsoleregistry" - } - ], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "azureFile": { - "readOnly": false, - "shareName": "share1", - "storageAccountName": "storage1" - }, - "name": "volume1" - } - ] - }, - "type": "Microsoft.ContainerInstance/containerGroups" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsRestart.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsRestart.json deleted file mode 100644 index ceaa1376b456..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsRestart.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1" - }, - "responses": { - "204": {} - } - } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStart.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStart.json deleted file mode 100644 index ceaa1376b456..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStart.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1" - }, - "responses": { - "204": {} - } - } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStop.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStop.json deleted file mode 100644 index ceaa1376b456..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsStop.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1" - }, - "responses": { - "204": {} - } - } \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsUpdate.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsUpdate.json deleted file mode 100644 index 8a8fd7174a3f..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerGroupsUpdate.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demoResource", - "containerGroupName": "demo1", - "Resource": { - "tags": { - "tag1key": "tag1Value", - "tag2key": "tag2Value" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/demoResource/providers/Microsoft.ContainerInstance/containerGroups/demo1", - "location": "WestUs", - "name": "demo1", - "type": "Microsoft.ContainerInstance/containerGroups", - "tags": { - "tag1key": "tag1Value", - "tag2key": "tag2Value" - }, - "properties": { - "containers": [ - { - "name": "demo1", - "properties": { - "command": [], - "environmentVariables": [], - "image": "nginx", - "ports": [ - { - "port": 80 - } - ], - "resources": { - "requests": { - "cpu": 1, - "memoryInGB": 1.5 - } - }, - "volumeMounts": [ - { - "name": "volume1", - "mountPath": "/mnt/volume1", - "readOnly": false - }, - { - "name": "volume2", - "mountPath": "/mnt/volume2", - "readOnly": false - }, - { - "name": "volume3", - "mountPath": "/mnt/volume3", - "readOnly": true - } - ] - } - } - ], - "imageRegistryCredentials": [], - "ipAddress": { - "ip": "10.0.0.1", - "ports": [ - { - "port": 80, - "protocol": "TCP" - } - ], - "type": "Public", - "dnsNameLabel": "dnsnamelabel1", - "fqdn": "dnsnamelabel1.azure-container.io" - }, - "osType": "Linux", - "provisioningState": "Succeeded", - "volumes": [ - { - "name": "volume1", - "azureFile": { - "shareName": "shareName", - "storageAccountName": "accountName" - } - }, - { - "name": "volume2", - "emptyDir": {} - }, - { - "name": "volume3", - "secret": {} - } - ] - } - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerListLogs.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerListLogs.json deleted file mode 100644 index 18aa8e411e0c..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ContainerListLogs.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "containerGroupName": "demo1", - "containerName": "container1", - "tail": 10 - }, - "responses": { - "200": { - "body": { - "content": "log content" - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/OperationsList.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/OperationsList.json deleted file mode 100644 index b57c64e5a5d2..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/OperationsList.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.ContainerInstance/containerGroups/read", - "display": { - "provider": "Microsoft Container Instance", - "resource": "Container Group", - "operation": "Get Container Groups", - "description": "Get all container goups." - }, - "origin": "User" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ServiceAssociationLink_Delete.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ServiceAssociationLink_Delete.json deleted file mode 100644 index fc736f99e256..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/ServiceAssociationLink_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2018-10-01", - "resourceGroupName": "demo", - "virtualNetworkName": "demo1", - "subnetName": "demo1" - }, - "responses": { - "200": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/readme.md b/specification/cloudshell/resource-manager/readme.md new file mode 100644 index 000000000000..934a14010458 --- /dev/null +++ b/specification/cloudshell/resource-manager/readme.md @@ -0,0 +1,157 @@ +# CloudShell + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for YourServiceName. + +## Getting Started + +To build the SDKs for CloudShell, 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 CloudShell. + +```yaml +openapi-type: arm +tag: package-2018-10-01 +``` + +### Tag: package-2018-10-01 + +These settings apply only when `--tag=package-2018-10-01` is specified on the command line. + +```yaml $(tag) == 'package-2018-10-01' +input-file: + - Microsoft.Portal/stable/2018-10-01/CloudShell.json +``` + +### Tag: package-2020-04-01 + +These settings apply only when `--tag=package-2020-04-01` is specified on the command line. + +``` yaml $(tag) == 'package-2020-04-01' +input-file: +- Microsoft.Portal/preview/2020-04-01/CloudShell.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 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_YourServiceName'] +``` + +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + clear-output-folder: true + namespace: cloudshell +``` + +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: Microsoft.Portal + package-name: CloudShell + clear-output-folder: true +``` +``` yaml $(python) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt/cloudshell +``` + +## Ruby + +```yaml +package-name: azure_mgmt_cloudshell +package-version: 2018-10-01 +azure-arm: true +``` + +### Tag: package-2018-10-01 and ruby + +These settings apply only when `--tag=package-2018-10-01 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2018-10-01' && $(ruby) +namespace: Microsoft.Portal +output-folder: $(ruby-sdks-folder)/CloudShell +``` + +### Tag: package-2020-04-01 and ruby + +These settings apply only when `--tag=package-2018-04-01 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2018-04-01' && $(ruby) +namespace: Microsoft.Portal +output-folder: $(ruby-sdks-folder)/CloudShell +``` + +## 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: "CloudShell" + output-folder: "$(typescript-sdks-folder)/packages/CloudShell" + payload-flattening-threshold: 1 + generate-metadata: true +``` + +## CSharp + +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.CloudShell + output-folder: $(csharp-sdks-folder)/CloudShell/management/Microsoft.CloudShell/GeneratedProtocol +``` \ No newline at end of file From 2ea8398550bf06436632022dba2dca5270b86524 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 31 Mar 2020 10:21:49 -0700 Subject: [PATCH 03/34] service name --- specification/cloudshell/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cloudshell/resource-manager/readme.md b/specification/cloudshell/resource-manager/readme.md index 934a14010458..c0ab970e7ccf 100644 --- a/specification/cloudshell/resource-manager/readme.md +++ b/specification/cloudshell/resource-manager/readme.md @@ -2,7 +2,7 @@ > see https://aka.ms/autorest -This is the AutoRest configuration file for YourServiceName. +This is the AutoRest configuration file for CloudShell. ## Getting Started From 59bdc578a51bf8f2bb1ebacca9bbd2bab36b65bd Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 31 Mar 2020 11:40:44 -0700 Subject: [PATCH 04/34] service name --- specification/cloudshell/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cloudshell/resource-manager/readme.md b/specification/cloudshell/resource-manager/readme.md index c0ab970e7ccf..05b46f19ad94 100644 --- a/specification/cloudshell/resource-manager/readme.md +++ b/specification/cloudshell/resource-manager/readme.md @@ -64,7 +64,7 @@ swagger-to-sdk: - repo: azure-sdk-for-js - repo: azure-sdk-for-ruby after_scripts: - - bundle install && rake arm:regen_all_profiles['azure_mgmt_YourServiceName'] + - bundle install && rake arm:regen_all_profiles['azure_mgmt_cloudshell'] ``` ## Go From f2a63405d2551174e946461b7ec2ceb9b8c898fa Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 31 Mar 2020 13:07:42 -0700 Subject: [PATCH 05/34] style fixes --- custom-words.txt | 2 ++ .../preview/2020-04-01-preview/cloudShell.json | 11 ++++------- .../stable/2018-10-01/cloudShell.json | 11 ++++------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 3ec327a39ea6..c9697b796836 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -895,6 +895,7 @@ modelmanagement MODIFYACLENTRIES monitoringconfiguration monitoringconfigurations +Monospace MPNS MSAZR MSAZRDE @@ -1128,6 +1129,7 @@ pullrequest Purgeable pushdown pushsettings +pwsh Pyspark pytorch QFEs diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json index 545818a3f1ab..765dab418c81 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json @@ -641,8 +641,7 @@ "description": "Console definition", "type": "object", "required": [ - "properties", - "name" + "properties" ], "properties": { "properties": { @@ -654,8 +653,7 @@ "description": "Response to get user settings", "type": "object", "required": [ - "properties", - "name" + "properties" ], "properties": { "properties": { @@ -690,8 +688,7 @@ "description": "Cloud shell user settings.", "type": "object", "required": [ - "properties", - "name" + "properties" ], "properties": { "properties": { @@ -712,7 +709,7 @@ ], "properties": { "preferredOsType": { - "description": "The operating system type of the cloud shell. Deprecated, use preferedShellType.", + "description": "The operating system type of the cloud shell. Deprecated, use preferredShellType.", "type": "string", "enum": [ "Windows", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index 1de9c9419032..52ad72fc4d18 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -641,8 +641,7 @@ "description": "Console definition", "type": "object", "required": [ - "properties", - "name" + "properties" ], "properties": { "properties": { @@ -654,8 +653,7 @@ "description": "Response to get user settings", "type": "object", "required": [ - "properties", - "name" + "properties" ], "properties": { "properties": { @@ -690,8 +688,7 @@ "description": "Cloud shell user settings.", "type": "object", "required": [ - "properties", - "name" + "properties" ], "properties": { "properties": { @@ -711,7 +708,7 @@ ], "properties": { "preferredOsType": { - "description": "The operating system type of the cloud shell. Deprecated, use preferedShellType.", + "description": "The operating system type of the cloud shell. Deprecated, use preferredShellType.", "type": "string", "enum": [ "Windows", From 3a69b7356bf8c591da7229ae7b81b0e7ff781d39 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 31 Mar 2020 13:19:56 -0700 Subject: [PATCH 06/34] change casing on filename --- .../2020-04-01-preview/CloudShell.json | 878 ++++++++++++++++++ .../stable/2018-10-01/CloudShell.json | 845 +++++++++++++++++ 2 files changed, 1723 insertions(+) create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json new file mode 100644 index 000000000000..765dab418c81 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json @@ -0,0 +1,878 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-04-01-preview", + "title": "CloudShellClient" + }, + "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.Portal/locations/{location}/userSettings/{userSettingsName}": { + "get": { + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/GetUserSettings.json" + } + }, + "summary": "Get user settings.", + "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetUserSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "summary": "patch user settings.", + "description": "Patch cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "delete user settings.", + "x-ms-examples": { + "DeleteUserSettings": { + "$ref": "./examples/DeleteUserSettings.json" + } + }, + "description": "Delete cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "put user settings.", + "x-ms-examples": { + "PutUserSettings": { + "$ref": "./examples/PutUserSettings.json" + } + }, + "description": "Create or update cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { + "get": { + "summary": "Get console", + "x-ms-examples": { + "GetConsole": { + "$ref": "./examples/GetConsole.json" + } + }, + "description": "Gets the console for the user.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "Put console", + "x-ms-examples": { + "PutConsole": { + "$ref": "./examples/PutConsole.json" + } + }, + "description": "Puts a request for a console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "Delete console", + "x-ms-examples": { + "DeleteConsole": { + "$ref": "./examples/DeleteConsole.json" + } + }, + "description": "Deletes the console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { + "post": { + "summary": "Keep alive", + "description": "Keep console alive", + "parameters": [ + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-ms-console-remaining-seconds": { + "type": "integer", + "description": "Remaining time left in session, in seconds." + } + } + } + } + } + }, + "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { + "get": { + "operationId": "GetUserSettings", + "summary": "Get user settings.", + "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetUserSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "summary": "patch user settings.", + "description": "Patch cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "delete user settings.", + "description": "Delete cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "put user settings.", + "description": "Create or update cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/consoles/{consoleName}": { + "get": { + "summary": "Get console", + "description": "Gets the console for the user.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "Put console", + "description": "Puts a request for a console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "name": "ConsoleDefinition", + "description": "The console definition.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/ConsoleDefinition" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "Delete console", + "description": "Deletes the console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { + "post": { + "summary": "Keep alive", + "description": "Keep console alive", + "parameters": [ + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-ms-console-remaining-seconds": { + "type": "integer", + "description": "Remaining time left in session, in seconds." + } + } + } + } + } + } + }, + "definitions": { + "CloudShellConsole": { + "description": "Cloud shell console", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConsoleProperties" + } + } + }, + "ConsoleProperties": { + "description": "Cloud shell console properties.", + "type": "object", + "required": [ + "OsType", + "ProvisioningState", + "Uri" + ], + "properties": { + "OsType": { + "description": "The operating system type of the cloud shell.", + "type": "string", + "enum": [ + "Linux", + "Windows" + ] + }, + "ProvisioningState": { + "description": "Provisioning state of the console.", + "type": "string", + "enum": [ + "NotSpecified", + "Accepted", + "Pending", + "Updating", + "Creating", + "Repairing", + "Failed", + "Canceled", + "Succeeded" + ] + }, + "Uri": { + "description": "Uri of the console.", + "type": "string" + } + } + }, + "ConsoleCreateProperties": { + "description": "Cloud shell properties for creating a console.", + "type": "object", + "required": [ + "OsType" + ], + "properties": { + "OsType": { + "description": "The operating system type of the cloud shell.", + "type": "string", + "enum": [ + "Linux", + "Windows" + ] + }, + "ProvisioningState": { + "description": "Provisioning state of the console.", + "type": "string", + "enum": [ + "NotSpecified", + "Accepted", + "Pending", + "Updating", + "Creating", + "Repairing", + "Failed", + "Canceled", + "Succeeded" + ] + }, + "Uri": { + "description": "Uri of the console.", + "type": "string" + } + } + }, + "ConsoleDefinition": { + "description": "Console definition", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConsoleCreateProperties" + } + } + }, + "GetUserSettingsResponse": { + "description": "Response to get user settings", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/GetUserSettingsResponseContent" + } + } + }, + "GetUserSettingsResponseContent": { + "description": "The user settings response content", + "type": "object", + "required": [ + "userSettings", + "headers" + ], + "properties": { + "userSettings": { + "$ref": "#/definitions/CloudShellUserSettings" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } + } + } + }, + "CloudShellUserSettings": { + "description": "Cloud shell user settings.", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/UserProperties" + } + } + }, + "UserProperties": { + "description": "The cloud shell user settings properties.", + "type": "object", + "required": [ + "preferredOsType", + "preferredLocation", + "storageProfile", + "terminalSettings", + "preferredShellType", + "networkType" + ], + "properties": { + "preferredOsType": { + "description": "The operating system type of the cloud shell. Deprecated, use preferredShellType.", + "type": "string", + "enum": [ + "Windows", + "Linux" + ] + }, + "preferredLocation": { + "description": "The preferred location of the cloud shell.", + "type": "string" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile" + }, + "terminalSettings": { + "$ref": "#/definitions/TerminalSettings" + }, + "vnetSettings": { + "$ref": "#/definitions/VnetSettings" + }, + "preferredShellType": { + "description": "The shell type of the cloud shell.", + "type": "string", + "enum": [ + "bash", + "pwsh", + "powershell" + ] + }, + "networkType": { + "description": "Type of network to use for cloud shell container", + "type": "string", + "enum": [ + "isolated", + "default" + ] + } + } + }, + "StorageProfile": { + "description": "The storage profile of the user settings.", + "type": "object", + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "Full resource ID of storage account." + }, + "fileShareName": { + "type": "string", + "description": "Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -" + }, + "diskSizeInGB": { + "type": "integer", + "description": "Size of file share" + } + } + }, + "TerminalSettings": { + "description": "Settings for terminal appearance.", + "type": "object", + "properties": { + "fontSize": { + "type": "string", + "description": "Size of terminal font.", + "enum": [ + "NotSpecified", + "Small", + "Medium", + "Large" + ] + }, + "fontStyle": { + "type": "string", + "description": "Style of terminal font.", + "enum": [ + "NotSpecified", + "Monospace", + "Courier" + ] + } + } + }, + "VnetSettings": { + "description": "Settings for virtual network configuration.", + "type": "object", + "properties": { + "gatewayEndpoint": { + "type": "string", + "description": "Web address of the gateway endpoint." + }, + "networkProfileResourceId": { + "type": "string", + "description": "Full resource ID of the network profile." + }, + "isolatedStorageProfile": { + "$ref": "#/definitions/StorageProfile" + }, + "location": { + "type": "string", + "description": "Location of virtual network." + } + } + }, + "ErrorResponse": { + "title": "ErrorResponse", + "description": "Contains details when the response code indicates an error.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetail" + } + }, + "required": [ + "error" + ] + }, + "ErrorDetail": { + "title": "ErrorDetail", + "type": "object", + "properties": { + "code": { + "description": "The error's code.", + "type": "string" + }, + "message": { + "description": "A human readable error message.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ] + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version", + "x-ms-parameter-location": "client" + }, + "ConsoleNameParameter": { + "name": "consoleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the console" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The provider location" + }, + "UserSettingsNameParameter": { + "name": "userSettingsName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the user settings" + } + } +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json new file mode 100644 index 000000000000..52ad72fc4d18 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -0,0 +1,845 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-04-01-preview", + "title": "CloudShellClient" + }, + "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.Portal/locations/{location}/userSettings/{userSettingsName}": { + "get": { + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/GetUserSettings.json" + } + }, + "summary": "Get user settings.", + "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetUserSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "summary": "patch user settings.", + "description": "Patch cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "delete user settings.", + "x-ms-examples": { + "DeleteUserSettings": { + "$ref": "./examples/DeleteUserSettings.json" + } + }, + "description": "Delete cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "put user settings.", + "x-ms-examples": { + "PutUserSettings": { + "$ref": "./examples/PutUserSettings.json" + } + }, + "description": "Create or update cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { + "get": { + "summary": "Get console", + "x-ms-examples": { + "GetConsole": { + "$ref": "./examples/GetConsole.json" + } + }, + "description": "Gets the console for the user.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "Put console", + "x-ms-examples": { + "PutConsole": { + "$ref": "./examples/PutConsole.json" + } + }, + "description": "Puts a request for a console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "Delete console", + "x-ms-examples": { + "DeleteConsole": { + "$ref": "./examples/DeleteConsole.json" + } + }, + "description": "Deletes the console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { + "post": { + "summary": "Keep alive", + "description": "Keep console alive", + "parameters": [ + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-ms-console-remaining-seconds": { + "type": "integer", + "description": "Remaining time left in session, in seconds." + } + } + } + } + } + }, + "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { + "get": { + "operationId": "GetUserSettings", + "summary": "Get user settings.", + "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetUserSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "summary": "patch user settings.", + "description": "Patch cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "delete user settings.", + "description": "Delete cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "put user settings.", + "description": "Create or update cloud shell settings for current signed in user", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UserSettingsNameParameter" + }, + { + "name": "UserSettings", + "description": "The properties of the user settings to be created or updated.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/CloudShellUserSettings" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/consoles/{consoleName}": { + "get": { + "summary": "Get console", + "description": "Gets the console for the user.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "summary": "Put console", + "description": "Puts a request for a console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + }, + { + "name": "ConsoleDefinition", + "description": "The console definition.", + "required": true, + "in": "body", + "schema": { + "$ref": "#/definitions/ConsoleDefinition" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudShellConsole" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "summary": "Delete console", + "description": "Deletes the console", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { + "post": { + "summary": "Keep alive", + "description": "Keep console alive", + "parameters": [ + { + "$ref": "#/parameters/ConsoleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-ms-console-remaining-seconds": { + "type": "integer", + "description": "Remaining time left in session, in seconds." + } + } + } + } + } + } + }, + "definitions": { + "CloudShellConsole": { + "description": "Cloud shell console", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConsoleProperties" + } + } + }, + "ConsoleProperties": { + "description": "Cloud shell console properties.", + "type": "object", + "required": [ + "OsType", + "ProvisioningState", + "Uri" + ], + "properties": { + "OsType": { + "description": "The operating system type of the cloud shell.", + "type": "string", + "enum": [ + "Linux", + "Windows" + ] + }, + "ProvisioningState": { + "description": "Provisioning state of the console.", + "type": "string", + "enum": [ + "NotSpecified", + "Accepted", + "Pending", + "Updating", + "Creating", + "Repairing", + "Failed", + "Canceled", + "Succeeded" + ] + }, + "Uri": { + "description": "Uri of the console.", + "type": "string" + } + } + }, + "ConsoleCreateProperties": { + "description": "Cloud shell properties for creating a console.", + "type": "object", + "required": [ + "OsType" + ], + "properties": { + "OsType": { + "description": "The operating system type of the cloud shell.", + "type": "string", + "enum": [ + "Linux", + "Windows" + ] + }, + "ProvisioningState": { + "description": "Provisioning state of the console.", + "type": "string", + "enum": [ + "NotSpecified", + "Accepted", + "Pending", + "Updating", + "Creating", + "Repairing", + "Failed", + "Canceled", + "Succeeded" + ] + }, + "Uri": { + "description": "Uri of the console.", + "type": "string" + } + } + }, + "ConsoleDefinition": { + "description": "Console definition", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConsoleCreateProperties" + } + } + }, + "GetUserSettingsResponse": { + "description": "Response to get user settings", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/GetUserSettingsResponseContent" + } + } + }, + "GetUserSettingsResponseContent": { + "description": "The user settings response content", + "type": "object", + "required": [ + "userSettings", + "headers" + ], + "properties": { + "userSettings": { + "$ref": "#/definitions/CloudShellUserSettings" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } + } + } + }, + "CloudShellUserSettings": { + "description": "Cloud shell user settings.", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/UserProperties" + } + } + }, + "UserProperties": { + "description": "The cloud shell user settings properties.", + "type": "object", + "required": [ + "preferredOsType", + "preferredLocation", + "storageProfile", + "terminalSettings", + "preferredShellType" + ], + "properties": { + "preferredOsType": { + "description": "The operating system type of the cloud shell. Deprecated, use preferredShellType.", + "type": "string", + "enum": [ + "Windows", + "Linux" + ] + }, + "preferredLocation": { + "description": "The preferred location of the cloud shell.", + "type": "string" + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile" + }, + "terminalSettings": { + "$ref": "#/definitions/TerminalSettings" + }, + "preferredShellType": { + "description": "The shell type of the cloud shell.", + "type": "string", + "enum": [ + "bash", + "pwsh", + "powershell" + ] + } + } + }, + "StorageProfile": { + "description": "The storage profile of the user settings.", + "type": "object", + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "Full resource ID of storage account." + }, + "fileShareName": { + "type": "string", + "description": "Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -" + }, + "diskSizeInGB": { + "type": "integer", + "description": "Size of file share" + } + } + }, + "TerminalSettings": { + "description": "Settings for terminal appearance.", + "type": "object", + "properties": { + "fontSize": { + "type": "string", + "description": "Size of terminal font.", + "enum": [ + "NotSpecified", + "Small", + "Medium", + "Large" + ] + }, + "fontStyle": { + "type": "string", + "description": "Style of terminal font.", + "enum": [ + "NotSpecified", + "Monospace", + "Courier" + ] + } + } + }, + "ErrorResponse": { + "title": "ErrorResponse", + "description": "Contains details when the response code indicates an error.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetail" + } + }, + "required": [ + "error" + ] + }, + "ErrorDetail": { + "title": "ErrorDetail", + "type": "object", + "properties": { + "code": { + "description": "The error's code.", + "type": "string" + }, + "message": { + "description": "A human readable error message.", + "type": "string" + } + }, + "required": [ + "code", + "message" + ] + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version", + "x-ms-parameter-location": "client" + }, + "ConsoleNameParameter": { + "name": "consoleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the console" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The provider location" + }, + "UserSettingsNameParameter": { + "name": "userSettingsName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the user settings" + } + } +} \ No newline at end of file From 27bf8f461398dcf3533dc29f36f19f3242e3b13a Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 31 Mar 2020 15:23:33 -0700 Subject: [PATCH 07/34] run pretty fix --- .../2020-04-01-preview/CloudShell.json | 2 +- .../2020-04-01-preview/cloudShell.json | 2 +- .../examples/DeleteConsole.json | 18 +++---- .../examples/DeleteUserSettings.json | 17 ++++--- .../examples/GetConsole.json | 30 ++++++------ .../examples/GetUserSettings.json | 45 +++++++++--------- .../examples/KeepAlive.json | 34 +++++++------- .../examples/PutConsole.json | 40 ++++++++-------- .../examples/PutUserSettings.json | 2 +- .../stable/2018-10-01/CloudShell.json | 2 +- .../stable/2018-10-01/cloudShell.json | 2 +- .../2018-10-01/examples/DeleteConsole.json | 18 +++---- .../examples/DeleteUserSettings.json | 17 ++++--- .../2018-10-01/examples/GetConsole.json | 30 ++++++------ .../2018-10-01/examples/GetUserSettings.json | 47 +++++++++---------- .../stable/2018-10-01/examples/KeepAlive.json | 34 +++++++------- .../2018-10-01/examples/PutConsole.json | 40 ++++++++-------- .../2018-10-01/examples/PutUserSettings.json | 2 +- 18 files changed, 189 insertions(+), 193 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json index 765dab418c81..cd45d77428e4 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json @@ -875,4 +875,4 @@ "description": "The name of the user settings" } } -} \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json index 765dab418c81..cd45d77428e4 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json @@ -875,4 +875,4 @@ "description": "The name of the user settings" } } -} \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json index 8d039e005f57..4fbaa60ecc56 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json @@ -1,10 +1,10 @@ { - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": {} - } -} \ No newline at end of file + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json index 27bbd69c2415..05e0511a0004 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json @@ -1,11 +1,10 @@ { - "parameters": { - "userSettingsName": "cloudconsole", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": {} - } + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} } - \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json index dd72cc793554..fe8097963b2c 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json @@ -1,18 +1,18 @@ { - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "osType": "Linux", - "provisioningState": "Succeeded", - "uri": "string" - } - } + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" } + } } -} \ No newline at end of file + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json index e9fd632acc4e..3f99bf4fde31 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json @@ -1,28 +1,27 @@ { - "parameters": { - "userSettingsName": "cloudconsole", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" } } } } - \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json index 529c5397c7b2..6aecb9bdc77b 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json @@ -1,19 +1,19 @@ { - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01", - "body": { - "properties": { - "OsType": "Linux" - } - } - }, - "responses": { - "200": { - "headers": { - "x-ms-console-remaining-seconds": 300 - } - } + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } } -} \ No newline at end of file + }, + "responses": { + "200": { + "headers": { + "x-ms-console-remaining-seconds": 300 + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json index 248ea5cdca03..19ddcb8c4b8e 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json @@ -1,23 +1,23 @@ { - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01", - "body": { - "properties": { - "OsType": "Linux" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "osType": "Linux", - "provisioningState": "Succeeded", - "uri": "string" - } - } + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" } + } } -} \ No newline at end of file + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json index aad6f53463fb..3376effb2c9e 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 52ad72fc4d18..363868490a4c 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -842,4 +842,4 @@ "description": "The name of the user settings" } } -} \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index 52ad72fc4d18..363868490a4c 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -842,4 +842,4 @@ "description": "The name of the user settings" } } -} \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json index 8d039e005f57..4fbaa60ecc56 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json @@ -1,10 +1,10 @@ { - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": {} - } -} \ No newline at end of file + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json index 27bbd69c2415..05e0511a0004 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json @@ -1,11 +1,10 @@ { - "parameters": { - "userSettingsName": "cloudconsole", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": {} - } + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} } - \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json index dd72cc793554..fe8097963b2c 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json @@ -1,18 +1,18 @@ { - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "osType": "Linux", - "provisioningState": "Succeeded", - "uri": "string" - } - } + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" } + } } -} \ No newline at end of file + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json index d1b16244d14b..dd34c8f1bf6a 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json @@ -1,29 +1,28 @@ { - "parameters": { - "userSettingsName": "cloudconsole", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash", - "networkType": "default" - } + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash", + "networkType": "default" } } } } - \ No newline at end of file +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json index 529c5397c7b2..6aecb9bdc77b 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json @@ -1,19 +1,19 @@ { - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01", - "body": { - "properties": { - "OsType": "Linux" - } - } - }, - "responses": { - "200": { - "headers": { - "x-ms-console-remaining-seconds": 300 - } - } + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } } -} \ No newline at end of file + }, + "responses": { + "200": { + "headers": { + "x-ms-console-remaining-seconds": 300 + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json index 248ea5cdca03..19ddcb8c4b8e 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json @@ -1,23 +1,23 @@ { - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01", - "body": { - "properties": { - "OsType": "Linux" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "osType": "Linux", - "provisioningState": "Succeeded", - "uri": "string" - } - } + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" } + } } -} \ No newline at end of file + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json index 3018e135afd0..3d61997e32ae 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} From b408cd600ba22ac7a40d0951f02144c885f6950e Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 31 Mar 2020 16:59:40 -0700 Subject: [PATCH 08/34] fix headers --- .../2020-04-01-preview/CloudShell.json | 33 ++++++++++++------- .../2020-04-01-preview/cloudShell.json | 33 ++++++++++++------- .../stable/2018-10-01/CloudShell.json | 33 ++++++++++++------- .../stable/2018-10-01/cloudShell.json | 33 ++++++++++++------- 4 files changed, 84 insertions(+), 48 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json index cd45d77428e4..9e32acd9e882 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json @@ -58,6 +58,16 @@ "description": "OK", "schema": { "$ref": "#/definitions/GetUserSettingsResponse" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } } }, "default": { @@ -331,6 +341,16 @@ "description": "OK", "schema": { "$ref": "#/definitions/GetUserSettingsResponse" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } } }, "default": { @@ -665,22 +685,11 @@ "description": "The user settings response content", "type": "object", "required": [ - "userSettings", - "headers" + "userSettings" ], "properties": { "userSettings": { "$ref": "#/definitions/CloudShellUserSettings" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } } } }, diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json index cd45d77428e4..9e32acd9e882 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json @@ -58,6 +58,16 @@ "description": "OK", "schema": { "$ref": "#/definitions/GetUserSettingsResponse" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } } }, "default": { @@ -331,6 +341,16 @@ "description": "OK", "schema": { "$ref": "#/definitions/GetUserSettingsResponse" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } } }, "default": { @@ -665,22 +685,11 @@ "description": "The user settings response content", "type": "object", "required": [ - "userSettings", - "headers" + "userSettings" ], "properties": { "userSettings": { "$ref": "#/definitions/CloudShellUserSettings" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } } } }, diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 363868490a4c..1f53cc01c3e7 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -58,6 +58,16 @@ "description": "OK", "schema": { "$ref": "#/definitions/GetUserSettingsResponse" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } } }, "default": { @@ -331,6 +341,16 @@ "description": "OK", "schema": { "$ref": "#/definitions/GetUserSettingsResponse" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } } }, "default": { @@ -665,22 +685,11 @@ "description": "The user settings response content", "type": "object", "required": [ - "userSettings", - "headers" + "userSettings" ], "properties": { "userSettings": { "$ref": "#/definitions/CloudShellUserSettings" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } } } }, diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index 363868490a4c..1f53cc01c3e7 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -58,6 +58,16 @@ "description": "OK", "schema": { "$ref": "#/definitions/GetUserSettingsResponse" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } } }, "default": { @@ -331,6 +341,16 @@ "description": "OK", "schema": { "$ref": "#/definitions/GetUserSettingsResponse" + }, + "headers": { + "x-ms-console-required-location-code": { + "type": "string", + "description": "normalized required location code" + }, + "x-ms-console-preview-user": { + "type": "boolean", + "description": "indicates whether user is a previous usr." + } } }, "default": { @@ -665,22 +685,11 @@ "description": "The user settings response content", "type": "object", "required": [ - "userSettings", - "headers" + "userSettings" ], "properties": { "userSettings": { "$ref": "#/definitions/CloudShellUserSettings" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } } } }, From a79dc56c326d3e46d5677710e97b0074731ef137 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Wed, 1 Apr 2020 10:31:06 -0700 Subject: [PATCH 09/34] add operation ids --- .../stable/2018-10-01/CloudShell.json | 15 +++++++++++++++ .../stable/2018-10-01/cloudShell.json | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 1f53cc01c3e7..34e11b153577 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -35,6 +35,7 @@ "paths": { "/providers/Microsoft.Portal/locations/{location}/userSettings/{userSettingsName}": { "get": { + "operationId": "getUserSettingsWithLocation", "x-ms-examples": { "GetUserSettings": { "$ref": "./examples/GetUserSettings.json" @@ -79,6 +80,7 @@ } }, "patch": { + "operationId": "patchUserSettingsWithLocation", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", "parameters": [ @@ -114,6 +116,7 @@ } }, "delete": { + "operationId": "deleteUserSettingsWithLocation", "summary": "delete user settings.", "x-ms-examples": { "DeleteUserSettings": { @@ -148,6 +151,7 @@ } }, "put": { + "operationId": "putUserSettingsWithLocation", "summary": "put user settings.", "x-ms-examples": { "PutUserSettings": { @@ -190,6 +194,7 @@ }, "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { "get": { + "operationId": "getConsoleWithLocation", "summary": "Get console", "x-ms-examples": { "GetConsole": { @@ -224,6 +229,7 @@ } }, "put": { + "operationId": "putConsoleWithLocation", "summary": "Put console", "x-ms-examples": { "PutConsole": { @@ -264,6 +270,7 @@ } }, "delete": { + "operationId": "deleteConsoleWithLocation", "summary": "Delete console", "x-ms-examples": { "DeleteConsole": { @@ -300,6 +307,7 @@ }, "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { "post": { + "operationId": "keepAliveWithLocation", "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -362,6 +370,7 @@ } }, "patch": { + "operationId": "PatchUserSettings", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", "parameters": [ @@ -394,6 +403,7 @@ } }, "delete": { + "operationId": "DeleteUserSettings", "summary": "delete user settings.", "description": "Delete cloud shell settings for current signed in user", "parameters": [ @@ -420,6 +430,7 @@ } }, "put": { + "operationId": "PutUserSettings", "summary": "put user settings.", "description": "Create or update cloud shell settings for current signed in user", "parameters": [ @@ -454,6 +465,7 @@ }, "/providers/Microsoft.Portal/consoles/{consoleName}": { "get": { + "operationId": "GetConsole", "summary": "Get console", "description": "Gets the console for the user.", "parameters": [ @@ -480,6 +492,7 @@ } }, "put": { + "operationId": "PutConsole", "summary": "Put console", "description": "Puts a request for a console", "parameters": [ @@ -521,6 +534,7 @@ } }, "delete": { + "operationId": "DeleteConsole", "summary": "Delete console", "description": "Deletes the console", "parameters": [ @@ -549,6 +563,7 @@ }, "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { "post": { + "operationId": "KeepAlive", "summary": "Keep alive", "description": "Keep console alive", "parameters": [ diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index 1f53cc01c3e7..34e11b153577 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -35,6 +35,7 @@ "paths": { "/providers/Microsoft.Portal/locations/{location}/userSettings/{userSettingsName}": { "get": { + "operationId": "getUserSettingsWithLocation", "x-ms-examples": { "GetUserSettings": { "$ref": "./examples/GetUserSettings.json" @@ -79,6 +80,7 @@ } }, "patch": { + "operationId": "patchUserSettingsWithLocation", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", "parameters": [ @@ -114,6 +116,7 @@ } }, "delete": { + "operationId": "deleteUserSettingsWithLocation", "summary": "delete user settings.", "x-ms-examples": { "DeleteUserSettings": { @@ -148,6 +151,7 @@ } }, "put": { + "operationId": "putUserSettingsWithLocation", "summary": "put user settings.", "x-ms-examples": { "PutUserSettings": { @@ -190,6 +194,7 @@ }, "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { "get": { + "operationId": "getConsoleWithLocation", "summary": "Get console", "x-ms-examples": { "GetConsole": { @@ -224,6 +229,7 @@ } }, "put": { + "operationId": "putConsoleWithLocation", "summary": "Put console", "x-ms-examples": { "PutConsole": { @@ -264,6 +270,7 @@ } }, "delete": { + "operationId": "deleteConsoleWithLocation", "summary": "Delete console", "x-ms-examples": { "DeleteConsole": { @@ -300,6 +307,7 @@ }, "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { "post": { + "operationId": "keepAliveWithLocation", "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -362,6 +370,7 @@ } }, "patch": { + "operationId": "PatchUserSettings", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", "parameters": [ @@ -394,6 +403,7 @@ } }, "delete": { + "operationId": "DeleteUserSettings", "summary": "delete user settings.", "description": "Delete cloud shell settings for current signed in user", "parameters": [ @@ -420,6 +430,7 @@ } }, "put": { + "operationId": "PutUserSettings", "summary": "put user settings.", "description": "Create or update cloud shell settings for current signed in user", "parameters": [ @@ -454,6 +465,7 @@ }, "/providers/Microsoft.Portal/consoles/{consoleName}": { "get": { + "operationId": "GetConsole", "summary": "Get console", "description": "Gets the console for the user.", "parameters": [ @@ -480,6 +492,7 @@ } }, "put": { + "operationId": "PutConsole", "summary": "Put console", "description": "Puts a request for a console", "parameters": [ @@ -521,6 +534,7 @@ } }, "delete": { + "operationId": "DeleteConsole", "summary": "Delete console", "description": "Deletes the console", "parameters": [ @@ -549,6 +563,7 @@ }, "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { "post": { + "operationId": "KeepAlive", "summary": "Keep alive", "description": "Keep console alive", "parameters": [ From 64d19afdc2bbb412413255ec53c661b6e9438d38 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Wed, 1 Apr 2020 14:42:16 -0700 Subject: [PATCH 10/34] fix lintdiff errors --- .../2020-04-01-preview/CloudShell.json | 95 +++++++++++++++---- .../2020-04-01-preview/cloudShell.json | 95 +++++++++++++++---- .../examples/DeleteConsole.json | 1 - .../examples/DeleteConsole_Location.json | 10 ++ .../examples/DeleteUserSettings.json | 1 - .../examples/DeleteUserSettings_Location.json | 10 ++ .../examples/GetConsole.json | 1 - .../examples/GetConsole_Location.json | 18 ++++ .../examples/GetUserSettings.json | 1 - .../examples/GetUserSettings_Location.json | 27 ++++++ .../examples/KeepAlive.json | 1 - .../examples/KeepAlive_Location.json | 19 ++++ .../examples/PutConsole.json | 1 - .../examples/PutConsole_Location.json | 23 +++++ .../examples/PutUserSettings.json | 1 - .../examples/PutUserSettings_Location.json | 43 +++++++++ .../stable/2018-10-01/CloudShell.json | 81 ++++++++++++---- .../stable/2018-10-01/cloudShell.json | 81 ++++++++++++---- .../2018-10-01/examples/DeleteConsole.json | 1 - .../examples/DeleteConsole_Location.json | 10 ++ .../examples/DeleteUserSettings.json | 1 - .../examples/DeleteUserSettings_Location.json | 10 ++ .../2018-10-01/examples/GetConsole.json | 1 - .../examples/GetConsole_Location.json | 18 ++++ .../2018-10-01/examples/GetUserSettings.json | 1 - .../examples/GetUserSettings_Location.json | 28 ++++++ .../stable/2018-10-01/examples/KeepAlive.json | 1 - .../examples/KeepAlive_Location.json | 19 ++++ .../2018-10-01/examples/PutConsole.json | 1 - .../examples/PutConsole_Location.json | 23 +++++ .../2018-10-01/examples/PutUserSettings.json | 1 - .../examples/PutUserSettings_Location.json | 45 +++++++++ 32 files changed, 579 insertions(+), 90 deletions(-) create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json index 9e32acd9e882..669366d08f43 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/CloudShell.json @@ -35,9 +35,10 @@ "paths": { "/providers/Microsoft.Portal/locations/{location}/userSettings/{userSettingsName}": { "get": { + "operationId": "GetUserSettings_Location", "x-ms-examples": { "GetUserSettings": { - "$ref": "./examples/GetUserSettings.json" + "$ref": "./examples/GetUserSettings_Location.json" } }, "summary": "Get user settings.", @@ -114,10 +115,11 @@ } }, "delete": { + "operationId": "DeleteUserSettings_Location", "summary": "delete user settings.", "x-ms-examples": { "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings.json" + "$ref": "./examples/DeleteUserSettings_Location.json" } }, "description": "Delete cloud shell settings for current signed in user", @@ -148,10 +150,11 @@ } }, "put": { + "operationId": "PutUserSettings_Location", "summary": "put user settings.", "x-ms-examples": { "PutUserSettings": { - "$ref": "./examples/PutUserSettings.json" + "$ref": "./examples/PutUserSettings_Location.json" } }, "description": "Create or update cloud shell settings for current signed in user", @@ -190,10 +193,11 @@ }, "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { "get": { + "operationId": "GetConsole_Location", "summary": "Get console", "x-ms-examples": { "GetConsole": { - "$ref": "./examples/GetConsole.json" + "$ref": "./examples/GetConsole_Location.json" } }, "description": "Gets the console for the user.", @@ -224,10 +228,11 @@ } }, "put": { + "operationId": "PutConsole_Location", "summary": "Put console", "x-ms-examples": { "PutConsole": { - "$ref": "./examples/PutConsole.json" + "$ref": "./examples/PutConsole_Location.json" } }, "description": "Puts a request for a console", @@ -264,10 +269,11 @@ } }, "delete": { + "operationId": "DeleteConsole_Location", "summary": "Delete console", "x-ms-examples": { "DeleteConsole": { - "$ref": "./examples/DeleteConsole.json" + "$ref": "./examples/DeleteConsole_Location.json" } }, "description": "Deletes the console", @@ -300,6 +306,12 @@ }, "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { "post": { + "operationId": "KeepAlive_Location", + "x-ms-examples": { + "KeepAlive": { + "$ref": "./examples/KeepAlive.json" + } + }, "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -326,6 +338,11 @@ "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { "get": { "operationId": "GetUserSettings", + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/GetUserSettings.json" + } + }, "summary": "Get user settings.", "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", "parameters": [ @@ -362,6 +379,7 @@ } }, "patch": { + "operationId": "PatchUserSettings", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", "parameters": [ @@ -394,6 +412,12 @@ } }, "delete": { + "operationId": "DeleteUserSettings", + "x-ms-examples": { + "DeleteUserSettings": { + "$ref": "./examples/DeleteUserSettings.json" + } + }, "summary": "delete user settings.", "description": "Delete cloud shell settings for current signed in user", "parameters": [ @@ -420,6 +444,12 @@ } }, "put": { + "operationId": "PutUserSettings", + "x-ms-examples": { + "PutUserSettings": { + "$ref": "./examples/PutUserSettings.json" + } + }, "summary": "put user settings.", "description": "Create or update cloud shell settings for current signed in user", "parameters": [ @@ -454,6 +484,12 @@ }, "/providers/Microsoft.Portal/consoles/{consoleName}": { "get": { + "operationId": "GetConsole", + "x-ms-examples": { + "GetConsole": { + "$ref": "./examples/GetConsole.json" + } + }, "summary": "Get console", "description": "Gets the console for the user.", "parameters": [ @@ -480,6 +516,12 @@ } }, "put": { + "operationId": "PutConsole", + "x-ms-examples": { + "PutConsole": { + "$ref": "./examples/PutConsole.json" + } + }, "summary": "Put console", "description": "Puts a request for a console", "parameters": [ @@ -521,6 +563,12 @@ } }, "delete": { + "operationId": "DeleteConsole", + "x-ms-examples": { + "DeleteConsole": { + "$ref": "./examples/DeleteConsole.json" + } + }, "summary": "Delete console", "description": "Deletes the console", "parameters": [ @@ -549,6 +597,12 @@ }, "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { "post": { + "operationId": "KeepAlive", + "x-ms-examples": { + "KeepAlive": { + "$ref": "./examples/KeepAlive.json" + } + }, "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -587,12 +641,12 @@ "description": "Cloud shell console properties.", "type": "object", "required": [ - "OsType", - "ProvisioningState", - "Uri" + "osType", + "provisioningState", + "uri" ], "properties": { - "OsType": { + "osType": { "description": "The operating system type of the cloud shell.", "type": "string", "enum": [ @@ -600,7 +654,7 @@ "Windows" ] }, - "ProvisioningState": { + "provisioningState": { "description": "Provisioning state of the console.", "type": "string", "enum": [ @@ -615,7 +669,7 @@ "Succeeded" ] }, - "Uri": { + "uri": { "description": "Uri of the console.", "type": "string" } @@ -625,10 +679,10 @@ "description": "Cloud shell properties for creating a console.", "type": "object", "required": [ - "OsType" + "osType" ], "properties": { - "OsType": { + "osType": { "description": "The operating system type of the cloud shell.", "type": "string", "enum": [ @@ -636,7 +690,7 @@ "Windows" ] }, - "ProvisioningState": { + "provisioningState": { "description": "Provisioning state of the console.", "type": "string", "enum": [ @@ -651,7 +705,7 @@ "Succeeded" ] }, - "Uri": { + "uri": { "description": "Uri of the console.", "type": "string" } @@ -867,21 +921,24 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the console" + "description": "The name of the console", + "x-ms-parameter-location": "client" }, "LocationParameter": { "name": "location", "in": "path", "required": true, "type": "string", - "description": "The provider location" + "description": "The provider location", + "x-ms-parameter-location": "method" }, "UserSettingsNameParameter": { "name": "userSettingsName", "in": "path", "required": true, "type": "string", - "description": "The name of the user settings" + "description": "The name of the user settings", + "x-ms-parameter-location": "client" } } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json index 9e32acd9e882..669366d08f43 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json @@ -35,9 +35,10 @@ "paths": { "/providers/Microsoft.Portal/locations/{location}/userSettings/{userSettingsName}": { "get": { + "operationId": "GetUserSettings_Location", "x-ms-examples": { "GetUserSettings": { - "$ref": "./examples/GetUserSettings.json" + "$ref": "./examples/GetUserSettings_Location.json" } }, "summary": "Get user settings.", @@ -114,10 +115,11 @@ } }, "delete": { + "operationId": "DeleteUserSettings_Location", "summary": "delete user settings.", "x-ms-examples": { "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings.json" + "$ref": "./examples/DeleteUserSettings_Location.json" } }, "description": "Delete cloud shell settings for current signed in user", @@ -148,10 +150,11 @@ } }, "put": { + "operationId": "PutUserSettings_Location", "summary": "put user settings.", "x-ms-examples": { "PutUserSettings": { - "$ref": "./examples/PutUserSettings.json" + "$ref": "./examples/PutUserSettings_Location.json" } }, "description": "Create or update cloud shell settings for current signed in user", @@ -190,10 +193,11 @@ }, "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { "get": { + "operationId": "GetConsole_Location", "summary": "Get console", "x-ms-examples": { "GetConsole": { - "$ref": "./examples/GetConsole.json" + "$ref": "./examples/GetConsole_Location.json" } }, "description": "Gets the console for the user.", @@ -224,10 +228,11 @@ } }, "put": { + "operationId": "PutConsole_Location", "summary": "Put console", "x-ms-examples": { "PutConsole": { - "$ref": "./examples/PutConsole.json" + "$ref": "./examples/PutConsole_Location.json" } }, "description": "Puts a request for a console", @@ -264,10 +269,11 @@ } }, "delete": { + "operationId": "DeleteConsole_Location", "summary": "Delete console", "x-ms-examples": { "DeleteConsole": { - "$ref": "./examples/DeleteConsole.json" + "$ref": "./examples/DeleteConsole_Location.json" } }, "description": "Deletes the console", @@ -300,6 +306,12 @@ }, "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { "post": { + "operationId": "KeepAlive_Location", + "x-ms-examples": { + "KeepAlive": { + "$ref": "./examples/KeepAlive.json" + } + }, "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -326,6 +338,11 @@ "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { "get": { "operationId": "GetUserSettings", + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/GetUserSettings.json" + } + }, "summary": "Get user settings.", "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", "parameters": [ @@ -362,6 +379,7 @@ } }, "patch": { + "operationId": "PatchUserSettings", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", "parameters": [ @@ -394,6 +412,12 @@ } }, "delete": { + "operationId": "DeleteUserSettings", + "x-ms-examples": { + "DeleteUserSettings": { + "$ref": "./examples/DeleteUserSettings.json" + } + }, "summary": "delete user settings.", "description": "Delete cloud shell settings for current signed in user", "parameters": [ @@ -420,6 +444,12 @@ } }, "put": { + "operationId": "PutUserSettings", + "x-ms-examples": { + "PutUserSettings": { + "$ref": "./examples/PutUserSettings.json" + } + }, "summary": "put user settings.", "description": "Create or update cloud shell settings for current signed in user", "parameters": [ @@ -454,6 +484,12 @@ }, "/providers/Microsoft.Portal/consoles/{consoleName}": { "get": { + "operationId": "GetConsole", + "x-ms-examples": { + "GetConsole": { + "$ref": "./examples/GetConsole.json" + } + }, "summary": "Get console", "description": "Gets the console for the user.", "parameters": [ @@ -480,6 +516,12 @@ } }, "put": { + "operationId": "PutConsole", + "x-ms-examples": { + "PutConsole": { + "$ref": "./examples/PutConsole.json" + } + }, "summary": "Put console", "description": "Puts a request for a console", "parameters": [ @@ -521,6 +563,12 @@ } }, "delete": { + "operationId": "DeleteConsole", + "x-ms-examples": { + "DeleteConsole": { + "$ref": "./examples/DeleteConsole.json" + } + }, "summary": "Delete console", "description": "Deletes the console", "parameters": [ @@ -549,6 +597,12 @@ }, "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { "post": { + "operationId": "KeepAlive", + "x-ms-examples": { + "KeepAlive": { + "$ref": "./examples/KeepAlive.json" + } + }, "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -587,12 +641,12 @@ "description": "Cloud shell console properties.", "type": "object", "required": [ - "OsType", - "ProvisioningState", - "Uri" + "osType", + "provisioningState", + "uri" ], "properties": { - "OsType": { + "osType": { "description": "The operating system type of the cloud shell.", "type": "string", "enum": [ @@ -600,7 +654,7 @@ "Windows" ] }, - "ProvisioningState": { + "provisioningState": { "description": "Provisioning state of the console.", "type": "string", "enum": [ @@ -615,7 +669,7 @@ "Succeeded" ] }, - "Uri": { + "uri": { "description": "Uri of the console.", "type": "string" } @@ -625,10 +679,10 @@ "description": "Cloud shell properties for creating a console.", "type": "object", "required": [ - "OsType" + "osType" ], "properties": { - "OsType": { + "osType": { "description": "The operating system type of the cloud shell.", "type": "string", "enum": [ @@ -636,7 +690,7 @@ "Windows" ] }, - "ProvisioningState": { + "provisioningState": { "description": "Provisioning state of the console.", "type": "string", "enum": [ @@ -651,7 +705,7 @@ "Succeeded" ] }, - "Uri": { + "uri": { "description": "Uri of the console.", "type": "string" } @@ -867,21 +921,24 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the console" + "description": "The name of the console", + "x-ms-parameter-location": "client" }, "LocationParameter": { "name": "location", "in": "path", "required": true, "type": "string", - "description": "The provider location" + "description": "The provider location", + "x-ms-parameter-location": "method" }, "UserSettingsNameParameter": { "name": "userSettingsName", "in": "path", "required": true, "type": "string", - "description": "The name of the user settings" + "description": "The name of the user settings", + "x-ms-parameter-location": "client" } } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json index 4fbaa60ecc56..501d98be1f33 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json @@ -1,7 +1,6 @@ { "parameters": { "consoleName": "default", - "location": "eastus", "api-version": "2018-10-01" }, "responses": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole_Location.json new file mode 100644 index 000000000000..4fbaa60ecc56 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole_Location.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json index 05e0511a0004..b4d5c5236213 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json @@ -1,7 +1,6 @@ { "parameters": { "userSettingsName": "cloudconsole", - "location": "eastus", "api-version": "2018-10-01" }, "responses": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings_Location.json new file mode 100644 index 000000000000..05e0511a0004 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings_Location.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json index fe8097963b2c..c8939a5fff0e 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json @@ -1,7 +1,6 @@ { "parameters": { "consoleName": "default", - "location": "eastus", "api-version": "2018-10-01" }, "responses": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole_Location.json new file mode 100644 index 000000000000..fe8097963b2c --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole_Location.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json index 3f99bf4fde31..9e1fffc82978 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json @@ -1,7 +1,6 @@ { "parameters": { "userSettingsName": "cloudconsole", - "location": "eastus", "api-version": "2018-10-01" }, "responses": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings_Location.json new file mode 100644 index 000000000000..3f99bf4fde31 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings_Location.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" + } + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json index 6aecb9bdc77b..bddba272284f 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json @@ -1,7 +1,6 @@ { "parameters": { "consoleName": "default", - "location": "eastus", "api-version": "2018-10-01", "body": { "properties": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive_Location.json new file mode 100644 index 000000000000..6aecb9bdc77b --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive_Location.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "200": { + "headers": { + "x-ms-console-remaining-seconds": 300 + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json index 19ddcb8c4b8e..32c901a3c828 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json @@ -1,7 +1,6 @@ { "parameters": { "consoleName": "default", - "location": "eastus", "api-version": "2018-10-01", "body": { "properties": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole_Location.json new file mode 100644 index 000000000000..19ddcb8c4b8e --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole_Location.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json index 3376effb2c9e..550f538b8e0f 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json @@ -1,7 +1,6 @@ { "parameters": { "userSettingsName": "cloudconsole", - "location": "eastus", "api-version": "2018-10-01", "body": { "properties": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings_Location.json new file mode 100644 index 000000000000..3376effb2c9e --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings_Location.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" + } + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 34e11b153577..c5cc50e3c5db 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -38,7 +38,7 @@ "operationId": "getUserSettingsWithLocation", "x-ms-examples": { "GetUserSettings": { - "$ref": "./examples/GetUserSettings.json" + "$ref": "./examples/GetUserSettings_Location.json" } }, "summary": "Get user settings.", @@ -120,7 +120,7 @@ "summary": "delete user settings.", "x-ms-examples": { "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings.json" + "$ref": "./examples/DeleteUserSettings_Location.json" } }, "description": "Delete cloud shell settings for current signed in user", @@ -155,7 +155,7 @@ "summary": "put user settings.", "x-ms-examples": { "PutUserSettings": { - "$ref": "./examples/PutUserSettings.json" + "$ref": "./examples/PutUserSettings_Location.json" } }, "description": "Create or update cloud shell settings for current signed in user", @@ -198,7 +198,7 @@ "summary": "Get console", "x-ms-examples": { "GetConsole": { - "$ref": "./examples/GetConsole.json" + "$ref": "./examples/GetConsole_Location.json" } }, "description": "Gets the console for the user.", @@ -233,7 +233,7 @@ "summary": "Put console", "x-ms-examples": { "PutConsole": { - "$ref": "./examples/PutConsole.json" + "$ref": "./examples/PutConsole_Location.json" } }, "description": "Puts a request for a console", @@ -274,7 +274,7 @@ "summary": "Delete console", "x-ms-examples": { "DeleteConsole": { - "$ref": "./examples/DeleteConsole.json" + "$ref": "./examples/DeleteConsole_Location.json" } }, "description": "Deletes the console", @@ -308,6 +308,11 @@ "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { "post": { "operationId": "keepAliveWithLocation", + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/KeepAlive_Location.json" + } + }, "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -334,6 +339,11 @@ "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { "get": { "operationId": "GetUserSettings", + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/GetUserSettings.json" + } + }, "summary": "Get user settings.", "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", "parameters": [ @@ -404,6 +414,11 @@ }, "delete": { "operationId": "DeleteUserSettings", + "x-ms-examples": { + "DeleteUserSettings": { + "$ref": "./examples/DeleteUserSettings.json" + } + }, "summary": "delete user settings.", "description": "Delete cloud shell settings for current signed in user", "parameters": [ @@ -431,6 +446,11 @@ }, "put": { "operationId": "PutUserSettings", + "x-ms-examples": { + "PutUserSettings": { + "$ref": "./examples/PutUserSettings.json" + } + }, "summary": "put user settings.", "description": "Create or update cloud shell settings for current signed in user", "parameters": [ @@ -466,6 +486,11 @@ "/providers/Microsoft.Portal/consoles/{consoleName}": { "get": { "operationId": "GetConsole", + "x-ms-examples": { + "GetConsole": { + "$ref": "./examples/GetConsole.json" + } + }, "summary": "Get console", "description": "Gets the console for the user.", "parameters": [ @@ -493,6 +518,11 @@ }, "put": { "operationId": "PutConsole", + "x-ms-examples": { + "PutConsole": { + "$ref": "./examples/PutConsole.json" + } + }, "summary": "Put console", "description": "Puts a request for a console", "parameters": [ @@ -535,6 +565,11 @@ }, "delete": { "operationId": "DeleteConsole", + "x-ms-examples": { + "DeleteConsole": { + "$ref": "./examples/DeleteConsole.json" + } + }, "summary": "Delete console", "description": "Deletes the console", "parameters": [ @@ -564,6 +599,11 @@ "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { "post": { "operationId": "KeepAlive", + "x-ms-examples": { + "KeepAlive": { + "$ref": "./examples/KeepAlive.json" + } + }, "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -602,12 +642,12 @@ "description": "Cloud shell console properties.", "type": "object", "required": [ - "OsType", - "ProvisioningState", - "Uri" + "osType", + "provisioningState", + "uri" ], "properties": { - "OsType": { + "osType": { "description": "The operating system type of the cloud shell.", "type": "string", "enum": [ @@ -615,7 +655,7 @@ "Windows" ] }, - "ProvisioningState": { + "provisioningState": { "description": "Provisioning state of the console.", "type": "string", "enum": [ @@ -630,7 +670,7 @@ "Succeeded" ] }, - "Uri": { + "uri": { "description": "Uri of the console.", "type": "string" } @@ -640,10 +680,10 @@ "description": "Cloud shell properties for creating a console.", "type": "object", "required": [ - "OsType" + "osType" ], "properties": { - "OsType": { + "osType": { "description": "The operating system type of the cloud shell.", "type": "string", "enum": [ @@ -651,7 +691,7 @@ "Windows" ] }, - "ProvisioningState": { + "provisioningState": { "description": "Provisioning state of the console.", "type": "string", "enum": [ @@ -666,7 +706,7 @@ "Succeeded" ] }, - "Uri": { + "uri": { "description": "Uri of the console.", "type": "string" } @@ -849,21 +889,24 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the console" + "description": "The name of the console", + "x-ms-parameter-location": "client" }, "LocationParameter": { "name": "location", "in": "path", "required": true, "type": "string", - "description": "The provider location" + "description": "The provider location", + "x-ms-parameter-location": "method" }, "UserSettingsNameParameter": { "name": "userSettingsName", "in": "path", "required": true, "type": "string", - "description": "The name of the user settings" + "description": "The name of the user settings", + "x-ms-parameter-location": "client" } } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index 34e11b153577..c5cc50e3c5db 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -38,7 +38,7 @@ "operationId": "getUserSettingsWithLocation", "x-ms-examples": { "GetUserSettings": { - "$ref": "./examples/GetUserSettings.json" + "$ref": "./examples/GetUserSettings_Location.json" } }, "summary": "Get user settings.", @@ -120,7 +120,7 @@ "summary": "delete user settings.", "x-ms-examples": { "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings.json" + "$ref": "./examples/DeleteUserSettings_Location.json" } }, "description": "Delete cloud shell settings for current signed in user", @@ -155,7 +155,7 @@ "summary": "put user settings.", "x-ms-examples": { "PutUserSettings": { - "$ref": "./examples/PutUserSettings.json" + "$ref": "./examples/PutUserSettings_Location.json" } }, "description": "Create or update cloud shell settings for current signed in user", @@ -198,7 +198,7 @@ "summary": "Get console", "x-ms-examples": { "GetConsole": { - "$ref": "./examples/GetConsole.json" + "$ref": "./examples/GetConsole_Location.json" } }, "description": "Gets the console for the user.", @@ -233,7 +233,7 @@ "summary": "Put console", "x-ms-examples": { "PutConsole": { - "$ref": "./examples/PutConsole.json" + "$ref": "./examples/PutConsole_Location.json" } }, "description": "Puts a request for a console", @@ -274,7 +274,7 @@ "summary": "Delete console", "x-ms-examples": { "DeleteConsole": { - "$ref": "./examples/DeleteConsole.json" + "$ref": "./examples/DeleteConsole_Location.json" } }, "description": "Deletes the console", @@ -308,6 +308,11 @@ "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { "post": { "operationId": "keepAliveWithLocation", + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/KeepAlive_Location.json" + } + }, "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -334,6 +339,11 @@ "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { "get": { "operationId": "GetUserSettings", + "x-ms-examples": { + "GetUserSettings": { + "$ref": "./examples/GetUserSettings.json" + } + }, "summary": "Get user settings.", "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", "parameters": [ @@ -404,6 +414,11 @@ }, "delete": { "operationId": "DeleteUserSettings", + "x-ms-examples": { + "DeleteUserSettings": { + "$ref": "./examples/DeleteUserSettings.json" + } + }, "summary": "delete user settings.", "description": "Delete cloud shell settings for current signed in user", "parameters": [ @@ -431,6 +446,11 @@ }, "put": { "operationId": "PutUserSettings", + "x-ms-examples": { + "PutUserSettings": { + "$ref": "./examples/PutUserSettings.json" + } + }, "summary": "put user settings.", "description": "Create or update cloud shell settings for current signed in user", "parameters": [ @@ -466,6 +486,11 @@ "/providers/Microsoft.Portal/consoles/{consoleName}": { "get": { "operationId": "GetConsole", + "x-ms-examples": { + "GetConsole": { + "$ref": "./examples/GetConsole.json" + } + }, "summary": "Get console", "description": "Gets the console for the user.", "parameters": [ @@ -493,6 +518,11 @@ }, "put": { "operationId": "PutConsole", + "x-ms-examples": { + "PutConsole": { + "$ref": "./examples/PutConsole.json" + } + }, "summary": "Put console", "description": "Puts a request for a console", "parameters": [ @@ -535,6 +565,11 @@ }, "delete": { "operationId": "DeleteConsole", + "x-ms-examples": { + "DeleteConsole": { + "$ref": "./examples/DeleteConsole.json" + } + }, "summary": "Delete console", "description": "Deletes the console", "parameters": [ @@ -564,6 +599,11 @@ "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { "post": { "operationId": "KeepAlive", + "x-ms-examples": { + "KeepAlive": { + "$ref": "./examples/KeepAlive.json" + } + }, "summary": "Keep alive", "description": "Keep console alive", "parameters": [ @@ -602,12 +642,12 @@ "description": "Cloud shell console properties.", "type": "object", "required": [ - "OsType", - "ProvisioningState", - "Uri" + "osType", + "provisioningState", + "uri" ], "properties": { - "OsType": { + "osType": { "description": "The operating system type of the cloud shell.", "type": "string", "enum": [ @@ -615,7 +655,7 @@ "Windows" ] }, - "ProvisioningState": { + "provisioningState": { "description": "Provisioning state of the console.", "type": "string", "enum": [ @@ -630,7 +670,7 @@ "Succeeded" ] }, - "Uri": { + "uri": { "description": "Uri of the console.", "type": "string" } @@ -640,10 +680,10 @@ "description": "Cloud shell properties for creating a console.", "type": "object", "required": [ - "OsType" + "osType" ], "properties": { - "OsType": { + "osType": { "description": "The operating system type of the cloud shell.", "type": "string", "enum": [ @@ -651,7 +691,7 @@ "Windows" ] }, - "ProvisioningState": { + "provisioningState": { "description": "Provisioning state of the console.", "type": "string", "enum": [ @@ -666,7 +706,7 @@ "Succeeded" ] }, - "Uri": { + "uri": { "description": "Uri of the console.", "type": "string" } @@ -849,21 +889,24 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the console" + "description": "The name of the console", + "x-ms-parameter-location": "client" }, "LocationParameter": { "name": "location", "in": "path", "required": true, "type": "string", - "description": "The provider location" + "description": "The provider location", + "x-ms-parameter-location": "method" }, "UserSettingsNameParameter": { "name": "userSettingsName", "in": "path", "required": true, "type": "string", - "description": "The name of the user settings" + "description": "The name of the user settings", + "x-ms-parameter-location": "client" } } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json index 4fbaa60ecc56..501d98be1f33 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json @@ -1,7 +1,6 @@ { "parameters": { "consoleName": "default", - "location": "eastus", "api-version": "2018-10-01" }, "responses": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole_Location.json new file mode 100644 index 000000000000..4fbaa60ecc56 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole_Location.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json index 05e0511a0004..b4d5c5236213 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json @@ -1,7 +1,6 @@ { "parameters": { "userSettingsName": "cloudconsole", - "location": "eastus", "api-version": "2018-10-01" }, "responses": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings_Location.json new file mode 100644 index 000000000000..05e0511a0004 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings_Location.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json index fe8097963b2c..c8939a5fff0e 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole.json @@ -1,7 +1,6 @@ { "parameters": { "consoleName": "default", - "location": "eastus", "api-version": "2018-10-01" }, "responses": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole_Location.json new file mode 100644 index 000000000000..fe8097963b2c --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetConsole_Location.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json index dd34c8f1bf6a..b0ff16bea607 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json @@ -1,7 +1,6 @@ { "parameters": { "userSettingsName": "cloudconsole", - "location": "eastus", "api-version": "2018-10-01" }, "responses": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings_Location.json new file mode 100644 index 000000000000..dd34c8f1bf6a --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings_Location.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash", + "networkType": "default" + } + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json index 6aecb9bdc77b..bddba272284f 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive.json @@ -1,7 +1,6 @@ { "parameters": { "consoleName": "default", - "location": "eastus", "api-version": "2018-10-01", "body": { "properties": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive_Location.json new file mode 100644 index 000000000000..6aecb9bdc77b --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/KeepAlive_Location.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "200": { + "headers": { + "x-ms-console-remaining-seconds": 300 + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json index 19ddcb8c4b8e..32c901a3c828 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json @@ -1,7 +1,6 @@ { "parameters": { "consoleName": "default", - "location": "eastus", "api-version": "2018-10-01", "body": { "properties": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json new file mode 100644 index 000000000000..19ddcb8c4b8e --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "consoleName": "default", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "OsType": "Linux" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json index 3d61997e32ae..df7b5acd4233 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json @@ -1,7 +1,6 @@ { "parameters": { "userSettingsName": "cloudconsole", - "location": "eastus", "api-version": "2018-10-01", "body": { "properties": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json new file mode 100644 index 000000000000..3d61997e32ae --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash", + "networkType": "default" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash", + "networkType": "default" + } + } + } + } +} From d2defb0cd1906dc37982d9376989d5aa22bf3da6 Mon Sep 17 00:00:00 2001 From: robins1212 <38265197+robins1212@users.noreply.github.com> Date: Wed, 1 Apr 2020 16:55:05 -0700 Subject: [PATCH 11/34] Delete cloudShell.json --- .../2020-04-01-preview/cloudShell.json | 944 ------------------ 1 file changed, 944 deletions(-) delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json deleted file mode 100644 index 669366d08f43..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/cloudShell.json +++ /dev/null @@ -1,944 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2020-04-01-preview", - "title": "CloudShellClient" - }, - "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.Portal/locations/{location}/userSettings/{userSettingsName}": { - "get": { - "operationId": "GetUserSettings_Location", - "x-ms-examples": { - "GetUserSettings": { - "$ref": "./examples/GetUserSettings_Location.json" - } - }, - "summary": "Get user settings.", - "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/GetUserSettingsResponse" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "summary": "patch user settings.", - "description": "Patch cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "name": "UserSettings", - "description": "The properties of the user settings to be updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "DeleteUserSettings_Location", - "summary": "delete user settings.", - "x-ms-examples": { - "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings_Location.json" - } - }, - "description": "Delete cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "PutUserSettings_Location", - "summary": "put user settings.", - "x-ms-examples": { - "PutUserSettings": { - "$ref": "./examples/PutUserSettings_Location.json" - } - }, - "description": "Create or update cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "name": "UserSettings", - "description": "The properties of the user settings to be created or updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { - "get": { - "operationId": "GetConsole_Location", - "summary": "Get console", - "x-ms-examples": { - "GetConsole": { - "$ref": "./examples/GetConsole_Location.json" - } - }, - "description": "Gets the console for the user.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "PutConsole_Location", - "summary": "Put console", - "x-ms-examples": { - "PutConsole": { - "$ref": "./examples/PutConsole_Location.json" - } - }, - "description": "Puts a request for a console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "DeleteConsole_Location", - "summary": "Delete console", - "x-ms-examples": { - "DeleteConsole": { - "$ref": "./examples/DeleteConsole_Location.json" - } - }, - "description": "Deletes the console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { - "post": { - "operationId": "KeepAlive_Location", - "x-ms-examples": { - "KeepAlive": { - "$ref": "./examples/KeepAlive.json" - } - }, - "summary": "Keep alive", - "description": "Keep console alive", - "parameters": [ - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "x-ms-console-remaining-seconds": { - "type": "integer", - "description": "Remaining time left in session, in seconds." - } - } - } - } - } - }, - "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { - "get": { - "operationId": "GetUserSettings", - "x-ms-examples": { - "GetUserSettings": { - "$ref": "./examples/GetUserSettings.json" - } - }, - "summary": "Get user settings.", - "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/GetUserSettingsResponse" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "operationId": "PatchUserSettings", - "summary": "patch user settings.", - "description": "Patch cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "name": "UserSettings", - "description": "The properties of the user settings to be updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "DeleteUserSettings", - "x-ms-examples": { - "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings.json" - } - }, - "summary": "delete user settings.", - "description": "Delete cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "PutUserSettings", - "x-ms-examples": { - "PutUserSettings": { - "$ref": "./examples/PutUserSettings.json" - } - }, - "summary": "put user settings.", - "description": "Create or update cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "name": "UserSettings", - "description": "The properties of the user settings to be created or updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/consoles/{consoleName}": { - "get": { - "operationId": "GetConsole", - "x-ms-examples": { - "GetConsole": { - "$ref": "./examples/GetConsole.json" - } - }, - "summary": "Get console", - "description": "Gets the console for the user.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "PutConsole", - "x-ms-examples": { - "PutConsole": { - "$ref": "./examples/PutConsole.json" - } - }, - "summary": "Put console", - "description": "Puts a request for a console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "name": "ConsoleDefinition", - "description": "The console definition.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/ConsoleDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "DeleteConsole", - "x-ms-examples": { - "DeleteConsole": { - "$ref": "./examples/DeleteConsole.json" - } - }, - "summary": "Delete console", - "description": "Deletes the console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { - "post": { - "operationId": "KeepAlive", - "x-ms-examples": { - "KeepAlive": { - "$ref": "./examples/KeepAlive.json" - } - }, - "summary": "Keep alive", - "description": "Keep console alive", - "parameters": [ - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "x-ms-console-remaining-seconds": { - "type": "integer", - "description": "Remaining time left in session, in seconds." - } - } - } - } - } - } - }, - "definitions": { - "CloudShellConsole": { - "description": "Cloud shell console", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/ConsoleProperties" - } - } - }, - "ConsoleProperties": { - "description": "Cloud shell console properties.", - "type": "object", - "required": [ - "osType", - "provisioningState", - "uri" - ], - "properties": { - "osType": { - "description": "The operating system type of the cloud shell.", - "type": "string", - "enum": [ - "Linux", - "Windows" - ] - }, - "provisioningState": { - "description": "Provisioning state of the console.", - "type": "string", - "enum": [ - "NotSpecified", - "Accepted", - "Pending", - "Updating", - "Creating", - "Repairing", - "Failed", - "Canceled", - "Succeeded" - ] - }, - "uri": { - "description": "Uri of the console.", - "type": "string" - } - } - }, - "ConsoleCreateProperties": { - "description": "Cloud shell properties for creating a console.", - "type": "object", - "required": [ - "osType" - ], - "properties": { - "osType": { - "description": "The operating system type of the cloud shell.", - "type": "string", - "enum": [ - "Linux", - "Windows" - ] - }, - "provisioningState": { - "description": "Provisioning state of the console.", - "type": "string", - "enum": [ - "NotSpecified", - "Accepted", - "Pending", - "Updating", - "Creating", - "Repairing", - "Failed", - "Canceled", - "Succeeded" - ] - }, - "uri": { - "description": "Uri of the console.", - "type": "string" - } - } - }, - "ConsoleDefinition": { - "description": "Console definition", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/ConsoleCreateProperties" - } - } - }, - "GetUserSettingsResponse": { - "description": "Response to get user settings", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/GetUserSettingsResponseContent" - } - } - }, - "GetUserSettingsResponseContent": { - "description": "The user settings response content", - "type": "object", - "required": [ - "userSettings" - ], - "properties": { - "userSettings": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - }, - "CloudShellUserSettings": { - "description": "Cloud shell user settings.", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/UserProperties" - } - } - }, - "UserProperties": { - "description": "The cloud shell user settings properties.", - "type": "object", - "required": [ - "preferredOsType", - "preferredLocation", - "storageProfile", - "terminalSettings", - "preferredShellType", - "networkType" - ], - "properties": { - "preferredOsType": { - "description": "The operating system type of the cloud shell. Deprecated, use preferredShellType.", - "type": "string", - "enum": [ - "Windows", - "Linux" - ] - }, - "preferredLocation": { - "description": "The preferred location of the cloud shell.", - "type": "string" - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile" - }, - "terminalSettings": { - "$ref": "#/definitions/TerminalSettings" - }, - "vnetSettings": { - "$ref": "#/definitions/VnetSettings" - }, - "preferredShellType": { - "description": "The shell type of the cloud shell.", - "type": "string", - "enum": [ - "bash", - "pwsh", - "powershell" - ] - }, - "networkType": { - "description": "Type of network to use for cloud shell container", - "type": "string", - "enum": [ - "isolated", - "default" - ] - } - } - }, - "StorageProfile": { - "description": "The storage profile of the user settings.", - "type": "object", - "properties": { - "storageAccountResourceId": { - "type": "string", - "description": "Full resource ID of storage account." - }, - "fileShareName": { - "type": "string", - "description": "Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -" - }, - "diskSizeInGB": { - "type": "integer", - "description": "Size of file share" - } - } - }, - "TerminalSettings": { - "description": "Settings for terminal appearance.", - "type": "object", - "properties": { - "fontSize": { - "type": "string", - "description": "Size of terminal font.", - "enum": [ - "NotSpecified", - "Small", - "Medium", - "Large" - ] - }, - "fontStyle": { - "type": "string", - "description": "Style of terminal font.", - "enum": [ - "NotSpecified", - "Monospace", - "Courier" - ] - } - } - }, - "VnetSettings": { - "description": "Settings for virtual network configuration.", - "type": "object", - "properties": { - "gatewayEndpoint": { - "type": "string", - "description": "Web address of the gateway endpoint." - }, - "networkProfileResourceId": { - "type": "string", - "description": "Full resource ID of the network profile." - }, - "isolatedStorageProfile": { - "$ref": "#/definitions/StorageProfile" - }, - "location": { - "type": "string", - "description": "Location of virtual network." - } - } - }, - "ErrorResponse": { - "title": "ErrorResponse", - "description": "Contains details when the response code indicates an error.", - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDetail" - } - }, - "required": [ - "error" - ] - }, - "ErrorDetail": { - "title": "ErrorDetail", - "type": "object", - "properties": { - "code": { - "description": "The error's code.", - "type": "string" - }, - "message": { - "description": "A human readable error message.", - "type": "string" - } - }, - "required": [ - "code", - "message" - ] - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client API version", - "x-ms-parameter-location": "client" - }, - "ConsoleNameParameter": { - "name": "consoleName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the console", - "x-ms-parameter-location": "client" - }, - "LocationParameter": { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The provider location", - "x-ms-parameter-location": "method" - }, - "UserSettingsNameParameter": { - "name": "userSettingsName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the user settings", - "x-ms-parameter-location": "client" - } - } -} From 03500a3ab01927b0769338108d8d6de792d9f31d Mon Sep 17 00:00:00 2001 From: robins1212 <38265197+robins1212@users.noreply.github.com> Date: Wed, 1 Apr 2020 16:56:20 -0700 Subject: [PATCH 12/34] Delete cloudShell.json --- .../stable/2018-10-01/cloudShell.json | 912 ------------------ 1 file changed, 912 deletions(-) delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json deleted file mode 100644 index c5cc50e3c5db..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ /dev/null @@ -1,912 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2020-04-01-preview", - "title": "CloudShellClient" - }, - "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.Portal/locations/{location}/userSettings/{userSettingsName}": { - "get": { - "operationId": "getUserSettingsWithLocation", - "x-ms-examples": { - "GetUserSettings": { - "$ref": "./examples/GetUserSettings_Location.json" - } - }, - "summary": "Get user settings.", - "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/GetUserSettingsResponse" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "operationId": "patchUserSettingsWithLocation", - "summary": "patch user settings.", - "description": "Patch cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "name": "UserSettings", - "description": "The properties of the user settings to be updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "deleteUserSettingsWithLocation", - "summary": "delete user settings.", - "x-ms-examples": { - "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings_Location.json" - } - }, - "description": "Delete cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "putUserSettingsWithLocation", - "summary": "put user settings.", - "x-ms-examples": { - "PutUserSettings": { - "$ref": "./examples/PutUserSettings_Location.json" - } - }, - "description": "Create or update cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "name": "UserSettings", - "description": "The properties of the user settings to be created or updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { - "get": { - "operationId": "getConsoleWithLocation", - "summary": "Get console", - "x-ms-examples": { - "GetConsole": { - "$ref": "./examples/GetConsole_Location.json" - } - }, - "description": "Gets the console for the user.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "putConsoleWithLocation", - "summary": "Put console", - "x-ms-examples": { - "PutConsole": { - "$ref": "./examples/PutConsole_Location.json" - } - }, - "description": "Puts a request for a console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "deleteConsoleWithLocation", - "summary": "Delete console", - "x-ms-examples": { - "DeleteConsole": { - "$ref": "./examples/DeleteConsole_Location.json" - } - }, - "description": "Deletes the console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { - "post": { - "operationId": "keepAliveWithLocation", - "x-ms-examples": { - "GetUserSettings": { - "$ref": "./examples/KeepAlive_Location.json" - } - }, - "summary": "Keep alive", - "description": "Keep console alive", - "parameters": [ - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "x-ms-console-remaining-seconds": { - "type": "integer", - "description": "Remaining time left in session, in seconds." - } - } - } - } - } - }, - "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { - "get": { - "operationId": "GetUserSettings", - "x-ms-examples": { - "GetUserSettings": { - "$ref": "./examples/GetUserSettings.json" - } - }, - "summary": "Get user settings.", - "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/GetUserSettingsResponse" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "operationId": "PatchUserSettings", - "summary": "patch user settings.", - "description": "Patch cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "name": "UserSettings", - "description": "The properties of the user settings to be updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "DeleteUserSettings", - "x-ms-examples": { - "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings.json" - } - }, - "summary": "delete user settings.", - "description": "Delete cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "PutUserSettings", - "x-ms-examples": { - "PutUserSettings": { - "$ref": "./examples/PutUserSettings.json" - } - }, - "summary": "put user settings.", - "description": "Create or update cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "name": "UserSettings", - "description": "The properties of the user settings to be created or updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/consoles/{consoleName}": { - "get": { - "operationId": "GetConsole", - "x-ms-examples": { - "GetConsole": { - "$ref": "./examples/GetConsole.json" - } - }, - "summary": "Get console", - "description": "Gets the console for the user.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "PutConsole", - "x-ms-examples": { - "PutConsole": { - "$ref": "./examples/PutConsole.json" - } - }, - "summary": "Put console", - "description": "Puts a request for a console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "name": "ConsoleDefinition", - "description": "The console definition.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/ConsoleDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "DeleteConsole", - "x-ms-examples": { - "DeleteConsole": { - "$ref": "./examples/DeleteConsole.json" - } - }, - "summary": "Delete console", - "description": "Deletes the console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { - "post": { - "operationId": "KeepAlive", - "x-ms-examples": { - "KeepAlive": { - "$ref": "./examples/KeepAlive.json" - } - }, - "summary": "Keep alive", - "description": "Keep console alive", - "parameters": [ - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "x-ms-console-remaining-seconds": { - "type": "integer", - "description": "Remaining time left in session, in seconds." - } - } - } - } - } - } - }, - "definitions": { - "CloudShellConsole": { - "description": "Cloud shell console", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/ConsoleProperties" - } - } - }, - "ConsoleProperties": { - "description": "Cloud shell console properties.", - "type": "object", - "required": [ - "osType", - "provisioningState", - "uri" - ], - "properties": { - "osType": { - "description": "The operating system type of the cloud shell.", - "type": "string", - "enum": [ - "Linux", - "Windows" - ] - }, - "provisioningState": { - "description": "Provisioning state of the console.", - "type": "string", - "enum": [ - "NotSpecified", - "Accepted", - "Pending", - "Updating", - "Creating", - "Repairing", - "Failed", - "Canceled", - "Succeeded" - ] - }, - "uri": { - "description": "Uri of the console.", - "type": "string" - } - } - }, - "ConsoleCreateProperties": { - "description": "Cloud shell properties for creating a console.", - "type": "object", - "required": [ - "osType" - ], - "properties": { - "osType": { - "description": "The operating system type of the cloud shell.", - "type": "string", - "enum": [ - "Linux", - "Windows" - ] - }, - "provisioningState": { - "description": "Provisioning state of the console.", - "type": "string", - "enum": [ - "NotSpecified", - "Accepted", - "Pending", - "Updating", - "Creating", - "Repairing", - "Failed", - "Canceled", - "Succeeded" - ] - }, - "uri": { - "description": "Uri of the console.", - "type": "string" - } - } - }, - "ConsoleDefinition": { - "description": "Console definition", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/ConsoleCreateProperties" - } - } - }, - "GetUserSettingsResponse": { - "description": "Response to get user settings", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/GetUserSettingsResponseContent" - } - } - }, - "GetUserSettingsResponseContent": { - "description": "The user settings response content", - "type": "object", - "required": [ - "userSettings" - ], - "properties": { - "userSettings": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - }, - "CloudShellUserSettings": { - "description": "Cloud shell user settings.", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/UserProperties" - } - } - }, - "UserProperties": { - "description": "The cloud shell user settings properties.", - "type": "object", - "required": [ - "preferredOsType", - "preferredLocation", - "storageProfile", - "terminalSettings", - "preferredShellType" - ], - "properties": { - "preferredOsType": { - "description": "The operating system type of the cloud shell. Deprecated, use preferredShellType.", - "type": "string", - "enum": [ - "Windows", - "Linux" - ] - }, - "preferredLocation": { - "description": "The preferred location of the cloud shell.", - "type": "string" - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile" - }, - "terminalSettings": { - "$ref": "#/definitions/TerminalSettings" - }, - "preferredShellType": { - "description": "The shell type of the cloud shell.", - "type": "string", - "enum": [ - "bash", - "pwsh", - "powershell" - ] - } - } - }, - "StorageProfile": { - "description": "The storage profile of the user settings.", - "type": "object", - "properties": { - "storageAccountResourceId": { - "type": "string", - "description": "Full resource ID of storage account." - }, - "fileShareName": { - "type": "string", - "description": "Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -" - }, - "diskSizeInGB": { - "type": "integer", - "description": "Size of file share" - } - } - }, - "TerminalSettings": { - "description": "Settings for terminal appearance.", - "type": "object", - "properties": { - "fontSize": { - "type": "string", - "description": "Size of terminal font.", - "enum": [ - "NotSpecified", - "Small", - "Medium", - "Large" - ] - }, - "fontStyle": { - "type": "string", - "description": "Style of terminal font.", - "enum": [ - "NotSpecified", - "Monospace", - "Courier" - ] - } - } - }, - "ErrorResponse": { - "title": "ErrorResponse", - "description": "Contains details when the response code indicates an error.", - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDetail" - } - }, - "required": [ - "error" - ] - }, - "ErrorDetail": { - "title": "ErrorDetail", - "type": "object", - "properties": { - "code": { - "description": "The error's code.", - "type": "string" - }, - "message": { - "description": "A human readable error message.", - "type": "string" - } - }, - "required": [ - "code", - "message" - ] - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client API version", - "x-ms-parameter-location": "client" - }, - "ConsoleNameParameter": { - "name": "consoleName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the console", - "x-ms-parameter-location": "client" - }, - "LocationParameter": { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The provider location", - "x-ms-parameter-location": "method" - }, - "UserSettingsNameParameter": { - "name": "userSettingsName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the user settings", - "x-ms-parameter-location": "client" - } - } -} From d902dd5252cf5fe5b11c5ca3e558312e4a2f2f40 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Thu, 9 Apr 2020 17:31:27 -0700 Subject: [PATCH 13/34] add patch examples --- .../stable/2018-10-01/CloudShell.json | 44 ++++++++++++++++++- .../stable/2018-10-01/cloudShell.json | 44 ++++++++++++++++++- .../examples/PatchUserSettings.json | 31 +++++++++++++ .../examples/PatchUserSettings_Location.json | 32 ++++++++++++++ 4 files changed, 147 insertions(+), 4 deletions(-) create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json create mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index c5cc50e3c5db..d5909a078584 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -83,6 +83,11 @@ "operationId": "patchUserSettingsWithLocation", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", + "x-ms-examples": { + "PatchUserSettings": { + "$ref": "./examples/PatchUserSettings_Location.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -99,7 +104,7 @@ "required": true, "in": "body", "schema": { - "$ref": "#/definitions/CloudShellUserSettings" + "$ref": "#/definitions/CloudShellPatchUserSettings" } } ], @@ -383,6 +388,11 @@ "operationId": "PatchUserSettings", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", + "x-ms-examples": { + "PatchUserSettings": { + "$ref": "./examples/PatchUserSettings.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -396,7 +406,7 @@ "required": true, "in": "body", "schema": { - "$ref": "#/definitions/CloudShellUserSettings" + "$ref": "#/definitions/CloudShellPatchUserSettings" } } ], @@ -760,6 +770,36 @@ } } }, + "CloudShellPatchUserSettings": { + "description": "Cloud shell patch operation user settings.", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/PatchProperties" + } + } + }, + "PatchProperties": { + "description": "The cloud shell user settings patch properties.", + "type": "object", + "required": [ + "preferredShellType" + ], + "properties": { + "preferredShellType": { + "description": "The shell type of the cloud shell.", + "type": "string", + "enum": [ + "bash", + "pwsh", + "powershell" + ] + } + } + }, "UserProperties": { "description": "The cloud shell user settings properties.", "type": "object", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index c5cc50e3c5db..d5909a078584 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -83,6 +83,11 @@ "operationId": "patchUserSettingsWithLocation", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", + "x-ms-examples": { + "PatchUserSettings": { + "$ref": "./examples/PatchUserSettings_Location.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -99,7 +104,7 @@ "required": true, "in": "body", "schema": { - "$ref": "#/definitions/CloudShellUserSettings" + "$ref": "#/definitions/CloudShellPatchUserSettings" } } ], @@ -383,6 +388,11 @@ "operationId": "PatchUserSettings", "summary": "patch user settings.", "description": "Patch cloud shell settings for current signed in user", + "x-ms-examples": { + "PatchUserSettings": { + "$ref": "./examples/PatchUserSettings.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -396,7 +406,7 @@ "required": true, "in": "body", "schema": { - "$ref": "#/definitions/CloudShellUserSettings" + "$ref": "#/definitions/CloudShellPatchUserSettings" } } ], @@ -760,6 +770,36 @@ } } }, + "CloudShellPatchUserSettings": { + "description": "Cloud shell patch operation user settings.", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/PatchProperties" + } + } + }, + "PatchProperties": { + "description": "The cloud shell user settings patch properties.", + "type": "object", + "required": [ + "preferredShellType" + ], + "properties": { + "preferredShellType": { + "description": "The shell type of the cloud shell.", + "type": "string", + "enum": [ + "bash", + "pwsh", + "powershell" + ] + } + } + }, "UserProperties": { "description": "The cloud shell user settings properties.", "type": "object", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json new file mode 100644 index 000000000000..22763f919946 --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "api-version": "2018-10-01", + "body": { + "properties": { + "preferredShellType": "bash" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" + } + } + } + } +} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json new file mode 100644 index 000000000000..32784ba7846b --- /dev/null +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "userSettingsName": "cloudconsole", + "location": "eastus", + "api-version": "2018-10-01", + "body": { + "properties": { + "preferredShellType": "bash" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "preferredOsType": "Linux", + "preferredLocation": "eastus", + "storageProfile": { + "storageAccountResourceId": "string", + "fileShareName": "string", + "diskSizeInGB": 5 + }, + "terminalSettings": { + "fontSize": "Medium", + "fontStyle": "Monospace" + }, + "preferredShellType": "bash" + } + } + } + } +} From 4abf00490c3187a8acb91abccd00f04c8ef7a5c5 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 19 May 2020 17:39:45 -0700 Subject: [PATCH 14/34] add proper responses --- .../examples/DeleteConsole.json | 9 ---- .../examples/DeleteConsole_Location.json | 10 ----- .../examples/DeleteUserSettings.json | 9 ---- .../examples/DeleteUserSettings_Location.json | 10 ----- .../examples/GetConsole.json | 17 -------- .../examples/GetConsole_Location.json | 18 -------- .../examples/GetUserSettings.json | 26 ----------- .../examples/GetUserSettings_Location.json | 27 ------------ .../examples/KeepAlive.json | 18 -------- .../examples/KeepAlive_Location.json | 19 -------- .../examples/PatchUserSettings.json | 31 ------------- .../examples/PatchUserSettings_Location.json | 32 -------------- .../examples/PutConsole.json | 22 ---------- .../examples/PutConsole_Location.json | 23 ---------- .../examples/PutUserSettings.json | 42 ------------------ .../examples/PutUserSettings_Location.json | 43 ------------------- .../stable/2018-10-01/CloudShell.json | 27 ++++++++---- .../stable/2018-10-01/cloudShell.json | 27 ++++++++---- .../examples/PatchUserSettings.json | 11 +++-- .../examples/PatchUserSettings_Location.json | 10 +++-- 20 files changed, 51 insertions(+), 380 deletions(-) delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole_Location.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings_Location.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole_Location.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings_Location.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive_Location.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PatchUserSettings.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PatchUserSettings_Location.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole_Location.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings_Location.json diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json deleted file mode 100644 index 501d98be1f33..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "parameters": { - "consoleName": "default", - "api-version": "2018-10-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole_Location.json deleted file mode 100644 index 4fbaa60ecc56..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteConsole_Location.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json deleted file mode 100644 index b4d5c5236213..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "parameters": { - "userSettingsName": "cloudconsole", - "api-version": "2018-10-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings_Location.json deleted file mode 100644 index 05e0511a0004..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/DeleteUserSettings_Location.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "userSettingsName": "cloudconsole", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json deleted file mode 100644 index c8939a5fff0e..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "consoleName": "default", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "osType": "Linux", - "provisioningState": "Succeeded", - "uri": "string" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole_Location.json deleted file mode 100644 index fe8097963b2c..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetConsole_Location.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "osType": "Linux", - "provisioningState": "Succeeded", - "uri": "string" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json deleted file mode 100644 index 9e1fffc82978..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "userSettingsName": "cloudconsole", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings_Location.json deleted file mode 100644 index 3f99bf4fde31..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/GetUserSettings_Location.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "userSettingsName": "cloudconsole", - "location": "eastus", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json deleted file mode 100644 index bddba272284f..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "consoleName": "default", - "api-version": "2018-10-01", - "body": { - "properties": { - "OsType": "Linux" - } - } - }, - "responses": { - "200": { - "headers": { - "x-ms-console-remaining-seconds": 300 - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive_Location.json deleted file mode 100644 index 6aecb9bdc77b..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/KeepAlive_Location.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01", - "body": { - "properties": { - "OsType": "Linux" - } - } - }, - "responses": { - "200": { - "headers": { - "x-ms-console-remaining-seconds": 300 - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PatchUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PatchUserSettings.json deleted file mode 100644 index 22763f919946..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PatchUserSettings.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "userSettingsName": "cloudconsole", - "api-version": "2018-10-01", - "body": { - "properties": { - "preferredShellType": "bash" - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PatchUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PatchUserSettings_Location.json deleted file mode 100644 index 32784ba7846b..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PatchUserSettings_Location.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "userSettingsName": "cloudconsole", - "location": "eastus", - "api-version": "2018-10-01", - "body": { - "properties": { - "preferredShellType": "bash" - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json deleted file mode 100644 index 32c901a3c828..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "consoleName": "default", - "api-version": "2018-10-01", - "body": { - "properties": { - "OsType": "Linux" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "osType": "Linux", - "provisioningState": "Succeeded", - "uri": "string" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole_Location.json deleted file mode 100644 index 19ddcb8c4b8e..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutConsole_Location.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "consoleName": "default", - "location": "eastus", - "api-version": "2018-10-01", - "body": { - "properties": { - "OsType": "Linux" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "osType": "Linux", - "provisioningState": "Succeeded", - "uri": "string" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json deleted file mode 100644 index 550f538b8e0f..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "userSettingsName": "cloudconsole", - "api-version": "2018-10-01", - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings_Location.json deleted file mode 100644 index 3376effb2c9e..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/preview/2020-04-01-preview/examples/PutUserSettings_Location.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "userSettingsName": "cloudconsole", - "location": "eastus", - "api-version": "2018-10-01", - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "preferredOsType": "Linux", - "preferredLocation": "eastus", - "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", - "diskSizeInGB": 5 - }, - "terminalSettings": { - "fontSize": "Medium", - "fontStyle": "Monospace" - }, - "preferredShellType": "bash" - } - } - } - } -} diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index d5909a078584..e4a0045e6ac6 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -58,7 +58,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetUserSettingsResponse" + "$ref": "#/definitions/UserSettingsResponse" }, "headers": { "x-ms-console-required-location-code": { @@ -110,7 +110,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/UserSettingsResponse" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -186,7 +189,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/UserSettingsResponse" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -363,7 +369,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetUserSettingsResponse" + "$ref": "#/definitions/UserSettingsResponse" }, "headers": { "x-ms-console-required-location-code": { @@ -412,7 +418,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/UserSettingsResponse" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -734,7 +743,7 @@ } } }, - "GetUserSettingsResponse": { + "UserSettingsResponse": { "description": "Response to get user settings", "type": "object", "required": [ @@ -742,11 +751,11 @@ ], "properties": { "properties": { - "$ref": "#/definitions/GetUserSettingsResponseContent" + "$ref": "#/definitions/UserSettingsResponseContent" } } }, - "GetUserSettingsResponseContent": { + "UserSettingsResponseContent": { "description": "The user settings response content", "type": "object", "required": [ @@ -949,4 +958,4 @@ "x-ms-parameter-location": "client" } } -} +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index d5909a078584..e4a0045e6ac6 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -58,7 +58,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetUserSettingsResponse" + "$ref": "#/definitions/UserSettingsResponse" }, "headers": { "x-ms-console-required-location-code": { @@ -110,7 +110,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/UserSettingsResponse" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -186,7 +189,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/UserSettingsResponse" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -363,7 +369,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetUserSettingsResponse" + "$ref": "#/definitions/UserSettingsResponse" }, "headers": { "x-ms-console-required-location-code": { @@ -412,7 +418,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/UserSettingsResponse" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -734,7 +743,7 @@ } } }, - "GetUserSettingsResponse": { + "UserSettingsResponse": { "description": "Response to get user settings", "type": "object", "required": [ @@ -742,11 +751,11 @@ ], "properties": { "properties": { - "$ref": "#/definitions/GetUserSettingsResponseContent" + "$ref": "#/definitions/UserSettingsResponseContent" } } }, - "GetUserSettingsResponseContent": { + "UserSettingsResponseContent": { "description": "The user settings response content", "type": "object", "required": [ @@ -949,4 +958,4 @@ "x-ms-parameter-location": "client" } } -} +} \ No newline at end of file diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json index 22763f919946..e37d880949f2 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json @@ -1,9 +1,14 @@ { "parameters": { "userSettingsName": "cloudconsole", + "location": "eastus", "api-version": "2018-10-01", "body": { "properties": { + "preferredOsType": "", + "preferredLocation": "", + "storageProfile": "", + "terminalSettings": "", "preferredShellType": "bash" } } @@ -15,12 +20,12 @@ "preferredOsType": "Linux", "preferredLocation": "eastus", "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", + "storageAccountResourceId": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/cloud-shell-storage-westus/providers/Microsoft.Storage/storageAccounts/cs410033fffa1eebadb", + "fileShareName": "cs-rosturm-microsoft-com-10033fffa1eebadb", "diskSizeInGB": 5 }, "terminalSettings": { - "fontSize": "Medium", + "fontSize": "Small", "fontStyle": "Monospace" }, "preferredShellType": "bash" diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json index 32784ba7846b..e37d880949f2 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json @@ -5,6 +5,10 @@ "api-version": "2018-10-01", "body": { "properties": { + "preferredOsType": "", + "preferredLocation": "", + "storageProfile": "", + "terminalSettings": "", "preferredShellType": "bash" } } @@ -16,12 +20,12 @@ "preferredOsType": "Linux", "preferredLocation": "eastus", "storageProfile": { - "storageAccountResourceId": "string", - "fileShareName": "string", + "storageAccountResourceId": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/cloud-shell-storage-westus/providers/Microsoft.Storage/storageAccounts/cs410033fffa1eebadb", + "fileShareName": "cs-rosturm-microsoft-com-10033fffa1eebadb", "diskSizeInGB": 5 }, "terminalSettings": { - "fontSize": "Medium", + "fontSize": "Small", "fontStyle": "Monospace" }, "preferredShellType": "bash" From 4063e38335f6d753f0480910bae9aa9e845d811c Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Wed, 20 May 2020 17:28:07 -0700 Subject: [PATCH 15/34] fix schema --- .../stable/2018-10-01/CloudShell.json | 26 +++---------------- .../stable/2018-10-01/cloudShell.json | 26 +++---------------- 2 files changed, 8 insertions(+), 44 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index e4a0045e6ac6..079eab5a69fa 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -759,11 +759,11 @@ "description": "The user settings response content", "type": "object", "required": [ - "userSettings" + "properties" ], "properties": { - "userSettings": { - "$ref": "#/definitions/CloudShellUserSettings" + "properties": { + "$ref": "#/definitions/UserProperties" } } }, @@ -787,25 +787,7 @@ ], "properties": { "properties": { - "$ref": "#/definitions/PatchProperties" - } - } - }, - "PatchProperties": { - "description": "The cloud shell user settings patch properties.", - "type": "object", - "required": [ - "preferredShellType" - ], - "properties": { - "preferredShellType": { - "description": "The shell type of the cloud shell.", - "type": "string", - "enum": [ - "bash", - "pwsh", - "powershell" - ] + "$ref": "#/definitions/UserProperties" } } }, diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index e4a0045e6ac6..079eab5a69fa 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -759,11 +759,11 @@ "description": "The user settings response content", "type": "object", "required": [ - "userSettings" + "properties" ], "properties": { - "userSettings": { - "$ref": "#/definitions/CloudShellUserSettings" + "properties": { + "$ref": "#/definitions/UserProperties" } } }, @@ -787,25 +787,7 @@ ], "properties": { "properties": { - "$ref": "#/definitions/PatchProperties" - } - } - }, - "PatchProperties": { - "description": "The cloud shell user settings patch properties.", - "type": "object", - "required": [ - "preferredShellType" - ], - "properties": { - "preferredShellType": { - "description": "The shell type of the cloud shell.", - "type": "string", - "enum": [ - "bash", - "pwsh", - "powershell" - ] + "$ref": "#/definitions/UserProperties" } } }, From 933c75b0ccb414fb58d4fb5c7287dcf36f0baadf Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Thu, 21 May 2020 14:06:18 -0700 Subject: [PATCH 16/34] remove schema level --- .../stable/2018-10-01/CloudShell.json | 12 ------------ .../stable/2018-10-01/cloudShell.json | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 079eab5a69fa..f12c19bb9b8c 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -749,18 +749,6 @@ "required": [ "properties" ], - "properties": { - "properties": { - "$ref": "#/definitions/UserSettingsResponseContent" - } - } - }, - "UserSettingsResponseContent": { - "description": "The user settings response content", - "type": "object", - "required": [ - "properties" - ], "properties": { "properties": { "$ref": "#/definitions/UserProperties" diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index 079eab5a69fa..f12c19bb9b8c 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -749,18 +749,6 @@ "required": [ "properties" ], - "properties": { - "properties": { - "$ref": "#/definitions/UserSettingsResponseContent" - } - } - }, - "UserSettingsResponseContent": { - "description": "The user settings response content", - "type": "object", - "required": [ - "properties" - ], "properties": { "properties": { "$ref": "#/definitions/UserProperties" From dc82681079668ce8283e9a707f970c369ac70525 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Thu, 21 May 2020 16:12:36 -0700 Subject: [PATCH 17/34] add missing responses --- .../2018-10-01/examples/DeleteConsole_Location.json | 3 ++- .../stable/2018-10-01/examples/DeleteUserSettings.json | 3 ++- .../2018-10-01/examples/DeleteUserSettings_Location.json | 3 ++- .../stable/2018-10-01/examples/GetUserSettings.json | 3 +-- .../2018-10-01/examples/GetUserSettings_Location.json | 3 +-- .../stable/2018-10-01/examples/PutConsole.json | 9 +++++++++ 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole_Location.json index 4fbaa60ecc56..98e9199a1c24 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole_Location.json @@ -5,6 +5,7 @@ "api-version": "2018-10-01" }, "responses": { - "200": {} + "200": {}, + "204": {} } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json index b4d5c5236213..e3b501a0830a 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings.json @@ -4,6 +4,7 @@ "api-version": "2018-10-01" }, "responses": { - "200": {} + "200": {}, + "204": {} } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings_Location.json index 05e0511a0004..626b8022a573 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteUserSettings_Location.json @@ -5,6 +5,7 @@ "api-version": "2018-10-01" }, "responses": { - "200": {} + "200": {}, + "204": {} } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json index b0ff16bea607..9e1fffc82978 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings.json @@ -18,8 +18,7 @@ "fontSize": "Medium", "fontStyle": "Monospace" }, - "preferredShellType": "bash", - "networkType": "default" + "preferredShellType": "bash" } } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings_Location.json index dd34c8f1bf6a..3f99bf4fde31 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/GetUserSettings_Location.json @@ -19,8 +19,7 @@ "fontSize": "Medium", "fontStyle": "Monospace" }, - "preferredShellType": "bash", - "networkType": "default" + "preferredShellType": "bash" } } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json index 32c901a3c828..713ba22bfd0a 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json @@ -17,6 +17,15 @@ "uri": "string" } } + }, + "200": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } } } } From 003e3861032c5eb07730acba4825d2e1294c618b Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Thu, 21 May 2020 16:34:12 -0700 Subject: [PATCH 18/34] parameter title fixes --- .../Microsoft.Portal/stable/2018-10-01/CloudShell.json | 10 +++++----- .../Microsoft.Portal/stable/2018-10-01/cloudShell.json | 10 +++++----- .../stable/2018-10-01/examples/DeleteConsole.json | 3 ++- .../2018-10-01/examples/PutConsole_Location.json | 9 +++++++++ .../2018-10-01/examples/PutUserSettings_Location.json | 3 +-- 5 files changed, 22 insertions(+), 13 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index f12c19bb9b8c..16e140c4c675 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -99,7 +99,7 @@ "$ref": "#/parameters/LocationParameter" }, { - "name": "UserSettings", + "name": "parameters", "description": "The properties of the user settings to be updated.", "required": true, "in": "body", @@ -178,7 +178,7 @@ "$ref": "#/parameters/LocationParameter" }, { - "name": "UserSettings", + "name": "parameters", "description": "The properties of the user settings to be created or updated.", "required": true, "in": "body", @@ -407,7 +407,7 @@ "$ref": "#/parameters/UserSettingsNameParameter" }, { - "name": "UserSettings", + "name": "parameters", "description": "The properties of the user settings to be updated.", "required": true, "in": "body", @@ -480,7 +480,7 @@ "$ref": "#/parameters/UserSettingsNameParameter" }, { - "name": "UserSettings", + "name": "parameters", "description": "The properties of the user settings to be created or updated.", "required": true, "in": "body", @@ -552,7 +552,7 @@ "$ref": "#/parameters/ConsoleNameParameter" }, { - "name": "ConsoleDefinition", + "name": "parameters", "description": "The console definition.", "required": true, "in": "body", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index f12c19bb9b8c..16e140c4c675 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -99,7 +99,7 @@ "$ref": "#/parameters/LocationParameter" }, { - "name": "UserSettings", + "name": "parameters", "description": "The properties of the user settings to be updated.", "required": true, "in": "body", @@ -178,7 +178,7 @@ "$ref": "#/parameters/LocationParameter" }, { - "name": "UserSettings", + "name": "parameters", "description": "The properties of the user settings to be created or updated.", "required": true, "in": "body", @@ -407,7 +407,7 @@ "$ref": "#/parameters/UserSettingsNameParameter" }, { - "name": "UserSettings", + "name": "parameters", "description": "The properties of the user settings to be updated.", "required": true, "in": "body", @@ -480,7 +480,7 @@ "$ref": "#/parameters/UserSettingsNameParameter" }, { - "name": "UserSettings", + "name": "parameters", "description": "The properties of the user settings to be created or updated.", "required": true, "in": "body", @@ -552,7 +552,7 @@ "$ref": "#/parameters/ConsoleNameParameter" }, { - "name": "ConsoleDefinition", + "name": "parameters", "description": "The console definition.", "required": true, "in": "body", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json index 501d98be1f33..a9580f1734a6 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/DeleteConsole.json @@ -4,6 +4,7 @@ "api-version": "2018-10-01" }, "responses": { - "200": {} + "200": {}, + "204": {} } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json index 19ddcb8c4b8e..2b95d60a9aba 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json @@ -10,6 +10,15 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "osType": "Linux", + "provisioningState": "Succeeded", + "uri": "string" + } + } + }, "201": { "body": { "properties": { diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json index 3d61997e32ae..7daee7a61bba 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json @@ -36,8 +36,7 @@ "fontSize": "Medium", "fontStyle": "Monospace" }, - "preferredShellType": "bash", - "networkType": "default" + "preferredShellType": "bash" } } } From cb598ff546c1dc07e2e3c50be9cdd7b7ac0d00d2 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Thu, 21 May 2020 16:47:03 -0700 Subject: [PATCH 19/34] change body title to parameters --- .../Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json index 713ba22bfd0a..17f834d7c639 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json @@ -2,7 +2,7 @@ "parameters": { "consoleName": "default", "api-version": "2018-10-01", - "body": { + "parameters": { "properties": { "OsType": "Linux" } From 25de65e423c41781d7c0385b585736d74e8c9ba2 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Thu, 21 May 2020 17:08:51 -0700 Subject: [PATCH 20/34] more parameters fixes --- .../stable/2018-10-01/examples/PatchUserSettings.json | 2 +- .../2018-10-01/examples/PatchUserSettings_Location.json | 2 +- .../stable/2018-10-01/examples/PutConsole.json | 2 +- .../stable/2018-10-01/examples/PutConsole_Location.json | 4 ++-- .../stable/2018-10-01/examples/PutUserSettings.json | 4 ++-- .../stable/2018-10-01/examples/PutUserSettings_Location.json | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json index e37d880949f2..076b33ce0805 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json @@ -3,7 +3,7 @@ "userSettingsName": "cloudconsole", "location": "eastus", "api-version": "2018-10-01", - "body": { + "parameters": { "properties": { "preferredOsType": "", "preferredLocation": "", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json index e37d880949f2..076b33ce0805 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json @@ -3,7 +3,7 @@ "userSettingsName": "cloudconsole", "location": "eastus", "api-version": "2018-10-01", - "body": { + "parameters": { "properties": { "preferredOsType": "", "preferredLocation": "", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json index 17f834d7c639..34a3d68780cd 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole.json @@ -4,7 +4,7 @@ "api-version": "2018-10-01", "parameters": { "properties": { - "OsType": "Linux" + "osType": "Linux" } } }, diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json index 2b95d60a9aba..c1fc796c0288 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutConsole_Location.json @@ -3,9 +3,9 @@ "consoleName": "default", "location": "eastus", "api-version": "2018-10-01", - "body": { + "parameters": { "properties": { - "OsType": "Linux" + "osType": "Linux" } } }, diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json index df7b5acd4233..58967cd3e44c 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json @@ -2,7 +2,7 @@ "parameters": { "userSettingsName": "cloudconsole", "api-version": "2018-10-01", - "body": { + "parameters": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", @@ -22,7 +22,7 @@ }, "responses": { "200": { - "body": { + "properties": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json index 7daee7a61bba..49fa774b8be7 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json @@ -3,7 +3,7 @@ "userSettingsName": "cloudconsole", "location": "eastus", "api-version": "2018-10-01", - "body": { + "parameters": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", From ad13c344a76b7caaa277c63416d1a333dac782d7 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Fri, 22 May 2020 15:03:01 -0700 Subject: [PATCH 21/34] change body to properties --- .../stable/2018-10-01/examples/PatchUserSettings_Location.json | 2 +- .../stable/2018-10-01/examples/PutUserSettings_Location.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json index 076b33ce0805..42eaa91dedd0 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json @@ -15,7 +15,7 @@ }, "responses": { "200": { - "body": { + "parameters": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json index 49fa774b8be7..58e7cf1cf425 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json @@ -23,7 +23,7 @@ }, "responses": { "200": { - "body": { + "parameters": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", From 112dd1e79118dfe4a8708f54d7fa4a52fa59bf21 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Fri, 22 May 2020 15:30:57 -0700 Subject: [PATCH 22/34] fix typo --- .../stable/2018-10-01/examples/PutUserSettings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json index 58967cd3e44c..6cd8ab7ea27d 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json @@ -22,7 +22,7 @@ }, "responses": { "200": { - "properties": { + "parameters": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", From 442db3b95a5ca31877bb052b89f74c9cb856189c Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Fri, 22 May 2020 16:03:15 -0700 Subject: [PATCH 23/34] fix enums --- .../stable/2018-10-01/examples/PatchUserSettings.json | 6 +++--- .../2018-10-01/examples/PatchUserSettings_Location.json | 8 ++++---- .../stable/2018-10-01/examples/PutUserSettings.json | 5 ++--- .../2018-10-01/examples/PutUserSettings_Location.json | 5 ++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json index 076b33ce0805..c646cf0af9ba 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings.json @@ -5,10 +5,10 @@ "api-version": "2018-10-01", "parameters": { "properties": { - "preferredOsType": "", + "preferredOsType": "Linux", "preferredLocation": "", - "storageProfile": "", - "terminalSettings": "", + "storageProfile": {}, + "terminalSettings": {}, "preferredShellType": "bash" } } diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json index 42eaa91dedd0..c646cf0af9ba 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PatchUserSettings_Location.json @@ -5,17 +5,17 @@ "api-version": "2018-10-01", "parameters": { "properties": { - "preferredOsType": "", + "preferredOsType": "Linux", "preferredLocation": "", - "storageProfile": "", - "terminalSettings": "", + "storageProfile": {}, + "terminalSettings": {}, "preferredShellType": "bash" } } }, "responses": { "200": { - "parameters": { + "body": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json index 6cd8ab7ea27d..0d57f5be2937 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json @@ -15,14 +15,13 @@ "fontSize": "Medium", "fontStyle": "Monospace" }, - "preferredShellType": "bash", - "networkType": "default" + "preferredShellType": "bash" } } }, "responses": { "200": { - "parameters": { + "body": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json index 58e7cf1cf425..49ca747ec0e3 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings_Location.json @@ -16,14 +16,13 @@ "fontSize": "Medium", "fontStyle": "Monospace" }, - "preferredShellType": "bash", - "networkType": "default" + "preferredShellType": "bash" } } }, "responses": { "200": { - "parameters": { + "body": { "properties": { "preferredOsType": "Linux", "preferredLocation": "eastus", From e989118fd9ca86c4969e0a2df7da50ee65f856fc Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 26 May 2020 16:01:35 -0700 Subject: [PATCH 24/34] remove preview file from readme --- specification/cloudshell/resource-manager/readme.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/specification/cloudshell/resource-manager/readme.md b/specification/cloudshell/resource-manager/readme.md index 05b46f19ad94..383773dcd1ce 100644 --- a/specification/cloudshell/resource-manager/readme.md +++ b/specification/cloudshell/resource-manager/readme.md @@ -38,15 +38,6 @@ input-file: - Microsoft.Portal/stable/2018-10-01/CloudShell.json ``` -### Tag: package-2020-04-01 - -These settings apply only when `--tag=package-2020-04-01` is specified on the command line. - -``` yaml $(tag) == 'package-2020-04-01' -input-file: -- Microsoft.Portal/preview/2020-04-01/CloudShell.json -``` - --- # Code Generation From bf9a7c53b514d86aa1c1bb84cb877d01a4ed2f38 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 26 May 2020 16:29:26 -0700 Subject: [PATCH 25/34] add schema to putusersettingsresponse --- .../Microsoft.Portal/stable/2018-10-01/CloudShell.json | 5 ++++- .../Microsoft.Portal/stable/2018-10-01/cloudShell.json | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 16e140c4c675..a6271a4d45ec 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -491,7 +491,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/UserSettingsResponse" + } }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index 16e140c4c675..a6271a4d45ec 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -491,7 +491,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/UserSettingsResponse" + } }, "default": { "description": "Error response describing why the operation failed.", From 21cb7b308b57c3c9301a7c37544a6903b3258ca2 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 26 May 2020 17:15:18 -0700 Subject: [PATCH 26/34] fix version and removed required property --- .../Microsoft.Portal/stable/2018-10-01/CloudShell.json | 5 +---- .../Microsoft.Portal/stable/2018-10-01/cloudShell.json | 5 +---- .../stable/2018-10-01/examples/PutUserSettings.json | 3 +-- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index a6271a4d45ec..ee0d59eed584 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2020-04-01-preview", + "version": "2018-10-01", "title": "CloudShellClient" }, "host": "management.azure.com", @@ -773,9 +773,6 @@ "CloudShellPatchUserSettings": { "description": "Cloud shell patch operation user settings.", "type": "object", - "required": [ - "properties" - ], "properties": { "properties": { "$ref": "#/definitions/UserProperties" diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json index a6271a4d45ec..ee0d59eed584 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2020-04-01-preview", + "version": "2018-10-01", "title": "CloudShellClient" }, "host": "management.azure.com", @@ -773,9 +773,6 @@ "CloudShellPatchUserSettings": { "description": "Cloud shell patch operation user settings.", "type": "object", - "required": [ - "properties" - ], "properties": { "properties": { "$ref": "#/definitions/UserProperties" diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json index 0d57f5be2937..2e74b9b9b157 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/examples/PutUserSettings.json @@ -34,8 +34,7 @@ "fontSize": "Medium", "fontStyle": "Monospace" }, - "preferredShellType": "bash", - "networkType": "default" + "preferredShellType": "bash" } } } From 155bfde92b4b65bacddfe4b5bc394c9f160d1c80 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 26 May 2020 17:19:31 -0700 Subject: [PATCH 27/34] remove mislabeled file --- .../stable/2018-10-01/cloudShell.json | 931 ------------------ 1 file changed, 931 deletions(-) delete mode 100644 specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json deleted file mode 100644 index ee0d59eed584..000000000000 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/cloudShell.json +++ /dev/null @@ -1,931 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2018-10-01", - "title": "CloudShellClient" - }, - "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.Portal/locations/{location}/userSettings/{userSettingsName}": { - "get": { - "operationId": "getUserSettingsWithLocation", - "x-ms-examples": { - "GetUserSettings": { - "$ref": "./examples/GetUserSettings_Location.json" - } - }, - "summary": "Get user settings.", - "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/UserSettingsResponse" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "operationId": "patchUserSettingsWithLocation", - "summary": "patch user settings.", - "description": "Patch cloud shell settings for current signed in user", - "x-ms-examples": { - "PatchUserSettings": { - "$ref": "./examples/PatchUserSettings_Location.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "name": "parameters", - "description": "The properties of the user settings to be updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellPatchUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/UserSettingsResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "deleteUserSettingsWithLocation", - "summary": "delete user settings.", - "x-ms-examples": { - "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings_Location.json" - } - }, - "description": "Delete cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "putUserSettingsWithLocation", - "summary": "put user settings.", - "x-ms-examples": { - "PutUserSettings": { - "$ref": "./examples/PutUserSettings_Location.json" - } - }, - "description": "Create or update cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "name": "parameters", - "description": "The properties of the user settings to be created or updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/UserSettingsResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}": { - "get": { - "operationId": "getConsoleWithLocation", - "summary": "Get console", - "x-ms-examples": { - "GetConsole": { - "$ref": "./examples/GetConsole_Location.json" - } - }, - "description": "Gets the console for the user.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "putConsoleWithLocation", - "summary": "Put console", - "x-ms-examples": { - "PutConsole": { - "$ref": "./examples/PutConsole_Location.json" - } - }, - "description": "Puts a request for a console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "deleteConsoleWithLocation", - "summary": "Delete console", - "x-ms-examples": { - "DeleteConsole": { - "$ref": "./examples/DeleteConsole_Location.json" - } - }, - "description": "Deletes the console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive": { - "post": { - "operationId": "keepAliveWithLocation", - "x-ms-examples": { - "GetUserSettings": { - "$ref": "./examples/KeepAlive_Location.json" - } - }, - "summary": "Keep alive", - "description": "Keep console alive", - "parameters": [ - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "x-ms-console-remaining-seconds": { - "type": "integer", - "description": "Remaining time left in session, in seconds." - } - } - } - } - } - }, - "/providers/Microsoft.Portal/userSettings/{userSettingsName}": { - "get": { - "operationId": "GetUserSettings", - "x-ms-examples": { - "GetUserSettings": { - "$ref": "./examples/GetUserSettings.json" - } - }, - "summary": "Get user settings.", - "description": "Get current user settings for current signed in user. This operation returns settings for the user's cloud shell preferences including preferred location, storage profile, shell type, font and size settings.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/UserSettingsResponse" - }, - "headers": { - "x-ms-console-required-location-code": { - "type": "string", - "description": "normalized required location code" - }, - "x-ms-console-preview-user": { - "type": "boolean", - "description": "indicates whether user is a previous usr." - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "operationId": "PatchUserSettings", - "summary": "patch user settings.", - "description": "Patch cloud shell settings for current signed in user", - "x-ms-examples": { - "PatchUserSettings": { - "$ref": "./examples/PatchUserSettings.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "name": "parameters", - "description": "The properties of the user settings to be updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellPatchUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/UserSettingsResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "DeleteUserSettings", - "x-ms-examples": { - "DeleteUserSettings": { - "$ref": "./examples/DeleteUserSettings.json" - } - }, - "summary": "delete user settings.", - "description": "Delete cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "PutUserSettings", - "x-ms-examples": { - "PutUserSettings": { - "$ref": "./examples/PutUserSettings.json" - } - }, - "summary": "put user settings.", - "description": "Create or update cloud shell settings for current signed in user", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/UserSettingsNameParameter" - }, - { - "name": "parameters", - "description": "The properties of the user settings to be created or updated.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/CloudShellUserSettings" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/UserSettingsResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/consoles/{consoleName}": { - "get": { - "operationId": "GetConsole", - "x-ms-examples": { - "GetConsole": { - "$ref": "./examples/GetConsole.json" - } - }, - "summary": "Get console", - "description": "Gets the console for the user.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "operationId": "PutConsole", - "x-ms-examples": { - "PutConsole": { - "$ref": "./examples/PutConsole.json" - } - }, - "summary": "Put console", - "description": "Puts a request for a console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - }, - { - "name": "parameters", - "description": "The console definition.", - "required": true, - "in": "body", - "schema": { - "$ref": "#/definitions/ConsoleDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/CloudShellConsole" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "operationId": "DeleteConsole", - "x-ms-examples": { - "DeleteConsole": { - "$ref": "./examples/DeleteConsole.json" - } - }, - "summary": "Delete console", - "description": "Deletes the console", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Portal/consoles/{consoleName}/keepAlive": { - "post": { - "operationId": "KeepAlive", - "x-ms-examples": { - "KeepAlive": { - "$ref": "./examples/KeepAlive.json" - } - }, - "summary": "Keep alive", - "description": "Keep console alive", - "parameters": [ - { - "$ref": "#/parameters/ConsoleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "x-ms-console-remaining-seconds": { - "type": "integer", - "description": "Remaining time left in session, in seconds." - } - } - } - } - } - } - }, - "definitions": { - "CloudShellConsole": { - "description": "Cloud shell console", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/ConsoleProperties" - } - } - }, - "ConsoleProperties": { - "description": "Cloud shell console properties.", - "type": "object", - "required": [ - "osType", - "provisioningState", - "uri" - ], - "properties": { - "osType": { - "description": "The operating system type of the cloud shell.", - "type": "string", - "enum": [ - "Linux", - "Windows" - ] - }, - "provisioningState": { - "description": "Provisioning state of the console.", - "type": "string", - "enum": [ - "NotSpecified", - "Accepted", - "Pending", - "Updating", - "Creating", - "Repairing", - "Failed", - "Canceled", - "Succeeded" - ] - }, - "uri": { - "description": "Uri of the console.", - "type": "string" - } - } - }, - "ConsoleCreateProperties": { - "description": "Cloud shell properties for creating a console.", - "type": "object", - "required": [ - "osType" - ], - "properties": { - "osType": { - "description": "The operating system type of the cloud shell.", - "type": "string", - "enum": [ - "Linux", - "Windows" - ] - }, - "provisioningState": { - "description": "Provisioning state of the console.", - "type": "string", - "enum": [ - "NotSpecified", - "Accepted", - "Pending", - "Updating", - "Creating", - "Repairing", - "Failed", - "Canceled", - "Succeeded" - ] - }, - "uri": { - "description": "Uri of the console.", - "type": "string" - } - } - }, - "ConsoleDefinition": { - "description": "Console definition", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/ConsoleCreateProperties" - } - } - }, - "UserSettingsResponse": { - "description": "Response to get user settings", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/UserProperties" - } - } - }, - "CloudShellUserSettings": { - "description": "Cloud shell user settings.", - "type": "object", - "required": [ - "properties" - ], - "properties": { - "properties": { - "$ref": "#/definitions/UserProperties" - } - } - }, - "CloudShellPatchUserSettings": { - "description": "Cloud shell patch operation user settings.", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/UserProperties" - } - } - }, - "UserProperties": { - "description": "The cloud shell user settings properties.", - "type": "object", - "required": [ - "preferredOsType", - "preferredLocation", - "storageProfile", - "terminalSettings", - "preferredShellType" - ], - "properties": { - "preferredOsType": { - "description": "The operating system type of the cloud shell. Deprecated, use preferredShellType.", - "type": "string", - "enum": [ - "Windows", - "Linux" - ] - }, - "preferredLocation": { - "description": "The preferred location of the cloud shell.", - "type": "string" - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile" - }, - "terminalSettings": { - "$ref": "#/definitions/TerminalSettings" - }, - "preferredShellType": { - "description": "The shell type of the cloud shell.", - "type": "string", - "enum": [ - "bash", - "pwsh", - "powershell" - ] - } - } - }, - "StorageProfile": { - "description": "The storage profile of the user settings.", - "type": "object", - "properties": { - "storageAccountResourceId": { - "type": "string", - "description": "Full resource ID of storage account." - }, - "fileShareName": { - "type": "string", - "description": "Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -" - }, - "diskSizeInGB": { - "type": "integer", - "description": "Size of file share" - } - } - }, - "TerminalSettings": { - "description": "Settings for terminal appearance.", - "type": "object", - "properties": { - "fontSize": { - "type": "string", - "description": "Size of terminal font.", - "enum": [ - "NotSpecified", - "Small", - "Medium", - "Large" - ] - }, - "fontStyle": { - "type": "string", - "description": "Style of terminal font.", - "enum": [ - "NotSpecified", - "Monospace", - "Courier" - ] - } - } - }, - "ErrorResponse": { - "title": "ErrorResponse", - "description": "Contains details when the response code indicates an error.", - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDetail" - } - }, - "required": [ - "error" - ] - }, - "ErrorDetail": { - "title": "ErrorDetail", - "type": "object", - "properties": { - "code": { - "description": "The error's code.", - "type": "string" - }, - "message": { - "description": "A human readable error message.", - "type": "string" - } - }, - "required": [ - "code", - "message" - ] - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client API version", - "x-ms-parameter-location": "client" - }, - "ConsoleNameParameter": { - "name": "consoleName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the console", - "x-ms-parameter-location": "client" - }, - "LocationParameter": { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The provider location", - "x-ms-parameter-location": "method" - }, - "UserSettingsNameParameter": { - "name": "userSettingsName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the user settings", - "x-ms-parameter-location": "client" - } - } -} \ No newline at end of file From e55dba100828255cc416b9ecffffc3c3b106b15a Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Tue, 26 May 2020 17:40:53 -0700 Subject: [PATCH 28/34] run prettier --- .../Microsoft.Portal/stable/2018-10-01/CloudShell.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index ee0d59eed584..c2ba2aef90a9 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -928,4 +928,4 @@ "x-ms-parameter-location": "client" } } -} \ No newline at end of file +} From 0ad85b0b8e61f48083652006f6858ed51ce906ed Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Thu, 28 May 2020 17:39:23 -0700 Subject: [PATCH 29/34] add modelAsString --- .../stable/2018-10-01/CloudShell.json | 48 +++++++++++++++---- 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index c2ba2aef90a9..a98508088e81 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -675,7 +675,11 @@ "enum": [ "Linux", "Windows" - ] + ], + "x-ms-enum":{ + "name":"osType", + "modelAsString":true + } }, "provisioningState": { "description": "Provisioning state of the console.", @@ -690,7 +694,11 @@ "Failed", "Canceled", "Succeeded" - ] + ], + "x-ms-enum":{ + "name":"provisioningState", + "modelAsString":true + } }, "uri": { "description": "Uri of the console.", @@ -711,7 +719,11 @@ "enum": [ "Linux", "Windows" - ] + ], + "x-ms-enum":{ + "name":"osType", + "modelAsString":true + } }, "provisioningState": { "description": "Provisioning state of the console.", @@ -726,7 +738,11 @@ "Failed", "Canceled", "Succeeded" - ] + ], + "x-ms-enum":{ + "name":"provisioningState", + "modelAsString":true + } }, "uri": { "description": "Uri of the console.", @@ -796,7 +812,11 @@ "enum": [ "Windows", "Linux" - ] + ], + "x-ms-enum":{ + "name":"osType", + "modelAsString":true + } }, "preferredLocation": { "description": "The preferred location of the cloud shell.", @@ -815,7 +835,11 @@ "bash", "pwsh", "powershell" - ] + ], + "x-ms-enum":{ + "name":"shellType", + "modelAsString":true + } } } }, @@ -849,7 +873,11 @@ "Small", "Medium", "Large" - ] + ], + "x-ms-enum":{ + "name":"fontSize", + "modelAsString":true + } }, "fontStyle": { "type": "string", @@ -858,7 +886,11 @@ "NotSpecified", "Monospace", "Courier" - ] + ], + "x-ms-enum":{ + "name":"fontStyle", + "modelAsString":true + } } } }, From 55d18cdf44ca7315dd6d43031a84e5dc40705a84 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Thu, 28 May 2020 17:42:22 -0700 Subject: [PATCH 30/34] run prettier --- .../stable/2018-10-01/CloudShell.json | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index a98508088e81..02b419f75d4f 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -676,9 +676,9 @@ "Linux", "Windows" ], - "x-ms-enum":{ - "name":"osType", - "modelAsString":true + "x-ms-enum": { + "name": "osType", + "modelAsString": true } }, "provisioningState": { @@ -695,9 +695,9 @@ "Canceled", "Succeeded" ], - "x-ms-enum":{ - "name":"provisioningState", - "modelAsString":true + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true } }, "uri": { @@ -720,9 +720,9 @@ "Linux", "Windows" ], - "x-ms-enum":{ - "name":"osType", - "modelAsString":true + "x-ms-enum": { + "name": "osType", + "modelAsString": true } }, "provisioningState": { @@ -739,9 +739,9 @@ "Canceled", "Succeeded" ], - "x-ms-enum":{ - "name":"provisioningState", - "modelAsString":true + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true } }, "uri": { @@ -813,9 +813,9 @@ "Windows", "Linux" ], - "x-ms-enum":{ - "name":"osType", - "modelAsString":true + "x-ms-enum": { + "name": "osType", + "modelAsString": true } }, "preferredLocation": { @@ -836,9 +836,9 @@ "pwsh", "powershell" ], - "x-ms-enum":{ - "name":"shellType", - "modelAsString":true + "x-ms-enum": { + "name": "shellType", + "modelAsString": true } } } @@ -874,9 +874,9 @@ "Medium", "Large" ], - "x-ms-enum":{ - "name":"fontSize", - "modelAsString":true + "x-ms-enum": { + "name": "fontSize", + "modelAsString": true } }, "fontStyle": { @@ -887,9 +887,9 @@ "Monospace", "Courier" ], - "x-ms-enum":{ - "name":"fontStyle", - "modelAsString":true + "x-ms-enum": { + "name": "fontStyle", + "modelAsString": true } } } From 0bfb0c119987b3d406b8f602dc9a656167ecca24 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Wed, 3 Jun 2020 11:32:58 -0700 Subject: [PATCH 31/34] add resource definition with parameter --- .../stable/2018-10-01/CloudShell.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 02b419f75d4f..7a3f18035040 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -760,7 +760,16 @@ "properties": { "$ref": "#/definitions/ConsoleCreateProperties" } - } + }, + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ] + }, + "Resource":{ + "description":"The Resource model definition.", + "x-ms-azure-resource":true }, "UserSettingsResponse": { "description": "Response to get user settings", From 1f0e5ff78f9aad24698810842c64531a68e40876 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Wed, 3 Jun 2020 11:33:34 -0700 Subject: [PATCH 32/34] run prettier --- .../stable/2018-10-01/CloudShell.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 7a3f18035040..534d2a7eda1a 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -761,15 +761,15 @@ "$ref": "#/definitions/ConsoleCreateProperties" } }, - "allOf":[ + "allOf": [ { - "$ref":"#/definitions/Resource" + "$ref": "#/definitions/Resource" } - ] + ] }, - "Resource":{ - "description":"The Resource model definition.", - "x-ms-azure-resource":true + "Resource": { + "description": "The Resource model definition.", + "x-ms-azure-resource": true }, "UserSettingsResponse": { "description": "Response to get user settings", From deab6a0180f36b6e1bb7018865b3df09e10dd6c3 Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Wed, 3 Jun 2020 12:27:06 -0700 Subject: [PATCH 33/34] add resource more places --- .../stable/2018-10-01/CloudShell.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 534d2a7eda1a..9857233d5bcb 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -658,7 +658,12 @@ "properties": { "$ref": "#/definitions/ConsoleProperties" } - } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] }, "ConsoleProperties": { "description": "Cloud shell console properties.", @@ -793,7 +798,12 @@ "properties": { "$ref": "#/definitions/UserProperties" } - } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] }, "CloudShellPatchUserSettings": { "description": "Cloud shell patch operation user settings.", From 0dcd51bb401a9d1f0df23f6b5894509a350eaa7c Mon Sep 17 00:00:00 2001 From: Robin Sturm Date: Wed, 3 Jun 2020 13:05:37 -0700 Subject: [PATCH 34/34] lint fixes --- .../stable/2018-10-01/CloudShell.json | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json index 9857233d5bcb..4c4a3ca9d214 100644 --- a/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json +++ b/specification/cloudshell/resource-manager/Microsoft.Portal/stable/2018-10-01/CloudShell.json @@ -340,9 +340,16 @@ "headers": { "x-ms-console-remaining-seconds": { "type": "integer", + "format": "int32", "description": "Remaining time left in session, in seconds." } } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } } @@ -639,9 +646,16 @@ "headers": { "x-ms-console-remaining-seconds": { "type": "integer", + "format": "int32", "description": "Remaining time left in session, in seconds." } } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } } @@ -786,7 +800,12 @@ "properties": { "$ref": "#/definitions/UserProperties" } - } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] }, "CloudShellUserSettings": { "description": "Cloud shell user settings.", @@ -876,6 +895,7 @@ }, "diskSizeInGB": { "type": "integer", + "format": "int32", "description": "Size of file share" } }