From 1dc6b118e04df16f2455a616b7bcee85678a5eb0 Mon Sep 17 00:00:00 2001 From: roytan-microsoft <73565668+roytan-microsoft@users.noreply.github.com> Date: Fri, 8 Jan 2021 09:26:19 -0800 Subject: [PATCH 01/15] Adds base for updating Microsoft.MixedReality from version preview/2020-04-06-preview to version 2021-01-01 --- .../stable/2021-01-01/common.json | 166 +++++++ ...eckNameAvailabilityForLocalUniqueness.json | 20 + .../proxy/ExposingAvailableOperations.json | 50 ++ .../examples/remote-rendering/Delete.json | 12 + .../examples/remote-rendering/Get.json | 26 ++ .../remote-rendering/GetByResourceGroup.json | 44 ++ .../remote-rendering/GetBySubscription.json | 43 ++ .../examples/remote-rendering/ListKeys.json | 16 + .../examples/remote-rendering/Patch.json | 39 ++ .../examples/remote-rendering/Put.json | 48 ++ .../remote-rendering/RegenerateKey.json | 19 + .../stable/2021-01-01/proxy.json | 246 ++++++++++ .../stable/2021-01-01/remote-rendering.json | 435 ++++++++++++++++++ 13 files changed, 1164 insertions(+) create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json new file mode 100644 index 000000000000..c80d0cacdc36 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json @@ -0,0 +1,166 @@ +{ + "swagger": "2.0", + "info": { + "title": "Mixed Reality", + "description": "Mixed Reality Resource Provider API", + "version": "2020-04-06-preview" + }, + "paths": {}, + "definitions": { + "AccountKeys": { + "description": "Developer Keys of account", + "type": "object", + "properties": { + "primaryKey": { + "description": "value of primary key.", + "readOnly": true, + "type": "string" + }, + "secondaryKey": { + "description": "value of secondary key.", + "readOnly": true, + "type": "string" + } + } + }, + "AccountKeyRegenerateRequest": { + "description": "Request for account key regeneration", + "type": "object", + "properties": { + "serial": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "default": 1, + "x-ms-enum": { + "name": "Serial", + "values": [ + { + "value": 1, + "description": "The Primary Key", + "name": "Primary" + }, + { + "value": 2, + "description": "The Secondary Key", + "name": "Secondary" + } + ] + }, + "description": "serial of key to be regenerated" + } + } + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An Error response." + }, + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for displaying in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from Azure." + }, + "MixedRealityAccountProperties": { + "description": "Common Properties shared by Mixed Reality Accounts", + "type": "object", + "properties": { + "accountId": { + "description": "unique id of certain account.", + "readOnly": true, + "type": "string" + }, + "accountDomain": { + "description": "Correspond domain name of certain Spatial Anchors Account", + "readOnly": true, + "type": "string" + } + } + } + }, + "parameters": { + "accountKeyRegenerateParameter": { + "name": "regenerate", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccountKeyRegenerateRequest" + }, + "x-ms-parameter-location": "method", + "description": "Required information for key regeneration." + }, + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "Name of an Mixed Reality Account." + }, + "apiVersionParameter": { + "name": "api-version", + "description": "The API version to be used with the HTTP request.", + "in": "query", + "required": true, + "type": "string" + }, + "locationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "The location in which uniqueness will be verified." + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "Name of an Azure resource group." + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)", + "in": "path", + "required": true, + "type": "string" + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json new file mode 100644 index 000000000000..0e20ae0f4cdb --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "location": "eastus2euap", + "checkNameAvailability": { + "name": "MyAccount", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + }, + "api-version": " 2020-04-06-preview" + }, + "responses": { + "200": { + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "..." + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json new file mode 100644 index 000000000000..553835485f5f --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2020-04-06-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.MixedReality/register/action", + "display": { + "provider": "Microsoft.MixedReality", + "resource": "Mixed Reality resource provider", + "operation": "Registers the Mixed Reality resource provider", + "description": "Registers a subscription for the Mixed Reality resource provider." + } + }, + { + "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/delete", + "display": { + "provider": "Microsoft.MixedReality", + "resource": "SpatialAnchorsAccounts", + "operation": "Delete Spatial Anchors Accounts", + "description": "Deletes the resource for Microsoft.MixedReality/SpatialAnchorsAccounts" + } + }, + { + "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/read", + "display": { + "provider": "Microsoft.MixedReality", + "resource": "SpatialAnchorsAccounts", + "operation": "Get Spatial Anchors Accounts", + "description": "Gets the resource for Microsoft.MixedReality/SpatialAnchorsAccounts" + } + }, + { + "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/write", + "display": { + "provider": "Microsoft.MixedReality", + "resource": "SpatialAnchorsAccounts", + "operation": "Update Spatial Anchors Accounts", + "description": "Updates the resource for Microsoft.MixedReality/SpatialAnchorsAccounts" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json new file mode 100644 index 000000000000..7ecc0880e495 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2020-04-06-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json new file mode 100644 index 000000000000..c18ffeb4fd5f --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2020-04-06-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount", + "name": "MyAccount", + "type": "Microsoft.MixedReality/remoteRenderingAccounts" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json new file mode 100644 index 000000000000..2ea846f35b47 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "api-version": "2020-04-06-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/alpha", + "name": "alpha", + "type": "Microsoft.MixedReality/remoteRenderingAccounts" + }, + { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/omega", + "name": "omega", + "type": "Microsoft.MixedReality/remoteRenderingAccounts" + } + ], + "nextLink": "https://aka.ms/&^FDKKAR" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json new file mode 100644 index 000000000000..421cb759c41f --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "api-version": "2020-04-06-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/alpha", + "name": "alpha", + "type": "Microsoft.MixedReality/remoteRenderingAccounts" + }, + { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/omega", + "name": "omega", + "type": "Microsoft.MixedReality/remoteRenderingAccounts" + } + ], + "nextLink": "https://aka.ms/&^FDKKAR" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json new file mode 100644 index 000000000000..7adca1559f70 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2020-04-06-preview" + }, + "responses": { + "200": { + "body": { + "primaryKey": "", + "secondaryKey": "" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json new file mode 100644 index 000000000000..43d46c058028 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2020-04-06-preview", + "remoteRenderingAccount": { + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "tags": { + "heroine": "juliet", + "hero": "romeo" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": { + "heroine": "juliet", + "hero": "romeo" + }, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount", + "name": "MyAccount", + "type": "Microsoft.MixedReality/remoteRenderingAccounts" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json new file mode 100644 index 000000000000..1510036ebcc0 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2020-04-06-preview", + "remoteRenderingAccount": { + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap" + } + }, + "responses": { + "201": { + "body": { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount", + "name": "MyAccount", + "type": "Microsoft.MixedReality/remoteRenderingAccounts" + } + }, + "200": { + "body": { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount", + "name": "MyAccount", + "type": "Microsoft.MixedReality/remoteRenderingAccounts" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json new file mode 100644 index 000000000000..af153e7df94d --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2020-04-06-preview", + "regenerate": { + "serial": 1 + } + }, + "responses": { + "200": { + "body": { + "primaryKey": "", + "secondaryKey": "" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json new file mode 100644 index 000000000000..ef0911f35f9e --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json @@ -0,0 +1,246 @@ +{ + "swagger": "2.0", + "info": { + "title": "Mixed Reality", + "description": "Mixed Reality Resource Provider Proxy API", + "version": "2020-04-06-preview", + "x-ms-code-generation-settings": { + "name": "MixedRealityClient" + } + }, + "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.MixedReality/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Proxy" + ], + "description": "Exposing Available Operations", + "x-ms-examples": { + "List available operations": { + "$ref": "./examples/proxy/ExposingAvailableOperations.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationPage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/locations/{location}/checkNameAvailability": { + "post": { + "operationId": "CheckNameAvailabilityLocal", + "tags": [ + "Proxy" + ], + "description": "Check Name Availability for local uniqueness", + "x-ms-examples": { + "CheckLocalNameAvailability": { + "$ref": "./examples/proxy/CheckNameAvailabilityForLocalUniqueness.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/checkNameAvailabilityParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "CheckNameAvailabilityRequest": { + "description": "Check Name Availability Request", + "type": "object", + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "description": "Resource Name To Verify", + "type": "string" + }, + "type": { + "description": "Fully qualified resource type which includes provider namespace", + "type": "string" + } + } + }, + "CheckNameAvailabilityResponse": { + "description": "Check Name Availability Response", + "type": "object", + "required": [ + "nameAvailable" + ], + "properties": { + "nameAvailable": { + "description": "if name Available", + "type": "boolean" + }, + "reason": { + "description": "Resource Name To Verify", + "$ref": "#/definitions/NameUnavailableReason" + }, + "message": { + "description": "detail message", + "type": "string" + } + } + }, + "Operation": { + "description": "REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "$ref": "#/definitions/OperationDisplay" + }, + "isDataAction": { + "description": "Whether or not this is a data plane operation", + "type": "boolean" + } + } + }, + "OperationDisplay": { + "description": "The object that represents the operation.", + "type": "object", + "required": [ + "provider", + "resource", + "operation", + "description" + ], + "properties": { + "provider": { + "description": "Service provider: Microsoft.ResourceProvider", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of operation", + "type": "string" + } + } + }, + "NameUnavailableReason": { + "description": "reason of name unavailable.", + "type": "string", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "NameUnavailableReason", + "modelAsString": true + } + }, + "OperationPage": { + "description": "Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by the Resource Provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + } + }, + "parameters": { + "checkNameAvailabilityParameter": { + "name": "checkNameAvailability", + "description": "Check Name Availability Request.", + "in": "body", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityRequest" + }, + "required": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json new file mode 100644 index 000000000000..06252e3239b5 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json @@ -0,0 +1,435 @@ +{ + "swagger": "2.0", + "info": { + "title": "Mixed Reality", + "description": "Mixed Reality Resource Provider Remote Rendering Resource API", + "version": "2020-04-06-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/remoteRenderingAccounts": { + "get": { + "operationId": "RemoteRenderingAccounts_ListBySubscription", + "tags": [ + "Resource", + "Proxy" + ], + "description": "List Remote Rendering Accounts by Subscription", + "x-ms-examples": { + "List remote rendering accounts by subscription": { + "$ref": "./examples/remote-rendering/GetBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RemoteRenderingAccountPage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts": { + "get": { + "operationId": "RemoteRenderingAccounts_ListByResourceGroup", + "tags": [ + "Resource" + ], + "description": "List Resources by Resource Group", + "x-ms-examples": { + "List remote rendering accounts by resource group": { + "$ref": "./examples/remote-rendering/GetByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RemoteRenderingAccountPage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}": { + "delete": { + "operationId": "RemoteRenderingAccounts_Delete", + "tags": [ + "Resource" + ], + "description": "Delete a Remote Rendering Account.", + "x-ms-examples": { + "Delete remote rendering account": { + "$ref": "./examples/remote-rendering/Delete.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + }, + "get": { + "operationId": "RemoteRenderingAccounts_Get", + "tags": [ + "Resource" + ], + "description": "Retrieve a Remote Rendering Account.", + "x-ms-examples": { + "Get remote rendering account": { + "$ref": "./examples/remote-rendering/Get.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RemoteRenderingAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + }, + "patch": { + "operationId": "RemoteRenderingAccounts_Update", + "tags": [ + "Resource" + ], + "description": "Updating a Remote Rendering Account", + "x-ms-examples": { + "Update remote rendering account": { + "$ref": "./examples/remote-rendering/Patch.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/remoteRenderingAccountParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RemoteRenderingAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "RemoteRenderingAccounts_Create", + "tags": [ + "Resource" + ], + "description": "Creating or Updating a Remote Rendering Account.", + "x-ms-examples": { + "Create remote rendering account": { + "$ref": "./examples/remote-rendering/Put.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/remoteRenderingAccountParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RemoteRenderingAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/RemoteRenderingAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}/listKeys": { + "post": { + "operationId": "RemoteRenderingAccounts_ListKeys", + "tags": [ + "Key" + ], + "description": "List Both of the 2 Keys of a Remote Rendering Account", + "x-ms-examples": { + "List remote rendering account key": { + "$ref": "./examples/remote-rendering/ListKeys.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/AccountKeys" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}/regenerateKeys": { + "post": { + "operationId": "RemoteRenderingAccounts_RegenerateKeys", + "tags": [ + "Key" + ], + "description": "Regenerate specified Key of a Remote Rendering Account", + "x-ms-examples": { + "Regenerate remote rendering account keys": { + "$ref": "./examples/remote-rendering/RegenerateKey.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountKeyRegenerateParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/AccountKeys" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "RemoteRenderingAccount": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "RemoteRenderingAccount Response.", + "type": "object", + "properties": { + "identity": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + } + ] + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Property bag.", + "$ref": "./common.json#/definitions/MixedRealityAccountProperties" + } + } + }, + "RemoteRenderingAccountPage": { + "description": "Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RemoteRenderingAccount" + }, + "description": "List of resources supported by the Resource Provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of resource list results if there are any." + } + } + } + }, + "parameters": { + "remoteRenderingAccountParameter": { + "name": "remoteRenderingAccount", + "description": "Remote Rendering Account parameter.", + "in": "body", + "schema": { + "$ref": "#/definitions/RemoteRenderingAccount" + }, + "required": true, + "x-ms-parameter-location": "method" + } + } +} From ed001276a36b0592b1f62547ab069f1c4689e181 Mon Sep 17 00:00:00 2001 From: roytan-microsoft <73565668+roytan-microsoft@users.noreply.github.com> Date: Fri, 8 Jan 2021 09:26:40 -0800 Subject: [PATCH 02/15] Updates readme --- .../mixedreality/resource-manager/readme.md | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/specification/mixedreality/resource-manager/readme.md b/specification/mixedreality/resource-manager/readme.md index a3fa6a59e916..6dd46efd6b2b 100644 --- a/specification/mixedreality/resource-manager/readme.md +++ b/specification/mixedreality/resource-manager/readme.md @@ -5,7 +5,9 @@ This is the AutoRest configuration file for Mixed-Reality Azure Resource Management. --- + ## Getting Started + To build the SDK for Azure Resource Management, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -13,19 +15,34 @@ To build the SDK for Azure Resource Management, simply [Install AutoRest](https: To see additional help and options, run: > `autorest --help` + --- --- + ## Configuration ### Basic Information + These are the global settings for the Mixed Reality Azure Resource Management Client. ``` yaml title: MixedRealityClient description: Mixed Reality Client openapi-type: arm -tag: package-2020-05 +tag: package-2021-01 +``` + + +### Tag: package-2021-01 + +These settings apply only when `--tag=package-2021-01` is specified on the command line. + +```yaml $(tag) == 'package-2021-01' +input-file: + - Microsoft.MixedReality/stable/2021-01-01/common.json + - Microsoft.MixedReality/stable/2021-01-01/proxy.json + - Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json ``` ### Tag: package-2020-05 @@ -79,6 +96,7 @@ input-file: ``` --- + # Code Generation ## Swagger to SDK @@ -130,6 +148,7 @@ python: package-version: 0.0.1 clear-output-folder: true ``` + ``` yaml $(python) && $(track2) python-mode: update azure-arm: true @@ -141,20 +160,24 @@ clear-output-folder: true modelerfour: lenient-model-deduplication: true ``` + ``` yaml $(python) && $(python-mode) == 'update' && !$(track2) python: no-namespace-folders: true output-folder: $(python-sdks-folder)/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality ``` + ``` yaml $(python) && $(python-mode) == 'create' && !$(track2) python: basic-setup-py: true output-folder: $(python-sdks-folder)/mixedreality/azure-mgmt-mixedreality ``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality ``` + ``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/mixedreality/azure-mgmt-mixedreality @@ -171,4 +194,3 @@ See configuration in [readme.java.md](./readme.java.md) ## AzureResourceSchema See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) - From 067bc413eb99d4801dc5b7f4bd4d56cdf7341be2 Mon Sep 17 00:00:00 2001 From: roytan-microsoft <73565668+roytan-microsoft@users.noreply.github.com> Date: Fri, 8 Jan 2021 09:26:41 -0800 Subject: [PATCH 03/15] Updates API version in new specs and examples --- .../Microsoft.MixedReality/stable/2021-01-01/common.json | 2 +- .../examples/proxy/CheckNameAvailabilityForLocalUniqueness.json | 2 +- .../2021-01-01/examples/proxy/ExposingAvailableOperations.json | 2 +- .../stable/2021-01-01/examples/remote-rendering/Delete.json | 2 +- .../stable/2021-01-01/examples/remote-rendering/Get.json | 2 +- .../examples/remote-rendering/GetByResourceGroup.json | 2 +- .../2021-01-01/examples/remote-rendering/GetBySubscription.json | 2 +- .../stable/2021-01-01/examples/remote-rendering/ListKeys.json | 2 +- .../stable/2021-01-01/examples/remote-rendering/Patch.json | 2 +- .../stable/2021-01-01/examples/remote-rendering/Put.json | 2 +- .../2021-01-01/examples/remote-rendering/RegenerateKey.json | 2 +- .../Microsoft.MixedReality/stable/2021-01-01/proxy.json | 2 +- .../stable/2021-01-01/remote-rendering.json | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json index c80d0cacdc36..c902cf1bdebd 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json @@ -3,7 +3,7 @@ "info": { "title": "Mixed Reality", "description": "Mixed Reality Resource Provider API", - "version": "2020-04-06-preview" + "version": "2021-01-01" }, "paths": {}, "definitions": { diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json index 0e20ae0f4cdb..e5b402b627e1 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json @@ -6,7 +6,7 @@ "name": "MyAccount", "type": "Microsoft.MixedReality/spatialAnchorsAccounts" }, - "api-version": " 2020-04-06-preview" + "api-version": " 2021-01-01" }, "responses": { "200": { diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json index 553835485f5f..963303e68346 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-04-06-preview" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json index 7ecc0880e495..0617c9d00d09 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "resourceGroupName": "MyResourceGroup", "accountName": "MyAccount", - "api-version": "2020-04-06-preview" + "api-version": "2021-01-01" }, "responses": { "200": {}, diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json index c18ffeb4fd5f..3164a6d75b1c 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json @@ -3,7 +3,7 @@ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "resourceGroupName": "MyResourceGroup", "accountName": "MyAccount", - "api-version": "2020-04-06-preview" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json index 2ea846f35b47..d9eaa8f4d59a 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "resourceGroupName": "MyResourceGroup", - "api-version": "2020-04-06-preview" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json index 421cb759c41f..a6cb1c99fad6 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "api-version": "2020-04-06-preview" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json index 7adca1559f70..0801ab368920 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json @@ -3,7 +3,7 @@ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "resourceGroupName": "MyResourceGroup", "accountName": "MyAccount", - "api-version": "2020-04-06-preview" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json index 43d46c058028..d95166cb0e27 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json @@ -3,7 +3,7 @@ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "resourceGroupName": "MyResourceGroup", "accountName": "MyAccount", - "api-version": "2020-04-06-preview", + "api-version": "2021-01-01", "remoteRenderingAccount": { "identity": { "type": "SystemAssigned" diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json index 1510036ebcc0..edcf2fea6026 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json @@ -3,7 +3,7 @@ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "resourceGroupName": "MyResourceGroup", "accountName": "MyAccount", - "api-version": "2020-04-06-preview", + "api-version": "2021-01-01", "remoteRenderingAccount": { "identity": { "type": "SystemAssigned" diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json index af153e7df94d..ba1523b7ab33 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json @@ -3,7 +3,7 @@ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "resourceGroupName": "MyResourceGroup", "accountName": "MyAccount", - "api-version": "2020-04-06-preview", + "api-version": "2021-01-01", "regenerate": { "serial": 1 } diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json index ef0911f35f9e..abd9afba9f7a 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json @@ -3,7 +3,7 @@ "info": { "title": "Mixed Reality", "description": "Mixed Reality Resource Provider Proxy API", - "version": "2020-04-06-preview", + "version": "2021-01-01", "x-ms-code-generation-settings": { "name": "MixedRealityClient" } diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json index 06252e3239b5..3487dccde5fe 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json @@ -3,7 +3,7 @@ "info": { "title": "Mixed Reality", "description": "Mixed Reality Resource Provider Remote Rendering Resource API", - "version": "2020-04-06-preview" + "version": "2021-01-01" }, "host": "management.azure.com", "schemes": [ From 522a0e676143d4a631f269fa692b306acb65e642 Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Fri, 8 Jan 2021 13:19:15 -0800 Subject: [PATCH 04/15] update proxy and remote rendering --- .../stable/2021-01-01/proxy.json | 115 ++++++++++++++++++ .../stable/2021-01-01/remote-rendering.json | 23 ++-- 2 files changed, 131 insertions(+), 7 deletions(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json index abd9afba9f7a..186e5275462f 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json @@ -171,6 +171,121 @@ "isDataAction": { "description": "Whether or not this is a data plane operation", "type": "boolean" + }, + "origin": { + "description": "The origin", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/OperationProperties", + "description": "Properties of the operation" + } + } + }, + "OperationProperties": { + "description": "Operation properties.", + "type": "object", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification", + "description": "Service specification." + } + } + }, + + "ServiceSpecification": { + "description": "Service specification payload", + "type": "object", + "properties": { + "logSpecifications": { + "description": "Specifications of the Log for Azure Monitoring", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/LogSpecification" + } + }, + "metricSpecifications": { + "description": "Specifications of the Metrics for Azure Monitoring", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + } + } + } + }, + "LogSpecification": { + "description": "Specifications of the Log for Azure Monitoring", + "type": "object", + "properties": { + "name": { + "description": "Name of the log", + "type": "string" + }, + "displayName": { + "description": "Localized friendly display name of the log", + "type": "string" + }, + "blobDuration": { + "description": "Blob duration of the log", + "type": "string" + } + } + }, + "MetricSpecification": { + "description": "Specifications of the Metrics for Azure Monitoring", + "type": "object", + "properties": { + "name": { + "description": "Name of the metric", + "type": "string" + }, + "displayName": { + "description": "Localized friendly display name of the metric", + "type": "string" + }, + "displayDescription": { + "description": "Localized friendly description of the metric", + "type": "string" + }, + "unit": { + "description": "Unit that makes sense for the metric", + "type": "string" + }, + "aggregationType": { + "description": "Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.", + "type": "string" + }, + "internalMetricName": { + "description": "Internal metric name.", + "type": "string" + }, + "dimensions": { + "description": "Dimensions of the metric", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/MetricDimension" + } + } + } + }, + "MetricDimension": { + "description": "Specifications of the Dimension of metrics", + "type": "object", + "properties": { + "name": { + "description": "Name of the dimension", + "type": "string" + }, + "displayName": { + "description": "Localized friendly display name of the dimension", + "type": "string" + }, + "internalName": { + "description": "Internal name of the dimension.", + "type": "string" } } }, diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json index 3487dccde5fe..d52159f795f0 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json @@ -388,17 +388,26 @@ "description": "RemoteRenderingAccount Response.", "type": "object", "properties": { - "identity": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" - } - ] - }, "properties": { "x-ms-client-flatten": true, "description": "Property bag.", "$ref": "./common.json#/definitions/MixedRealityAccountProperties" + }, + "identity": { + "description": "The identity associated with this account", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + }, + "plan": { + "description": "The plan associated with this account", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + }, + "sku": { + "description": "The sku associated with this account", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Sku" + }, + "kind": { + "description": "The kind of account, if supported", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Sku" } } }, From f12a28617bc3c6f31a77da00a763d30cda055287 Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Fri, 8 Jan 2021 14:14:37 -0800 Subject: [PATCH 05/15] add description --- .../Microsoft.MixedReality/stable/2021-01-01/common.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json index c902cf1bdebd..b36aef2a687c 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json @@ -57,6 +57,7 @@ "x-ms-external": true, "properties": { "error": { + "description": "An Error response.", "$ref": "#/definitions/CloudErrorBody" } }, From 0aff155995078fb63b3cdbbd0d4ec429b335a350 Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Fri, 8 Jan 2021 14:49:16 -0800 Subject: [PATCH 06/15] add security definitions --- .../stable/2021-01-01/common.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json index b36aef2a687c..3e89dcd44264 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json @@ -6,6 +6,17 @@ "version": "2021-01-01" }, "paths": {}, + "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" + } + } + }, "definitions": { "AccountKeys": { "description": "Developer Keys of account", From 2d62786747283894e0af79e052f2af7dc955807e Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Fri, 8 Jan 2021 15:00:00 -0800 Subject: [PATCH 07/15] revert security definitions --- .../stable/2021-01-01/common.json | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json index 3e89dcd44264..b36aef2a687c 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json @@ -6,17 +6,6 @@ "version": "2021-01-01" }, "paths": {}, - "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" - } - } - }, "definitions": { "AccountKeys": { "description": "Developer Keys of account", From 002e60755501efece3115727d9d5585fb1f6bbca Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Fri, 8 Jan 2021 15:19:53 -0800 Subject: [PATCH 08/15] add systemdata --- .../Microsoft.MixedReality/stable/2021-01-01/common.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json index b36aef2a687c..a1a552e0cd37 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json @@ -101,6 +101,9 @@ "description": "Correspond domain name of certain Spatial Anchors Account", "readOnly": true, "type": "string" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } From 5afe096f98116780f35722060014fcc6c7b4c51b Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Fri, 8 Jan 2021 15:22:33 -0800 Subject: [PATCH 09/15] run prettier --- .../Microsoft.MixedReality/stable/2021-01-01/proxy.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json index 186e5275462f..5871fdaea21b 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/proxy.json @@ -171,10 +171,10 @@ "isDataAction": { "description": "Whether or not this is a data plane operation", "type": "boolean" - }, + }, "origin": { - "description": "The origin", - "type": "string" + "description": "The origin", + "type": "string" }, "properties": { "$ref": "#/definitions/OperationProperties", @@ -192,7 +192,6 @@ } } }, - "ServiceSpecification": { "description": "Service specification payload", "type": "object", From 269473418667ac6e655bf910bcca2d92adcb1001 Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Fri, 8 Jan 2021 15:52:24 -0800 Subject: [PATCH 10/15] move systemdata to remote-rendering.json --- .../Microsoft.MixedReality/stable/2021-01-01/common.json | 3 --- .../stable/2021-01-01/remote-rendering.json | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json index a1a552e0cd37..b36aef2a687c 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json @@ -101,9 +101,6 @@ "description": "Correspond domain name of certain Spatial Anchors Account", "readOnly": true, "type": "string" - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } } diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json index d52159f795f0..6942e0bf3189 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json @@ -408,6 +408,10 @@ "kind": { "description": "The kind of account, if supported", "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Sku" + }, + "systemData": { + "description": "System metadata for this account", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } } }, From 1a11e525e71b31b41f8d32cccc85edb524a04f28 Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Sun, 10 Jan 2021 18:57:35 -0800 Subject: [PATCH 11/15] switch to use v1 types --- .../stable/2021-01-01/remote-rendering.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json index 6942e0bf3189..e7e1db4f958b 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json @@ -411,7 +411,7 @@ }, "systemData": { "description": "System metadata for this account", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" } } }, From 6b0cffae7580db56ca137309ea0e897153b4218f Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Sun, 10 Jan 2021 19:46:59 -0800 Subject: [PATCH 12/15] add spatial anchors accounts --- .../examples/spatial-anchors/Delete.json | 12 + .../examples/spatial-anchors/Get.json | 23 + .../spatial-anchors/GetByResourceGroup.json | 38 ++ .../spatial-anchors/GetBySubscription.json | 37 ++ .../examples/spatial-anchors/ListKeys.json | 16 + .../examples/spatial-anchors/Patch.json | 33 ++ .../examples/spatial-anchors/Put.json | 39 ++ .../spatial-anchors/RegenerateKey.json | 19 + .../stable/2021-01-01/spatial-anchors.json | 448 ++++++++++++++++++ .../mixedreality/resource-manager/readme.md | 2 +- 10 files changed, 666 insertions(+), 1 deletion(-) create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Delete.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Get.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/GetByResourceGroup.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/GetBySubscription.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/ListKeys.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Patch.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Put.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/spatial-anchors.json diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Delete.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Delete.json new file mode 100644 index 000000000000..0617c9d00d09 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2021-01-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Get.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Get.json new file mode 100644 index 000000000000..d91adb0609db --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount", + "name": "MyAccount", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/GetByResourceGroup.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/GetByResourceGroup.json new file mode 100644 index 000000000000..68ffb2df52ae --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/GetByResourceGroup.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/alpha", + "name": "alpha", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + }, + { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/omega", + "name": "omega", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + } + ], + "nextLink": "https://aka.ms/&^FDKKAR" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/GetBySubscription.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/GetBySubscription.json new file mode 100644 index 000000000000..c79a937fab79 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/GetBySubscription.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/alpha", + "name": "alpha", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + }, + { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/omega", + "name": "omega", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + } + ], + "nextLink": "https://aka.ms/&^FDKKAR" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/ListKeys.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/ListKeys.json new file mode 100644 index 000000000000..0801ab368920 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/ListKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "body": { + "primaryKey": "", + "secondaryKey": "" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Patch.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Patch.json new file mode 100644 index 000000000000..8e7055d0c8f6 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Patch.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2021-01-01", + "spatialAnchorsAccount": { + "location": "eastus2euap", + "tags": { + "heroine": "juliet", + "hero": "romeo" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": { + "heroine": "juliet", + "hero": "romeo" + }, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount", + "name": "MyAccount", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Put.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Put.json new file mode 100644 index 000000000000..6e508375057e --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Put.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2021-01-01", + "spatialAnchorsAccount": { + "location": "eastus2euap" + } + }, + "responses": { + "201": { + "body": { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount", + "name": "MyAccount", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + } + }, + "200": { + "body": { + "properties": { + "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "accountDomain": "mixedreality.azure.com" + }, + "tags": {}, + "location": "eastus2euap", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount", + "name": "MyAccount", + "type": "Microsoft.MixedReality/spatialAnchorsAccounts" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json new file mode 100644 index 000000000000..ba1523b7ab33 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "resourceGroupName": "MyResourceGroup", + "accountName": "MyAccount", + "api-version": "2021-01-01", + "regenerate": { + "serial": 1 + } + }, + "responses": { + "200": { + "body": { + "primaryKey": "", + "secondaryKey": "" + } + } + } +} diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/spatial-anchors.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/spatial-anchors.json new file mode 100644 index 000000000000..2a0a1a6c7978 --- /dev/null +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/spatial-anchors.json @@ -0,0 +1,448 @@ +{ + "swagger": "2.0", + "info": { + "title": "Mixed Reality", + "description": "Mixed Reality Resource Provider Spatial Anchors Resource API", + "version": "2021-01-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts": { + "get": { + "operationId": "SpatialAnchorsAccounts_ListBySubscription", + "tags": [ + "Resource", + "Proxy" + ], + "description": "List Spatial Anchors Accounts by Subscription", + "x-ms-examples": { + "List spatial anchors accounts by subscription": { + "$ref": "./examples/spatial-anchors/GetBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SpatialAnchorsAccountPage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts": { + "get": { + "operationId": "SpatialAnchorsAccounts_ListByResourceGroup", + "tags": [ + "Resource" + ], + "description": "List Resources by Resource Group", + "x-ms-examples": { + "List spatial anchor accounts by resource group": { + "$ref": "./examples/spatial-anchors/GetByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SpatialAnchorsAccountPage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}": { + "delete": { + "operationId": "SpatialAnchorsAccounts_Delete", + "tags": [ + "Resource" + ], + "description": "Delete a Spatial Anchors Account.", + "x-ms-examples": { + "Delete spatial anchors account": { + "$ref": "./examples/spatial-anchors/Delete.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + }, + "get": { + "operationId": "SpatialAnchorsAccounts_Get", + "tags": [ + "Resource" + ], + "description": "Retrieve a Spatial Anchors Account.", + "x-ms-examples": { + "Get spatial anchors account": { + "$ref": "./examples/spatial-anchors/Get.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SpatialAnchorsAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + }, + "patch": { + "operationId": "SpatialAnchorsAccounts_Update", + "tags": [ + "Resource" + ], + "description": "Updating a Spatial Anchors Account", + "x-ms-examples": { + "Update spatial anchors account": { + "$ref": "./examples/spatial-anchors/Patch.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/spatialAnchorsAccountParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SpatialAnchorsAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "SpatialAnchorsAccounts_Create", + "tags": [ + "Resource" + ], + "description": "Creating or Updating a Spatial Anchors Account.", + "x-ms-examples": { + "Create spatial anchor account": { + "$ref": "./examples/spatial-anchors/Put.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/spatialAnchorsAccountParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SpatialAnchorsAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SpatialAnchorsAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys": { + "post": { + "operationId": "SpatialAnchorsAccounts_ListKeys", + "tags": [ + "Key" + ], + "description": "List Both of the 2 Keys of a Spatial Anchors Account", + "x-ms-examples": { + "List spatial anchor account key": { + "$ref": "./examples/spatial-anchors/ListKeys.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/AccountKeys" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys": { + "post": { + "operationId": "SpatialAnchorsAccounts_RegenerateKeys", + "tags": [ + "Key" + ], + "description": "Regenerate specified Key of a Spatial Anchors Account", + "x-ms-examples": { + "Regenerate spatial anchors account keys": { + "$ref": "./examples/spatial-anchors/RegenerateKey.json" + } + }, + "parameters": [ + { + "$ref": "./common.json#/parameters/subscriptionIdParameter" + }, + { + "$ref": "./common.json#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountNameParameter" + }, + { + "$ref": "./common.json#/parameters/accountKeyRegenerateParameter" + }, + { + "$ref": "./common.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./common.json#/definitions/AccountKeys" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./common.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "SpatialAnchorsAccount": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "SpatialAnchorsAccount Response.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Property bag.", + "$ref": "./common.json#/definitions/MixedRealityAccountProperties" + }, + "identity": { + "description": "The identity associated with this account", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + }, + "plan": { + "description": "The plan associated with this account", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + }, + "sku": { + "description": "The sku associated with this account", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Sku" + }, + "kind": { + "description": "The kind of account, if supported", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Sku" + }, + "systemData": { + "description": "System metadata for this account", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + } + } + }, + "SpatialAnchorsAccountPage": { + "description": "Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SpatialAnchorsAccount" + }, + "description": "List of resources supported by the Resource Provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of resource list results if there are any." + } + } + } + }, + "parameters": { + "spatialAnchorsAccountParameter": { + "name": "spatialAnchorsAccount", + "description": "Spatial Anchors Account parameter.", + "in": "body", + "schema": { + "$ref": "#/definitions/SpatialAnchorsAccount" + }, + "required": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mixedreality/resource-manager/readme.md b/specification/mixedreality/resource-manager/readme.md index 6dd46efd6b2b..81549591a4f9 100644 --- a/specification/mixedreality/resource-manager/readme.md +++ b/specification/mixedreality/resource-manager/readme.md @@ -40,8 +40,8 @@ These settings apply only when `--tag=package-2021-01` is specified on the comma ```yaml $(tag) == 'package-2021-01' input-file: - - Microsoft.MixedReality/stable/2021-01-01/common.json - Microsoft.MixedReality/stable/2021-01-01/proxy.json + - Microsoft.MixedReality/stable/2021-01-01/spatial-anchors.json - Microsoft.MixedReality/stable/2021-01-01/remote-rendering.json ``` ### Tag: package-2020-05 From 5f09c3ca5c746824d550281c7bd64042330fe2da Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Thu, 14 Jan 2021 14:24:43 -0800 Subject: [PATCH 13/15] add x-ms-secret to dev keys --- .../Microsoft.MixedReality/stable/2021-01-01/common.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json index b36aef2a687c..ba652fb6ffbd 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json @@ -12,11 +12,13 @@ "type": "object", "properties": { "primaryKey": { + "x-ms-secret": true, "description": "value of primary key.", "readOnly": true, "type": "string" }, "secondaryKey": { + "x-ms-secret": true, "description": "value of secondary key.", "readOnly": true, "type": "string" From 6fed256d5c1ac96f25ff2bb19cd73ca1d0a27eeb Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Thu, 14 Jan 2021 14:32:27 -0800 Subject: [PATCH 14/15] replace values with *** --- .../stable/2021-01-01/examples/spatial-anchors/ListKeys.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/ListKeys.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/ListKeys.json index 0801ab368920..a1f65413b191 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/ListKeys.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/ListKeys.json @@ -8,8 +8,8 @@ "responses": { "200": { "body": { - "primaryKey": "", - "secondaryKey": "" + "primaryKey": "************", + "secondaryKey": "************" } } } From 05fd44fcf01536dc35e8ce832ed415abe7bfb5f7 Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Thu, 14 Jan 2021 18:04:48 -0800 Subject: [PATCH 15/15] suppress secret_property --- .../examples/remote-rendering/RegenerateKey.json | 4 ++-- .../examples/spatial-anchors/RegenerateKey.json | 4 ++-- .../mixedreality/resource-manager/readme.md | 12 ++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json index ba1523b7ab33..6f1a9f8870f8 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/RegenerateKey.json @@ -11,8 +11,8 @@ "responses": { "200": { "body": { - "primaryKey": "", - "secondaryKey": "" + "primaryKey": "************", + "secondaryKey": "************" } } } diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json index ba1523b7ab33..6f1a9f8870f8 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json @@ -11,8 +11,8 @@ "responses": { "200": { "body": { - "primaryKey": "", - "secondaryKey": "" + "primaryKey": "************", + "secondaryKey": "************" } } } diff --git a/specification/mixedreality/resource-manager/readme.md b/specification/mixedreality/resource-manager/readme.md index 81549591a4f9..15f8ee6e4557 100644 --- a/specification/mixedreality/resource-manager/readme.md +++ b/specification/mixedreality/resource-manager/readme.md @@ -33,6 +33,18 @@ openapi-type: arm tag: package-2021-01 ``` +## Suppression +``` yaml +directive: + - suppress: SECRET_PROPERTY + from: + - Microsoft.MixedReality/stable/2021-01-01/common.json + where: + - $.definitions.AccountKeys.properties.primaryKey + - $.definitions.AccountKeys.properties.secondaryKey + reason: Secrets are OK to return in a POST response. +``` + ### Tag: package-2021-01