Skip to content

Commit

Permalink
Adding MixedReality version 2021-03-01-preview and new ObjectAnchors …
Browse files Browse the repository at this point in the history
…branding. (Azure#12979)

* Initial 2021-03-01-preview version

* Adding Object Anchors to version 2021-03-01-preview

Co-authored-by: Vicente Rivera <virivera@microsoft.com>
  • Loading branch information
vriveras and Vicente Rivera authored Feb 13, 2021
1 parent 91a067a commit dfedab4
Show file tree
Hide file tree
Showing 34 changed files with 2,724 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
{
"swagger": "2.0",
"info": {
"title": "Mixed Reality",
"description": "Mixed Reality Resource Provider API",
"version": "2021-03-01-preview"
},
"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": {},
"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",
"format": "int32",
"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": {
"storageAccountName": {
"description": "The name of the storage account associated with this accountId",
"type": "string"
},
"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,12 @@
{
"parameters": {
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"resourceGroupName": "MyResourceGroup",
"accountName": "MyAccount",
"api-version": "2021-03-01-preview"
},
"responses": {
"200": {},
"204": {}
}
}
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-03-01-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/objectAnchorsAccounts/MyAccount",
"name": "MyAccount",
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
}
}
}
}
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-03-01-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/objectAnchorsAccounts/alpha",
"name": "alpha",
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
},
{
"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/objectAnchorsAccounts/omega",
"name": "omega",
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
}
],
"nextLink": "https://aka.ms/&^FDKKAR"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"api-version": "2021-03-01-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/objectAnchorsAccounts/alpha",
"name": "alpha",
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
},
{
"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/objectAnchorsAccounts/omega",
"name": "omega",
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
}
],
"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": "2021-03-01-preview"
},
"responses": {
"200": {
"body": {
"primaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"secondaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"resourceGroupName": "MyResourceGroup",
"accountName": "MyAccount",
"api-version": "2021-03-01-preview",
"objectAnchorsAccount": {
"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/objectAnchorsAccounts/MyAccount",
"name": "MyAccount",
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
}
}
}
}
Loading

0 comments on commit dfedab4

Please sign in to comment.