@azure/arm-mixedreality 2.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +72 -73
  5. package/dist/index.js +2016 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts +2 -0
  10. package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts.map +1 -0
  11. package/dist-esm/samples-dev/checkLocalNameAvailability.js +34 -0
  12. package/dist-esm/samples-dev/checkLocalNameAvailability.js.map +1 -0
  13. package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts +2 -0
  14. package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/createRemoteRenderingAccount.js +35 -0
  16. package/dist-esm/samples-dev/createRemoteRenderingAccount.js.map +1 -0
  17. package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts +2 -0
  18. package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts.map +1 -0
  19. package/dist-esm/samples-dev/createSpatialAnchorAccount.js +34 -0
  20. package/dist-esm/samples-dev/createSpatialAnchorAccount.js.map +1 -0
  21. package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts +2 -0
  22. package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js +31 -0
  24. package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js.map +1 -0
  25. package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts +2 -0
  26. package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js +31 -0
  28. package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js.map +1 -0
  29. package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts +2 -0
  30. package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/getRemoteRenderingAccount.js +31 -0
  32. package/dist-esm/samples-dev/getRemoteRenderingAccount.js.map +1 -0
  33. package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts +2 -0
  34. package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts.map +1 -0
  35. package/dist-esm/samples-dev/getSpatialAnchorsAccount.js +31 -0
  36. package/dist-esm/samples-dev/getSpatialAnchorsAccount.js.map +1 -0
  37. package/dist-esm/samples-dev/listAvailableOperations.d.ts +2 -0
  38. package/dist-esm/samples-dev/listAvailableOperations.d.ts.map +1 -0
  39. package/dist-esm/samples-dev/listAvailableOperations.js +43 -0
  40. package/dist-esm/samples-dev/listAvailableOperations.js.map +1 -0
  41. package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts +2 -0
  42. package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js +31 -0
  44. package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js.map +1 -0
  45. package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts +2 -0
  46. package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js +44 -0
  48. package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js.map +1 -0
  49. package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts +2 -0
  50. package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts.map +1 -0
  51. package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js +43 -0
  52. package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js.map +1 -0
  53. package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts +2 -0
  54. package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js +31 -0
  56. package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js.map +1 -0
  57. package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts +2 -0
  58. package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js +44 -0
  60. package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js.map +1 -0
  61. package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts +2 -0
  62. package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js +43 -0
  64. package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js.map +1 -0
  65. package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts +2 -0
  66. package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js +32 -0
  68. package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js.map +1 -0
  69. package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts +2 -0
  70. package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js +32 -0
  72. package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js.map +1 -0
  73. package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts +2 -0
  74. package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts.map +1 -0
  75. package/dist-esm/samples-dev/updateRemoteRenderingAccount.js +36 -0
  76. package/dist-esm/samples-dev/updateRemoteRenderingAccount.js.map +1 -0
  77. package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts +2 -0
  78. package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts.map +1 -0
  79. package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js +35 -0
  80. package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js.map +1 -0
  81. package/dist-esm/src/index.d.ts +5 -0
  82. package/dist-esm/src/index.d.ts.map +1 -0
  83. package/dist-esm/src/index.js +12 -0
  84. package/dist-esm/src/index.js.map +1 -0
  85. package/dist-esm/src/mixedRealityClient.d.ts +28 -0
  86. package/dist-esm/src/mixedRealityClient.d.ts.map +1 -0
  87. package/dist-esm/src/mixedRealityClient.js +89 -0
  88. package/dist-esm/src/mixedRealityClient.js.map +1 -0
  89. package/dist-esm/src/models/index.d.ts +444 -0
  90. package/dist-esm/src/models/index.d.ts.map +1 -0
  91. package/dist-esm/src/models/index.js +22 -0
  92. package/dist-esm/src/models/index.js.map +1 -0
  93. package/dist-esm/src/models/mappers.d.ts +25 -0
  94. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  95. package/{esm → dist-esm/src}/models/mappers.js +473 -288
  96. package/dist-esm/src/models/mappers.js.map +1 -0
  97. package/dist-esm/src/models/parameters.d.ts +15 -0
  98. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  99. package/dist-esm/src/models/parameters.js +135 -0
  100. package/dist-esm/src/models/parameters.js.map +1 -0
  101. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  102. package/dist-esm/src/operations/index.d.ts.map +1 -0
  103. package/{esm → dist-esm/src}/operations/index.js +3 -5
  104. package/dist-esm/src/operations/index.js.map +1 -0
  105. package/dist-esm/src/operations/operations.d.ts +32 -0
  106. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  107. package/dist-esm/src/operations/operations.js +120 -0
  108. package/dist-esm/src/operations/operations.js.map +1 -0
  109. package/dist-esm/src/operations/remoteRenderingAccounts.d.ts +98 -0
  110. package/dist-esm/src/operations/remoteRenderingAccounts.d.ts.map +1 -0
  111. package/dist-esm/src/operations/remoteRenderingAccounts.js +422 -0
  112. package/dist-esm/src/operations/remoteRenderingAccounts.js.map +1 -0
  113. package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts +98 -0
  114. package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts.map +1 -0
  115. package/dist-esm/src/operations/spatialAnchorsAccounts.js +422 -0
  116. package/dist-esm/src/operations/spatialAnchorsAccounts.js.map +1 -0
  117. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  118. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  119. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  120. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  121. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  122. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  123. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  124. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  125. package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.d.ts +62 -0
  126. package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.d.ts.map +1 -0
  127. package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.js +9 -0
  128. package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.js.map +1 -0
  129. package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.d.ts +62 -0
  130. package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.d.ts.map +1 -0
  131. package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.js +9 -0
  132. package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.js.map +1 -0
  133. package/dist-esm/test/sampleTest.d.ts +2 -0
  134. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  135. package/dist-esm/test/sampleTest.js +40 -0
  136. package/dist-esm/test/sampleTest.js.map +1 -0
  137. package/package.json +75 -32
  138. package/review/arm-mixedreality.api.md +436 -0
  139. package/rollup.config.js +181 -30
  140. package/src/index.ts +12 -0
  141. package/src/mixedRealityClient.ts +104 -77
  142. package/src/models/index.ts +405 -735
  143. package/src/models/mappers.ts +478 -295
  144. package/src/models/parameters.ts +93 -47
  145. package/src/operations/index.ts +3 -5
  146. package/src/operations/operations.ts +87 -73
  147. package/src/operations/remoteRenderingAccounts.ts +321 -389
  148. package/src/operations/spatialAnchorsAccounts.ts +321 -389
  149. package/src/operationsInterfaces/index.ts +11 -0
  150. package/src/operationsInterfaces/operations.ts +22 -0
  151. package/src/operationsInterfaces/remoteRenderingAccounts.ts +119 -0
  152. package/src/operationsInterfaces/spatialAnchorsAccounts.ts +119 -0
  153. package/tsconfig.json +5 -4
  154. package/types/arm-mixedreality.d.ts +674 -0
  155. package/types/tsdoc-metadata.json +11 -0
  156. package/dist/arm-mixedreality.js +0 -1756
  157. package/dist/arm-mixedreality.js.map +0 -1
  158. package/dist/arm-mixedreality.min.js +0 -1
  159. package/dist/arm-mixedreality.min.js.map +0 -1
  160. package/esm/mixedRealityClient.d.ts +0 -42
  161. package/esm/mixedRealityClient.d.ts.map +0 -1
  162. package/esm/mixedRealityClient.js +0 -73
  163. package/esm/mixedRealityClient.js.map +0 -1
  164. package/esm/mixedRealityClientContext.d.ts +0 -16
  165. package/esm/mixedRealityClientContext.d.ts.map +0 -1
  166. package/esm/mixedRealityClientContext.js +0 -56
  167. package/esm/mixedRealityClientContext.js.map +0 -1
  168. package/esm/models/index.d.ts +0 -778
  169. package/esm/models/index.d.ts.map +0 -1
  170. package/esm/models/index.js +0 -8
  171. package/esm/models/index.js.map +0 -1
  172. package/esm/models/mappers.d.ts +0 -27
  173. package/esm/models/mappers.d.ts.map +0 -1
  174. package/esm/models/mappers.js.map +0 -1
  175. package/esm/models/operationsMappers.d.ts +0 -2
  176. package/esm/models/operationsMappers.d.ts.map +0 -1
  177. package/esm/models/operationsMappers.js +0 -9
  178. package/esm/models/operationsMappers.js.map +0 -1
  179. package/esm/models/parameters.d.ts +0 -10
  180. package/esm/models/parameters.d.ts.map +0 -1
  181. package/esm/models/parameters.js +0 -110
  182. package/esm/models/parameters.js.map +0 -1
  183. package/esm/models/remoteRenderingAccountsMappers.d.ts +0 -2
  184. package/esm/models/remoteRenderingAccountsMappers.d.ts.map +0 -1
  185. package/esm/models/remoteRenderingAccountsMappers.js +0 -9
  186. package/esm/models/remoteRenderingAccountsMappers.js.map +0 -1
  187. package/esm/models/spatialAnchorsAccountsMappers.d.ts +0 -2
  188. package/esm/models/spatialAnchorsAccountsMappers.d.ts.map +0 -1
  189. package/esm/models/spatialAnchorsAccountsMappers.js +0 -9
  190. package/esm/models/spatialAnchorsAccountsMappers.js.map +0 -1
  191. package/esm/operations/index.d.ts.map +0 -1
  192. package/esm/operations/index.js.map +0 -1
  193. package/esm/operations/operations.d.ts +0 -46
  194. package/esm/operations/operations.d.ts.map +0 -1
  195. package/esm/operations/operations.js +0 -77
  196. package/esm/operations/operations.js.map +0 -1
  197. package/esm/operations/remoteRenderingAccounts.d.ts +0 -217
  198. package/esm/operations/remoteRenderingAccounts.d.ts.map +0 -1
  199. package/esm/operations/remoteRenderingAccounts.js +0 -339
  200. package/esm/operations/remoteRenderingAccounts.js.map +0 -1
  201. package/esm/operations/spatialAnchorsAccounts.d.ts +0 -217
  202. package/esm/operations/spatialAnchorsAccounts.d.ts.map +0 -1
  203. package/esm/operations/spatialAnchorsAccounts.js +0 -339
  204. package/esm/operations/spatialAnchorsAccounts.js.map +0 -1
  205. package/src/mixedRealityClientContext.ts +0 -61
  206. package/src/models/operationsMappers.ts +0 -14
  207. package/src/models/remoteRenderingAccountsMappers.ts +0 -29
  208. package/src/models/spatialAnchorsAccountsMappers.ts +0 -29
@@ -1,145 +1,209 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/spatialAnchorsAccountsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SpatialAnchorsAccounts } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { MixedRealityClientContext } from "../mixedRealityClientContext";
14
+ import { MixedRealityClient } from "../mixedRealityClient";
15
+ import {
16
+ SpatialAnchorsAccount,
17
+ SpatialAnchorsAccountsListBySubscriptionNextOptionalParams,
18
+ SpatialAnchorsAccountsListBySubscriptionOptionalParams,
19
+ SpatialAnchorsAccountsListByResourceGroupNextOptionalParams,
20
+ SpatialAnchorsAccountsListByResourceGroupOptionalParams,
21
+ SpatialAnchorsAccountsListBySubscriptionResponse,
22
+ SpatialAnchorsAccountsListByResourceGroupResponse,
23
+ SpatialAnchorsAccountsDeleteOptionalParams,
24
+ SpatialAnchorsAccountsGetOptionalParams,
25
+ SpatialAnchorsAccountsGetResponse,
26
+ SpatialAnchorsAccountsUpdateOptionalParams,
27
+ SpatialAnchorsAccountsUpdateResponse,
28
+ SpatialAnchorsAccountsCreateOptionalParams,
29
+ SpatialAnchorsAccountsCreateResponse,
30
+ SpatialAnchorsAccountsListKeysOptionalParams,
31
+ SpatialAnchorsAccountsListKeysResponse,
32
+ AccountKeyRegenerateRequest,
33
+ SpatialAnchorsAccountsRegenerateKeysOptionalParams,
34
+ SpatialAnchorsAccountsRegenerateKeysResponse,
35
+ SpatialAnchorsAccountsListBySubscriptionNextResponse,
36
+ SpatialAnchorsAccountsListByResourceGroupNextResponse
37
+ } from "../models";
16
38
 
17
- /** Class representing a SpatialAnchorsAccounts. */
18
- export class SpatialAnchorsAccounts {
19
- private readonly client: MixedRealityClientContext;
39
+ /// <reference lib="esnext.asynciterable" />
40
+ /** Class containing SpatialAnchorsAccounts operations. */
41
+ export class SpatialAnchorsAccountsImpl implements SpatialAnchorsAccounts {
42
+ private readonly client: MixedRealityClient;
20
43
 
21
44
  /**
22
- * Create a SpatialAnchorsAccounts.
23
- * @param {MixedRealityClientContext} client Reference to the service client.
45
+ * Initialize a new instance of the class SpatialAnchorsAccounts class.
46
+ * @param client Reference to the service client
24
47
  */
25
- constructor(client: MixedRealityClientContext) {
48
+ constructor(client: MixedRealityClient) {
26
49
  this.client = client;
27
50
  }
28
51
 
29
52
  /**
30
53
  * List Spatial Anchors Accounts by Subscription
31
- * @param [options] The optional parameters
32
- * @returns Promise<Models.SpatialAnchorsAccountsListBySubscriptionResponse>
54
+ * @param options The options parameters.
33
55
  */
34
- listBySubscription(options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListBySubscriptionResponse>;
35
- /**
36
- * @param callback The callback
37
- */
38
- listBySubscription(callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
39
- /**
40
- * @param options The optional parameters
41
- * @param callback The callback
42
- */
43
- listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
44
- listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListBySubscriptionResponse> {
45
- return this.client.sendOperationRequest(
46
- {
47
- options
56
+ public listBySubscription(
57
+ options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
58
+ ): PagedAsyncIterableIterator<SpatialAnchorsAccount> {
59
+ const iter = this.listBySubscriptionPagingAll(options);
60
+ return {
61
+ next() {
62
+ return iter.next();
63
+ },
64
+ [Symbol.asyncIterator]() {
65
+ return this;
48
66
  },
49
- listBySubscriptionOperationSpec,
50
- callback) as Promise<Models.SpatialAnchorsAccountsListBySubscriptionResponse>;
67
+ byPage: () => {
68
+ return this.listBySubscriptionPagingPage(options);
69
+ }
70
+ };
71
+ }
72
+
73
+ private async *listBySubscriptionPagingPage(
74
+ options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
75
+ ): AsyncIterableIterator<SpatialAnchorsAccount[]> {
76
+ let result = await this._listBySubscription(options);
77
+ yield result.value || [];
78
+ let continuationToken = result.nextLink;
79
+ while (continuationToken) {
80
+ result = await this._listBySubscriptionNext(continuationToken, options);
81
+ continuationToken = result.nextLink;
82
+ yield result.value || [];
83
+ }
84
+ }
85
+
86
+ private async *listBySubscriptionPagingAll(
87
+ options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
88
+ ): AsyncIterableIterator<SpatialAnchorsAccount> {
89
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
90
+ yield* page;
91
+ }
51
92
  }
52
93
 
53
94
  /**
54
95
  * List Resources by Resource Group
55
96
  * @param resourceGroupName Name of an Azure resource group.
56
- * @param [options] The optional parameters
57
- * @returns Promise<Models.SpatialAnchorsAccountsListByResourceGroupResponse>
58
- */
59
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListByResourceGroupResponse>;
60
- /**
61
- * @param resourceGroupName Name of an Azure resource group.
62
- * @param callback The callback
97
+ * @param options The options parameters.
63
98
  */
64
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
65
- /**
66
- * @param resourceGroupName Name of an Azure resource group.
67
- * @param options The optional parameters
68
- * @param callback The callback
69
- */
70
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
71
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListByResourceGroupResponse> {
72
- return this.client.sendOperationRequest(
73
- {
99
+ public listByResourceGroup(
100
+ resourceGroupName: string,
101
+ options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
102
+ ): PagedAsyncIterableIterator<SpatialAnchorsAccount> {
103
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
104
+ return {
105
+ next() {
106
+ return iter.next();
107
+ },
108
+ [Symbol.asyncIterator]() {
109
+ return this;
110
+ },
111
+ byPage: () => {
112
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
113
+ }
114
+ };
115
+ }
116
+
117
+ private async *listByResourceGroupPagingPage(
118
+ resourceGroupName: string,
119
+ options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
120
+ ): AsyncIterableIterator<SpatialAnchorsAccount[]> {
121
+ let result = await this._listByResourceGroup(resourceGroupName, options);
122
+ yield result.value || [];
123
+ let continuationToken = result.nextLink;
124
+ while (continuationToken) {
125
+ result = await this._listByResourceGroupNext(
74
126
  resourceGroupName,
127
+ continuationToken,
75
128
  options
76
- },
77
- listByResourceGroupOperationSpec,
78
- callback) as Promise<Models.SpatialAnchorsAccountsListByResourceGroupResponse>;
129
+ );
130
+ continuationToken = result.nextLink;
131
+ yield result.value || [];
132
+ }
133
+ }
134
+
135
+ private async *listByResourceGroupPagingAll(
136
+ resourceGroupName: string,
137
+ options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
138
+ ): AsyncIterableIterator<SpatialAnchorsAccount> {
139
+ for await (const page of this.listByResourceGroupPagingPage(
140
+ resourceGroupName,
141
+ options
142
+ )) {
143
+ yield* page;
144
+ }
79
145
  }
80
146
 
81
147
  /**
82
- * Delete a Spatial Anchors Account.
83
- * @param resourceGroupName Name of an Azure resource group.
84
- * @param accountName Name of an Mixed Reality Account.
85
- * @param [options] The optional parameters
86
- * @returns Promise<msRest.RestResponse>
148
+ * List Spatial Anchors Accounts by Subscription
149
+ * @param options The options parameters.
87
150
  */
88
- deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
151
+ private _listBySubscription(
152
+ options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
153
+ ): Promise<SpatialAnchorsAccountsListBySubscriptionResponse> {
154
+ return this.client.sendOperationRequest(
155
+ { options },
156
+ listBySubscriptionOperationSpec
157
+ );
158
+ }
159
+
89
160
  /**
161
+ * List Resources by Resource Group
90
162
  * @param resourceGroupName Name of an Azure resource group.
91
- * @param accountName Name of an Mixed Reality Account.
92
- * @param callback The callback
163
+ * @param options The options parameters.
93
164
  */
94
- deleteMethod(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<void>): void;
165
+ private _listByResourceGroup(
166
+ resourceGroupName: string,
167
+ options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
168
+ ): Promise<SpatialAnchorsAccountsListByResourceGroupResponse> {
169
+ return this.client.sendOperationRequest(
170
+ { resourceGroupName, options },
171
+ listByResourceGroupOperationSpec
172
+ );
173
+ }
174
+
95
175
  /**
176
+ * Delete a Spatial Anchors Account.
96
177
  * @param resourceGroupName Name of an Azure resource group.
97
178
  * @param accountName Name of an Mixed Reality Account.
98
- * @param options The optional parameters
99
- * @param callback The callback
179
+ * @param options The options parameters.
100
180
  */
101
- deleteMethod(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
102
- deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
181
+ delete(
182
+ resourceGroupName: string,
183
+ accountName: string,
184
+ options?: SpatialAnchorsAccountsDeleteOptionalParams
185
+ ): Promise<void> {
103
186
  return this.client.sendOperationRequest(
104
- {
105
- resourceGroupName,
106
- accountName,
107
- options
108
- },
109
- deleteMethodOperationSpec,
110
- callback);
187
+ { resourceGroupName, accountName, options },
188
+ deleteOperationSpec
189
+ );
111
190
  }
112
191
 
113
192
  /**
114
193
  * Retrieve a Spatial Anchors Account.
115
194
  * @param resourceGroupName Name of an Azure resource group.
116
195
  * @param accountName Name of an Mixed Reality Account.
117
- * @param [options] The optional parameters
118
- * @returns Promise<Models.SpatialAnchorsAccountsGetResponse>
119
- */
120
- get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsGetResponse>;
121
- /**
122
- * @param resourceGroupName Name of an Azure resource group.
123
- * @param accountName Name of an Mixed Reality Account.
124
- * @param callback The callback
196
+ * @param options The options parameters.
125
197
  */
126
- get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
127
- /**
128
- * @param resourceGroupName Name of an Azure resource group.
129
- * @param accountName Name of an Mixed Reality Account.
130
- * @param options The optional parameters
131
- * @param callback The callback
132
- */
133
- get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
134
- get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsGetResponse> {
198
+ get(
199
+ resourceGroupName: string,
200
+ accountName: string,
201
+ options?: SpatialAnchorsAccountsGetOptionalParams
202
+ ): Promise<SpatialAnchorsAccountsGetResponse> {
135
203
  return this.client.sendOperationRequest(
136
- {
137
- resourceGroupName,
138
- accountName,
139
- options
140
- },
141
- getOperationSpec,
142
- callback) as Promise<Models.SpatialAnchorsAccountsGetResponse>;
204
+ { resourceGroupName, accountName, options },
205
+ getOperationSpec
206
+ );
143
207
  }
144
208
 
145
209
  /**
@@ -147,35 +211,18 @@ export class SpatialAnchorsAccounts {
147
211
  * @param resourceGroupName Name of an Azure resource group.
148
212
  * @param accountName Name of an Mixed Reality Account.
149
213
  * @param spatialAnchorsAccount Spatial Anchors Account parameter.
150
- * @param [options] The optional parameters
151
- * @returns Promise<Models.SpatialAnchorsAccountsUpdateResponse>
214
+ * @param options The options parameters.
152
215
  */
153
- update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsUpdateResponse>;
154
- /**
155
- * @param resourceGroupName Name of an Azure resource group.
156
- * @param accountName Name of an Mixed Reality Account.
157
- * @param spatialAnchorsAccount Spatial Anchors Account parameter.
158
- * @param callback The callback
159
- */
160
- update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
161
- /**
162
- * @param resourceGroupName Name of an Azure resource group.
163
- * @param accountName Name of an Mixed Reality Account.
164
- * @param spatialAnchorsAccount Spatial Anchors Account parameter.
165
- * @param options The optional parameters
166
- * @param callback The callback
167
- */
168
- update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
169
- update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsUpdateResponse> {
216
+ update(
217
+ resourceGroupName: string,
218
+ accountName: string,
219
+ spatialAnchorsAccount: SpatialAnchorsAccount,
220
+ options?: SpatialAnchorsAccountsUpdateOptionalParams
221
+ ): Promise<SpatialAnchorsAccountsUpdateResponse> {
170
222
  return this.client.sendOperationRequest(
171
- {
172
- resourceGroupName,
173
- accountName,
174
- spatialAnchorsAccount,
175
- options
176
- },
177
- updateOperationSpec,
178
- callback) as Promise<Models.SpatialAnchorsAccountsUpdateResponse>;
223
+ { resourceGroupName, accountName, spatialAnchorsAccount, options },
224
+ updateOperationSpec
225
+ );
179
226
  }
180
227
 
181
228
  /**
@@ -183,67 +230,35 @@ export class SpatialAnchorsAccounts {
183
230
  * @param resourceGroupName Name of an Azure resource group.
184
231
  * @param accountName Name of an Mixed Reality Account.
185
232
  * @param spatialAnchorsAccount Spatial Anchors Account parameter.
186
- * @param [options] The optional parameters
187
- * @returns Promise<Models.SpatialAnchorsAccountsCreateResponse>
188
- */
189
- create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsCreateResponse>;
190
- /**
191
- * @param resourceGroupName Name of an Azure resource group.
192
- * @param accountName Name of an Mixed Reality Account.
193
- * @param spatialAnchorsAccount Spatial Anchors Account parameter.
194
- * @param callback The callback
195
- */
196
- create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
197
- /**
198
- * @param resourceGroupName Name of an Azure resource group.
199
- * @param accountName Name of an Mixed Reality Account.
200
- * @param spatialAnchorsAccount Spatial Anchors Account parameter.
201
- * @param options The optional parameters
202
- * @param callback The callback
233
+ * @param options The options parameters.
203
234
  */
204
- create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
205
- create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsCreateResponse> {
235
+ create(
236
+ resourceGroupName: string,
237
+ accountName: string,
238
+ spatialAnchorsAccount: SpatialAnchorsAccount,
239
+ options?: SpatialAnchorsAccountsCreateOptionalParams
240
+ ): Promise<SpatialAnchorsAccountsCreateResponse> {
206
241
  return this.client.sendOperationRequest(
207
- {
208
- resourceGroupName,
209
- accountName,
210
- spatialAnchorsAccount,
211
- options
212
- },
213
- createOperationSpec,
214
- callback) as Promise<Models.SpatialAnchorsAccountsCreateResponse>;
242
+ { resourceGroupName, accountName, spatialAnchorsAccount, options },
243
+ createOperationSpec
244
+ );
215
245
  }
216
246
 
217
247
  /**
218
248
  * List Both of the 2 Keys of a Spatial Anchors Account
219
249
  * @param resourceGroupName Name of an Azure resource group.
220
250
  * @param accountName Name of an Mixed Reality Account.
221
- * @param [options] The optional parameters
222
- * @returns Promise<Models.SpatialAnchorsAccountsListKeysResponse>
251
+ * @param options The options parameters.
223
252
  */
224
- listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListKeysResponse>;
225
- /**
226
- * @param resourceGroupName Name of an Azure resource group.
227
- * @param accountName Name of an Mixed Reality Account.
228
- * @param callback The callback
229
- */
230
- listKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
231
- /**
232
- * @param resourceGroupName Name of an Azure resource group.
233
- * @param accountName Name of an Mixed Reality Account.
234
- * @param options The optional parameters
235
- * @param callback The callback
236
- */
237
- listKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
238
- listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccountKeys>, callback?: msRest.ServiceCallback<Models.AccountKeys>): Promise<Models.SpatialAnchorsAccountsListKeysResponse> {
253
+ listKeys(
254
+ resourceGroupName: string,
255
+ accountName: string,
256
+ options?: SpatialAnchorsAccountsListKeysOptionalParams
257
+ ): Promise<SpatialAnchorsAccountsListKeysResponse> {
239
258
  return this.client.sendOperationRequest(
240
- {
241
- resourceGroupName,
242
- accountName,
243
- options
244
- },
245
- listKeysOperationSpec,
246
- callback) as Promise<Models.SpatialAnchorsAccountsListKeysResponse>;
259
+ { resourceGroupName, accountName, options },
260
+ listKeysOperationSpec
261
+ );
247
262
  }
248
263
 
249
264
  /**
@@ -251,108 +266,59 @@ export class SpatialAnchorsAccounts {
251
266
  * @param resourceGroupName Name of an Azure resource group.
252
267
  * @param accountName Name of an Mixed Reality Account.
253
268
  * @param regenerate Required information for key regeneration.
254
- * @param [options] The optional parameters
255
- * @returns Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse>
256
- */
257
- regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse>;
258
- /**
259
- * @param resourceGroupName Name of an Azure resource group.
260
- * @param accountName Name of an Mixed Reality Account.
261
- * @param regenerate Required information for key regeneration.
262
- * @param callback The callback
269
+ * @param options The options parameters.
263
270
  */
264
- regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
265
- /**
266
- * @param resourceGroupName Name of an Azure resource group.
267
- * @param accountName Name of an Mixed Reality Account.
268
- * @param regenerate Required information for key regeneration.
269
- * @param options The optional parameters
270
- * @param callback The callback
271
- */
272
- regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
273
- regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccountKeys>, callback?: msRest.ServiceCallback<Models.AccountKeys>): Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse> {
271
+ regenerateKeys(
272
+ resourceGroupName: string,
273
+ accountName: string,
274
+ regenerate: AccountKeyRegenerateRequest,
275
+ options?: SpatialAnchorsAccountsRegenerateKeysOptionalParams
276
+ ): Promise<SpatialAnchorsAccountsRegenerateKeysResponse> {
274
277
  return this.client.sendOperationRequest(
275
- {
276
- resourceGroupName,
277
- accountName,
278
- regenerate,
279
- options
280
- },
281
- regenerateKeysOperationSpec,
282
- callback) as Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse>;
278
+ { resourceGroupName, accountName, regenerate, options },
279
+ regenerateKeysOperationSpec
280
+ );
283
281
  }
284
282
 
285
283
  /**
286
- * List Spatial Anchors Accounts by Subscription
287
- * @param nextPageLink The NextLink from the previous successful call to List operation.
288
- * @param [options] The optional parameters
289
- * @returns Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse>
290
- */
291
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse>;
292
- /**
293
- * @param nextPageLink The NextLink from the previous successful call to List operation.
294
- * @param callback The callback
295
- */
296
- listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
297
- /**
298
- * @param nextPageLink The NextLink from the previous successful call to List operation.
299
- * @param options The optional parameters
300
- * @param callback The callback
284
+ * ListBySubscriptionNext
285
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
286
+ * @param options The options parameters.
301
287
  */
302
- listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
303
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse> {
288
+ private _listBySubscriptionNext(
289
+ nextLink: string,
290
+ options?: SpatialAnchorsAccountsListBySubscriptionNextOptionalParams
291
+ ): Promise<SpatialAnchorsAccountsListBySubscriptionNextResponse> {
304
292
  return this.client.sendOperationRequest(
305
- {
306
- nextPageLink,
307
- options
308
- },
309
- listBySubscriptionNextOperationSpec,
310
- callback) as Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse>;
293
+ { nextLink, options },
294
+ listBySubscriptionNextOperationSpec
295
+ );
311
296
  }
312
297
 
313
298
  /**
314
- * List Resources by Resource Group
315
- * @param nextPageLink The NextLink from the previous successful call to List operation.
316
- * @param [options] The optional parameters
317
- * @returns Promise<Models.SpatialAnchorsAccountsListByResourceGroupNextResponse>
318
- */
319
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListByResourceGroupNextResponse>;
320
- /**
321
- * @param nextPageLink The NextLink from the previous successful call to List operation.
322
- * @param callback The callback
323
- */
324
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
325
- /**
326
- * @param nextPageLink The NextLink from the previous successful call to List operation.
327
- * @param options The optional parameters
328
- * @param callback The callback
299
+ * ListByResourceGroupNext
300
+ * @param resourceGroupName Name of an Azure resource group.
301
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
302
+ * @param options The options parameters.
329
303
  */
330
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
331
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListByResourceGroupNextResponse> {
304
+ private _listByResourceGroupNext(
305
+ resourceGroupName: string,
306
+ nextLink: string,
307
+ options?: SpatialAnchorsAccountsListByResourceGroupNextOptionalParams
308
+ ): Promise<SpatialAnchorsAccountsListByResourceGroupNextResponse> {
332
309
  return this.client.sendOperationRequest(
333
- {
334
- nextPageLink,
335
- options
336
- },
337
- listByResourceGroupNextOperationSpec,
338
- callback) as Promise<Models.SpatialAnchorsAccountsListByResourceGroupNextResponse>;
310
+ { resourceGroupName, nextLink, options },
311
+ listByResourceGroupNextOperationSpec
312
+ );
339
313
  }
340
314
  }
341
-
342
315
  // Operation Specifications
343
- const serializer = new msRest.Serializer(Mappers);
344
- const listBySubscriptionOperationSpec: msRest.OperationSpec = {
316
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
317
+
318
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
319
+ path:
320
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
345
321
  httpMethod: "GET",
346
- path: "subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
347
- urlParameters: [
348
- Parameters.subscriptionId
349
- ],
350
- queryParameters: [
351
- Parameters.apiVersion0
352
- ],
353
- headerParameters: [
354
- Parameters.acceptLanguage
355
- ],
356
322
  responses: {
357
323
  200: {
358
324
  bodyMapper: Mappers.SpatialAnchorsAccountPage
@@ -361,22 +327,15 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
361
327
  bodyMapper: Mappers.CloudError
362
328
  }
363
329
  },
330
+ queryParameters: [Parameters.apiVersion],
331
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
332
+ headerParameters: [Parameters.accept],
364
333
  serializer
365
334
  };
366
-
367
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
335
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
336
+ path:
337
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
368
338
  httpMethod: "GET",
369
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
370
- urlParameters: [
371
- Parameters.subscriptionId,
372
- Parameters.resourceGroupName
373
- ],
374
- queryParameters: [
375
- Parameters.apiVersion0
376
- ],
377
- headerParameters: [
378
- Parameters.acceptLanguage
379
- ],
380
339
  responses: {
381
340
  200: {
382
341
  bodyMapper: Mappers.SpatialAnchorsAccountPage
@@ -385,23 +344,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
385
344
  bodyMapper: Mappers.CloudError
386
345
  }
387
346
  },
388
- serializer
389
- };
390
-
391
- const deleteMethodOperationSpec: msRest.OperationSpec = {
392
- httpMethod: "DELETE",
393
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
347
+ queryParameters: [Parameters.apiVersion],
394
348
  urlParameters: [
349
+ Parameters.$host,
395
350
  Parameters.subscriptionId,
396
- Parameters.resourceGroupName,
397
- Parameters.accountName
398
- ],
399
- queryParameters: [
400
- Parameters.apiVersion0
401
- ],
402
- headerParameters: [
403
- Parameters.acceptLanguage
351
+ Parameters.resourceGroupName
404
352
  ],
353
+ headerParameters: [Parameters.accept],
354
+ serializer
355
+ };
356
+ const deleteOperationSpec: coreClient.OperationSpec = {
357
+ path:
358
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
359
+ httpMethod: "DELETE",
405
360
  responses: {
406
361
  200: {},
407
362
  204: {},
@@ -409,23 +364,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
409
364
  bodyMapper: Mappers.CloudError
410
365
  }
411
366
  },
412
- serializer
413
- };
414
-
415
- const getOperationSpec: msRest.OperationSpec = {
416
- httpMethod: "GET",
417
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
367
+ queryParameters: [Parameters.apiVersion],
418
368
  urlParameters: [
369
+ Parameters.$host,
419
370
  Parameters.subscriptionId,
420
371
  Parameters.resourceGroupName,
421
372
  Parameters.accountName
422
373
  ],
423
- queryParameters: [
424
- Parameters.apiVersion0
425
- ],
426
- headerParameters: [
427
- Parameters.acceptLanguage
428
- ],
374
+ headerParameters: [Parameters.accept],
375
+ serializer
376
+ };
377
+ const getOperationSpec: coreClient.OperationSpec = {
378
+ path:
379
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
380
+ httpMethod: "GET",
429
381
  responses: {
430
382
  200: {
431
383
  bodyMapper: Mappers.SpatialAnchorsAccount
@@ -434,30 +386,20 @@ const getOperationSpec: msRest.OperationSpec = {
434
386
  bodyMapper: Mappers.CloudError
435
387
  }
436
388
  },
437
- serializer
438
- };
439
-
440
- const updateOperationSpec: msRest.OperationSpec = {
441
- httpMethod: "PATCH",
442
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
389
+ queryParameters: [Parameters.apiVersion],
443
390
  urlParameters: [
391
+ Parameters.$host,
444
392
  Parameters.subscriptionId,
445
393
  Parameters.resourceGroupName,
446
394
  Parameters.accountName
447
395
  ],
448
- queryParameters: [
449
- Parameters.apiVersion0
450
- ],
451
- headerParameters: [
452
- Parameters.acceptLanguage
453
- ],
454
- requestBody: {
455
- parameterPath: "spatialAnchorsAccount",
456
- mapper: {
457
- ...Mappers.SpatialAnchorsAccount,
458
- required: true
459
- }
460
- },
396
+ headerParameters: [Parameters.accept],
397
+ serializer
398
+ };
399
+ const updateOperationSpec: coreClient.OperationSpec = {
400
+ path:
401
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
402
+ httpMethod: "PATCH",
461
403
  responses: {
462
404
  200: {
463
405
  bodyMapper: Mappers.SpatialAnchorsAccount
@@ -466,30 +408,22 @@ const updateOperationSpec: msRest.OperationSpec = {
466
408
  bodyMapper: Mappers.CloudError
467
409
  }
468
410
  },
469
- serializer
470
- };
471
-
472
- const createOperationSpec: msRest.OperationSpec = {
473
- httpMethod: "PUT",
474
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
411
+ requestBody: Parameters.spatialAnchorsAccount,
412
+ queryParameters: [Parameters.apiVersion],
475
413
  urlParameters: [
414
+ Parameters.$host,
476
415
  Parameters.subscriptionId,
477
416
  Parameters.resourceGroupName,
478
417
  Parameters.accountName
479
418
  ],
480
- queryParameters: [
481
- Parameters.apiVersion0
482
- ],
483
- headerParameters: [
484
- Parameters.acceptLanguage
485
- ],
486
- requestBody: {
487
- parameterPath: "spatialAnchorsAccount",
488
- mapper: {
489
- ...Mappers.SpatialAnchorsAccount,
490
- required: true
491
- }
492
- },
419
+ headerParameters: [Parameters.accept, Parameters.contentType],
420
+ mediaType: "json",
421
+ serializer
422
+ };
423
+ const createOperationSpec: coreClient.OperationSpec = {
424
+ path:
425
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
426
+ httpMethod: "PUT",
493
427
  responses: {
494
428
  200: {
495
429
  bodyMapper: Mappers.SpatialAnchorsAccount
@@ -501,23 +435,22 @@ const createOperationSpec: msRest.OperationSpec = {
501
435
  bodyMapper: Mappers.CloudError
502
436
  }
503
437
  },
504
- serializer
505
- };
506
-
507
- const listKeysOperationSpec: msRest.OperationSpec = {
508
- httpMethod: "POST",
509
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys",
438
+ requestBody: Parameters.spatialAnchorsAccount,
439
+ queryParameters: [Parameters.apiVersion],
510
440
  urlParameters: [
441
+ Parameters.$host,
511
442
  Parameters.subscriptionId,
512
443
  Parameters.resourceGroupName,
513
444
  Parameters.accountName
514
445
  ],
515
- queryParameters: [
516
- Parameters.apiVersion0
517
- ],
518
- headerParameters: [
519
- Parameters.acceptLanguage
520
- ],
446
+ headerParameters: [Parameters.accept, Parameters.contentType],
447
+ mediaType: "json",
448
+ serializer
449
+ };
450
+ const listKeysOperationSpec: coreClient.OperationSpec = {
451
+ path:
452
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys",
453
+ httpMethod: "POST",
521
454
  responses: {
522
455
  200: {
523
456
  bodyMapper: Mappers.AccountKeys
@@ -526,30 +459,20 @@ const listKeysOperationSpec: msRest.OperationSpec = {
526
459
  bodyMapper: Mappers.CloudError
527
460
  }
528
461
  },
529
- serializer
530
- };
531
-
532
- const regenerateKeysOperationSpec: msRest.OperationSpec = {
533
- httpMethod: "POST",
534
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys",
462
+ queryParameters: [Parameters.apiVersion],
535
463
  urlParameters: [
464
+ Parameters.$host,
536
465
  Parameters.subscriptionId,
537
466
  Parameters.resourceGroupName,
538
467
  Parameters.accountName
539
468
  ],
540
- queryParameters: [
541
- Parameters.apiVersion0
542
- ],
543
- headerParameters: [
544
- Parameters.acceptLanguage
545
- ],
546
- requestBody: {
547
- parameterPath: "regenerate",
548
- mapper: {
549
- ...Mappers.AccountKeyRegenerateRequest,
550
- required: true
551
- }
552
- },
469
+ headerParameters: [Parameters.accept],
470
+ serializer
471
+ };
472
+ const regenerateKeysOperationSpec: coreClient.OperationSpec = {
473
+ path:
474
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys",
475
+ httpMethod: "POST",
553
476
  responses: {
554
477
  200: {
555
478
  bodyMapper: Mappers.AccountKeys
@@ -558,19 +481,21 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = {
558
481
  bodyMapper: Mappers.CloudError
559
482
  }
560
483
  },
484
+ requestBody: Parameters.regenerate,
485
+ queryParameters: [Parameters.apiVersion],
486
+ urlParameters: [
487
+ Parameters.$host,
488
+ Parameters.subscriptionId,
489
+ Parameters.resourceGroupName,
490
+ Parameters.accountName
491
+ ],
492
+ headerParameters: [Parameters.accept, Parameters.contentType],
493
+ mediaType: "json",
561
494
  serializer
562
495
  };
563
-
564
- const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
565
- httpMethod: "GET",
566
- baseUrl: "https://management.azure.com",
496
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
567
497
  path: "{nextLink}",
568
- urlParameters: [
569
- Parameters.nextPageLink
570
- ],
571
- headerParameters: [
572
- Parameters.acceptLanguage
573
- ],
498
+ httpMethod: "GET",
574
499
  responses: {
575
500
  200: {
576
501
  bodyMapper: Mappers.SpatialAnchorsAccountPage
@@ -579,19 +504,18 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
579
504
  bodyMapper: Mappers.CloudError
580
505
  }
581
506
  },
507
+ queryParameters: [Parameters.apiVersion],
508
+ urlParameters: [
509
+ Parameters.$host,
510
+ Parameters.nextLink,
511
+ Parameters.subscriptionId
512
+ ],
513
+ headerParameters: [Parameters.accept],
582
514
  serializer
583
515
  };
584
-
585
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
586
- httpMethod: "GET",
587
- baseUrl: "https://management.azure.com",
516
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
588
517
  path: "{nextLink}",
589
- urlParameters: [
590
- Parameters.nextPageLink
591
- ],
592
- headerParameters: [
593
- Parameters.acceptLanguage
594
- ],
518
+ httpMethod: "GET",
595
519
  responses: {
596
520
  200: {
597
521
  bodyMapper: Mappers.SpatialAnchorsAccountPage
@@ -600,5 +524,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
600
524
  bodyMapper: Mappers.CloudError
601
525
  }
602
526
  },
527
+ queryParameters: [Parameters.apiVersion],
528
+ urlParameters: [
529
+ Parameters.$host,
530
+ Parameters.nextLink,
531
+ Parameters.subscriptionId,
532
+ Parameters.resourceGroupName
533
+ ],
534
+ headerParameters: [Parameters.accept],
603
535
  serializer
604
536
  };