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.
Adding MixedReality version 2021-03-01-preview and new ObjectAnchors …
…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
Showing
34 changed files
with
2,724 additions
and
1 deletion.
There are no files selected for viewing
192 changes: 192 additions & 0 deletions
192
...xedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/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,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" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ger/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/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-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...anager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/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-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" | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...t.MixedReality/preview/2021-03-01-preview/examples/object-anchors/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-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" | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...ft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/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-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" | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...r/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/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-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"primaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", | ||
"secondaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Patch.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,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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.