forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.MixedReality to add vers…
…ion stable/2021-01-01 (Azure#12337) * Adds base for updating Microsoft.MixedReality from version preview/2020-04-06-preview to version 2021-01-01 * Updates readme * Updates API version in new specs and examples * update proxy and remote rendering * add description * add security definitions * revert security definitions * add systemdata * run prettier * move systemdata to remote-rendering.json * switch to use v1 types * add spatial anchors accounts * add x-ms-secret to dev keys * replace values with *** * suppress secret_property
- Loading branch information
1 parent
942693f
commit a08d1f7
Showing
23 changed files
with
1,995 additions
and
2 deletions.
There are no files selected for viewing
169 changes: 169 additions & 0 deletions
169
...cation/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/common.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Mixed Reality", | ||
"description": "Mixed Reality Resource Provider API", | ||
"version": "2021-01-01" | ||
}, | ||
"paths": {}, | ||
"definitions": { | ||
"AccountKeys": { | ||
"description": "Developer Keys of account", | ||
"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" | ||
} | ||
} | ||
}, | ||
"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": { | ||
"description": "An Error response.", | ||
"$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" | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"location": "eastus2euap", | ||
"checkNameAvailability": { | ||
"name": "MyAccount", | ||
"type": "Microsoft.MixedReality/spatialAnchorsAccounts" | ||
}, | ||
"api-version": " 2021-01-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "..." | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
.../Microsoft.MixedReality/stable/2021-01-01/examples/proxy/ExposingAvailableOperations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-01-01" | ||
}, | ||
"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 | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ce-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"resourceGroupName": "MyResourceGroup", | ||
"accountName": "MyAccount", | ||
"api-version": "2021-01-01" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"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": {}, | ||
"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" | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...icrosoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"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": {}, | ||
"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" | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/GetBySubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"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": {}, | ||
"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" | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/ListKeys.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"resourceGroupName": "MyResourceGroup", | ||
"accountName": "MyAccount", | ||
"api-version": "2021-01-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"primaryKey": "<primaryKey>", | ||
"secondaryKey": "<secondaryKey>" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.