@azure/arm-mixedreality 4.0.1 → 4.1.0-alpha.20220427.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +12 -1
  3. package/dist/index.js +667 -105
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/checkNameAvailabilityLocalSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/checkNameAvailabilityLocalSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/checkNameAvailabilityLocalSample.js +34 -0
  10. package/dist-esm/samples-dev/checkNameAvailabilityLocalSample.js.map +1 -0
  11. package/dist-esm/samples-dev/objectAnchorsAccountsCreateSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/objectAnchorsAccountsCreateSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/objectAnchorsAccountsCreateSample.js +35 -0
  14. package/dist-esm/samples-dev/objectAnchorsAccountsCreateSample.js.map +1 -0
  15. package/dist-esm/samples-dev/objectAnchorsAccountsDeleteSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/objectAnchorsAccountsDeleteSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/objectAnchorsAccountsDeleteSample.js +31 -0
  18. package/dist-esm/samples-dev/objectAnchorsAccountsDeleteSample.js.map +1 -0
  19. package/dist-esm/samples-dev/objectAnchorsAccountsGetSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/objectAnchorsAccountsGetSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/objectAnchorsAccountsGetSample.js +31 -0
  22. package/dist-esm/samples-dev/objectAnchorsAccountsGetSample.js.map +1 -0
  23. package/dist-esm/samples-dev/objectAnchorsAccountsListByResourceGroupSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/objectAnchorsAccountsListByResourceGroupSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/objectAnchorsAccountsListByResourceGroupSample.js +44 -0
  26. package/dist-esm/samples-dev/objectAnchorsAccountsListByResourceGroupSample.js.map +1 -0
  27. package/dist-esm/samples-dev/objectAnchorsAccountsListBySubscriptionSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/objectAnchorsAccountsListBySubscriptionSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/objectAnchorsAccountsListBySubscriptionSample.js +43 -0
  30. package/dist-esm/samples-dev/objectAnchorsAccountsListBySubscriptionSample.js.map +1 -0
  31. package/dist-esm/samples-dev/objectAnchorsAccountsListKeysSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/objectAnchorsAccountsListKeysSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/objectAnchorsAccountsListKeysSample.js +31 -0
  34. package/dist-esm/samples-dev/objectAnchorsAccountsListKeysSample.js.map +1 -0
  35. package/dist-esm/samples-dev/objectAnchorsAccountsRegenerateKeysSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/objectAnchorsAccountsRegenerateKeysSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/objectAnchorsAccountsRegenerateKeysSample.js +32 -0
  38. package/dist-esm/samples-dev/objectAnchorsAccountsRegenerateKeysSample.js.map +1 -0
  39. package/dist-esm/samples-dev/objectAnchorsAccountsUpdateSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/objectAnchorsAccountsUpdateSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/objectAnchorsAccountsUpdateSample.js +36 -0
  42. package/dist-esm/samples-dev/objectAnchorsAccountsUpdateSample.js.map +1 -0
  43. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  46. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  47. package/dist-esm/samples-dev/remoteRenderingAccountsCreateSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/remoteRenderingAccountsCreateSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/remoteRenderingAccountsCreateSample.js +35 -0
  50. package/dist-esm/samples-dev/remoteRenderingAccountsCreateSample.js.map +1 -0
  51. package/dist-esm/samples-dev/remoteRenderingAccountsDeleteSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/remoteRenderingAccountsDeleteSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/remoteRenderingAccountsDeleteSample.js +31 -0
  54. package/dist-esm/samples-dev/remoteRenderingAccountsDeleteSample.js.map +1 -0
  55. package/dist-esm/samples-dev/remoteRenderingAccountsGetSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/remoteRenderingAccountsGetSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/remoteRenderingAccountsGetSample.js +31 -0
  58. package/dist-esm/samples-dev/remoteRenderingAccountsGetSample.js.map +1 -0
  59. package/dist-esm/samples-dev/remoteRenderingAccountsListByResourceGroupSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/remoteRenderingAccountsListByResourceGroupSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/remoteRenderingAccountsListByResourceGroupSample.js +44 -0
  62. package/dist-esm/samples-dev/remoteRenderingAccountsListByResourceGroupSample.js.map +1 -0
  63. package/dist-esm/samples-dev/remoteRenderingAccountsListBySubscriptionSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/remoteRenderingAccountsListBySubscriptionSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/remoteRenderingAccountsListBySubscriptionSample.js +43 -0
  66. package/dist-esm/samples-dev/remoteRenderingAccountsListBySubscriptionSample.js.map +1 -0
  67. package/dist-esm/samples-dev/remoteRenderingAccountsListKeysSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/remoteRenderingAccountsListKeysSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/remoteRenderingAccountsListKeysSample.js +31 -0
  70. package/dist-esm/samples-dev/remoteRenderingAccountsListKeysSample.js.map +1 -0
  71. package/dist-esm/samples-dev/remoteRenderingAccountsRegenerateKeysSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/remoteRenderingAccountsRegenerateKeysSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/remoteRenderingAccountsRegenerateKeysSample.js +32 -0
  74. package/dist-esm/samples-dev/remoteRenderingAccountsRegenerateKeysSample.js.map +1 -0
  75. package/dist-esm/samples-dev/remoteRenderingAccountsUpdateSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/remoteRenderingAccountsUpdateSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/remoteRenderingAccountsUpdateSample.js +36 -0
  78. package/dist-esm/samples-dev/remoteRenderingAccountsUpdateSample.js.map +1 -0
  79. package/dist-esm/samples-dev/spatialAnchorsAccountsCreateSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/spatialAnchorsAccountsCreateSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/spatialAnchorsAccountsCreateSample.js +34 -0
  82. package/dist-esm/samples-dev/spatialAnchorsAccountsCreateSample.js.map +1 -0
  83. package/dist-esm/samples-dev/spatialAnchorsAccountsDeleteSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/spatialAnchorsAccountsDeleteSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/spatialAnchorsAccountsDeleteSample.js +31 -0
  86. package/dist-esm/samples-dev/spatialAnchorsAccountsDeleteSample.js.map +1 -0
  87. package/dist-esm/samples-dev/spatialAnchorsAccountsGetSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/spatialAnchorsAccountsGetSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/spatialAnchorsAccountsGetSample.js +31 -0
  90. package/dist-esm/samples-dev/spatialAnchorsAccountsGetSample.js.map +1 -0
  91. package/dist-esm/samples-dev/spatialAnchorsAccountsListByResourceGroupSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/spatialAnchorsAccountsListByResourceGroupSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/spatialAnchorsAccountsListByResourceGroupSample.js +44 -0
  94. package/dist-esm/samples-dev/spatialAnchorsAccountsListByResourceGroupSample.js.map +1 -0
  95. package/dist-esm/samples-dev/spatialAnchorsAccountsListBySubscriptionSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/spatialAnchorsAccountsListBySubscriptionSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/spatialAnchorsAccountsListBySubscriptionSample.js +43 -0
  98. package/dist-esm/samples-dev/spatialAnchorsAccountsListBySubscriptionSample.js.map +1 -0
  99. package/dist-esm/samples-dev/spatialAnchorsAccountsListKeysSample.d.ts +2 -0
  100. package/dist-esm/samples-dev/spatialAnchorsAccountsListKeysSample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/spatialAnchorsAccountsListKeysSample.js +31 -0
  102. package/dist-esm/samples-dev/spatialAnchorsAccountsListKeysSample.js.map +1 -0
  103. package/dist-esm/samples-dev/spatialAnchorsAccountsRegenerateKeysSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/spatialAnchorsAccountsRegenerateKeysSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/spatialAnchorsAccountsRegenerateKeysSample.js +32 -0
  106. package/dist-esm/samples-dev/spatialAnchorsAccountsRegenerateKeysSample.js.map +1 -0
  107. package/dist-esm/samples-dev/spatialAnchorsAccountsUpdateSample.d.ts +2 -0
  108. package/dist-esm/samples-dev/spatialAnchorsAccountsUpdateSample.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/spatialAnchorsAccountsUpdateSample.js +35 -0
  110. package/dist-esm/samples-dev/spatialAnchorsAccountsUpdateSample.js.map +1 -0
  111. package/dist-esm/src/mixedRealityClient.d.ts +2 -1
  112. package/dist-esm/src/mixedRealityClient.d.ts.map +1 -1
  113. package/dist-esm/src/mixedRealityClient.js +23 -4
  114. package/dist-esm/src/mixedRealityClient.js.map +1 -1
  115. package/dist-esm/src/models/index.d.ts +86 -1
  116. package/dist-esm/src/models/index.d.ts.map +1 -1
  117. package/dist-esm/src/models/index.js.map +1 -1
  118. package/dist-esm/src/models/mappers.d.ts +3 -0
  119. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  120. package/dist-esm/src/models/mappers.js +93 -0
  121. package/dist-esm/src/models/mappers.js.map +1 -1
  122. package/dist-esm/src/models/parameters.d.ts +1 -0
  123. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  124. package/dist-esm/src/models/parameters.js +6 -2
  125. package/dist-esm/src/models/parameters.js.map +1 -1
  126. package/dist-esm/src/operations/index.d.ts +1 -0
  127. package/dist-esm/src/operations/index.d.ts.map +1 -1
  128. package/dist-esm/src/operations/index.js +1 -0
  129. package/dist-esm/src/operations/index.js.map +1 -1
  130. package/dist-esm/src/operations/objectAnchorsAccounts.d.ts +98 -0
  131. package/dist-esm/src/operations/objectAnchorsAccounts.d.ts.map +1 -0
  132. package/dist-esm/src/operations/objectAnchorsAccounts.js +422 -0
  133. package/dist-esm/src/operations/objectAnchorsAccounts.js.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  135. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  136. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  137. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  138. package/dist-esm/src/operationsInterfaces/objectAnchorsAccounts.d.ts +62 -0
  139. package/dist-esm/src/operationsInterfaces/objectAnchorsAccounts.d.ts.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/objectAnchorsAccounts.js +9 -0
  141. package/dist-esm/src/operationsInterfaces/objectAnchorsAccounts.js.map +1 -0
  142. package/package.json +30 -15
  143. package/review/arm-mixedreality.api.md +103 -0
  144. package/rollup.config.js +6 -72
  145. package/src/mixedRealityClient.ts +34 -5
  146. package/src/models/index.ts +108 -1
  147. package/src/models/mappers.ts +108 -0
  148. package/src/models/parameters.ts +8 -2
  149. package/src/operations/index.ts +1 -0
  150. package/src/operations/objectAnchorsAccounts.ts +536 -0
  151. package/src/operationsInterfaces/index.ts +1 -0
  152. package/src/operationsInterfaces/objectAnchorsAccounts.ts +119 -0
  153. package/tsconfig.json +18 -5
  154. package/types/arm-mixedreality.d.ts +169 -1
  155. package/types/tsdoc-metadata.json +1 -1
  156. package/LICENSE.txt +0 -21
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updating a Remote Rendering Account
15
+ *
16
+ * @summary Updating a Remote Rendering Account
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Patch.json
18
+ */
19
+ function updateRemoteRenderingAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
22
+ const resourceGroupName = "MyResourceGroup";
23
+ const accountName = "MyAccount";
24
+ const remoteRenderingAccount = {
25
+ identity: { type: "SystemAssigned" },
26
+ location: "eastus2euap",
27
+ tags: { hero: "romeo", heroine: "juliet" }
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new MixedRealityClient(credential, subscriptionId);
31
+ const result = yield client.remoteRenderingAccounts.update(resourceGroupName, accountName, remoteRenderingAccount);
32
+ console.log(result);
33
+ });
34
+ }
35
+ updateRemoteRenderingAccount().catch(console.error);
36
+ //# sourceMappingURL=remoteRenderingAccountsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remoteRenderingAccountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,sBAAsB,GAA2B;YACrD,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;SAC3C,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,MAAM,CACxD,iBAAiB,EACjB,WAAW,EACX,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spatialAnchorsAccountsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Creating or Updating a Spatial Anchors Account.
15
+ *
16
+ * @summary Creating or Updating a Spatial Anchors Account.
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Put.json
18
+ */
19
+ function createSpatialAnchorAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
22
+ const resourceGroupName = "MyResourceGroup";
23
+ const accountName = "MyAccount";
24
+ const spatialAnchorsAccount = {
25
+ location: "eastus2euap"
26
+ };
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new MixedRealityClient(credential, subscriptionId);
29
+ const result = yield client.spatialAnchorsAccounts.create(resourceGroupName, accountName, spatialAnchorsAccount);
30
+ console.log(result);
31
+ });
32
+ }
33
+ createSpatialAnchorAccount().catch(console.error);
34
+ //# sourceMappingURL=spatialAnchorsAccountsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,qBAAqB,GAA0B;YACnD,QAAQ,EAAE,aAAa;SACxB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CACvD,iBAAiB,EACjB,WAAW,EACX,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spatialAnchorsAccountsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete a Spatial Anchors Account.
15
+ *
16
+ * @summary Delete a Spatial Anchors Account.
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Delete.json
18
+ */
19
+ function deleteSpatialAnchorsAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
22
+ const resourceGroupName = "MyResourceGroup";
23
+ const accountName = "MyAccount";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MixedRealityClient(credential, subscriptionId);
26
+ const result = yield client.spatialAnchorsAccounts.delete(resourceGroupName, accountName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ deleteSpatialAnchorsAccount().catch(console.error);
31
+ //# sourceMappingURL=spatialAnchorsAccountsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CACvD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spatialAnchorsAccountsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Retrieve a Spatial Anchors Account.
15
+ *
16
+ * @summary Retrieve a Spatial Anchors Account.
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Get.json
18
+ */
19
+ function getSpatialAnchorsAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
22
+ const resourceGroupName = "MyResourceGroup";
23
+ const accountName = "MyAccount";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MixedRealityClient(credential, subscriptionId);
26
+ const result = yield client.spatialAnchorsAccounts.get(resourceGroupName, accountName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getSpatialAnchorsAccount().catch(console.error);
31
+ //# sourceMappingURL=spatialAnchorsAccountsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsGetSample.js","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,GAAG,CACpD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spatialAnchorsAccountsListByResourceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsListByResourceGroupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List Resources by Resource Group
15
+ *
16
+ * @summary List Resources by Resource Group
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/GetByResourceGroup.json
18
+ */
19
+ function listSpatialAnchorAccountsByResourceGroup() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
23
+ const resourceGroupName = "MyResourceGroup";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MixedRealityClient(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.spatialAnchorsAccounts.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
29
+ let item = _c.value;
30
+ resArray.push(item);
31
+ }
32
+ }
33
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
+ finally {
35
+ try {
36
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
37
+ }
38
+ finally { if (e_1) throw e_1.error; }
39
+ }
40
+ console.log(resArray);
41
+ });
42
+ }
43
+ listSpatialAnchorAccountsByResourceGroup().catch(console.error);
44
+ //# sourceMappingURL=spatialAnchorsAccountsListByResourceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wCAAwC;;;QACrD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,mBAAmB,CACtE,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,wCAAwC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spatialAnchorsAccountsListBySubscriptionSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsListBySubscriptionSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List Spatial Anchors Accounts by Subscription
15
+ *
16
+ * @summary List Spatial Anchors Accounts by Subscription
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/GetBySubscription.json
18
+ */
19
+ function listSpatialAnchorsAccountsBySubscription() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new MixedRealityClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.spatialAnchorsAccounts.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ listSpatialAnchorsAccountsBySubscription().catch(console.error);
43
+ //# sourceMappingURL=spatialAnchorsAccountsListBySubscriptionSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wCAAwC;;;QACrD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAA9D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,wCAAwC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spatialAnchorsAccountsListKeysSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsListKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsListKeysSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List Both of the 2 Keys of a Spatial Anchors Account
15
+ *
16
+ * @summary List Both of the 2 Keys of a Spatial Anchors Account
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/ListKeys.json
18
+ */
19
+ function listSpatialAnchorAccountKey() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
22
+ const resourceGroupName = "MyResourceGroup";
23
+ const accountName = "MyAccount";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MixedRealityClient(credential, subscriptionId);
26
+ const result = yield client.spatialAnchorsAccounts.listKeys(resourceGroupName, accountName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ listSpatialAnchorAccountKey().catch(console.error);
31
+ //# sourceMappingURL=spatialAnchorsAccountsListKeysSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsListKeysSample.js","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsListKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,QAAQ,CACzD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spatialAnchorsAccountsRegenerateKeysSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsRegenerateKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsRegenerateKeysSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Regenerate specified Key of a Spatial Anchors Account
15
+ *
16
+ * @summary Regenerate specified Key of a Spatial Anchors Account
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/RegenerateKey.json
18
+ */
19
+ function regenerateSpatialAnchorsAccountKeys() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
22
+ const resourceGroupName = "MyResourceGroup";
23
+ const accountName = "MyAccount";
24
+ const regenerate = { serial: 1 };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MixedRealityClient(credential, subscriptionId);
27
+ const result = yield client.spatialAnchorsAccounts.regenerateKeys(resourceGroupName, accountName, regenerate);
28
+ console.log(result);
29
+ });
30
+ }
31
+ regenerateSpatialAnchorsAccountKeys().catch(console.error);
32
+ //# sourceMappingURL=spatialAnchorsAccountsRegenerateKeysSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsRegenerateKeysSample.js","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsRegenerateKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mCAAmC;;QAChD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAgC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,cAAc,CAC/D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mCAAmC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=spatialAnchorsAccountsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MixedRealityClient } from "@azure/arm-mixedreality";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updating a Spatial Anchors Account
15
+ *
16
+ * @summary Updating a Spatial Anchors Account
17
+ * x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Patch.json
18
+ */
19
+ function updateSpatialAnchorsAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
22
+ const resourceGroupName = "MyResourceGroup";
23
+ const accountName = "MyAccount";
24
+ const spatialAnchorsAccount = {
25
+ location: "eastus2euap",
26
+ tags: { hero: "romeo", heroine: "juliet" }
27
+ };
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new MixedRealityClient(credential, subscriptionId);
30
+ const result = yield client.spatialAnchorsAccounts.update(resourceGroupName, accountName, spatialAnchorsAccount);
31
+ console.log(result);
32
+ });
33
+ }
34
+ updateSpatialAnchorsAccount().catch(console.error);
35
+ //# sourceMappingURL=spatialAnchorsAccountsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialAnchorsAccountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/spatialAnchorsAccountsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,qBAAqB,GAA0B;YACnD,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;SAC3C,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CACvD,iBAAiB,EACjB,WAAW,EACX,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  import * as coreAuth from "@azure/core-auth";
3
- import { Operations, SpatialAnchorsAccounts, RemoteRenderingAccounts } from "./operationsInterfaces";
3
+ import { Operations, SpatialAnchorsAccounts, RemoteRenderingAccounts, ObjectAnchorsAccounts } from "./operationsInterfaces";
4
4
  import { MixedRealityClientOptionalParams, CheckNameAvailabilityRequest, CheckNameAvailabilityLocalOptionalParams, CheckNameAvailabilityLocalResponse } from "./models";
5
5
  export declare class MixedRealityClient extends coreClient.ServiceClient {
6
6
  $host: string;
@@ -24,5 +24,6 @@ export declare class MixedRealityClient extends coreClient.ServiceClient {
24
24
  operations: Operations;
25
25
  spatialAnchorsAccounts: SpatialAnchorsAccounts;
26
26
  remoteRenderingAccounts: RemoteRenderingAccounts;
27
+ objectAnchorsAccounts: ObjectAnchorsAccounts;
27
28
  }
28
29
  //# sourceMappingURL=mixedRealityClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mixedRealityClient.d.ts","sourceRoot":"","sources":["../../src/mixedRealityClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC5B,wCAAwC,EACxC,kCAAkC,EACnC,MAAM,UAAU,CAAC;AAElB,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC;IA+C5C;;;;;OAKG;IACH,0BAA0B,CACxB,QAAQ,EAAE,MAAM,EAChB,qBAAqB,EAAE,4BAA4B,EACnD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,uBAAuB,EAAE,uBAAuB,CAAC;CAClD"}
1
+ {"version":3,"file":"mixedRealityClient.d.ts","sourceRoot":"","sources":["../../src/mixedRealityClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC5B,wCAAwC,EACxC,kCAAkC,EACnC,MAAM,UAAU,CAAC;AAElB,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC;IAwE5C;;;;;OAKG;IACH,0BAA0B,CACxB,QAAQ,EAAE,MAAM,EAChB,qBAAqB,EAAE,4BAA4B,EACnD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,qBAAqB,EAAE,qBAAqB,CAAC;CAC9C"}
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
- import { OperationsImpl, SpatialAnchorsAccountsImpl, RemoteRenderingAccountsImpl } from "./operations";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { OperationsImpl, SpatialAnchorsAccountsImpl, RemoteRenderingAccountsImpl, ObjectAnchorsAccountsImpl } from "./operations";
10
11
  import * as Parameters from "./models/parameters";
11
12
  import * as Mappers from "./models/mappers";
12
13
  export class MixedRealityClient extends coreClient.ServiceClient {
@@ -18,6 +19,7 @@ export class MixedRealityClient extends coreClient.ServiceClient {
18
19
  * @param options The parameter options
19
20
  */
20
21
  constructor(credentials, subscriptionId, options) {
22
+ var _a, _b;
21
23
  if (credentials === undefined) {
22
24
  throw new Error("'credentials' cannot be null");
23
25
  }
@@ -32,7 +34,7 @@ export class MixedRealityClient extends coreClient.ServiceClient {
32
34
  requestContentType: "application/json; charset=utf-8",
33
35
  credential: credentials
34
36
  };
35
- const packageDetails = `azsdk-js-arm-mixedreality/4.0.1`;
37
+ const packageDetails = `azsdk-js-arm-mixedreality/4.1.0-beta.1`;
36
38
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
39
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
40
  : `${packageDetails}`;
@@ -41,16 +43,33 @@ export class MixedRealityClient extends coreClient.ServiceClient {
41
43
  }
42
44
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
43
45
  userAgentPrefix
44
- }, baseUri: options.endpoint || "https://management.azure.com" });
46
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
45
47
  super(optionsWithDefaults);
48
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
49
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
50
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
51
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
52
+ if (!bearerTokenAuthenticationPolicyFound) {
53
+ this.pipeline.removePolicy({
54
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
55
+ });
56
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
57
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
58
+ challengeCallbacks: {
59
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
60
+ }
61
+ }));
62
+ }
63
+ }
46
64
  // Parameter assignments
47
65
  this.subscriptionId = subscriptionId;
48
66
  // Assigning values to Constant parameters
49
67
  this.$host = options.$host || "https://management.azure.com";
50
- this.apiVersion = options.apiVersion || "2021-01-01";
68
+ this.apiVersion = options.apiVersion || "2021-03-01-preview";
51
69
  this.operations = new OperationsImpl(this);
52
70
  this.spatialAnchorsAccounts = new SpatialAnchorsAccountsImpl(this);
53
71
  this.remoteRenderingAccounts = new RemoteRenderingAccountsImpl(this);
72
+ this.objectAnchorsAccounts = new ObjectAnchorsAccountsImpl(this);
54
73
  }
55
74
  /**
56
75
  * Check Name Availability for local uniqueness
@@ -1 +1 @@
1
- {"version":3,"file":"mixedRealityClient.js","sourceRoot":"","sources":["../../src/mixedRealityClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAQ5C,MAAM,OAAO,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAK9D;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA0C;QAE1C,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAA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