@azure/arm-mixedreality 4.0.1-alpha.20220413.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 +11 -11
  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
@@ -94,6 +94,7 @@ export interface MetricDimension {
94
94
  displayName?: string;
95
95
  internalName?: string;
96
96
  name?: string;
97
+ toBeExportedForShoebox?: boolean;
97
98
  }
98
99
 
99
100
  // @public
@@ -125,6 +126,8 @@ export class MixedRealityClient extends coreClient.ServiceClient {
125
126
  apiVersion: string;
126
127
  checkNameAvailabilityLocal(location: string, checkNameAvailability: CheckNameAvailabilityRequest, options?: CheckNameAvailabilityLocalOptionalParams): Promise<CheckNameAvailabilityLocalResponse>;
127
128
  // (undocumented)
129
+ objectAnchorsAccounts: ObjectAnchorsAccounts;
130
+ // (undocumented)
128
131
  operations: Operations;
129
132
  // (undocumented)
130
133
  remoteRenderingAccounts: RemoteRenderingAccounts;
@@ -144,6 +147,106 @@ export interface MixedRealityClientOptionalParams extends coreClient.ServiceClie
144
147
  // @public
145
148
  export type NameUnavailableReason = string;
146
149
 
150
+ // @public
151
+ export type ObjectAnchorsAccount = TrackedResource & {
152
+ identity?: ObjectAnchorsAccountIdentity;
153
+ plan?: Identity;
154
+ sku?: Sku;
155
+ kind?: Sku;
156
+ readonly systemData?: SystemData;
157
+ storageAccountName?: string;
158
+ readonly accountId?: string;
159
+ readonly accountDomain?: string;
160
+ };
161
+
162
+ // @public (undocumented)
163
+ export type ObjectAnchorsAccountIdentity = Identity & {};
164
+
165
+ // @public
166
+ export interface ObjectAnchorsAccountPage {
167
+ nextLink?: string;
168
+ value?: ObjectAnchorsAccount[];
169
+ }
170
+
171
+ // @public
172
+ export interface ObjectAnchorsAccounts {
173
+ create(resourceGroupName: string, accountName: string, objectAnchorsAccount: ObjectAnchorsAccount, options?: ObjectAnchorsAccountsCreateOptionalParams): Promise<ObjectAnchorsAccountsCreateResponse>;
174
+ delete(resourceGroupName: string, accountName: string, options?: ObjectAnchorsAccountsDeleteOptionalParams): Promise<void>;
175
+ get(resourceGroupName: string, accountName: string, options?: ObjectAnchorsAccountsGetOptionalParams): Promise<ObjectAnchorsAccountsGetResponse>;
176
+ listByResourceGroup(resourceGroupName: string, options?: ObjectAnchorsAccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ObjectAnchorsAccount>;
177
+ listBySubscription(options?: ObjectAnchorsAccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ObjectAnchorsAccount>;
178
+ listKeys(resourceGroupName: string, accountName: string, options?: ObjectAnchorsAccountsListKeysOptionalParams): Promise<ObjectAnchorsAccountsListKeysResponse>;
179
+ regenerateKeys(resourceGroupName: string, accountName: string, regenerate: AccountKeyRegenerateRequest, options?: ObjectAnchorsAccountsRegenerateKeysOptionalParams): Promise<ObjectAnchorsAccountsRegenerateKeysResponse>;
180
+ update(resourceGroupName: string, accountName: string, objectAnchorsAccount: ObjectAnchorsAccount, options?: ObjectAnchorsAccountsUpdateOptionalParams): Promise<ObjectAnchorsAccountsUpdateResponse>;
181
+ }
182
+
183
+ // @public
184
+ export interface ObjectAnchorsAccountsCreateOptionalParams extends coreClient.OperationOptions {
185
+ }
186
+
187
+ // @public
188
+ export type ObjectAnchorsAccountsCreateResponse = ObjectAnchorsAccount;
189
+
190
+ // @public
191
+ export interface ObjectAnchorsAccountsDeleteOptionalParams extends coreClient.OperationOptions {
192
+ }
193
+
194
+ // @public
195
+ export interface ObjectAnchorsAccountsGetOptionalParams extends coreClient.OperationOptions {
196
+ }
197
+
198
+ // @public
199
+ export type ObjectAnchorsAccountsGetResponse = ObjectAnchorsAccount;
200
+
201
+ // @public
202
+ export interface ObjectAnchorsAccountsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
203
+ }
204
+
205
+ // @public
206
+ export type ObjectAnchorsAccountsListByResourceGroupNextResponse = ObjectAnchorsAccountPage;
207
+
208
+ // @public
209
+ export interface ObjectAnchorsAccountsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
210
+ }
211
+
212
+ // @public
213
+ export type ObjectAnchorsAccountsListByResourceGroupResponse = ObjectAnchorsAccountPage;
214
+
215
+ // @public
216
+ export interface ObjectAnchorsAccountsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
217
+ }
218
+
219
+ // @public
220
+ export type ObjectAnchorsAccountsListBySubscriptionNextResponse = ObjectAnchorsAccountPage;
221
+
222
+ // @public
223
+ export interface ObjectAnchorsAccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
224
+ }
225
+
226
+ // @public
227
+ export type ObjectAnchorsAccountsListBySubscriptionResponse = ObjectAnchorsAccountPage;
228
+
229
+ // @public
230
+ export interface ObjectAnchorsAccountsListKeysOptionalParams extends coreClient.OperationOptions {
231
+ }
232
+
233
+ // @public
234
+ export type ObjectAnchorsAccountsListKeysResponse = AccountKeys;
235
+
236
+ // @public
237
+ export interface ObjectAnchorsAccountsRegenerateKeysOptionalParams extends coreClient.OperationOptions {
238
+ }
239
+
240
+ // @public
241
+ export type ObjectAnchorsAccountsRegenerateKeysResponse = AccountKeys;
242
+
243
+ // @public
244
+ export interface ObjectAnchorsAccountsUpdateOptionalParams extends coreClient.OperationOptions {
245
+ }
246
+
247
+ // @public
248
+ export type ObjectAnchorsAccountsUpdateResponse = ObjectAnchorsAccount;
249
+
147
250
  // @public
148
251
  export interface Operation {
149
252
  display?: OperationDisplay;
package/rollup.config.js CHANGED
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
14
14
 
15
15
  import nodeBuiltins from "builtin-modules";
16
16
 
17
- /**
18
- * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
- *
20
- * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
- * __exportStar downleveled helper function to declare its exports which confuses
22
- * rollup's automatic discovery mechanism.
23
- *
24
- * @returns an object reference that can be `...`'d into your cjs() configuration.
25
- */
26
- export function openTelemetryCommonJs() {
27
- const namedExports = {};
28
-
29
- for (const key of [
30
- "@opentelemetry/api",
31
- "@azure/core-tracing/node_modules/@opentelemetry/api"
32
- ]) {
33
- namedExports[key] = [
34
- "SpanKind",
35
- "TraceFlags",
36
- "getSpan",
37
- "setSpan",
38
- "SpanStatusCode",
39
- "getSpanContext",
40
- "setSpanContext"
41
- ];
42
- }
43
-
44
- const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
-
46
- for (const version of releasedOpenTelemetryVersions) {
47
- namedExports[
48
- // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
- `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
- ] = [
51
- "SpanKind",
52
- "TraceFlags",
53
- "getSpan",
54
- "setSpan",
55
- "StatusCode",
56
- "CanonicalCode",
57
- "getSpanContext",
58
- "setSpanContext"
59
- ];
60
- }
61
-
62
- return namedExports;
63
- }
64
-
65
17
  // #region Warning Handler
66
18
 
67
19
  /**
68
- * A function that can determine whether a rollupwarning should be ignored. If
20
+ * A function that can determine whether a rollup warning should be ignored. If
69
21
  * the function returns `true`, then the warning will not be displayed.
70
22
  */
71
23
 
72
- function ignoreNiseSinonEvalWarnings(warning) {
24
+ function ignoreNiseSinonEval(warning) {
73
25
  return (
74
26
  warning.code === "EVAL" &&
75
27
  warning.id &&
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
78
30
  );
79
31
  }
80
32
 
81
- function ignoreChaiCircularDependencyWarnings(warning) {
33
+ function ignoreChaiCircularDependency(warning) {
82
34
  return (
83
35
  warning.code === "CIRCULAR_DEPENDENCY" &&
84
36
  warning.importer && warning.importer.includes("node_modules/chai") === true
85
37
  );
86
38
  }
87
39
 
88
- const warningInhibitors = [
89
- ignoreChaiCircularDependencyWarnings,
90
- ignoreNiseSinonEvalWarnings
91
- ];
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
92
41
 
93
42
  /**
94
43
  * Construct a warning handler for the shared rollup configuration
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
122
71
  nodeResolve({
123
72
  mainFields: ["module", "browser"]
124
73
  }),
125
- cjs({
126
- namedExports: {
127
- // Chai's strange internal architecture makes it impossible to statically
128
- // analyze its exports.
129
- chai: [
130
- "version",
131
- "use",
132
- "util",
133
- "config",
134
- "expect",
135
- "should",
136
- "assert"
137
- ],
138
- ...openTelemetryCommonJs()
139
- }
140
- }),
74
+ cjs(),
141
75
  json(),
142
76
  sourcemaps()
143
77
  //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
173
107
  ],
174
108
  output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
109
  preserveSymlinks: false,
176
- plugins: [sourcemaps(), nodeResolve(), cjs()]
110
+ plugins: [sourcemaps(), nodeResolve()]
177
111
  };
178
112
 
179
113
  const config = [baseConfig];
@@ -7,16 +7,19 @@
7
7
  */
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
11
  import * as coreAuth from "@azure/core-auth";
11
12
  import {
12
13
  OperationsImpl,
13
14
  SpatialAnchorsAccountsImpl,
14
- RemoteRenderingAccountsImpl
15
+ RemoteRenderingAccountsImpl,
16
+ ObjectAnchorsAccountsImpl
15
17
  } from "./operations";
16
18
  import {
17
19
  Operations,
18
20
  SpatialAnchorsAccounts,
19
- RemoteRenderingAccounts
21
+ RemoteRenderingAccounts,
22
+ ObjectAnchorsAccounts
20
23
  } from "./operationsInterfaces";
21
24
  import * as Parameters from "./models/parameters";
22
25
  import * as Mappers from "./models/mappers";
@@ -60,7 +63,7 @@ export class MixedRealityClient extends coreClient.ServiceClient {
60
63
  credential: credentials
61
64
  };
62
65
 
63
- const packageDetails = `azsdk-js-arm-mixedreality/4.0.1`;
66
+ const packageDetails = `azsdk-js-arm-mixedreality/4.1.0-beta.1`;
64
67
  const userAgentPrefix =
65
68
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
66
69
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -75,18 +78,43 @@ export class MixedRealityClient extends coreClient.ServiceClient {
75
78
  userAgentOptions: {
76
79
  userAgentPrefix
77
80
  },
78
- baseUri: options.endpoint || "https://management.azure.com"
81
+ baseUri:
82
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com"
79
83
  };
80
84
  super(optionsWithDefaults);
85
+
86
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
87
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
88
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
89
+ (pipelinePolicy) =>
90
+ pipelinePolicy.name ===
91
+ coreRestPipeline.bearerTokenAuthenticationPolicyName
92
+ );
93
+ if (!bearerTokenAuthenticationPolicyFound) {
94
+ this.pipeline.removePolicy({
95
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
96
+ });
97
+ this.pipeline.addPolicy(
98
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
99
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
100
+ challengeCallbacks: {
101
+ authorizeRequestOnChallenge:
102
+ coreClient.authorizeRequestOnClaimChallenge
103
+ }
104
+ })
105
+ );
106
+ }
107
+ }
81
108
  // Parameter assignments
82
109
  this.subscriptionId = subscriptionId;
83
110
 
84
111
  // Assigning values to Constant parameters
85
112
  this.$host = options.$host || "https://management.azure.com";
86
- this.apiVersion = options.apiVersion || "2021-01-01";
113
+ this.apiVersion = options.apiVersion || "2021-03-01-preview";
87
114
  this.operations = new OperationsImpl(this);
88
115
  this.spatialAnchorsAccounts = new SpatialAnchorsAccountsImpl(this);
89
116
  this.remoteRenderingAccounts = new RemoteRenderingAccountsImpl(this);
117
+ this.objectAnchorsAccounts = new ObjectAnchorsAccountsImpl(this);
90
118
  }
91
119
 
92
120
  /**
@@ -109,6 +137,7 @@ export class MixedRealityClient extends coreClient.ServiceClient {
109
137
  operations: Operations;
110
138
  spatialAnchorsAccounts: SpatialAnchorsAccounts;
111
139
  remoteRenderingAccounts: RemoteRenderingAccounts;
140
+ objectAnchorsAccounts: ObjectAnchorsAccounts;
112
141
  }
113
142
  // Operation Specifications
114
143
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -110,6 +110,8 @@ export interface MetricDimension {
110
110
  displayName?: string;
111
111
  /** Internal name of the dimension. */
112
112
  internalName?: string;
113
+ /** Flag to indicate export for Shoebox */
114
+ toBeExportedForShoebox?: boolean;
113
115
  }
114
116
 
115
117
  /** An Error response. */
@@ -237,7 +239,7 @@ export interface AccountKeys {
237
239
 
238
240
  /** Request for account key regeneration */
239
241
  export interface AccountKeyRegenerateRequest {
240
- /** serial of key to be regenerated */
242
+ /** Serial of key to be regenerated */
241
243
  serial?: Serial;
242
244
  }
243
245
 
@@ -249,6 +251,16 @@ export interface RemoteRenderingAccountPage {
249
251
  nextLink?: string;
250
252
  }
251
253
 
254
+ /** Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results. */
255
+ export interface ObjectAnchorsAccountPage {
256
+ /** List of resources supported by the Resource Provider. */
257
+ value?: ObjectAnchorsAccount[];
258
+ /** URL to get the next set of resource list results if there are any. */
259
+ nextLink?: string;
260
+ }
261
+
262
+ export type ObjectAnchorsAccountIdentity = Identity & {};
263
+
252
264
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
253
265
  export type TrackedResource = Resource & {
254
266
  /** Resource tags. */
@@ -315,6 +327,34 @@ export type RemoteRenderingAccount = TrackedResource & {
315
327
  readonly accountDomain?: string;
316
328
  };
317
329
 
330
+ /** ObjectAnchorsAccount Response. */
331
+ export type ObjectAnchorsAccount = TrackedResource & {
332
+ identity?: ObjectAnchorsAccountIdentity;
333
+ /** The plan associated with this account */
334
+ plan?: Identity;
335
+ /** The sku associated with this account */
336
+ sku?: Sku;
337
+ /** The kind of account, if supported */
338
+ kind?: Sku;
339
+ /**
340
+ * The system metadata related to an object anchors account.
341
+ * NOTE: This property will not be serialized. It can only be populated by the server.
342
+ */
343
+ readonly systemData?: SystemData;
344
+ /** The name of the storage account associated with this accountId */
345
+ storageAccountName?: string;
346
+ /**
347
+ * unique id of certain account.
348
+ * NOTE: This property will not be serialized. It can only be populated by the server.
349
+ */
350
+ readonly accountId?: string;
351
+ /**
352
+ * Correspond domain name of certain Spatial Anchors Account
353
+ * NOTE: This property will not be serialized. It can only be populated by the server.
354
+ */
355
+ readonly accountDomain?: string;
356
+ };
357
+
318
358
  /** Known values of {@link NameUnavailableReason} that the service accepts. */
319
359
  export enum KnownNameUnavailableReason {
320
360
  Invalid = "Invalid",
@@ -510,6 +550,73 @@ export interface RemoteRenderingAccountsListByResourceGroupNextOptionalParams
510
550
  /** Contains response data for the listByResourceGroupNext operation. */
511
551
  export type RemoteRenderingAccountsListByResourceGroupNextResponse = RemoteRenderingAccountPage;
512
552
 
553
+ /** Optional parameters. */
554
+ export interface ObjectAnchorsAccountsListBySubscriptionOptionalParams
555
+ extends coreClient.OperationOptions {}
556
+
557
+ /** Contains response data for the listBySubscription operation. */
558
+ export type ObjectAnchorsAccountsListBySubscriptionResponse = ObjectAnchorsAccountPage;
559
+
560
+ /** Optional parameters. */
561
+ export interface ObjectAnchorsAccountsListByResourceGroupOptionalParams
562
+ extends coreClient.OperationOptions {}
563
+
564
+ /** Contains response data for the listByResourceGroup operation. */
565
+ export type ObjectAnchorsAccountsListByResourceGroupResponse = ObjectAnchorsAccountPage;
566
+
567
+ /** Optional parameters. */
568
+ export interface ObjectAnchorsAccountsDeleteOptionalParams
569
+ extends coreClient.OperationOptions {}
570
+
571
+ /** Optional parameters. */
572
+ export interface ObjectAnchorsAccountsGetOptionalParams
573
+ extends coreClient.OperationOptions {}
574
+
575
+ /** Contains response data for the get operation. */
576
+ export type ObjectAnchorsAccountsGetResponse = ObjectAnchorsAccount;
577
+
578
+ /** Optional parameters. */
579
+ export interface ObjectAnchorsAccountsUpdateOptionalParams
580
+ extends coreClient.OperationOptions {}
581
+
582
+ /** Contains response data for the update operation. */
583
+ export type ObjectAnchorsAccountsUpdateResponse = ObjectAnchorsAccount;
584
+
585
+ /** Optional parameters. */
586
+ export interface ObjectAnchorsAccountsCreateOptionalParams
587
+ extends coreClient.OperationOptions {}
588
+
589
+ /** Contains response data for the create operation. */
590
+ export type ObjectAnchorsAccountsCreateResponse = ObjectAnchorsAccount;
591
+
592
+ /** Optional parameters. */
593
+ export interface ObjectAnchorsAccountsListKeysOptionalParams
594
+ extends coreClient.OperationOptions {}
595
+
596
+ /** Contains response data for the listKeys operation. */
597
+ export type ObjectAnchorsAccountsListKeysResponse = AccountKeys;
598
+
599
+ /** Optional parameters. */
600
+ export interface ObjectAnchorsAccountsRegenerateKeysOptionalParams
601
+ extends coreClient.OperationOptions {}
602
+
603
+ /** Contains response data for the regenerateKeys operation. */
604
+ export type ObjectAnchorsAccountsRegenerateKeysResponse = AccountKeys;
605
+
606
+ /** Optional parameters. */
607
+ export interface ObjectAnchorsAccountsListBySubscriptionNextOptionalParams
608
+ extends coreClient.OperationOptions {}
609
+
610
+ /** Contains response data for the listBySubscriptionNext operation. */
611
+ export type ObjectAnchorsAccountsListBySubscriptionNextResponse = ObjectAnchorsAccountPage;
612
+
613
+ /** Optional parameters. */
614
+ export interface ObjectAnchorsAccountsListByResourceGroupNextOptionalParams
615
+ extends coreClient.OperationOptions {}
616
+
617
+ /** Contains response data for the listByResourceGroupNext operation. */
618
+ export type ObjectAnchorsAccountsListByResourceGroupNextResponse = ObjectAnchorsAccountPage;
619
+
513
620
  /** Optional parameters. */
514
621
  export interface MixedRealityClientOptionalParams
515
622
  extends coreClient.ServiceClientOptions {
@@ -332,6 +332,12 @@ export const MetricDimension: coreClient.CompositeMapper = {
332
332
  type: {
333
333
  name: "String"
334
334
  }
335
+ },
336
+ toBeExportedForShoebox: {
337
+ serializedName: "toBeExportedForShoebox",
338
+ type: {
339
+ name: "Boolean"
340
+ }
335
341
  }
336
342
  }
337
343
  }
@@ -684,6 +690,43 @@ export const RemoteRenderingAccountPage: coreClient.CompositeMapper = {
684
690
  }
685
691
  };
686
692
 
693
+ export const ObjectAnchorsAccountPage: coreClient.CompositeMapper = {
694
+ type: {
695
+ name: "Composite",
696
+ className: "ObjectAnchorsAccountPage",
697
+ modelProperties: {
698
+ value: {
699
+ serializedName: "value",
700
+ type: {
701
+ name: "Sequence",
702
+ element: {
703
+ type: {
704
+ name: "Composite",
705
+ className: "ObjectAnchorsAccount"
706
+ }
707
+ }
708
+ }
709
+ },
710
+ nextLink: {
711
+ serializedName: "nextLink",
712
+ type: {
713
+ name: "String"
714
+ }
715
+ }
716
+ }
717
+ }
718
+ };
719
+
720
+ export const ObjectAnchorsAccountIdentity: coreClient.CompositeMapper = {
721
+ type: {
722
+ name: "Composite",
723
+ className: "ObjectAnchorsAccountIdentity",
724
+ modelProperties: {
725
+ ...Identity.type.modelProperties
726
+ }
727
+ }
728
+ };
729
+
687
730
  export const TrackedResource: coreClient.CompositeMapper = {
688
731
  type: {
689
732
  name: "Composite",
@@ -837,3 +880,68 @@ export const RemoteRenderingAccount: coreClient.CompositeMapper = {
837
880
  }
838
881
  }
839
882
  };
883
+
884
+ export const ObjectAnchorsAccount: coreClient.CompositeMapper = {
885
+ type: {
886
+ name: "Composite",
887
+ className: "ObjectAnchorsAccount",
888
+ modelProperties: {
889
+ ...TrackedResource.type.modelProperties,
890
+ identity: {
891
+ serializedName: "identity",
892
+ type: {
893
+ name: "Composite",
894
+ className: "ObjectAnchorsAccountIdentity"
895
+ }
896
+ },
897
+ plan: {
898
+ serializedName: "plan",
899
+ type: {
900
+ name: "Composite",
901
+ className: "Identity"
902
+ }
903
+ },
904
+ sku: {
905
+ serializedName: "sku",
906
+ type: {
907
+ name: "Composite",
908
+ className: "Sku"
909
+ }
910
+ },
911
+ kind: {
912
+ serializedName: "kind",
913
+ type: {
914
+ name: "Composite",
915
+ className: "Sku"
916
+ }
917
+ },
918
+ systemData: {
919
+ serializedName: "systemData",
920
+ type: {
921
+ name: "Composite",
922
+ className: "SystemData"
923
+ }
924
+ },
925
+ storageAccountName: {
926
+ serializedName: "properties.storageAccountName",
927
+ type: {
928
+ name: "String"
929
+ }
930
+ },
931
+ accountId: {
932
+ serializedName: "properties.accountId",
933
+ readOnly: true,
934
+ type: {
935
+ name: "String"
936
+ }
937
+ },
938
+ accountDomain: {
939
+ serializedName: "properties.accountDomain",
940
+ readOnly: true,
941
+ type: {
942
+ name: "String"
943
+ }
944
+ }
945
+ }
946
+ }
947
+ };
@@ -15,7 +15,8 @@ import {
15
15
  CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper,
16
16
  SpatialAnchorsAccount as SpatialAnchorsAccountMapper,
17
17
  AccountKeyRegenerateRequest as AccountKeyRegenerateRequestMapper,
18
- RemoteRenderingAccount as RemoteRenderingAccountMapper
18
+ RemoteRenderingAccount as RemoteRenderingAccountMapper,
19
+ ObjectAnchorsAccount as ObjectAnchorsAccountMapper
19
20
  } from "../models/mappers";
20
21
 
21
22
  export const accept: OperationParameter = {
@@ -45,7 +46,7 @@ export const $host: OperationURLParameter = {
45
46
  export const apiVersion: OperationQueryParameter = {
46
47
  parameterPath: "apiVersion",
47
48
  mapper: {
48
- defaultValue: "2021-01-01",
49
+ defaultValue: "2021-03-01-preview",
49
50
  isConstant: true,
50
51
  serializedName: "api-version",
51
52
  type: {
@@ -156,3 +157,8 @@ export const remoteRenderingAccount: OperationParameter = {
156
157
  parameterPath: "remoteRenderingAccount",
157
158
  mapper: RemoteRenderingAccountMapper
158
159
  };
160
+
161
+ export const objectAnchorsAccount: OperationParameter = {
162
+ parameterPath: "objectAnchorsAccount",
163
+ mapper: ObjectAnchorsAccountMapper
164
+ };
@@ -9,3 +9,4 @@
9
9
  export * from "./operations";
10
10
  export * from "./spatialAnchorsAccounts";
11
11
  export * from "./remoteRenderingAccounts";
12
+ export * from "./objectAnchorsAccounts";