Skip to content

Commit dfedab4

Browse files
vriverasVicente Rivera
andauthored
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 <[email protected]>
1 parent 91a067a commit dfedab4

34 files changed

+2724
-1
lines changed
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Mixed Reality",
5+
"description": "Mixed Reality Resource Provider API",
6+
"version": "2021-03-01-preview"
7+
},
8+
"security": [
9+
{
10+
"azure_auth": [
11+
"user_impersonation"
12+
]
13+
}
14+
],
15+
"securityDefinitions": {
16+
"azure_auth": {
17+
"type": "oauth2",
18+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
19+
"flow": "implicit",
20+
"description": "Azure Active Directory OAuth2 Flow",
21+
"scopes": {
22+
"user_impersonation": "Impersonate your user account"
23+
}
24+
}
25+
},
26+
"paths": {},
27+
"definitions": {
28+
"AccountKeys": {
29+
"description": "Developer Keys of account",
30+
"type": "object",
31+
"properties": {
32+
"primaryKey": {
33+
"x-ms-secret": true,
34+
"description": "value of primary key.",
35+
"readOnly": true,
36+
"type": "string"
37+
},
38+
"secondaryKey": {
39+
"x-ms-secret": true,
40+
"description": "value of secondary key.",
41+
"readOnly": true,
42+
"type": "string"
43+
}
44+
}
45+
},
46+
"AccountKeyRegenerateRequest": {
47+
"description": "Request for account key regeneration",
48+
"type": "object",
49+
"properties": {
50+
"serial": {
51+
"type": "integer",
52+
"format": "int32",
53+
"enum": [
54+
1,
55+
2
56+
],
57+
"default": 1,
58+
"x-ms-enum": {
59+
"name": "Serial",
60+
"values": [
61+
{
62+
"value": 1,
63+
"description": "The Primary Key",
64+
"name": "Primary"
65+
},
66+
{
67+
"value": 2,
68+
"description": "The Secondary Key",
69+
"name": "Secondary"
70+
}
71+
]
72+
},
73+
"description": "Serial of key to be regenerated"
74+
}
75+
}
76+
},
77+
"CloudError": {
78+
"x-ms-external": true,
79+
"properties": {
80+
"error": {
81+
"description": "An Error response.",
82+
"$ref": "#/definitions/CloudErrorBody"
83+
}
84+
},
85+
"description": "An Error response."
86+
},
87+
"CloudErrorBody": {
88+
"x-ms-external": true,
89+
"properties": {
90+
"code": {
91+
"type": "string",
92+
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically."
93+
},
94+
"message": {
95+
"type": "string",
96+
"description": "A message describing the error, intended to be suitable for displaying in a user interface."
97+
},
98+
"target": {
99+
"type": "string",
100+
"description": "The target of the particular error. For example, the name of the property in error."
101+
},
102+
"details": {
103+
"type": "array",
104+
"items": {
105+
"$ref": "#/definitions/CloudErrorBody"
106+
},
107+
"description": "A list of additional details about the error."
108+
}
109+
},
110+
"description": "An error response from Azure."
111+
},
112+
"MixedRealityAccountProperties": {
113+
"description": "Common Properties shared by Mixed Reality Accounts",
114+
"type": "object",
115+
"properties": {
116+
"storageAccountName": {
117+
"description": "The name of the storage account associated with this accountId",
118+
"type": "string"
119+
},
120+
"accountId": {
121+
"description": "unique id of certain account.",
122+
"readOnly": true,
123+
"type": "string"
124+
},
125+
"accountDomain": {
126+
"description": "Correspond domain name of certain Spatial Anchors Account",
127+
"readOnly": true,
128+
"type": "string"
129+
}
130+
}
131+
}
132+
},
133+
"parameters": {
134+
"accountKeyRegenerateParameter": {
135+
"name": "regenerate",
136+
"in": "body",
137+
"required": true,
138+
"schema": {
139+
"$ref": "#/definitions/AccountKeyRegenerateRequest"
140+
},
141+
"x-ms-parameter-location": "method",
142+
"description": "Required information for key regeneration."
143+
},
144+
"accountNameParameter": {
145+
"name": "accountName",
146+
"in": "path",
147+
"required": true,
148+
"type": "string",
149+
"pattern": "^[-\\w\\._\\(\\)]+$",
150+
"minLength": 1,
151+
"maxLength": 90,
152+
"x-ms-parameter-location": "method",
153+
"description": "Name of an Mixed Reality Account."
154+
},
155+
"apiVersionParameter": {
156+
"name": "api-version",
157+
"description": "The API version to be used with the HTTP request.",
158+
"in": "query",
159+
"required": true,
160+
"type": "string"
161+
},
162+
"locationParameter": {
163+
"name": "location",
164+
"in": "path",
165+
"required": true,
166+
"type": "string",
167+
"pattern": "^[-\\w\\._\\(\\)]+$",
168+
"minLength": 1,
169+
"maxLength": 90,
170+
"x-ms-parameter-location": "method",
171+
"description": "The location in which uniqueness will be verified."
172+
},
173+
"resourceGroupNameParameter": {
174+
"name": "resourceGroupName",
175+
"in": "path",
176+
"required": true,
177+
"type": "string",
178+
"pattern": "^[-\\w\\._\\(\\)]+$",
179+
"minLength": 1,
180+
"maxLength": 90,
181+
"x-ms-parameter-location": "method",
182+
"description": "Name of an Azure resource group."
183+
},
184+
"subscriptionIdParameter": {
185+
"name": "subscriptionId",
186+
"description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)",
187+
"in": "path",
188+
"required": true,
189+
"type": "string"
190+
}
191+
}
192+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"resourceGroupName": "MyResourceGroup",
5+
"accountName": "MyAccount",
6+
"api-version": "2021-03-01-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"resourceGroupName": "MyResourceGroup",
5+
"accountName": "MyAccount",
6+
"api-version": "2021-03-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"properties": {
12+
"accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
13+
"accountDomain": "mixedreality.azure.com"
14+
},
15+
"tags": {},
16+
"identity": {
17+
"type": "SystemAssigned"
18+
},
19+
"location": "eastus2euap",
20+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/MyAccount",
21+
"name": "MyAccount",
22+
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"resourceGroupName": "MyResourceGroup",
5+
"api-version": "2021-03-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"properties": {
13+
"accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
14+
"accountDomain": "mixedreality.azure.com"
15+
},
16+
"tags": {},
17+
"identity": {
18+
"type": "SystemAssigned"
19+
},
20+
"location": "eastus2euap",
21+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/alpha",
22+
"name": "alpha",
23+
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
24+
},
25+
{
26+
"properties": {
27+
"accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
28+
"accountDomain": "mixedreality.azure.com"
29+
},
30+
"tags": {},
31+
"identity": {
32+
"type": "SystemAssigned"
33+
},
34+
"location": "eastus2euap",
35+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/omega",
36+
"name": "omega",
37+
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
38+
}
39+
],
40+
"nextLink": "https://aka.ms/&^FDKKAR"
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"api-version": "2021-03-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"properties": {
12+
"accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
13+
"accountDomain": "mixedreality.azure.com"
14+
},
15+
"tags": {},
16+
"identity": {
17+
"type": "SystemAssigned"
18+
},
19+
"location": "eastus2euap",
20+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/alpha",
21+
"name": "alpha",
22+
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
23+
},
24+
{
25+
"properties": {
26+
"accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
27+
"accountDomain": "mixedreality.azure.com"
28+
},
29+
"tags": {},
30+
"identity": {
31+
"type": "SystemAssigned"
32+
},
33+
"location": "eastus2euap",
34+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/omega",
35+
"name": "omega",
36+
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
37+
}
38+
],
39+
"nextLink": "https://aka.ms/&^FDKKAR"
40+
}
41+
}
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"resourceGroupName": "MyResourceGroup",
5+
"accountName": "MyAccount",
6+
"api-version": "2021-03-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"primaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
12+
"secondaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
13+
}
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"resourceGroupName": "MyResourceGroup",
5+
"accountName": "MyAccount",
6+
"api-version": "2021-03-01-preview",
7+
"objectAnchorsAccount": {
8+
"identity": {
9+
"type": "SystemAssigned"
10+
},
11+
"location": "eastus2euap",
12+
"tags": {
13+
"heroine": "juliet",
14+
"hero": "romeo"
15+
}
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"properties": {
22+
"accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
23+
"accountDomain": "mixedreality.azure.com"
24+
},
25+
"tags": {
26+
"heroine": "juliet",
27+
"hero": "romeo"
28+
},
29+
"identity": {
30+
"type": "SystemAssigned"
31+
},
32+
"location": "eastus2euap",
33+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/MyAccount",
34+
"name": "MyAccount",
35+
"type": "Microsoft.MixedReality/objectAnchorsAccounts"
36+
}
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)