@azure/arm-mixedreality 3.1.1 → 4.0.1-alpha.20220201.1

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