@azure/arm-qumulo 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1602 -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/fileSystemsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.js +93 -0
  11. package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/fileSystemsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/fileSystemsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/fileSystemsDeleteSample.js +56 -0
  15. package/dist-esm/samples-dev/fileSystemsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/fileSystemsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/fileSystemsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/fileSystemsGetSample.js +56 -0
  19. package/dist-esm/samples-dev/fileSystemsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.js +96 -0
  23. package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.js +94 -0
  27. package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.js.map +1 -0
  28. package/dist-esm/samples-dev/fileSystemsUpdateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/fileSystemsUpdateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/fileSystemsUpdateSample.js +74 -0
  31. package/dist-esm/samples-dev/fileSystemsUpdateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/operationsListSample.js +96 -0
  35. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  36. package/dist-esm/src/index.d.ts +6 -0
  37. package/dist-esm/src/index.d.ts.map +1 -0
  38. package/dist-esm/src/index.js +13 -0
  39. package/dist-esm/src/index.js.map +1 -0
  40. package/dist-esm/src/lroImpl.d.ts +11 -0
  41. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  42. package/dist-esm/src/lroImpl.js +21 -0
  43. package/dist-esm/src/lroImpl.js.map +1 -0
  44. package/dist-esm/src/models/index.d.ts +415 -0
  45. package/dist-esm/src/models/index.d.ts.map +1 -0
  46. package/dist-esm/src/models/index.js +48 -0
  47. package/dist-esm/src/models/index.js.map +1 -0
  48. package/dist-esm/src/models/mappers.d.ts +19 -0
  49. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  50. package/dist-esm/src/models/mappers.js +618 -0
  51. package/dist-esm/src/models/mappers.js.map +1 -0
  52. package/dist-esm/src/models/parameters.d.ts +12 -0
  53. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  54. package/dist-esm/src/models/parameters.js +109 -0
  55. package/dist-esm/src/models/parameters.js.map +1 -0
  56. package/dist-esm/src/operations/fileSystems.d.ts +99 -0
  57. package/dist-esm/src/operations/fileSystems.d.ts.map +1 -0
  58. package/dist-esm/src/operations/fileSystems.js +499 -0
  59. package/dist-esm/src/operations/fileSystems.js.map +1 -0
  60. package/dist-esm/src/operations/index.d.ts +3 -0
  61. package/dist-esm/src/operations/index.d.ts.map +1 -0
  62. package/dist-esm/src/operations/index.js +10 -0
  63. package/dist-esm/src/operations/index.js.map +1 -0
  64. package/dist-esm/src/operations/operations.d.ts +32 -0
  65. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/operations.js +138 -0
  67. package/dist-esm/src/operations/operations.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/fileSystems.d.ts +63 -0
  69. package/dist-esm/src/operationsInterfaces/fileSystems.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/fileSystems.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/fileSystems.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  73. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  75. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  77. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  80. package/dist-esm/src/pagingHelper.d.ts +13 -0
  81. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  82. package/dist-esm/src/pagingHelper.js +32 -0
  83. package/dist-esm/src/pagingHelper.js.map +1 -0
  84. package/dist-esm/src/qumuloStorage.d.ts +21 -0
  85. package/dist-esm/src/qumuloStorage.d.ts.map +1 -0
  86. package/dist-esm/src/qumuloStorage.js +101 -0
  87. package/dist-esm/src/qumuloStorage.js.map +1 -0
  88. package/dist-esm/test/liftrqumulo_operations_test.spec.d.ts +4 -0
  89. package/dist-esm/test/liftrqumulo_operations_test.spec.d.ts.map +1 -0
  90. package/dist-esm/test/liftrqumulo_operations_test.spec.js +76 -0
  91. package/dist-esm/test/liftrqumulo_operations_test.spec.js.map +1 -0
  92. package/package.json +123 -0
  93. package/review/arm-qumulo.api.md +315 -0
  94. package/rollup.config.js +122 -0
  95. package/src/index.ts +13 -0
  96. package/src/lroImpl.ts +42 -0
  97. package/src/models/index.ts +477 -0
  98. package/src/models/mappers.ts +653 -0
  99. package/src/models/parameters.ts +127 -0
  100. package/src/operations/fileSystems.ts +633 -0
  101. package/src/operations/index.ts +10 -0
  102. package/src/operations/operations.ts +149 -0
  103. package/src/operationsInterfaces/fileSystems.ts +121 -0
  104. package/src/operationsInterfaces/index.ts +10 -0
  105. package/src/operationsInterfaces/operations.ts +22 -0
  106. package/src/pagingHelper.ts +39 -0
  107. package/src/qumuloStorage.ts +142 -0
  108. package/tsconfig.json +33 -0
  109. package/types/arm-qumulo.d.ts +563 -0
  110. package/types/tsdoc-metadata.json +11 -0
package/dist/index.js ADDED
@@ -0,0 +1,1602 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib = require('tslib');
6
+ var coreClient = require('@azure/core-client');
7
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
8
+ var coreLro = require('@azure/core-lro');
9
+
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n["default"] = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
+
31
+ /*
32
+ * Copyright (c) Microsoft Corporation.
33
+ * Licensed under the MIT License.
34
+ *
35
+ * Code generated by Microsoft (R) AutoRest Code Generator.
36
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
+ */
38
+ const pageMap = new WeakMap();
39
+ /**
40
+ * Given the last `.value` produced by the `byPage` iterator,
41
+ * returns a continuation token that can be used to begin paging from
42
+ * that point later.
43
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
+ * @returns The continuation token that can be passed into byPage() during future calls.
45
+ */
46
+ function getContinuationToken(page) {
47
+ var _a;
48
+ if (typeof page !== "object" || page === null) {
49
+ return undefined;
50
+ }
51
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
+ }
53
+ function setContinuationToken(page, continuationToken) {
54
+ var _a;
55
+ if (typeof page !== "object" || page === null || !continuationToken) {
56
+ return;
57
+ }
58
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
+ pageInfo.continuationToken = continuationToken;
60
+ pageMap.set(page, pageInfo);
61
+ }
62
+
63
+ /*
64
+ * Copyright (c) Microsoft Corporation.
65
+ * Licensed under the MIT License.
66
+ *
67
+ * Code generated by Microsoft (R) AutoRest Code Generator.
68
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
69
+ */
70
+ /** Known values of {@link Origin} that the service accepts. */
71
+ exports.KnownOrigin = void 0;
72
+ (function (KnownOrigin) {
73
+ /** User */
74
+ KnownOrigin["User"] = "user";
75
+ /** System */
76
+ KnownOrigin["System"] = "system";
77
+ /** UserSystem */
78
+ KnownOrigin["UserSystem"] = "user,system";
79
+ })(exports.KnownOrigin || (exports.KnownOrigin = {}));
80
+ /** Known values of {@link ActionType} that the service accepts. */
81
+ exports.KnownActionType = void 0;
82
+ (function (KnownActionType) {
83
+ /** Internal */
84
+ KnownActionType["Internal"] = "Internal";
85
+ })(exports.KnownActionType || (exports.KnownActionType = {}));
86
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
87
+ exports.KnownManagedServiceIdentityType = void 0;
88
+ (function (KnownManagedServiceIdentityType) {
89
+ /** None */
90
+ KnownManagedServiceIdentityType["None"] = "None";
91
+ /** SystemAssigned */
92
+ KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
93
+ /** UserAssigned */
94
+ KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
95
+ /** SystemAssignedUserAssigned */
96
+ KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
97
+ })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
98
+ /** Known values of {@link CreatedByType} that the service accepts. */
99
+ exports.KnownCreatedByType = void 0;
100
+ (function (KnownCreatedByType) {
101
+ /** User */
102
+ KnownCreatedByType["User"] = "User";
103
+ /** Application */
104
+ KnownCreatedByType["Application"] = "Application";
105
+ /** ManagedIdentity */
106
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
107
+ /** Key */
108
+ KnownCreatedByType["Key"] = "Key";
109
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
110
+
111
+ /*
112
+ * Copyright (c) Microsoft Corporation.
113
+ * Licensed under the MIT License.
114
+ *
115
+ * Code generated by Microsoft (R) AutoRest Code Generator.
116
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
117
+ */
118
+ const OperationListResult = {
119
+ type: {
120
+ name: "Composite",
121
+ className: "OperationListResult",
122
+ modelProperties: {
123
+ value: {
124
+ serializedName: "value",
125
+ readOnly: true,
126
+ type: {
127
+ name: "Sequence",
128
+ element: {
129
+ type: {
130
+ name: "Composite",
131
+ className: "Operation"
132
+ }
133
+ }
134
+ }
135
+ },
136
+ nextLink: {
137
+ serializedName: "nextLink",
138
+ readOnly: true,
139
+ type: {
140
+ name: "String"
141
+ }
142
+ }
143
+ }
144
+ }
145
+ };
146
+ const Operation = {
147
+ type: {
148
+ name: "Composite",
149
+ className: "Operation",
150
+ modelProperties: {
151
+ name: {
152
+ serializedName: "name",
153
+ readOnly: true,
154
+ type: {
155
+ name: "String"
156
+ }
157
+ },
158
+ isDataAction: {
159
+ serializedName: "isDataAction",
160
+ readOnly: true,
161
+ type: {
162
+ name: "Boolean"
163
+ }
164
+ },
165
+ display: {
166
+ serializedName: "display",
167
+ type: {
168
+ name: "Composite",
169
+ className: "OperationDisplay"
170
+ }
171
+ },
172
+ origin: {
173
+ serializedName: "origin",
174
+ readOnly: true,
175
+ type: {
176
+ name: "String"
177
+ }
178
+ },
179
+ actionType: {
180
+ serializedName: "actionType",
181
+ readOnly: true,
182
+ type: {
183
+ name: "String"
184
+ }
185
+ }
186
+ }
187
+ }
188
+ };
189
+ const OperationDisplay = {
190
+ type: {
191
+ name: "Composite",
192
+ className: "OperationDisplay",
193
+ modelProperties: {
194
+ provider: {
195
+ serializedName: "provider",
196
+ readOnly: true,
197
+ type: {
198
+ name: "String"
199
+ }
200
+ },
201
+ resource: {
202
+ serializedName: "resource",
203
+ readOnly: true,
204
+ type: {
205
+ name: "String"
206
+ }
207
+ },
208
+ operation: {
209
+ serializedName: "operation",
210
+ readOnly: true,
211
+ type: {
212
+ name: "String"
213
+ }
214
+ },
215
+ description: {
216
+ serializedName: "description",
217
+ readOnly: true,
218
+ type: {
219
+ name: "String"
220
+ }
221
+ }
222
+ }
223
+ }
224
+ };
225
+ const ErrorResponse = {
226
+ type: {
227
+ name: "Composite",
228
+ className: "ErrorResponse",
229
+ modelProperties: {
230
+ error: {
231
+ serializedName: "error",
232
+ type: {
233
+ name: "Composite",
234
+ className: "ErrorDetail"
235
+ }
236
+ }
237
+ }
238
+ }
239
+ };
240
+ const ErrorDetail = {
241
+ type: {
242
+ name: "Composite",
243
+ className: "ErrorDetail",
244
+ modelProperties: {
245
+ code: {
246
+ serializedName: "code",
247
+ readOnly: true,
248
+ type: {
249
+ name: "String"
250
+ }
251
+ },
252
+ message: {
253
+ serializedName: "message",
254
+ readOnly: true,
255
+ type: {
256
+ name: "String"
257
+ }
258
+ },
259
+ target: {
260
+ serializedName: "target",
261
+ readOnly: true,
262
+ type: {
263
+ name: "String"
264
+ }
265
+ },
266
+ details: {
267
+ serializedName: "details",
268
+ readOnly: true,
269
+ type: {
270
+ name: "Sequence",
271
+ element: {
272
+ type: {
273
+ name: "Composite",
274
+ className: "ErrorDetail"
275
+ }
276
+ }
277
+ }
278
+ },
279
+ additionalInfo: {
280
+ serializedName: "additionalInfo",
281
+ readOnly: true,
282
+ type: {
283
+ name: "Sequence",
284
+ element: {
285
+ type: {
286
+ name: "Composite",
287
+ className: "ErrorAdditionalInfo"
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }
293
+ }
294
+ };
295
+ const ErrorAdditionalInfo = {
296
+ type: {
297
+ name: "Composite",
298
+ className: "ErrorAdditionalInfo",
299
+ modelProperties: {
300
+ type: {
301
+ serializedName: "type",
302
+ readOnly: true,
303
+ type: {
304
+ name: "String"
305
+ }
306
+ },
307
+ info: {
308
+ serializedName: "info",
309
+ readOnly: true,
310
+ type: {
311
+ name: "Dictionary",
312
+ value: { type: { name: "any" } }
313
+ }
314
+ }
315
+ }
316
+ }
317
+ };
318
+ const FileSystemResourceListResult = {
319
+ type: {
320
+ name: "Composite",
321
+ className: "FileSystemResourceListResult",
322
+ modelProperties: {
323
+ value: {
324
+ serializedName: "value",
325
+ required: true,
326
+ type: {
327
+ name: "Sequence",
328
+ element: {
329
+ type: {
330
+ name: "Composite",
331
+ className: "FileSystemResource"
332
+ }
333
+ }
334
+ }
335
+ },
336
+ nextLink: {
337
+ serializedName: "nextLink",
338
+ type: {
339
+ name: "String"
340
+ }
341
+ }
342
+ }
343
+ }
344
+ };
345
+ const MarketplaceDetails = {
346
+ type: {
347
+ name: "Composite",
348
+ className: "MarketplaceDetails",
349
+ modelProperties: {
350
+ marketplaceSubscriptionId: {
351
+ serializedName: "marketplaceSubscriptionId",
352
+ type: {
353
+ name: "String"
354
+ }
355
+ },
356
+ planId: {
357
+ serializedName: "planId",
358
+ required: true,
359
+ type: {
360
+ name: "String"
361
+ }
362
+ },
363
+ offerId: {
364
+ serializedName: "offerId",
365
+ required: true,
366
+ type: {
367
+ name: "String"
368
+ }
369
+ },
370
+ publisherId: {
371
+ serializedName: "publisherId",
372
+ required: true,
373
+ type: {
374
+ name: "String"
375
+ }
376
+ },
377
+ marketplaceSubscriptionStatus: {
378
+ serializedName: "marketplaceSubscriptionStatus",
379
+ readOnly: true,
380
+ type: {
381
+ name: "Enum",
382
+ allowedValues: [
383
+ "PendingFulfillmentStart",
384
+ "Subscribed",
385
+ "Suspended",
386
+ "Unsubscribed"
387
+ ]
388
+ }
389
+ }
390
+ }
391
+ }
392
+ };
393
+ const UserDetails = {
394
+ type: {
395
+ name: "Composite",
396
+ className: "UserDetails",
397
+ modelProperties: {
398
+ email: {
399
+ serializedName: "email",
400
+ required: true,
401
+ type: {
402
+ name: "String"
403
+ }
404
+ }
405
+ }
406
+ }
407
+ };
408
+ const ManagedServiceIdentity = {
409
+ type: {
410
+ name: "Composite",
411
+ className: "ManagedServiceIdentity",
412
+ modelProperties: {
413
+ principalId: {
414
+ serializedName: "principalId",
415
+ readOnly: true,
416
+ type: {
417
+ name: "Uuid"
418
+ }
419
+ },
420
+ tenantId: {
421
+ serializedName: "tenantId",
422
+ readOnly: true,
423
+ type: {
424
+ name: "Uuid"
425
+ }
426
+ },
427
+ type: {
428
+ serializedName: "type",
429
+ required: true,
430
+ type: {
431
+ name: "String"
432
+ }
433
+ },
434
+ userAssignedIdentities: {
435
+ serializedName: "userAssignedIdentities",
436
+ type: {
437
+ name: "Dictionary",
438
+ value: {
439
+ type: { name: "Composite", className: "UserAssignedIdentity" }
440
+ }
441
+ }
442
+ }
443
+ }
444
+ }
445
+ };
446
+ const UserAssignedIdentity = {
447
+ type: {
448
+ name: "Composite",
449
+ className: "UserAssignedIdentity",
450
+ modelProperties: {
451
+ principalId: {
452
+ serializedName: "principalId",
453
+ readOnly: true,
454
+ type: {
455
+ name: "Uuid"
456
+ }
457
+ },
458
+ clientId: {
459
+ serializedName: "clientId",
460
+ readOnly: true,
461
+ type: {
462
+ name: "Uuid"
463
+ }
464
+ }
465
+ }
466
+ }
467
+ };
468
+ const Resource = {
469
+ type: {
470
+ name: "Composite",
471
+ className: "Resource",
472
+ modelProperties: {
473
+ id: {
474
+ serializedName: "id",
475
+ readOnly: true,
476
+ type: {
477
+ name: "String"
478
+ }
479
+ },
480
+ name: {
481
+ serializedName: "name",
482
+ readOnly: true,
483
+ type: {
484
+ name: "String"
485
+ }
486
+ },
487
+ type: {
488
+ serializedName: "type",
489
+ readOnly: true,
490
+ type: {
491
+ name: "String"
492
+ }
493
+ },
494
+ systemData: {
495
+ serializedName: "systemData",
496
+ type: {
497
+ name: "Composite",
498
+ className: "SystemData"
499
+ }
500
+ }
501
+ }
502
+ }
503
+ };
504
+ const SystemData = {
505
+ type: {
506
+ name: "Composite",
507
+ className: "SystemData",
508
+ modelProperties: {
509
+ createdBy: {
510
+ serializedName: "createdBy",
511
+ type: {
512
+ name: "String"
513
+ }
514
+ },
515
+ createdByType: {
516
+ serializedName: "createdByType",
517
+ type: {
518
+ name: "String"
519
+ }
520
+ },
521
+ createdAt: {
522
+ serializedName: "createdAt",
523
+ type: {
524
+ name: "DateTime"
525
+ }
526
+ },
527
+ lastModifiedBy: {
528
+ serializedName: "lastModifiedBy",
529
+ type: {
530
+ name: "String"
531
+ }
532
+ },
533
+ lastModifiedByType: {
534
+ serializedName: "lastModifiedByType",
535
+ type: {
536
+ name: "String"
537
+ }
538
+ },
539
+ lastModifiedAt: {
540
+ serializedName: "lastModifiedAt",
541
+ type: {
542
+ name: "DateTime"
543
+ }
544
+ }
545
+ }
546
+ }
547
+ };
548
+ const FileSystemResourceUpdate = {
549
+ type: {
550
+ name: "Composite",
551
+ className: "FileSystemResourceUpdate",
552
+ modelProperties: {
553
+ identity: {
554
+ serializedName: "identity",
555
+ type: {
556
+ name: "Composite",
557
+ className: "ManagedServiceIdentity"
558
+ }
559
+ },
560
+ tags: {
561
+ serializedName: "tags",
562
+ type: {
563
+ name: "Dictionary",
564
+ value: { type: { name: "String" } }
565
+ }
566
+ },
567
+ properties: {
568
+ serializedName: "properties",
569
+ type: {
570
+ name: "Composite",
571
+ className: "FileSystemResourceUpdateProperties"
572
+ }
573
+ }
574
+ }
575
+ }
576
+ };
577
+ const FileSystemResourceUpdateProperties = {
578
+ type: {
579
+ name: "Composite",
580
+ className: "FileSystemResourceUpdateProperties",
581
+ modelProperties: {
582
+ marketplaceDetails: {
583
+ serializedName: "marketplaceDetails",
584
+ type: {
585
+ name: "Composite",
586
+ className: "MarketplaceDetails"
587
+ }
588
+ },
589
+ userDetails: {
590
+ serializedName: "userDetails",
591
+ type: {
592
+ name: "Composite",
593
+ className: "UserDetails"
594
+ }
595
+ },
596
+ delegatedSubnetId: {
597
+ serializedName: "delegatedSubnetId",
598
+ type: {
599
+ name: "String"
600
+ }
601
+ },
602
+ clusterLoginUrl: {
603
+ serializedName: "clusterLoginUrl",
604
+ type: {
605
+ name: "String"
606
+ }
607
+ },
608
+ privateIPs: {
609
+ serializedName: "privateIPs",
610
+ type: {
611
+ name: "Sequence",
612
+ element: {
613
+ type: {
614
+ name: "String"
615
+ }
616
+ }
617
+ }
618
+ }
619
+ }
620
+ }
621
+ };
622
+ const TrackedResource = {
623
+ type: {
624
+ name: "Composite",
625
+ className: "TrackedResource",
626
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
627
+ serializedName: "tags",
628
+ type: {
629
+ name: "Dictionary",
630
+ value: { type: { name: "String" } }
631
+ }
632
+ }, location: {
633
+ serializedName: "location",
634
+ required: true,
635
+ type: {
636
+ name: "String"
637
+ }
638
+ } })
639
+ }
640
+ };
641
+ const FileSystemResource = {
642
+ type: {
643
+ name: "Composite",
644
+ className: "FileSystemResource",
645
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
646
+ serializedName: "identity",
647
+ type: {
648
+ name: "Composite",
649
+ className: "ManagedServiceIdentity"
650
+ }
651
+ }, marketplaceDetails: {
652
+ serializedName: "properties.marketplaceDetails",
653
+ type: {
654
+ name: "Composite",
655
+ className: "MarketplaceDetails"
656
+ }
657
+ }, provisioningState: {
658
+ serializedName: "properties.provisioningState",
659
+ readOnly: true,
660
+ type: {
661
+ name: "Enum",
662
+ allowedValues: [
663
+ "Accepted",
664
+ "Creating",
665
+ "Updating",
666
+ "Deleting",
667
+ "Succeeded",
668
+ "Failed",
669
+ "Canceled",
670
+ "Deleted",
671
+ "NotSpecified"
672
+ ]
673
+ }
674
+ }, storageSku: {
675
+ serializedName: "properties.storageSku",
676
+ required: true,
677
+ type: {
678
+ name: "Enum",
679
+ allowedValues: ["Standard", "Performance"]
680
+ }
681
+ }, userDetails: {
682
+ serializedName: "properties.userDetails",
683
+ type: {
684
+ name: "Composite",
685
+ className: "UserDetails"
686
+ }
687
+ }, delegatedSubnetId: {
688
+ serializedName: "properties.delegatedSubnetId",
689
+ required: true,
690
+ type: {
691
+ name: "String"
692
+ }
693
+ }, clusterLoginUrl: {
694
+ serializedName: "properties.clusterLoginUrl",
695
+ type: {
696
+ name: "String"
697
+ }
698
+ }, privateIPs: {
699
+ serializedName: "properties.privateIPs",
700
+ type: {
701
+ name: "Sequence",
702
+ element: {
703
+ type: {
704
+ name: "String"
705
+ }
706
+ }
707
+ }
708
+ }, adminPassword: {
709
+ serializedName: "properties.adminPassword",
710
+ required: true,
711
+ type: {
712
+ name: "String"
713
+ }
714
+ }, initialCapacity: {
715
+ serializedName: "properties.initialCapacity",
716
+ required: true,
717
+ type: {
718
+ name: "Number"
719
+ }
720
+ }, availabilityZone: {
721
+ serializedName: "properties.availabilityZone",
722
+ type: {
723
+ name: "String"
724
+ }
725
+ } })
726
+ }
727
+ };
728
+
729
+ var Mappers = /*#__PURE__*/Object.freeze({
730
+ __proto__: null,
731
+ OperationListResult: OperationListResult,
732
+ Operation: Operation,
733
+ OperationDisplay: OperationDisplay,
734
+ ErrorResponse: ErrorResponse,
735
+ ErrorDetail: ErrorDetail,
736
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
737
+ FileSystemResourceListResult: FileSystemResourceListResult,
738
+ MarketplaceDetails: MarketplaceDetails,
739
+ UserDetails: UserDetails,
740
+ ManagedServiceIdentity: ManagedServiceIdentity,
741
+ UserAssignedIdentity: UserAssignedIdentity,
742
+ Resource: Resource,
743
+ SystemData: SystemData,
744
+ FileSystemResourceUpdate: FileSystemResourceUpdate,
745
+ FileSystemResourceUpdateProperties: FileSystemResourceUpdateProperties,
746
+ TrackedResource: TrackedResource,
747
+ FileSystemResource: FileSystemResource
748
+ });
749
+
750
+ /*
751
+ * Copyright (c) Microsoft Corporation.
752
+ * Licensed under the MIT License.
753
+ *
754
+ * Code generated by Microsoft (R) AutoRest Code Generator.
755
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
756
+ */
757
+ const accept = {
758
+ parameterPath: "accept",
759
+ mapper: {
760
+ defaultValue: "application/json",
761
+ isConstant: true,
762
+ serializedName: "Accept",
763
+ type: {
764
+ name: "String"
765
+ }
766
+ }
767
+ };
768
+ const $host = {
769
+ parameterPath: "$host",
770
+ mapper: {
771
+ serializedName: "$host",
772
+ required: true,
773
+ type: {
774
+ name: "String"
775
+ }
776
+ },
777
+ skipEncoding: true
778
+ };
779
+ const apiVersion = {
780
+ parameterPath: "apiVersion",
781
+ mapper: {
782
+ defaultValue: "2022-10-12",
783
+ isConstant: true,
784
+ serializedName: "api-version",
785
+ type: {
786
+ name: "String"
787
+ }
788
+ }
789
+ };
790
+ const nextLink = {
791
+ parameterPath: "nextLink",
792
+ mapper: {
793
+ serializedName: "nextLink",
794
+ required: true,
795
+ type: {
796
+ name: "String"
797
+ }
798
+ },
799
+ skipEncoding: true
800
+ };
801
+ const subscriptionId = {
802
+ parameterPath: "subscriptionId",
803
+ mapper: {
804
+ constraints: {
805
+ MinLength: 1
806
+ },
807
+ serializedName: "subscriptionId",
808
+ required: true,
809
+ type: {
810
+ name: "String"
811
+ }
812
+ }
813
+ };
814
+ const resourceGroupName = {
815
+ parameterPath: "resourceGroupName",
816
+ mapper: {
817
+ constraints: {
818
+ MaxLength: 90,
819
+ MinLength: 1
820
+ },
821
+ serializedName: "resourceGroupName",
822
+ required: true,
823
+ type: {
824
+ name: "String"
825
+ }
826
+ }
827
+ };
828
+ const fileSystemName = {
829
+ parameterPath: "fileSystemName",
830
+ mapper: {
831
+ serializedName: "fileSystemName",
832
+ required: true,
833
+ type: {
834
+ name: "String"
835
+ }
836
+ }
837
+ };
838
+ const contentType = {
839
+ parameterPath: ["options", "contentType"],
840
+ mapper: {
841
+ defaultValue: "application/json",
842
+ isConstant: true,
843
+ serializedName: "Content-Type",
844
+ type: {
845
+ name: "String"
846
+ }
847
+ }
848
+ };
849
+ const resource = {
850
+ parameterPath: "resource",
851
+ mapper: FileSystemResource
852
+ };
853
+ const properties = {
854
+ parameterPath: "properties",
855
+ mapper: FileSystemResourceUpdate
856
+ };
857
+
858
+ /*
859
+ * Copyright (c) Microsoft Corporation.
860
+ * Licensed under the MIT License.
861
+ *
862
+ * Code generated by Microsoft (R) AutoRest Code Generator.
863
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
864
+ */
865
+ /// <reference lib="esnext.asynciterable" />
866
+ /** Class containing Operations operations. */
867
+ class OperationsImpl {
868
+ /**
869
+ * Initialize a new instance of the class Operations class.
870
+ * @param client Reference to the service client
871
+ */
872
+ constructor(client) {
873
+ this.client = client;
874
+ }
875
+ /**
876
+ * List the operations for the provider
877
+ * @param options The options parameters.
878
+ */
879
+ list(options) {
880
+ const iter = this.listPagingAll(options);
881
+ return {
882
+ next() {
883
+ return iter.next();
884
+ },
885
+ [Symbol.asyncIterator]() {
886
+ return this;
887
+ },
888
+ byPage: (settings) => {
889
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
890
+ throw new Error("maxPageSize is not supported by this operation.");
891
+ }
892
+ return this.listPagingPage(options, settings);
893
+ }
894
+ };
895
+ }
896
+ listPagingPage(options, settings) {
897
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
898
+ let result;
899
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
900
+ if (!continuationToken) {
901
+ result = yield tslib.__await(this._list(options));
902
+ let page = result.value || [];
903
+ continuationToken = result.nextLink;
904
+ setContinuationToken(page, continuationToken);
905
+ yield yield tslib.__await(page);
906
+ }
907
+ while (continuationToken) {
908
+ result = yield tslib.__await(this._listNext(continuationToken, options));
909
+ continuationToken = result.nextLink;
910
+ let page = result.value || [];
911
+ setContinuationToken(page, continuationToken);
912
+ yield yield tslib.__await(page);
913
+ }
914
+ });
915
+ }
916
+ listPagingAll(options) {
917
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
918
+ var _a, e_1, _b, _c;
919
+ try {
920
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
921
+ _c = _f.value;
922
+ _d = false;
923
+ try {
924
+ const page = _c;
925
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
926
+ }
927
+ finally {
928
+ _d = true;
929
+ }
930
+ }
931
+ }
932
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
933
+ finally {
934
+ try {
935
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
936
+ }
937
+ finally { if (e_1) throw e_1.error; }
938
+ }
939
+ });
940
+ }
941
+ /**
942
+ * List the operations for the provider
943
+ * @param options The options parameters.
944
+ */
945
+ _list(options) {
946
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
947
+ }
948
+ /**
949
+ * ListNext
950
+ * @param nextLink The nextLink from the previous successful call to the List method.
951
+ * @param options The options parameters.
952
+ */
953
+ _listNext(nextLink, options) {
954
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
955
+ }
956
+ }
957
+ // Operation Specifications
958
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
959
+ const listOperationSpec = {
960
+ path: "/providers/Qumulo.Storage/operations",
961
+ httpMethod: "GET",
962
+ responses: {
963
+ 200: {
964
+ bodyMapper: OperationListResult
965
+ },
966
+ default: {
967
+ bodyMapper: ErrorResponse
968
+ }
969
+ },
970
+ queryParameters: [apiVersion],
971
+ urlParameters: [$host],
972
+ headerParameters: [accept],
973
+ serializer: serializer$1
974
+ };
975
+ const listNextOperationSpec = {
976
+ path: "{nextLink}",
977
+ httpMethod: "GET",
978
+ responses: {
979
+ 200: {
980
+ bodyMapper: OperationListResult
981
+ },
982
+ default: {
983
+ bodyMapper: ErrorResponse
984
+ }
985
+ },
986
+ urlParameters: [$host, nextLink],
987
+ headerParameters: [accept],
988
+ serializer: serializer$1
989
+ };
990
+
991
+ /*
992
+ * Copyright (c) Microsoft Corporation.
993
+ * Licensed under the MIT License.
994
+ *
995
+ * Code generated by Microsoft (R) AutoRest Code Generator.
996
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
997
+ */
998
+ function createLroSpec(inputs) {
999
+ const { args, spec, sendOperationFn } = inputs;
1000
+ return {
1001
+ requestMethod: spec.httpMethod,
1002
+ requestPath: spec.path,
1003
+ sendInitialRequest: () => sendOperationFn(args, spec),
1004
+ sendPollRequest: (path, options) => {
1005
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
1006
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1007
+ }
1008
+ };
1009
+ }
1010
+
1011
+ /*
1012
+ * Copyright (c) Microsoft Corporation.
1013
+ * Licensed under the MIT License.
1014
+ *
1015
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1016
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1017
+ */
1018
+ /// <reference lib="esnext.asynciterable" />
1019
+ /** Class containing FileSystems operations. */
1020
+ class FileSystemsImpl {
1021
+ /**
1022
+ * Initialize a new instance of the class FileSystems class.
1023
+ * @param client Reference to the service client
1024
+ */
1025
+ constructor(client) {
1026
+ this.client = client;
1027
+ }
1028
+ /**
1029
+ * List FileSystemResource resources by subscription ID
1030
+ * @param options The options parameters.
1031
+ */
1032
+ listBySubscription(options) {
1033
+ const iter = this.listBySubscriptionPagingAll(options);
1034
+ return {
1035
+ next() {
1036
+ return iter.next();
1037
+ },
1038
+ [Symbol.asyncIterator]() {
1039
+ return this;
1040
+ },
1041
+ byPage: (settings) => {
1042
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1043
+ throw new Error("maxPageSize is not supported by this operation.");
1044
+ }
1045
+ return this.listBySubscriptionPagingPage(options, settings);
1046
+ }
1047
+ };
1048
+ }
1049
+ listBySubscriptionPagingPage(options, settings) {
1050
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1051
+ let result;
1052
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1053
+ if (!continuationToken) {
1054
+ result = yield tslib.__await(this._listBySubscription(options));
1055
+ let page = result.value || [];
1056
+ continuationToken = result.nextLink;
1057
+ setContinuationToken(page, continuationToken);
1058
+ yield yield tslib.__await(page);
1059
+ }
1060
+ while (continuationToken) {
1061
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1062
+ continuationToken = result.nextLink;
1063
+ let page = result.value || [];
1064
+ setContinuationToken(page, continuationToken);
1065
+ yield yield tslib.__await(page);
1066
+ }
1067
+ });
1068
+ }
1069
+ listBySubscriptionPagingAll(options) {
1070
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1071
+ var _a, e_1, _b, _c;
1072
+ try {
1073
+ for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1074
+ _c = _f.value;
1075
+ _d = false;
1076
+ try {
1077
+ const page = _c;
1078
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1079
+ }
1080
+ finally {
1081
+ _d = true;
1082
+ }
1083
+ }
1084
+ }
1085
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1086
+ finally {
1087
+ try {
1088
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1089
+ }
1090
+ finally { if (e_1) throw e_1.error; }
1091
+ }
1092
+ });
1093
+ }
1094
+ /**
1095
+ * List FileSystemResource resources by resource group
1096
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1097
+ * @param options The options parameters.
1098
+ */
1099
+ listByResourceGroup(resourceGroupName, options) {
1100
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1101
+ return {
1102
+ next() {
1103
+ return iter.next();
1104
+ },
1105
+ [Symbol.asyncIterator]() {
1106
+ return this;
1107
+ },
1108
+ byPage: (settings) => {
1109
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1110
+ throw new Error("maxPageSize is not supported by this operation.");
1111
+ }
1112
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1113
+ }
1114
+ };
1115
+ }
1116
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1117
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1118
+ let result;
1119
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1120
+ if (!continuationToken) {
1121
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1122
+ let page = result.value || [];
1123
+ continuationToken = result.nextLink;
1124
+ setContinuationToken(page, continuationToken);
1125
+ yield yield tslib.__await(page);
1126
+ }
1127
+ while (continuationToken) {
1128
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1129
+ continuationToken = result.nextLink;
1130
+ let page = result.value || [];
1131
+ setContinuationToken(page, continuationToken);
1132
+ yield yield tslib.__await(page);
1133
+ }
1134
+ });
1135
+ }
1136
+ listByResourceGroupPagingAll(resourceGroupName, options) {
1137
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1138
+ var _a, e_2, _b, _c;
1139
+ try {
1140
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1141
+ _c = _f.value;
1142
+ _d = false;
1143
+ try {
1144
+ const page = _c;
1145
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1146
+ }
1147
+ finally {
1148
+ _d = true;
1149
+ }
1150
+ }
1151
+ }
1152
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1153
+ finally {
1154
+ try {
1155
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1156
+ }
1157
+ finally { if (e_2) throw e_2.error; }
1158
+ }
1159
+ });
1160
+ }
1161
+ /**
1162
+ * List FileSystemResource resources by subscription ID
1163
+ * @param options The options parameters.
1164
+ */
1165
+ _listBySubscription(options) {
1166
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1167
+ }
1168
+ /**
1169
+ * List FileSystemResource resources by resource group
1170
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1171
+ * @param options The options parameters.
1172
+ */
1173
+ _listByResourceGroup(resourceGroupName, options) {
1174
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1175
+ }
1176
+ /**
1177
+ * Get a FileSystemResource
1178
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1179
+ * @param fileSystemName Name of the File System resource
1180
+ * @param options The options parameters.
1181
+ */
1182
+ get(resourceGroupName, fileSystemName, options) {
1183
+ return this.client.sendOperationRequest({ resourceGroupName, fileSystemName, options }, getOperationSpec);
1184
+ }
1185
+ /**
1186
+ * Create a FileSystemResource
1187
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1188
+ * @param fileSystemName Name of the File System resource
1189
+ * @param resource Resource create parameters.
1190
+ * @param options The options parameters.
1191
+ */
1192
+ beginCreateOrUpdate(resourceGroupName, fileSystemName, resource, options) {
1193
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1194
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1195
+ return this.client.sendOperationRequest(args, spec);
1196
+ });
1197
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1198
+ var _a;
1199
+ let currentRawResponse = undefined;
1200
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1201
+ const callback = (rawResponse, flatResponse) => {
1202
+ currentRawResponse = rawResponse;
1203
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1204
+ };
1205
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1206
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1207
+ return {
1208
+ flatResponse,
1209
+ rawResponse: {
1210
+ statusCode: currentRawResponse.status,
1211
+ body: currentRawResponse.parsedBody,
1212
+ headers: currentRawResponse.headers.toJSON()
1213
+ }
1214
+ };
1215
+ });
1216
+ const lro = createLroSpec({
1217
+ sendOperationFn,
1218
+ args: { resourceGroupName, fileSystemName, resource, options },
1219
+ spec: createOrUpdateOperationSpec
1220
+ });
1221
+ const poller = yield coreLro.createHttpPoller(lro, {
1222
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1223
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1224
+ resourceLocationConfig: "azure-async-operation"
1225
+ });
1226
+ yield poller.poll();
1227
+ return poller;
1228
+ });
1229
+ }
1230
+ /**
1231
+ * Create a FileSystemResource
1232
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1233
+ * @param fileSystemName Name of the File System resource
1234
+ * @param resource Resource create parameters.
1235
+ * @param options The options parameters.
1236
+ */
1237
+ beginCreateOrUpdateAndWait(resourceGroupName, fileSystemName, resource, options) {
1238
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1239
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, fileSystemName, resource, options);
1240
+ return poller.pollUntilDone();
1241
+ });
1242
+ }
1243
+ /**
1244
+ * Update a FileSystemResource
1245
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1246
+ * @param fileSystemName Name of the File System resource
1247
+ * @param properties The resource properties to be updated.
1248
+ * @param options The options parameters.
1249
+ */
1250
+ update(resourceGroupName, fileSystemName, properties, options) {
1251
+ return this.client.sendOperationRequest({ resourceGroupName, fileSystemName, properties, options }, updateOperationSpec);
1252
+ }
1253
+ /**
1254
+ * Delete a FileSystemResource
1255
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1256
+ * @param fileSystemName Name of the File System resource
1257
+ * @param options The options parameters.
1258
+ */
1259
+ beginDelete(resourceGroupName, fileSystemName, options) {
1260
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1261
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1262
+ return this.client.sendOperationRequest(args, spec);
1263
+ });
1264
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1265
+ var _a;
1266
+ let currentRawResponse = undefined;
1267
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1268
+ const callback = (rawResponse, flatResponse) => {
1269
+ currentRawResponse = rawResponse;
1270
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1271
+ };
1272
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1273
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1274
+ return {
1275
+ flatResponse,
1276
+ rawResponse: {
1277
+ statusCode: currentRawResponse.status,
1278
+ body: currentRawResponse.parsedBody,
1279
+ headers: currentRawResponse.headers.toJSON()
1280
+ }
1281
+ };
1282
+ });
1283
+ const lro = createLroSpec({
1284
+ sendOperationFn,
1285
+ args: { resourceGroupName, fileSystemName, options },
1286
+ spec: deleteOperationSpec
1287
+ });
1288
+ const poller = yield coreLro.createHttpPoller(lro, {
1289
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1290
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1291
+ resourceLocationConfig: "azure-async-operation"
1292
+ });
1293
+ yield poller.poll();
1294
+ return poller;
1295
+ });
1296
+ }
1297
+ /**
1298
+ * Delete a FileSystemResource
1299
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1300
+ * @param fileSystemName Name of the File System resource
1301
+ * @param options The options parameters.
1302
+ */
1303
+ beginDeleteAndWait(resourceGroupName, fileSystemName, options) {
1304
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1305
+ const poller = yield this.beginDelete(resourceGroupName, fileSystemName, options);
1306
+ return poller.pollUntilDone();
1307
+ });
1308
+ }
1309
+ /**
1310
+ * ListBySubscriptionNext
1311
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1312
+ * @param options The options parameters.
1313
+ */
1314
+ _listBySubscriptionNext(nextLink, options) {
1315
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1316
+ }
1317
+ /**
1318
+ * ListByResourceGroupNext
1319
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1320
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1321
+ * @param options The options parameters.
1322
+ */
1323
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1324
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1325
+ }
1326
+ }
1327
+ // Operation Specifications
1328
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1329
+ const listBySubscriptionOperationSpec = {
1330
+ path: "/subscriptions/{subscriptionId}/providers/Qumulo.Storage/fileSystems",
1331
+ httpMethod: "GET",
1332
+ responses: {
1333
+ 200: {
1334
+ bodyMapper: FileSystemResourceListResult
1335
+ },
1336
+ default: {
1337
+ bodyMapper: ErrorResponse
1338
+ }
1339
+ },
1340
+ queryParameters: [apiVersion],
1341
+ urlParameters: [$host, subscriptionId],
1342
+ headerParameters: [accept],
1343
+ serializer
1344
+ };
1345
+ const listByResourceGroupOperationSpec = {
1346
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems",
1347
+ httpMethod: "GET",
1348
+ responses: {
1349
+ 200: {
1350
+ bodyMapper: FileSystemResourceListResult
1351
+ },
1352
+ default: {
1353
+ bodyMapper: ErrorResponse
1354
+ }
1355
+ },
1356
+ queryParameters: [apiVersion],
1357
+ urlParameters: [
1358
+ $host,
1359
+ subscriptionId,
1360
+ resourceGroupName
1361
+ ],
1362
+ headerParameters: [accept],
1363
+ serializer
1364
+ };
1365
+ const getOperationSpec = {
1366
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
1367
+ httpMethod: "GET",
1368
+ responses: {
1369
+ 200: {
1370
+ bodyMapper: FileSystemResource
1371
+ },
1372
+ default: {
1373
+ bodyMapper: ErrorResponse
1374
+ }
1375
+ },
1376
+ queryParameters: [apiVersion],
1377
+ urlParameters: [
1378
+ $host,
1379
+ subscriptionId,
1380
+ resourceGroupName,
1381
+ fileSystemName
1382
+ ],
1383
+ headerParameters: [accept],
1384
+ serializer
1385
+ };
1386
+ const createOrUpdateOperationSpec = {
1387
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
1388
+ httpMethod: "PUT",
1389
+ responses: {
1390
+ 200: {
1391
+ bodyMapper: FileSystemResource
1392
+ },
1393
+ 201: {
1394
+ bodyMapper: FileSystemResource
1395
+ },
1396
+ 202: {
1397
+ bodyMapper: FileSystemResource
1398
+ },
1399
+ 204: {
1400
+ bodyMapper: FileSystemResource
1401
+ },
1402
+ default: {
1403
+ bodyMapper: ErrorResponse
1404
+ }
1405
+ },
1406
+ requestBody: resource,
1407
+ queryParameters: [apiVersion],
1408
+ urlParameters: [
1409
+ $host,
1410
+ subscriptionId,
1411
+ resourceGroupName,
1412
+ fileSystemName
1413
+ ],
1414
+ headerParameters: [accept, contentType],
1415
+ mediaType: "json",
1416
+ serializer
1417
+ };
1418
+ const updateOperationSpec = {
1419
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
1420
+ httpMethod: "PATCH",
1421
+ responses: {
1422
+ 200: {
1423
+ bodyMapper: FileSystemResource
1424
+ },
1425
+ default: {
1426
+ bodyMapper: ErrorResponse
1427
+ }
1428
+ },
1429
+ requestBody: properties,
1430
+ queryParameters: [apiVersion],
1431
+ urlParameters: [
1432
+ $host,
1433
+ subscriptionId,
1434
+ resourceGroupName,
1435
+ fileSystemName
1436
+ ],
1437
+ headerParameters: [accept, contentType],
1438
+ mediaType: "json",
1439
+ serializer
1440
+ };
1441
+ const deleteOperationSpec = {
1442
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
1443
+ httpMethod: "DELETE",
1444
+ responses: {
1445
+ 200: {},
1446
+ 201: {},
1447
+ 202: {},
1448
+ 204: {},
1449
+ default: {
1450
+ bodyMapper: ErrorResponse
1451
+ }
1452
+ },
1453
+ queryParameters: [apiVersion],
1454
+ urlParameters: [
1455
+ $host,
1456
+ subscriptionId,
1457
+ resourceGroupName,
1458
+ fileSystemName
1459
+ ],
1460
+ headerParameters: [accept],
1461
+ serializer
1462
+ };
1463
+ const listBySubscriptionNextOperationSpec = {
1464
+ path: "{nextLink}",
1465
+ httpMethod: "GET",
1466
+ responses: {
1467
+ 200: {
1468
+ bodyMapper: FileSystemResourceListResult
1469
+ },
1470
+ default: {
1471
+ bodyMapper: ErrorResponse
1472
+ }
1473
+ },
1474
+ urlParameters: [
1475
+ $host,
1476
+ nextLink,
1477
+ subscriptionId
1478
+ ],
1479
+ headerParameters: [accept],
1480
+ serializer
1481
+ };
1482
+ const listByResourceGroupNextOperationSpec = {
1483
+ path: "{nextLink}",
1484
+ httpMethod: "GET",
1485
+ responses: {
1486
+ 200: {
1487
+ bodyMapper: FileSystemResourceListResult
1488
+ },
1489
+ default: {
1490
+ bodyMapper: ErrorResponse
1491
+ }
1492
+ },
1493
+ urlParameters: [
1494
+ $host,
1495
+ nextLink,
1496
+ subscriptionId,
1497
+ resourceGroupName
1498
+ ],
1499
+ headerParameters: [accept],
1500
+ serializer
1501
+ };
1502
+
1503
+ /*
1504
+ * Copyright (c) Microsoft Corporation.
1505
+ * Licensed under the MIT License.
1506
+ *
1507
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1508
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1509
+ */
1510
+ class QumuloStorage extends coreClient__namespace.ServiceClient {
1511
+ /**
1512
+ * Initializes a new instance of the QumuloStorage class.
1513
+ * @param credentials Subscription credentials which uniquely identify client subscription.
1514
+ * @param subscriptionId The ID of the target subscription.
1515
+ * @param options The parameter options
1516
+ */
1517
+ constructor(credentials, subscriptionId, options) {
1518
+ var _a, _b, _c;
1519
+ if (credentials === undefined) {
1520
+ throw new Error("'credentials' cannot be null");
1521
+ }
1522
+ if (subscriptionId === undefined) {
1523
+ throw new Error("'subscriptionId' cannot be null");
1524
+ }
1525
+ // Initializing default values for options
1526
+ if (!options) {
1527
+ options = {};
1528
+ }
1529
+ const defaults = {
1530
+ requestContentType: "application/json; charset=utf-8",
1531
+ credential: credentials
1532
+ };
1533
+ const packageDetails = `azsdk-js-arm-qumulo/1.0.0`;
1534
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1535
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1536
+ : `${packageDetails}`;
1537
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1538
+ userAgentPrefix
1539
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1540
+ super(optionsWithDefaults);
1541
+ let bearerTokenAuthenticationPolicyFound = false;
1542
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1543
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
1544
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1545
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1546
+ }
1547
+ if (!options ||
1548
+ !options.pipeline ||
1549
+ options.pipeline.getOrderedPolicies().length == 0 ||
1550
+ !bearerTokenAuthenticationPolicyFound) {
1551
+ this.pipeline.removePolicy({
1552
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1553
+ });
1554
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1555
+ credential: credentials,
1556
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1557
+ challengeCallbacks: {
1558
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1559
+ }
1560
+ }));
1561
+ }
1562
+ // Parameter assignments
1563
+ this.subscriptionId = subscriptionId;
1564
+ // Assigning values to Constant parameters
1565
+ this.$host = options.$host || "https://management.azure.com";
1566
+ this.apiVersion = options.apiVersion || "2022-10-12";
1567
+ this.operations = new OperationsImpl(this);
1568
+ this.fileSystems = new FileSystemsImpl(this);
1569
+ this.addCustomApiVersionPolicy(options.apiVersion);
1570
+ }
1571
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1572
+ addCustomApiVersionPolicy(apiVersion) {
1573
+ if (!apiVersion) {
1574
+ return;
1575
+ }
1576
+ const apiVersionPolicy = {
1577
+ name: "CustomApiVersionPolicy",
1578
+ sendRequest(request, next) {
1579
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1580
+ const param = request.url.split("?");
1581
+ if (param.length > 1) {
1582
+ const newParams = param[1].split("&").map((item) => {
1583
+ if (item.indexOf("api-version") > -1) {
1584
+ return "api-version=" + apiVersion;
1585
+ }
1586
+ else {
1587
+ return item;
1588
+ }
1589
+ });
1590
+ request.url = param[0] + "?" + newParams.join("&");
1591
+ }
1592
+ return next(request);
1593
+ });
1594
+ }
1595
+ };
1596
+ this.pipeline.addPolicy(apiVersionPolicy);
1597
+ }
1598
+ }
1599
+
1600
+ exports.QumuloStorage = QumuloStorage;
1601
+ exports.getContinuationToken = getContinuationToken;
1602
+ //# sourceMappingURL=index.js.map