Skip to content

Commit

Permalink
[MixedReality] Version Iteration for new Releases (Azure#9351)
Browse files Browse the repository at this point in the history
* Version Iteration for new Releases (Azure#8848)

* Version Iteration for new Releases

There are going to be 2 significant releases:

1. Public Preview of Remote Rendering in April 6th
2. GA of Spatial Anchors in May

* Referring new swagger files in readme.md

* Specifying default package version as 2020-05-01

* Fix MV

* Fix MV (Azure#9397)

Fix MV in Patch examples

Co-authored-by: Xiangyu Luo <xiangyul@microsoft.com>
Co-authored-by: Lei Ni <leni@microsoft.com>
  • Loading branch information
3 people authored and 00Kai0 committed Oct 12, 2020
1 parent 2abf467 commit 7c26809
Show file tree
Hide file tree
Showing 30 changed files with 2,303 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"spatialAnchorsAccountName": "MyAccount",
"api-version": "2019-02-28-preview",
"spatialAnchorsAccount": {
"Tags": {
"location": "eastus2euap",
"tags": {
"heroine": "juliet",
"hero": "romeo"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"accountName": "MyAccount",
"api-version": "2019-02-28-preview",
"remoteRenderingAccount": {
"Tags": {
"location": "eastus2euap",
"tags": {
"heroine": "juliet",
"hero": "romeo"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"accountName": "MyAccount",
"api-version": "2019-02-28-preview",
"spatialAnchorsAccount": {
"Tags": {
"location": "eastus2euap",
"tags": {
"heroine": "juliet",
"hero": "romeo"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
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": " 2020-04-06-preview"
},
"responses": {
"200": {
"body": {
"nameAvailable": "false",
"reason": "AlreadyExists",
"message": "..."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
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": "2020-04-06-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"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": {},
"location": "eastus2euap",
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount",
"name": "MyAccount",
"type": "Microsoft.MixedReality/remoteRenderingAccounts"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"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": {},
"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": {},
"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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"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": {},
"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": {},
"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"
}
}
}
}
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": "2020-04-06-preview"
},
"responses": {
"200": {
"body": {
"primaryKey": "vMAlcI/j25TwDs8hjTorto3JQkoiqZAXKsFq0rYnSNc=",
"secondaryKey": "N4umIGhJt8LgnMMMBpwFOxVOS9zpxHxSHy1TJhN3hU4="
}
}
}
}
Loading

0 comments on commit 7c26809

Please sign in to comment.