@azure/arm-mixedreality 3.0.0 → 4.0.1-alpha.20220120.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +21 -0
  3. package/README.md +70 -70
  4. package/dist/index.js +2016 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts +2 -0
  9. package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/checkLocalNameAvailability.js +34 -0
  11. package/dist-esm/samples-dev/checkLocalNameAvailability.js.map +1 -0
  12. package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts +2 -0
  13. package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/createRemoteRenderingAccount.js +35 -0
  15. package/dist-esm/samples-dev/createRemoteRenderingAccount.js.map +1 -0
  16. package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts +2 -0
  17. package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/createSpatialAnchorAccount.js +34 -0
  19. package/dist-esm/samples-dev/createSpatialAnchorAccount.js.map +1 -0
  20. package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts +2 -0
  21. package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js +31 -0
  23. package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js.map +1 -0
  24. package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts +2 -0
  25. package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js +31 -0
  27. package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js.map +1 -0
  28. package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts +2 -0
  29. package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/getRemoteRenderingAccount.js +31 -0
  31. package/dist-esm/samples-dev/getRemoteRenderingAccount.js.map +1 -0
  32. package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts +2 -0
  33. package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/getSpatialAnchorsAccount.js +31 -0
  35. package/dist-esm/samples-dev/getSpatialAnchorsAccount.js.map +1 -0
  36. package/dist-esm/samples-dev/listAvailableOperations.d.ts +2 -0
  37. package/dist-esm/samples-dev/listAvailableOperations.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/listAvailableOperations.js +43 -0
  39. package/dist-esm/samples-dev/listAvailableOperations.js.map +1 -0
  40. package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts +2 -0
  41. package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js +31 -0
  43. package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js.map +1 -0
  44. package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts +2 -0
  45. package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js +44 -0
  47. package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js.map +1 -0
  48. package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts +2 -0
  49. package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js +43 -0
  51. package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js.map +1 -0
  52. package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts +2 -0
  53. package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js +31 -0
  55. package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js.map +1 -0
  56. package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts +2 -0
  57. package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js +44 -0
  59. package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js.map +1 -0
  60. package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts +2 -0
  61. package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js +43 -0
  63. package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js.map +1 -0
  64. package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts +2 -0
  65. package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js +32 -0
  67. package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js.map +1 -0
  68. package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts +2 -0
  69. package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js +32 -0
  71. package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js.map +1 -0
  72. package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts +2 -0
  73. package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/updateRemoteRenderingAccount.js +36 -0
  75. package/dist-esm/samples-dev/updateRemoteRenderingAccount.js.map +1 -0
  76. package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts +2 -0
  77. package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js +35 -0
  79. package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js.map +1 -0
  80. package/dist-esm/src/index.d.ts +5 -0
  81. package/dist-esm/src/index.d.ts.map +1 -0
  82. package/dist-esm/src/index.js +12 -0
  83. package/dist-esm/src/index.js.map +1 -0
  84. package/dist-esm/src/mixedRealityClient.d.ts +28 -0
  85. package/dist-esm/src/mixedRealityClient.d.ts.map +1 -0
  86. package/dist-esm/src/mixedRealityClient.js +89 -0
  87. package/dist-esm/src/mixedRealityClient.js.map +1 -0
  88. package/dist-esm/src/models/index.d.ts +444 -0
  89. package/dist-esm/src/models/index.d.ts.map +1 -0
  90. package/dist-esm/src/models/index.js +22 -0
  91. package/dist-esm/src/models/index.js.map +1 -0
  92. package/dist-esm/src/models/mappers.d.ts +25 -0
  93. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  94. package/{esm → dist-esm/src}/models/mappers.js +362 -457
  95. package/dist-esm/src/models/mappers.js.map +1 -0
  96. package/dist-esm/src/models/parameters.d.ts +15 -0
  97. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  98. package/dist-esm/src/models/parameters.js +135 -0
  99. package/dist-esm/src/models/parameters.js.map +1 -0
  100. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  101. package/dist-esm/src/operations/index.d.ts.map +1 -0
  102. package/{esm → dist-esm/src}/operations/index.js +1 -2
  103. package/dist-esm/src/operations/index.js.map +1 -0
  104. package/dist-esm/src/operations/operations.d.ts +32 -0
  105. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  106. package/dist-esm/src/operations/operations.js +120 -0
  107. package/dist-esm/src/operations/operations.js.map +1 -0
  108. package/dist-esm/src/operations/remoteRenderingAccounts.d.ts +98 -0
  109. package/dist-esm/src/operations/remoteRenderingAccounts.d.ts.map +1 -0
  110. package/dist-esm/src/operations/remoteRenderingAccounts.js +422 -0
  111. package/dist-esm/src/operations/remoteRenderingAccounts.js.map +1 -0
  112. package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts +98 -0
  113. package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts.map +1 -0
  114. package/dist-esm/src/operations/spatialAnchorsAccounts.js +422 -0
  115. package/dist-esm/src/operations/spatialAnchorsAccounts.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  117. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  119. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  121. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  122. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
  123. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.d.ts +62 -0
  125. package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.d.ts +62 -0
  129. package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.js.map +1 -0
  132. package/dist-esm/test/sampleTest.d.ts +2 -0
  133. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  134. package/dist-esm/test/sampleTest.js +40 -0
  135. package/dist-esm/test/sampleTest.js.map +1 -0
  136. package/package.json +80 -22
  137. package/review/arm-mixedreality.api.md +436 -0
  138. package/rollup.config.js +181 -30
  139. package/src/{models/operationsMappers.ts → index.ts} +4 -11
  140. package/src/mixedRealityClient.ts +102 -74
  141. package/src/models/index.ts +370 -884
  142. package/src/models/mappers.ts +367 -478
  143. package/src/models/parameters.ts +100 -39
  144. package/src/operations/index.ts +1 -2
  145. package/src/operations/operations.ts +85 -73
  146. package/src/operations/remoteRenderingAccounts.ts +319 -392
  147. package/src/operations/spatialAnchorsAccounts.ts +319 -392
  148. package/src/operationsInterfaces/index.ts +11 -0
  149. package/src/operationsInterfaces/operations.ts +22 -0
  150. package/src/operationsInterfaces/remoteRenderingAccounts.ts +119 -0
  151. package/src/operationsInterfaces/spatialAnchorsAccounts.ts +119 -0
  152. package/tsconfig.json +5 -4
  153. package/types/arm-mixedreality.d.ts +674 -0
  154. package/types/tsdoc-metadata.json +11 -0
  155. package/dist/arm-mixedreality.js +0 -2042
  156. package/dist/arm-mixedreality.js.map +0 -1
  157. package/dist/arm-mixedreality.min.js +0 -1
  158. package/dist/arm-mixedreality.min.js.map +0 -1
  159. package/esm/mixedRealityClient.d.ts +0 -42
  160. package/esm/mixedRealityClient.d.ts.map +0 -1
  161. package/esm/mixedRealityClient.js +0 -72
  162. package/esm/mixedRealityClient.js.map +0 -1
  163. package/esm/mixedRealityClientContext.d.ts +0 -17
  164. package/esm/mixedRealityClientContext.d.ts.map +0 -1
  165. package/esm/mixedRealityClientContext.js +0 -56
  166. package/esm/mixedRealityClientContext.js.map +0 -1
  167. package/esm/models/index.d.ts +0 -957
  168. package/esm/models/index.d.ts.map +0 -1
  169. package/esm/models/index.js.map +0 -1
  170. package/esm/models/mappers.d.ts +0 -32
  171. package/esm/models/mappers.d.ts.map +0 -1
  172. package/esm/models/mappers.js.map +0 -1
  173. package/esm/models/operationsMappers.d.ts +0 -2
  174. package/esm/models/operationsMappers.d.ts.map +0 -1
  175. package/esm/models/operationsMappers.js +0 -9
  176. package/esm/models/operationsMappers.js.map +0 -1
  177. package/esm/models/parameters.d.ts +0 -9
  178. package/esm/models/parameters.d.ts.map +0 -1
  179. package/esm/models/parameters.js +0 -95
  180. package/esm/models/parameters.js.map +0 -1
  181. package/esm/models/remoteRenderingAccountsMappers.d.ts +0 -2
  182. package/esm/models/remoteRenderingAccountsMappers.d.ts.map +0 -1
  183. package/esm/models/remoteRenderingAccountsMappers.js +0 -9
  184. package/esm/models/remoteRenderingAccountsMappers.js.map +0 -1
  185. package/esm/models/spatialAnchorsAccountsMappers.d.ts +0 -2
  186. package/esm/models/spatialAnchorsAccountsMappers.d.ts.map +0 -1
  187. package/esm/models/spatialAnchorsAccountsMappers.js +0 -9
  188. package/esm/models/spatialAnchorsAccountsMappers.js.map +0 -1
  189. package/esm/operations/index.d.ts.map +0 -1
  190. package/esm/operations/index.js.map +0 -1
  191. package/esm/operations/operations.d.ts +0 -46
  192. package/esm/operations/operations.d.ts.map +0 -1
  193. package/esm/operations/operations.js +0 -79
  194. package/esm/operations/operations.js.map +0 -1
  195. package/esm/operations/remoteRenderingAccounts.d.ts +0 -217
  196. package/esm/operations/remoteRenderingAccounts.d.ts.map +0 -1
  197. package/esm/operations/remoteRenderingAccounts.js +0 -344
  198. package/esm/operations/remoteRenderingAccounts.js.map +0 -1
  199. package/esm/operations/spatialAnchorsAccounts.d.ts +0 -217
  200. package/esm/operations/spatialAnchorsAccounts.d.ts.map +0 -1
  201. package/esm/operations/spatialAnchorsAccounts.js +0 -344
  202. package/esm/operations/spatialAnchorsAccounts.js.map +0 -1
  203. package/src/mixedRealityClientContext.ts +0 -62
  204. package/src/models/remoteRenderingAccountsMappers.ts +0 -29
  205. package/src/models/spatialAnchorsAccountsMappers.ts +0 -29
package/dist/index.js ADDED
@@ -0,0 +1,2016 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
+
8
+ /*
9
+ * Copyright (c) Microsoft Corporation.
10
+ * Licensed under the MIT License.
11
+ *
12
+ * Code generated by Microsoft (R) AutoRest Code Generator.
13
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14
+ */
15
+ (function (KnownNameUnavailableReason) {
16
+ KnownNameUnavailableReason["Invalid"] = "Invalid";
17
+ KnownNameUnavailableReason["AlreadyExists"] = "AlreadyExists";
18
+ })(exports.KnownNameUnavailableReason || (exports.KnownNameUnavailableReason = {}));
19
+ (function (KnownCreatedByType) {
20
+ KnownCreatedByType["User"] = "User";
21
+ KnownCreatedByType["Application"] = "Application";
22
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
23
+ KnownCreatedByType["Key"] = "Key";
24
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
25
+
26
+ /*
27
+ * Copyright (c) Microsoft Corporation.
28
+ * Licensed under the MIT License.
29
+ *
30
+ * Code generated by Microsoft (R) AutoRest Code Generator.
31
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
32
+ */
33
+ const OperationPage = {
34
+ type: {
35
+ name: "Composite",
36
+ className: "OperationPage",
37
+ modelProperties: {
38
+ value: {
39
+ serializedName: "value",
40
+ type: {
41
+ name: "Sequence",
42
+ element: {
43
+ type: {
44
+ name: "Composite",
45
+ className: "Operation"
46
+ }
47
+ }
48
+ }
49
+ },
50
+ nextLink: {
51
+ serializedName: "nextLink",
52
+ type: {
53
+ name: "String"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ };
59
+ const Operation = {
60
+ type: {
61
+ name: "Composite",
62
+ className: "Operation",
63
+ modelProperties: {
64
+ name: {
65
+ serializedName: "name",
66
+ type: {
67
+ name: "String"
68
+ }
69
+ },
70
+ display: {
71
+ serializedName: "display",
72
+ type: {
73
+ name: "Composite",
74
+ className: "OperationDisplay"
75
+ }
76
+ },
77
+ isDataAction: {
78
+ serializedName: "isDataAction",
79
+ type: {
80
+ name: "Boolean"
81
+ }
82
+ },
83
+ origin: {
84
+ serializedName: "origin",
85
+ type: {
86
+ name: "String"
87
+ }
88
+ },
89
+ properties: {
90
+ serializedName: "properties",
91
+ type: {
92
+ name: "Composite",
93
+ className: "OperationProperties"
94
+ }
95
+ }
96
+ }
97
+ }
98
+ };
99
+ const OperationDisplay = {
100
+ type: {
101
+ name: "Composite",
102
+ className: "OperationDisplay",
103
+ modelProperties: {
104
+ provider: {
105
+ serializedName: "provider",
106
+ required: true,
107
+ type: {
108
+ name: "String"
109
+ }
110
+ },
111
+ resource: {
112
+ serializedName: "resource",
113
+ required: true,
114
+ type: {
115
+ name: "String"
116
+ }
117
+ },
118
+ operation: {
119
+ serializedName: "operation",
120
+ required: true,
121
+ type: {
122
+ name: "String"
123
+ }
124
+ },
125
+ description: {
126
+ serializedName: "description",
127
+ required: true,
128
+ type: {
129
+ name: "String"
130
+ }
131
+ }
132
+ }
133
+ }
134
+ };
135
+ const OperationProperties = {
136
+ type: {
137
+ name: "Composite",
138
+ className: "OperationProperties",
139
+ modelProperties: {
140
+ serviceSpecification: {
141
+ serializedName: "serviceSpecification",
142
+ type: {
143
+ name: "Composite",
144
+ className: "ServiceSpecification"
145
+ }
146
+ }
147
+ }
148
+ }
149
+ };
150
+ const ServiceSpecification = {
151
+ type: {
152
+ name: "Composite",
153
+ className: "ServiceSpecification",
154
+ modelProperties: {
155
+ logSpecifications: {
156
+ serializedName: "logSpecifications",
157
+ type: {
158
+ name: "Sequence",
159
+ element: {
160
+ type: {
161
+ name: "Composite",
162
+ className: "LogSpecification"
163
+ }
164
+ }
165
+ }
166
+ },
167
+ metricSpecifications: {
168
+ serializedName: "metricSpecifications",
169
+ type: {
170
+ name: "Sequence",
171
+ element: {
172
+ type: {
173
+ name: "Composite",
174
+ className: "MetricSpecification"
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ };
182
+ const LogSpecification = {
183
+ type: {
184
+ name: "Composite",
185
+ className: "LogSpecification",
186
+ modelProperties: {
187
+ name: {
188
+ serializedName: "name",
189
+ type: {
190
+ name: "String"
191
+ }
192
+ },
193
+ displayName: {
194
+ serializedName: "displayName",
195
+ type: {
196
+ name: "String"
197
+ }
198
+ },
199
+ blobDuration: {
200
+ serializedName: "blobDuration",
201
+ type: {
202
+ name: "String"
203
+ }
204
+ }
205
+ }
206
+ }
207
+ };
208
+ const MetricSpecification = {
209
+ type: {
210
+ name: "Composite",
211
+ className: "MetricSpecification",
212
+ modelProperties: {
213
+ name: {
214
+ serializedName: "name",
215
+ type: {
216
+ name: "String"
217
+ }
218
+ },
219
+ displayName: {
220
+ serializedName: "displayName",
221
+ type: {
222
+ name: "String"
223
+ }
224
+ },
225
+ displayDescription: {
226
+ serializedName: "displayDescription",
227
+ type: {
228
+ name: "String"
229
+ }
230
+ },
231
+ unit: {
232
+ serializedName: "unit",
233
+ type: {
234
+ name: "String"
235
+ }
236
+ },
237
+ aggregationType: {
238
+ serializedName: "aggregationType",
239
+ type: {
240
+ name: "String"
241
+ }
242
+ },
243
+ supportedAggregationTypes: {
244
+ serializedName: "supportedAggregationTypes",
245
+ type: {
246
+ name: "Sequence",
247
+ element: {
248
+ type: {
249
+ name: "String"
250
+ }
251
+ }
252
+ }
253
+ },
254
+ supportedTimeGrainTypes: {
255
+ serializedName: "supportedTimeGrainTypes",
256
+ type: {
257
+ name: "Sequence",
258
+ element: {
259
+ type: {
260
+ name: "String"
261
+ }
262
+ }
263
+ }
264
+ },
265
+ enableRegionalMdmAccount: {
266
+ serializedName: "enableRegionalMdmAccount",
267
+ type: {
268
+ name: "Boolean"
269
+ }
270
+ },
271
+ sourceMdmAccount: {
272
+ serializedName: "sourceMdmAccount",
273
+ type: {
274
+ name: "String"
275
+ }
276
+ },
277
+ sourceMdmNamespace: {
278
+ serializedName: "sourceMdmNamespace",
279
+ type: {
280
+ name: "String"
281
+ }
282
+ },
283
+ metricFilterPattern: {
284
+ serializedName: "metricFilterPattern",
285
+ type: {
286
+ name: "String"
287
+ }
288
+ },
289
+ fillGapWithZero: {
290
+ serializedName: "fillGapWithZero",
291
+ type: {
292
+ name: "Boolean"
293
+ }
294
+ },
295
+ category: {
296
+ serializedName: "category",
297
+ type: {
298
+ name: "String"
299
+ }
300
+ },
301
+ internalMetricName: {
302
+ serializedName: "internalMetricName",
303
+ type: {
304
+ name: "String"
305
+ }
306
+ },
307
+ dimensions: {
308
+ serializedName: "dimensions",
309
+ type: {
310
+ name: "Sequence",
311
+ element: {
312
+ type: {
313
+ name: "Composite",
314
+ className: "MetricDimension"
315
+ }
316
+ }
317
+ }
318
+ },
319
+ lockedAggregationType: {
320
+ serializedName: "lockedAggregationType",
321
+ type: {
322
+ name: "String"
323
+ }
324
+ }
325
+ }
326
+ }
327
+ };
328
+ const MetricDimension = {
329
+ type: {
330
+ name: "Composite",
331
+ className: "MetricDimension",
332
+ modelProperties: {
333
+ name: {
334
+ serializedName: "name",
335
+ type: {
336
+ name: "String"
337
+ }
338
+ },
339
+ displayName: {
340
+ serializedName: "displayName",
341
+ type: {
342
+ name: "String"
343
+ }
344
+ },
345
+ internalName: {
346
+ serializedName: "internalName",
347
+ type: {
348
+ name: "String"
349
+ }
350
+ }
351
+ }
352
+ }
353
+ };
354
+ const CloudError = {
355
+ type: {
356
+ name: "Composite",
357
+ className: "CloudError",
358
+ modelProperties: {
359
+ error: {
360
+ serializedName: "error",
361
+ type: {
362
+ name: "Composite",
363
+ className: "CloudErrorBody"
364
+ }
365
+ }
366
+ }
367
+ }
368
+ };
369
+ const CloudErrorBody = {
370
+ type: {
371
+ name: "Composite",
372
+ className: "CloudErrorBody",
373
+ modelProperties: {
374
+ code: {
375
+ serializedName: "code",
376
+ type: {
377
+ name: "String"
378
+ }
379
+ },
380
+ message: {
381
+ serializedName: "message",
382
+ type: {
383
+ name: "String"
384
+ }
385
+ },
386
+ target: {
387
+ serializedName: "target",
388
+ type: {
389
+ name: "String"
390
+ }
391
+ },
392
+ details: {
393
+ serializedName: "details",
394
+ type: {
395
+ name: "Sequence",
396
+ element: {
397
+ type: {
398
+ name: "Composite",
399
+ className: "CloudErrorBody"
400
+ }
401
+ }
402
+ }
403
+ }
404
+ }
405
+ }
406
+ };
407
+ const CheckNameAvailabilityRequest = {
408
+ type: {
409
+ name: "Composite",
410
+ className: "CheckNameAvailabilityRequest",
411
+ modelProperties: {
412
+ name: {
413
+ serializedName: "name",
414
+ required: true,
415
+ type: {
416
+ name: "String"
417
+ }
418
+ },
419
+ type: {
420
+ serializedName: "type",
421
+ required: true,
422
+ type: {
423
+ name: "String"
424
+ }
425
+ }
426
+ }
427
+ }
428
+ };
429
+ const CheckNameAvailabilityResponse = {
430
+ type: {
431
+ name: "Composite",
432
+ className: "CheckNameAvailabilityResponse",
433
+ modelProperties: {
434
+ nameAvailable: {
435
+ serializedName: "nameAvailable",
436
+ required: true,
437
+ type: {
438
+ name: "Boolean"
439
+ }
440
+ },
441
+ reason: {
442
+ serializedName: "reason",
443
+ type: {
444
+ name: "String"
445
+ }
446
+ },
447
+ message: {
448
+ serializedName: "message",
449
+ type: {
450
+ name: "String"
451
+ }
452
+ }
453
+ }
454
+ }
455
+ };
456
+ const SpatialAnchorsAccountPage = {
457
+ type: {
458
+ name: "Composite",
459
+ className: "SpatialAnchorsAccountPage",
460
+ modelProperties: {
461
+ value: {
462
+ serializedName: "value",
463
+ type: {
464
+ name: "Sequence",
465
+ element: {
466
+ type: {
467
+ name: "Composite",
468
+ className: "SpatialAnchorsAccount"
469
+ }
470
+ }
471
+ }
472
+ },
473
+ nextLink: {
474
+ serializedName: "nextLink",
475
+ type: {
476
+ name: "String"
477
+ }
478
+ }
479
+ }
480
+ }
481
+ };
482
+ const Identity = {
483
+ type: {
484
+ name: "Composite",
485
+ className: "Identity",
486
+ modelProperties: {
487
+ principalId: {
488
+ serializedName: "principalId",
489
+ readOnly: true,
490
+ type: {
491
+ name: "String"
492
+ }
493
+ },
494
+ tenantId: {
495
+ serializedName: "tenantId",
496
+ readOnly: true,
497
+ type: {
498
+ name: "String"
499
+ }
500
+ },
501
+ type: {
502
+ defaultValue: "SystemAssigned",
503
+ isConstant: true,
504
+ serializedName: "type",
505
+ type: {
506
+ name: "String"
507
+ }
508
+ }
509
+ }
510
+ }
511
+ };
512
+ const Sku = {
513
+ type: {
514
+ name: "Composite",
515
+ className: "Sku",
516
+ modelProperties: {
517
+ name: {
518
+ serializedName: "name",
519
+ required: true,
520
+ type: {
521
+ name: "String"
522
+ }
523
+ },
524
+ tier: {
525
+ serializedName: "tier",
526
+ type: {
527
+ name: "Enum",
528
+ allowedValues: ["Free", "Basic", "Standard", "Premium"]
529
+ }
530
+ },
531
+ size: {
532
+ serializedName: "size",
533
+ type: {
534
+ name: "String"
535
+ }
536
+ },
537
+ family: {
538
+ serializedName: "family",
539
+ type: {
540
+ name: "String"
541
+ }
542
+ },
543
+ capacity: {
544
+ serializedName: "capacity",
545
+ type: {
546
+ name: "Number"
547
+ }
548
+ }
549
+ }
550
+ }
551
+ };
552
+ const SystemData = {
553
+ type: {
554
+ name: "Composite",
555
+ className: "SystemData",
556
+ modelProperties: {
557
+ createdBy: {
558
+ serializedName: "createdBy",
559
+ type: {
560
+ name: "String"
561
+ }
562
+ },
563
+ createdByType: {
564
+ serializedName: "createdByType",
565
+ type: {
566
+ name: "String"
567
+ }
568
+ },
569
+ createdAt: {
570
+ serializedName: "createdAt",
571
+ type: {
572
+ name: "DateTime"
573
+ }
574
+ },
575
+ lastModifiedBy: {
576
+ serializedName: "lastModifiedBy",
577
+ type: {
578
+ name: "String"
579
+ }
580
+ },
581
+ lastModifiedByType: {
582
+ serializedName: "lastModifiedByType",
583
+ type: {
584
+ name: "String"
585
+ }
586
+ },
587
+ lastModifiedAt: {
588
+ serializedName: "lastModifiedAt",
589
+ type: {
590
+ name: "DateTime"
591
+ }
592
+ }
593
+ }
594
+ }
595
+ };
596
+ const Resource = {
597
+ type: {
598
+ name: "Composite",
599
+ className: "Resource",
600
+ modelProperties: {
601
+ id: {
602
+ serializedName: "id",
603
+ readOnly: true,
604
+ type: {
605
+ name: "String"
606
+ }
607
+ },
608
+ name: {
609
+ serializedName: "name",
610
+ readOnly: true,
611
+ type: {
612
+ name: "String"
613
+ }
614
+ },
615
+ type: {
616
+ serializedName: "type",
617
+ readOnly: true,
618
+ type: {
619
+ name: "String"
620
+ }
621
+ }
622
+ }
623
+ }
624
+ };
625
+ const AccountKeys = {
626
+ type: {
627
+ name: "Composite",
628
+ className: "AccountKeys",
629
+ modelProperties: {
630
+ primaryKey: {
631
+ serializedName: "primaryKey",
632
+ readOnly: true,
633
+ type: {
634
+ name: "String"
635
+ }
636
+ },
637
+ secondaryKey: {
638
+ serializedName: "secondaryKey",
639
+ readOnly: true,
640
+ type: {
641
+ name: "String"
642
+ }
643
+ }
644
+ }
645
+ }
646
+ };
647
+ const AccountKeyRegenerateRequest = {
648
+ type: {
649
+ name: "Composite",
650
+ className: "AccountKeyRegenerateRequest",
651
+ modelProperties: {
652
+ serial: {
653
+ defaultValue: "1",
654
+ serializedName: "serial",
655
+ type: {
656
+ name: "Enum",
657
+ allowedValues: [1, 2]
658
+ }
659
+ }
660
+ }
661
+ }
662
+ };
663
+ const RemoteRenderingAccountPage = {
664
+ type: {
665
+ name: "Composite",
666
+ className: "RemoteRenderingAccountPage",
667
+ modelProperties: {
668
+ value: {
669
+ serializedName: "value",
670
+ type: {
671
+ name: "Sequence",
672
+ element: {
673
+ type: {
674
+ name: "Composite",
675
+ className: "RemoteRenderingAccount"
676
+ }
677
+ }
678
+ }
679
+ },
680
+ nextLink: {
681
+ serializedName: "nextLink",
682
+ type: {
683
+ name: "String"
684
+ }
685
+ }
686
+ }
687
+ }
688
+ };
689
+ const TrackedResource = {
690
+ type: {
691
+ name: "Composite",
692
+ className: "TrackedResource",
693
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
694
+ serializedName: "tags",
695
+ type: {
696
+ name: "Dictionary",
697
+ value: { type: { name: "String" } }
698
+ }
699
+ }, location: {
700
+ serializedName: "location",
701
+ required: true,
702
+ type: {
703
+ name: "String"
704
+ }
705
+ } })
706
+ }
707
+ };
708
+ const SpatialAnchorsAccount = {
709
+ type: {
710
+ name: "Composite",
711
+ className: "SpatialAnchorsAccount",
712
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
713
+ serializedName: "identity",
714
+ type: {
715
+ name: "Composite",
716
+ className: "Identity"
717
+ }
718
+ }, plan: {
719
+ serializedName: "plan",
720
+ type: {
721
+ name: "Composite",
722
+ className: "Identity"
723
+ }
724
+ }, sku: {
725
+ serializedName: "sku",
726
+ type: {
727
+ name: "Composite",
728
+ className: "Sku"
729
+ }
730
+ }, kind: {
731
+ serializedName: "kind",
732
+ type: {
733
+ name: "Composite",
734
+ className: "Sku"
735
+ }
736
+ }, systemData: {
737
+ serializedName: "systemData",
738
+ type: {
739
+ name: "Composite",
740
+ className: "SystemData"
741
+ }
742
+ }, storageAccountName: {
743
+ serializedName: "properties.storageAccountName",
744
+ type: {
745
+ name: "String"
746
+ }
747
+ }, accountId: {
748
+ serializedName: "properties.accountId",
749
+ readOnly: true,
750
+ type: {
751
+ name: "String"
752
+ }
753
+ }, accountDomain: {
754
+ serializedName: "properties.accountDomain",
755
+ readOnly: true,
756
+ type: {
757
+ name: "String"
758
+ }
759
+ } })
760
+ }
761
+ };
762
+ const RemoteRenderingAccount = {
763
+ type: {
764
+ name: "Composite",
765
+ className: "RemoteRenderingAccount",
766
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
767
+ serializedName: "identity",
768
+ type: {
769
+ name: "Composite",
770
+ className: "Identity"
771
+ }
772
+ }, plan: {
773
+ serializedName: "plan",
774
+ type: {
775
+ name: "Composite",
776
+ className: "Identity"
777
+ }
778
+ }, sku: {
779
+ serializedName: "sku",
780
+ type: {
781
+ name: "Composite",
782
+ className: "Sku"
783
+ }
784
+ }, kind: {
785
+ serializedName: "kind",
786
+ type: {
787
+ name: "Composite",
788
+ className: "Sku"
789
+ }
790
+ }, systemData: {
791
+ serializedName: "systemData",
792
+ type: {
793
+ name: "Composite",
794
+ className: "SystemData"
795
+ }
796
+ }, storageAccountName: {
797
+ serializedName: "properties.storageAccountName",
798
+ type: {
799
+ name: "String"
800
+ }
801
+ }, accountId: {
802
+ serializedName: "properties.accountId",
803
+ readOnly: true,
804
+ type: {
805
+ name: "String"
806
+ }
807
+ }, accountDomain: {
808
+ serializedName: "properties.accountDomain",
809
+ readOnly: true,
810
+ type: {
811
+ name: "String"
812
+ }
813
+ } })
814
+ }
815
+ };
816
+
817
+ var Mappers = /*#__PURE__*/Object.freeze({
818
+ __proto__: null,
819
+ OperationPage: OperationPage,
820
+ Operation: Operation,
821
+ OperationDisplay: OperationDisplay,
822
+ OperationProperties: OperationProperties,
823
+ ServiceSpecification: ServiceSpecification,
824
+ LogSpecification: LogSpecification,
825
+ MetricSpecification: MetricSpecification,
826
+ MetricDimension: MetricDimension,
827
+ CloudError: CloudError,
828
+ CloudErrorBody: CloudErrorBody,
829
+ CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
830
+ CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
831
+ SpatialAnchorsAccountPage: SpatialAnchorsAccountPage,
832
+ Identity: Identity,
833
+ Sku: Sku,
834
+ SystemData: SystemData,
835
+ Resource: Resource,
836
+ AccountKeys: AccountKeys,
837
+ AccountKeyRegenerateRequest: AccountKeyRegenerateRequest,
838
+ RemoteRenderingAccountPage: RemoteRenderingAccountPage,
839
+ TrackedResource: TrackedResource,
840
+ SpatialAnchorsAccount: SpatialAnchorsAccount,
841
+ RemoteRenderingAccount: RemoteRenderingAccount
842
+ });
843
+
844
+ /*
845
+ * Copyright (c) Microsoft Corporation.
846
+ * Licensed under the MIT License.
847
+ *
848
+ * Code generated by Microsoft (R) AutoRest Code Generator.
849
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
850
+ */
851
+ const accept = {
852
+ parameterPath: "accept",
853
+ mapper: {
854
+ defaultValue: "application/json",
855
+ isConstant: true,
856
+ serializedName: "Accept",
857
+ type: {
858
+ name: "String"
859
+ }
860
+ }
861
+ };
862
+ const $host = {
863
+ parameterPath: "$host",
864
+ mapper: {
865
+ serializedName: "$host",
866
+ required: true,
867
+ type: {
868
+ name: "String"
869
+ }
870
+ },
871
+ skipEncoding: true
872
+ };
873
+ const apiVersion = {
874
+ parameterPath: "apiVersion",
875
+ mapper: {
876
+ defaultValue: "2021-01-01",
877
+ isConstant: true,
878
+ serializedName: "api-version",
879
+ type: {
880
+ name: "String"
881
+ }
882
+ }
883
+ };
884
+ const nextLink = {
885
+ parameterPath: "nextLink",
886
+ mapper: {
887
+ serializedName: "nextLink",
888
+ required: true,
889
+ type: {
890
+ name: "String"
891
+ }
892
+ },
893
+ skipEncoding: true
894
+ };
895
+ const contentType = {
896
+ parameterPath: ["options", "contentType"],
897
+ mapper: {
898
+ defaultValue: "application/json",
899
+ isConstant: true,
900
+ serializedName: "Content-Type",
901
+ type: {
902
+ name: "String"
903
+ }
904
+ }
905
+ };
906
+ const checkNameAvailability = {
907
+ parameterPath: "checkNameAvailability",
908
+ mapper: CheckNameAvailabilityRequest
909
+ };
910
+ const subscriptionId = {
911
+ parameterPath: "subscriptionId",
912
+ mapper: {
913
+ serializedName: "subscriptionId",
914
+ required: true,
915
+ type: {
916
+ name: "String"
917
+ }
918
+ }
919
+ };
920
+ const location = {
921
+ parameterPath: "location",
922
+ mapper: {
923
+ constraints: {
924
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
925
+ MaxLength: 90,
926
+ MinLength: 1
927
+ },
928
+ serializedName: "location",
929
+ required: true,
930
+ type: {
931
+ name: "String"
932
+ }
933
+ }
934
+ };
935
+ const resourceGroupName = {
936
+ parameterPath: "resourceGroupName",
937
+ mapper: {
938
+ constraints: {
939
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
940
+ MaxLength: 90,
941
+ MinLength: 1
942
+ },
943
+ serializedName: "resourceGroupName",
944
+ required: true,
945
+ type: {
946
+ name: "String"
947
+ }
948
+ }
949
+ };
950
+ const accountName = {
951
+ parameterPath: "accountName",
952
+ mapper: {
953
+ constraints: {
954
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
955
+ MaxLength: 90,
956
+ MinLength: 1
957
+ },
958
+ serializedName: "accountName",
959
+ required: true,
960
+ type: {
961
+ name: "String"
962
+ }
963
+ }
964
+ };
965
+ const spatialAnchorsAccount = {
966
+ parameterPath: "spatialAnchorsAccount",
967
+ mapper: SpatialAnchorsAccount
968
+ };
969
+ const regenerate = {
970
+ parameterPath: "regenerate",
971
+ mapper: AccountKeyRegenerateRequest
972
+ };
973
+ const remoteRenderingAccount = {
974
+ parameterPath: "remoteRenderingAccount",
975
+ mapper: RemoteRenderingAccount
976
+ };
977
+
978
+ /*
979
+ * Copyright (c) Microsoft Corporation.
980
+ * Licensed under the MIT License.
981
+ *
982
+ * Code generated by Microsoft (R) AutoRest Code Generator.
983
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
984
+ */
985
+ /// <reference lib="esnext.asynciterable" />
986
+ /** Class containing Operations operations. */
987
+ class OperationsImpl {
988
+ /**
989
+ * Initialize a new instance of the class Operations class.
990
+ * @param client Reference to the service client
991
+ */
992
+ constructor(client) {
993
+ this.client = client;
994
+ }
995
+ /**
996
+ * Exposing Available Operations
997
+ * @param options The options parameters.
998
+ */
999
+ list(options) {
1000
+ const iter = this.listPagingAll(options);
1001
+ return {
1002
+ next() {
1003
+ return iter.next();
1004
+ },
1005
+ [Symbol.asyncIterator]() {
1006
+ return this;
1007
+ },
1008
+ byPage: () => {
1009
+ return this.listPagingPage(options);
1010
+ }
1011
+ };
1012
+ }
1013
+ listPagingPage(options) {
1014
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1015
+ let result = yield tslib.__await(this._list(options));
1016
+ yield yield tslib.__await(result.value || []);
1017
+ let continuationToken = result.nextLink;
1018
+ while (continuationToken) {
1019
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1020
+ continuationToken = result.nextLink;
1021
+ yield yield tslib.__await(result.value || []);
1022
+ }
1023
+ });
1024
+ }
1025
+ listPagingAll(options) {
1026
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1027
+ var e_1, _a;
1028
+ try {
1029
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1030
+ const page = _c.value;
1031
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1032
+ }
1033
+ }
1034
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1035
+ finally {
1036
+ try {
1037
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1038
+ }
1039
+ finally { if (e_1) throw e_1.error; }
1040
+ }
1041
+ });
1042
+ }
1043
+ /**
1044
+ * Exposing Available Operations
1045
+ * @param options The options parameters.
1046
+ */
1047
+ _list(options) {
1048
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
1049
+ }
1050
+ /**
1051
+ * ListNext
1052
+ * @param nextLink The nextLink from the previous successful call to the List method.
1053
+ * @param options The options parameters.
1054
+ */
1055
+ _listNext(nextLink, options) {
1056
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1057
+ }
1058
+ }
1059
+ // Operation Specifications
1060
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1061
+ const listOperationSpec = {
1062
+ path: "/providers/Microsoft.MixedReality/operations",
1063
+ httpMethod: "GET",
1064
+ responses: {
1065
+ 200: {
1066
+ bodyMapper: OperationPage
1067
+ },
1068
+ default: {
1069
+ bodyMapper: CloudError
1070
+ }
1071
+ },
1072
+ queryParameters: [apiVersion],
1073
+ urlParameters: [$host],
1074
+ headerParameters: [accept],
1075
+ serializer
1076
+ };
1077
+ const listNextOperationSpec = {
1078
+ path: "{nextLink}",
1079
+ httpMethod: "GET",
1080
+ responses: {
1081
+ 200: {
1082
+ bodyMapper: OperationPage
1083
+ },
1084
+ default: {
1085
+ bodyMapper: CloudError
1086
+ }
1087
+ },
1088
+ queryParameters: [apiVersion],
1089
+ urlParameters: [$host, nextLink],
1090
+ headerParameters: [accept],
1091
+ serializer
1092
+ };
1093
+
1094
+ /*
1095
+ * Copyright (c) Microsoft Corporation.
1096
+ * Licensed under the MIT License.
1097
+ *
1098
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1099
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1100
+ */
1101
+ /// <reference lib="esnext.asynciterable" />
1102
+ /** Class containing SpatialAnchorsAccounts operations. */
1103
+ class SpatialAnchorsAccountsImpl {
1104
+ /**
1105
+ * Initialize a new instance of the class SpatialAnchorsAccounts class.
1106
+ * @param client Reference to the service client
1107
+ */
1108
+ constructor(client) {
1109
+ this.client = client;
1110
+ }
1111
+ /**
1112
+ * List Spatial Anchors Accounts by Subscription
1113
+ * @param options The options parameters.
1114
+ */
1115
+ listBySubscription(options) {
1116
+ const iter = this.listBySubscriptionPagingAll(options);
1117
+ return {
1118
+ next() {
1119
+ return iter.next();
1120
+ },
1121
+ [Symbol.asyncIterator]() {
1122
+ return this;
1123
+ },
1124
+ byPage: () => {
1125
+ return this.listBySubscriptionPagingPage(options);
1126
+ }
1127
+ };
1128
+ }
1129
+ listBySubscriptionPagingPage(options) {
1130
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1131
+ let result = yield tslib.__await(this._listBySubscription(options));
1132
+ yield yield tslib.__await(result.value || []);
1133
+ let continuationToken = result.nextLink;
1134
+ while (continuationToken) {
1135
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1136
+ continuationToken = result.nextLink;
1137
+ yield yield tslib.__await(result.value || []);
1138
+ }
1139
+ });
1140
+ }
1141
+ listBySubscriptionPagingAll(options) {
1142
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1143
+ var e_1, _a;
1144
+ try {
1145
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1146
+ const page = _c.value;
1147
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1148
+ }
1149
+ }
1150
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1151
+ finally {
1152
+ try {
1153
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1154
+ }
1155
+ finally { if (e_1) throw e_1.error; }
1156
+ }
1157
+ });
1158
+ }
1159
+ /**
1160
+ * List Resources by Resource Group
1161
+ * @param resourceGroupName Name of an Azure resource group.
1162
+ * @param options The options parameters.
1163
+ */
1164
+ listByResourceGroup(resourceGroupName, options) {
1165
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1166
+ return {
1167
+ next() {
1168
+ return iter.next();
1169
+ },
1170
+ [Symbol.asyncIterator]() {
1171
+ return this;
1172
+ },
1173
+ byPage: () => {
1174
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
1175
+ }
1176
+ };
1177
+ }
1178
+ listByResourceGroupPagingPage(resourceGroupName, options) {
1179
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1180
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1181
+ yield yield tslib.__await(result.value || []);
1182
+ let continuationToken = result.nextLink;
1183
+ while (continuationToken) {
1184
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1185
+ continuationToken = result.nextLink;
1186
+ yield yield tslib.__await(result.value || []);
1187
+ }
1188
+ });
1189
+ }
1190
+ listByResourceGroupPagingAll(resourceGroupName, options) {
1191
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1192
+ var e_2, _a;
1193
+ try {
1194
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1195
+ const page = _c.value;
1196
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1197
+ }
1198
+ }
1199
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1200
+ finally {
1201
+ try {
1202
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1203
+ }
1204
+ finally { if (e_2) throw e_2.error; }
1205
+ }
1206
+ });
1207
+ }
1208
+ /**
1209
+ * List Spatial Anchors Accounts by Subscription
1210
+ * @param options The options parameters.
1211
+ */
1212
+ _listBySubscription(options) {
1213
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1214
+ }
1215
+ /**
1216
+ * List Resources by Resource Group
1217
+ * @param resourceGroupName Name of an Azure resource group.
1218
+ * @param options The options parameters.
1219
+ */
1220
+ _listByResourceGroup(resourceGroupName, options) {
1221
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1222
+ }
1223
+ /**
1224
+ * Delete a Spatial Anchors Account.
1225
+ * @param resourceGroupName Name of an Azure resource group.
1226
+ * @param accountName Name of an Mixed Reality Account.
1227
+ * @param options The options parameters.
1228
+ */
1229
+ delete(resourceGroupName, accountName, options) {
1230
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
1231
+ }
1232
+ /**
1233
+ * Retrieve a Spatial Anchors Account.
1234
+ * @param resourceGroupName Name of an Azure resource group.
1235
+ * @param accountName Name of an Mixed Reality Account.
1236
+ * @param options The options parameters.
1237
+ */
1238
+ get(resourceGroupName, accountName, options) {
1239
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
1240
+ }
1241
+ /**
1242
+ * Updating a Spatial Anchors Account
1243
+ * @param resourceGroupName Name of an Azure resource group.
1244
+ * @param accountName Name of an Mixed Reality Account.
1245
+ * @param spatialAnchorsAccount Spatial Anchors Account parameter.
1246
+ * @param options The options parameters.
1247
+ */
1248
+ update(resourceGroupName, accountName, spatialAnchorsAccount, options) {
1249
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, spatialAnchorsAccount, options }, updateOperationSpec);
1250
+ }
1251
+ /**
1252
+ * Creating or Updating a Spatial Anchors Account.
1253
+ * @param resourceGroupName Name of an Azure resource group.
1254
+ * @param accountName Name of an Mixed Reality Account.
1255
+ * @param spatialAnchorsAccount Spatial Anchors Account parameter.
1256
+ * @param options The options parameters.
1257
+ */
1258
+ create(resourceGroupName, accountName, spatialAnchorsAccount, options) {
1259
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, spatialAnchorsAccount, options }, createOperationSpec);
1260
+ }
1261
+ /**
1262
+ * List Both of the 2 Keys of a Spatial Anchors Account
1263
+ * @param resourceGroupName Name of an Azure resource group.
1264
+ * @param accountName Name of an Mixed Reality Account.
1265
+ * @param options The options parameters.
1266
+ */
1267
+ listKeys(resourceGroupName, accountName, options) {
1268
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
1269
+ }
1270
+ /**
1271
+ * Regenerate specified Key of a Spatial Anchors Account
1272
+ * @param resourceGroupName Name of an Azure resource group.
1273
+ * @param accountName Name of an Mixed Reality Account.
1274
+ * @param regenerate Required information for key regeneration.
1275
+ * @param options The options parameters.
1276
+ */
1277
+ regenerateKeys(resourceGroupName, accountName, regenerate, options) {
1278
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerate, options }, regenerateKeysOperationSpec);
1279
+ }
1280
+ /**
1281
+ * ListBySubscriptionNext
1282
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1283
+ * @param options The options parameters.
1284
+ */
1285
+ _listBySubscriptionNext(nextLink, options) {
1286
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1287
+ }
1288
+ /**
1289
+ * ListByResourceGroupNext
1290
+ * @param resourceGroupName Name of an Azure resource group.
1291
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1292
+ * @param options The options parameters.
1293
+ */
1294
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1295
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1296
+ }
1297
+ }
1298
+ // Operation Specifications
1299
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1300
+ const listBySubscriptionOperationSpec = {
1301
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
1302
+ httpMethod: "GET",
1303
+ responses: {
1304
+ 200: {
1305
+ bodyMapper: SpatialAnchorsAccountPage
1306
+ },
1307
+ default: {
1308
+ bodyMapper: CloudError
1309
+ }
1310
+ },
1311
+ queryParameters: [apiVersion],
1312
+ urlParameters: [$host, subscriptionId],
1313
+ headerParameters: [accept],
1314
+ serializer: serializer$1
1315
+ };
1316
+ const listByResourceGroupOperationSpec = {
1317
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
1318
+ httpMethod: "GET",
1319
+ responses: {
1320
+ 200: {
1321
+ bodyMapper: SpatialAnchorsAccountPage
1322
+ },
1323
+ default: {
1324
+ bodyMapper: CloudError
1325
+ }
1326
+ },
1327
+ queryParameters: [apiVersion],
1328
+ urlParameters: [
1329
+ $host,
1330
+ subscriptionId,
1331
+ resourceGroupName
1332
+ ],
1333
+ headerParameters: [accept],
1334
+ serializer: serializer$1
1335
+ };
1336
+ const deleteOperationSpec = {
1337
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
1338
+ httpMethod: "DELETE",
1339
+ responses: {
1340
+ 200: {},
1341
+ 204: {},
1342
+ default: {
1343
+ bodyMapper: CloudError
1344
+ }
1345
+ },
1346
+ queryParameters: [apiVersion],
1347
+ urlParameters: [
1348
+ $host,
1349
+ subscriptionId,
1350
+ resourceGroupName,
1351
+ accountName
1352
+ ],
1353
+ headerParameters: [accept],
1354
+ serializer: serializer$1
1355
+ };
1356
+ const getOperationSpec = {
1357
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
1358
+ httpMethod: "GET",
1359
+ responses: {
1360
+ 200: {
1361
+ bodyMapper: SpatialAnchorsAccount
1362
+ },
1363
+ default: {
1364
+ bodyMapper: CloudError
1365
+ }
1366
+ },
1367
+ queryParameters: [apiVersion],
1368
+ urlParameters: [
1369
+ $host,
1370
+ subscriptionId,
1371
+ resourceGroupName,
1372
+ accountName
1373
+ ],
1374
+ headerParameters: [accept],
1375
+ serializer: serializer$1
1376
+ };
1377
+ const updateOperationSpec = {
1378
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
1379
+ httpMethod: "PATCH",
1380
+ responses: {
1381
+ 200: {
1382
+ bodyMapper: SpatialAnchorsAccount
1383
+ },
1384
+ default: {
1385
+ bodyMapper: CloudError
1386
+ }
1387
+ },
1388
+ requestBody: spatialAnchorsAccount,
1389
+ queryParameters: [apiVersion],
1390
+ urlParameters: [
1391
+ $host,
1392
+ subscriptionId,
1393
+ resourceGroupName,
1394
+ accountName
1395
+ ],
1396
+ headerParameters: [accept, contentType],
1397
+ mediaType: "json",
1398
+ serializer: serializer$1
1399
+ };
1400
+ const createOperationSpec = {
1401
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
1402
+ httpMethod: "PUT",
1403
+ responses: {
1404
+ 200: {
1405
+ bodyMapper: SpatialAnchorsAccount
1406
+ },
1407
+ 201: {
1408
+ bodyMapper: SpatialAnchorsAccount
1409
+ },
1410
+ default: {
1411
+ bodyMapper: CloudError
1412
+ }
1413
+ },
1414
+ requestBody: spatialAnchorsAccount,
1415
+ queryParameters: [apiVersion],
1416
+ urlParameters: [
1417
+ $host,
1418
+ subscriptionId,
1419
+ resourceGroupName,
1420
+ accountName
1421
+ ],
1422
+ headerParameters: [accept, contentType],
1423
+ mediaType: "json",
1424
+ serializer: serializer$1
1425
+ };
1426
+ const listKeysOperationSpec = {
1427
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys",
1428
+ httpMethod: "POST",
1429
+ responses: {
1430
+ 200: {
1431
+ bodyMapper: AccountKeys
1432
+ },
1433
+ default: {
1434
+ bodyMapper: CloudError
1435
+ }
1436
+ },
1437
+ queryParameters: [apiVersion],
1438
+ urlParameters: [
1439
+ $host,
1440
+ subscriptionId,
1441
+ resourceGroupName,
1442
+ accountName
1443
+ ],
1444
+ headerParameters: [accept],
1445
+ serializer: serializer$1
1446
+ };
1447
+ const regenerateKeysOperationSpec = {
1448
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys",
1449
+ httpMethod: "POST",
1450
+ responses: {
1451
+ 200: {
1452
+ bodyMapper: AccountKeys
1453
+ },
1454
+ default: {
1455
+ bodyMapper: CloudError
1456
+ }
1457
+ },
1458
+ requestBody: regenerate,
1459
+ queryParameters: [apiVersion],
1460
+ urlParameters: [
1461
+ $host,
1462
+ subscriptionId,
1463
+ resourceGroupName,
1464
+ accountName
1465
+ ],
1466
+ headerParameters: [accept, contentType],
1467
+ mediaType: "json",
1468
+ serializer: serializer$1
1469
+ };
1470
+ const listBySubscriptionNextOperationSpec = {
1471
+ path: "{nextLink}",
1472
+ httpMethod: "GET",
1473
+ responses: {
1474
+ 200: {
1475
+ bodyMapper: SpatialAnchorsAccountPage
1476
+ },
1477
+ default: {
1478
+ bodyMapper: CloudError
1479
+ }
1480
+ },
1481
+ queryParameters: [apiVersion],
1482
+ urlParameters: [
1483
+ $host,
1484
+ nextLink,
1485
+ subscriptionId
1486
+ ],
1487
+ headerParameters: [accept],
1488
+ serializer: serializer$1
1489
+ };
1490
+ const listByResourceGroupNextOperationSpec = {
1491
+ path: "{nextLink}",
1492
+ httpMethod: "GET",
1493
+ responses: {
1494
+ 200: {
1495
+ bodyMapper: SpatialAnchorsAccountPage
1496
+ },
1497
+ default: {
1498
+ bodyMapper: CloudError
1499
+ }
1500
+ },
1501
+ queryParameters: [apiVersion],
1502
+ urlParameters: [
1503
+ $host,
1504
+ nextLink,
1505
+ subscriptionId,
1506
+ resourceGroupName
1507
+ ],
1508
+ headerParameters: [accept],
1509
+ serializer: serializer$1
1510
+ };
1511
+
1512
+ /*
1513
+ * Copyright (c) Microsoft Corporation.
1514
+ * Licensed under the MIT License.
1515
+ *
1516
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1517
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1518
+ */
1519
+ /// <reference lib="esnext.asynciterable" />
1520
+ /** Class containing RemoteRenderingAccounts operations. */
1521
+ class RemoteRenderingAccountsImpl {
1522
+ /**
1523
+ * Initialize a new instance of the class RemoteRenderingAccounts class.
1524
+ * @param client Reference to the service client
1525
+ */
1526
+ constructor(client) {
1527
+ this.client = client;
1528
+ }
1529
+ /**
1530
+ * List Remote Rendering Accounts by Subscription
1531
+ * @param options The options parameters.
1532
+ */
1533
+ listBySubscription(options) {
1534
+ const iter = this.listBySubscriptionPagingAll(options);
1535
+ return {
1536
+ next() {
1537
+ return iter.next();
1538
+ },
1539
+ [Symbol.asyncIterator]() {
1540
+ return this;
1541
+ },
1542
+ byPage: () => {
1543
+ return this.listBySubscriptionPagingPage(options);
1544
+ }
1545
+ };
1546
+ }
1547
+ listBySubscriptionPagingPage(options) {
1548
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1549
+ let result = yield tslib.__await(this._listBySubscription(options));
1550
+ yield yield tslib.__await(result.value || []);
1551
+ let continuationToken = result.nextLink;
1552
+ while (continuationToken) {
1553
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1554
+ continuationToken = result.nextLink;
1555
+ yield yield tslib.__await(result.value || []);
1556
+ }
1557
+ });
1558
+ }
1559
+ listBySubscriptionPagingAll(options) {
1560
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1561
+ var e_1, _a;
1562
+ try {
1563
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1564
+ const page = _c.value;
1565
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1566
+ }
1567
+ }
1568
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1569
+ finally {
1570
+ try {
1571
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1572
+ }
1573
+ finally { if (e_1) throw e_1.error; }
1574
+ }
1575
+ });
1576
+ }
1577
+ /**
1578
+ * List Resources by Resource Group
1579
+ * @param resourceGroupName Name of an Azure resource group.
1580
+ * @param options The options parameters.
1581
+ */
1582
+ listByResourceGroup(resourceGroupName, options) {
1583
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1584
+ return {
1585
+ next() {
1586
+ return iter.next();
1587
+ },
1588
+ [Symbol.asyncIterator]() {
1589
+ return this;
1590
+ },
1591
+ byPage: () => {
1592
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
1593
+ }
1594
+ };
1595
+ }
1596
+ listByResourceGroupPagingPage(resourceGroupName, options) {
1597
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1598
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1599
+ yield yield tslib.__await(result.value || []);
1600
+ let continuationToken = result.nextLink;
1601
+ while (continuationToken) {
1602
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1603
+ continuationToken = result.nextLink;
1604
+ yield yield tslib.__await(result.value || []);
1605
+ }
1606
+ });
1607
+ }
1608
+ listByResourceGroupPagingAll(resourceGroupName, options) {
1609
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1610
+ var e_2, _a;
1611
+ try {
1612
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1613
+ const page = _c.value;
1614
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1615
+ }
1616
+ }
1617
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1618
+ finally {
1619
+ try {
1620
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1621
+ }
1622
+ finally { if (e_2) throw e_2.error; }
1623
+ }
1624
+ });
1625
+ }
1626
+ /**
1627
+ * List Remote Rendering Accounts by Subscription
1628
+ * @param options The options parameters.
1629
+ */
1630
+ _listBySubscription(options) {
1631
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
1632
+ }
1633
+ /**
1634
+ * List Resources by Resource Group
1635
+ * @param resourceGroupName Name of an Azure resource group.
1636
+ * @param options The options parameters.
1637
+ */
1638
+ _listByResourceGroup(resourceGroupName, options) {
1639
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
1640
+ }
1641
+ /**
1642
+ * Delete a Remote Rendering Account.
1643
+ * @param resourceGroupName Name of an Azure resource group.
1644
+ * @param accountName Name of an Mixed Reality Account.
1645
+ * @param options The options parameters.
1646
+ */
1647
+ delete(resourceGroupName, accountName, options) {
1648
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec$1);
1649
+ }
1650
+ /**
1651
+ * Retrieve a Remote Rendering Account.
1652
+ * @param resourceGroupName Name of an Azure resource group.
1653
+ * @param accountName Name of an Mixed Reality Account.
1654
+ * @param options The options parameters.
1655
+ */
1656
+ get(resourceGroupName, accountName, options) {
1657
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec$1);
1658
+ }
1659
+ /**
1660
+ * Updating a Remote Rendering Account
1661
+ * @param resourceGroupName Name of an Azure resource group.
1662
+ * @param accountName Name of an Mixed Reality Account.
1663
+ * @param remoteRenderingAccount Remote Rendering Account parameter.
1664
+ * @param options The options parameters.
1665
+ */
1666
+ update(resourceGroupName, accountName, remoteRenderingAccount, options) {
1667
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, remoteRenderingAccount, options }, updateOperationSpec$1);
1668
+ }
1669
+ /**
1670
+ * Creating or Updating a Remote Rendering Account.
1671
+ * @param resourceGroupName Name of an Azure resource group.
1672
+ * @param accountName Name of an Mixed Reality Account.
1673
+ * @param remoteRenderingAccount Remote Rendering Account parameter.
1674
+ * @param options The options parameters.
1675
+ */
1676
+ create(resourceGroupName, accountName, remoteRenderingAccount, options) {
1677
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, remoteRenderingAccount, options }, createOperationSpec$1);
1678
+ }
1679
+ /**
1680
+ * List Both of the 2 Keys of a Remote Rendering Account
1681
+ * @param resourceGroupName Name of an Azure resource group.
1682
+ * @param accountName Name of an Mixed Reality Account.
1683
+ * @param options The options parameters.
1684
+ */
1685
+ listKeys(resourceGroupName, accountName, options) {
1686
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec$1);
1687
+ }
1688
+ /**
1689
+ * Regenerate specified Key of a Remote Rendering Account
1690
+ * @param resourceGroupName Name of an Azure resource group.
1691
+ * @param accountName Name of an Mixed Reality Account.
1692
+ * @param regenerate Required information for key regeneration.
1693
+ * @param options The options parameters.
1694
+ */
1695
+ regenerateKeys(resourceGroupName, accountName, regenerate, options) {
1696
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerate, options }, regenerateKeysOperationSpec$1);
1697
+ }
1698
+ /**
1699
+ * ListBySubscriptionNext
1700
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1701
+ * @param options The options parameters.
1702
+ */
1703
+ _listBySubscriptionNext(nextLink, options) {
1704
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
1705
+ }
1706
+ /**
1707
+ * ListByResourceGroupNext
1708
+ * @param resourceGroupName Name of an Azure resource group.
1709
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1710
+ * @param options The options parameters.
1711
+ */
1712
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1713
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
1714
+ }
1715
+ }
1716
+ // Operation Specifications
1717
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1718
+ const listBySubscriptionOperationSpec$1 = {
1719
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/remoteRenderingAccounts",
1720
+ httpMethod: "GET",
1721
+ responses: {
1722
+ 200: {
1723
+ bodyMapper: RemoteRenderingAccountPage
1724
+ },
1725
+ default: {
1726
+ bodyMapper: CloudError
1727
+ }
1728
+ },
1729
+ queryParameters: [apiVersion],
1730
+ urlParameters: [$host, subscriptionId],
1731
+ headerParameters: [accept],
1732
+ serializer: serializer$2
1733
+ };
1734
+ const listByResourceGroupOperationSpec$1 = {
1735
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts",
1736
+ httpMethod: "GET",
1737
+ responses: {
1738
+ 200: {
1739
+ bodyMapper: RemoteRenderingAccountPage
1740
+ },
1741
+ default: {
1742
+ bodyMapper: CloudError
1743
+ }
1744
+ },
1745
+ queryParameters: [apiVersion],
1746
+ urlParameters: [
1747
+ $host,
1748
+ subscriptionId,
1749
+ resourceGroupName
1750
+ ],
1751
+ headerParameters: [accept],
1752
+ serializer: serializer$2
1753
+ };
1754
+ const deleteOperationSpec$1 = {
1755
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
1756
+ httpMethod: "DELETE",
1757
+ responses: {
1758
+ 200: {},
1759
+ 204: {},
1760
+ default: {
1761
+ bodyMapper: CloudError
1762
+ }
1763
+ },
1764
+ queryParameters: [apiVersion],
1765
+ urlParameters: [
1766
+ $host,
1767
+ subscriptionId,
1768
+ resourceGroupName,
1769
+ accountName
1770
+ ],
1771
+ headerParameters: [accept],
1772
+ serializer: serializer$2
1773
+ };
1774
+ const getOperationSpec$1 = {
1775
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
1776
+ httpMethod: "GET",
1777
+ responses: {
1778
+ 200: {
1779
+ bodyMapper: RemoteRenderingAccount
1780
+ },
1781
+ default: {
1782
+ bodyMapper: CloudError
1783
+ }
1784
+ },
1785
+ queryParameters: [apiVersion],
1786
+ urlParameters: [
1787
+ $host,
1788
+ subscriptionId,
1789
+ resourceGroupName,
1790
+ accountName
1791
+ ],
1792
+ headerParameters: [accept],
1793
+ serializer: serializer$2
1794
+ };
1795
+ const updateOperationSpec$1 = {
1796
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
1797
+ httpMethod: "PATCH",
1798
+ responses: {
1799
+ 200: {
1800
+ bodyMapper: RemoteRenderingAccount
1801
+ },
1802
+ default: {
1803
+ bodyMapper: CloudError
1804
+ }
1805
+ },
1806
+ requestBody: remoteRenderingAccount,
1807
+ queryParameters: [apiVersion],
1808
+ urlParameters: [
1809
+ $host,
1810
+ subscriptionId,
1811
+ resourceGroupName,
1812
+ accountName
1813
+ ],
1814
+ headerParameters: [accept, contentType],
1815
+ mediaType: "json",
1816
+ serializer: serializer$2
1817
+ };
1818
+ const createOperationSpec$1 = {
1819
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
1820
+ httpMethod: "PUT",
1821
+ responses: {
1822
+ 200: {
1823
+ bodyMapper: RemoteRenderingAccount
1824
+ },
1825
+ 201: {
1826
+ bodyMapper: RemoteRenderingAccount
1827
+ },
1828
+ default: {
1829
+ bodyMapper: CloudError
1830
+ }
1831
+ },
1832
+ requestBody: remoteRenderingAccount,
1833
+ queryParameters: [apiVersion],
1834
+ urlParameters: [
1835
+ $host,
1836
+ subscriptionId,
1837
+ resourceGroupName,
1838
+ accountName
1839
+ ],
1840
+ headerParameters: [accept, contentType],
1841
+ mediaType: "json",
1842
+ serializer: serializer$2
1843
+ };
1844
+ const listKeysOperationSpec$1 = {
1845
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}/listKeys",
1846
+ httpMethod: "POST",
1847
+ responses: {
1848
+ 200: {
1849
+ bodyMapper: AccountKeys
1850
+ },
1851
+ default: {
1852
+ bodyMapper: CloudError
1853
+ }
1854
+ },
1855
+ queryParameters: [apiVersion],
1856
+ urlParameters: [
1857
+ $host,
1858
+ subscriptionId,
1859
+ resourceGroupName,
1860
+ accountName
1861
+ ],
1862
+ headerParameters: [accept],
1863
+ serializer: serializer$2
1864
+ };
1865
+ const regenerateKeysOperationSpec$1 = {
1866
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}/regenerateKeys",
1867
+ httpMethod: "POST",
1868
+ responses: {
1869
+ 200: {
1870
+ bodyMapper: AccountKeys
1871
+ },
1872
+ default: {
1873
+ bodyMapper: CloudError
1874
+ }
1875
+ },
1876
+ requestBody: regenerate,
1877
+ queryParameters: [apiVersion],
1878
+ urlParameters: [
1879
+ $host,
1880
+ subscriptionId,
1881
+ resourceGroupName,
1882
+ accountName
1883
+ ],
1884
+ headerParameters: [accept, contentType],
1885
+ mediaType: "json",
1886
+ serializer: serializer$2
1887
+ };
1888
+ const listBySubscriptionNextOperationSpec$1 = {
1889
+ path: "{nextLink}",
1890
+ httpMethod: "GET",
1891
+ responses: {
1892
+ 200: {
1893
+ bodyMapper: RemoteRenderingAccountPage
1894
+ },
1895
+ default: {
1896
+ bodyMapper: CloudError
1897
+ }
1898
+ },
1899
+ queryParameters: [apiVersion],
1900
+ urlParameters: [
1901
+ $host,
1902
+ nextLink,
1903
+ subscriptionId
1904
+ ],
1905
+ headerParameters: [accept],
1906
+ serializer: serializer$2
1907
+ };
1908
+ const listByResourceGroupNextOperationSpec$1 = {
1909
+ path: "{nextLink}",
1910
+ httpMethod: "GET",
1911
+ responses: {
1912
+ 200: {
1913
+ bodyMapper: RemoteRenderingAccountPage
1914
+ },
1915
+ default: {
1916
+ bodyMapper: CloudError
1917
+ }
1918
+ },
1919
+ queryParameters: [apiVersion],
1920
+ urlParameters: [
1921
+ $host,
1922
+ nextLink,
1923
+ subscriptionId,
1924
+ resourceGroupName
1925
+ ],
1926
+ headerParameters: [accept],
1927
+ serializer: serializer$2
1928
+ };
1929
+
1930
+ /*
1931
+ * Copyright (c) Microsoft Corporation.
1932
+ * Licensed under the MIT License.
1933
+ *
1934
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1935
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1936
+ */
1937
+ class MixedRealityClient extends coreClient.ServiceClient {
1938
+ /**
1939
+ * Initializes a new instance of the MixedRealityClient class.
1940
+ * @param credentials Subscription credentials which uniquely identify client subscription.
1941
+ * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
1942
+ * 00000000-0000-0000-0000-000000000000)
1943
+ * @param options The parameter options
1944
+ */
1945
+ constructor(credentials, subscriptionId, options) {
1946
+ if (credentials === undefined) {
1947
+ throw new Error("'credentials' cannot be null");
1948
+ }
1949
+ if (subscriptionId === undefined) {
1950
+ throw new Error("'subscriptionId' cannot be null");
1951
+ }
1952
+ // Initializing default values for options
1953
+ if (!options) {
1954
+ options = {};
1955
+ }
1956
+ const defaults = {
1957
+ requestContentType: "application/json; charset=utf-8",
1958
+ credential: credentials
1959
+ };
1960
+ const packageDetails = `azsdk-js-arm-mixedreality/4.0.1`;
1961
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1962
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1963
+ : `${packageDetails}`;
1964
+ if (!options.credentialScopes) {
1965
+ options.credentialScopes = ["https://management.azure.com/.default"];
1966
+ }
1967
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1968
+ userAgentPrefix
1969
+ }, baseUri: options.endpoint || "https://management.azure.com" });
1970
+ super(optionsWithDefaults);
1971
+ // Parameter assignments
1972
+ this.subscriptionId = subscriptionId;
1973
+ // Assigning values to Constant parameters
1974
+ this.$host = options.$host || "https://management.azure.com";
1975
+ this.apiVersion = options.apiVersion || "2021-01-01";
1976
+ this.operations = new OperationsImpl(this);
1977
+ this.spatialAnchorsAccounts = new SpatialAnchorsAccountsImpl(this);
1978
+ this.remoteRenderingAccounts = new RemoteRenderingAccountsImpl(this);
1979
+ }
1980
+ /**
1981
+ * Check Name Availability for local uniqueness
1982
+ * @param location The location in which uniqueness will be verified.
1983
+ * @param checkNameAvailability Check Name Availability Request.
1984
+ * @param options The options parameters.
1985
+ */
1986
+ checkNameAvailabilityLocal(location, checkNameAvailability, options) {
1987
+ return this.sendOperationRequest({ location, checkNameAvailability, options }, checkNameAvailabilityLocalOperationSpec);
1988
+ }
1989
+ }
1990
+ // Operation Specifications
1991
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
1992
+ const checkNameAvailabilityLocalOperationSpec = {
1993
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/locations/{location}/checkNameAvailability",
1994
+ httpMethod: "POST",
1995
+ responses: {
1996
+ 200: {
1997
+ bodyMapper: CheckNameAvailabilityResponse
1998
+ },
1999
+ default: {
2000
+ bodyMapper: CloudError
2001
+ }
2002
+ },
2003
+ requestBody: checkNameAvailability,
2004
+ queryParameters: [apiVersion],
2005
+ urlParameters: [
2006
+ $host,
2007
+ subscriptionId,
2008
+ location
2009
+ ],
2010
+ headerParameters: [accept, contentType],
2011
+ mediaType: "json",
2012
+ serializer: serializer$3
2013
+ };
2014
+
2015
+ exports.MixedRealityClient = MixedRealityClient;
2016
+ //# sourceMappingURL=index.js.map