-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
common.json
172 lines (172 loc) · 4.87 KB
/
common.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"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": {
"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": {
"$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"
}
}
}