@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/package.json ADDED
@@ -0,0 +1,123 @@
1
+ {
2
+ "name": "@azure/arm-qumulo",
3
+ "sdk-type": "mgmt",
4
+ "author": "Microsoft Corporation",
5
+ "description": "A generated SDK for QumuloStorage.",
6
+ "version": "1.0.0",
7
+ "engines": {
8
+ "node": ">=14.0.0"
9
+ },
10
+ "dependencies": {
11
+ "@azure/core-lro": "^2.5.3",
12
+ "@azure/abort-controller": "^1.0.0",
13
+ "@azure/core-paging": "^1.2.0",
14
+ "@azure/core-client": "^1.7.0",
15
+ "@azure/core-auth": "^1.3.0",
16
+ "@azure/core-rest-pipeline": "^1.8.0",
17
+ "tslib": "^2.2.0"
18
+ },
19
+ "keywords": [
20
+ "node",
21
+ "azure",
22
+ "typescript",
23
+ "browser",
24
+ "isomorphic"
25
+ ],
26
+ "license": "MIT",
27
+ "main": "./dist/index.js",
28
+ "module": "./dist-esm/src/index.js",
29
+ "types": "./types/arm-qumulo.d.ts",
30
+ "devDependencies": {
31
+ "@microsoft/api-extractor": "^7.31.1",
32
+ "@rollup/plugin-commonjs": "^24.0.0",
33
+ "@rollup/plugin-json": "^6.0.0",
34
+ "@rollup/plugin-multi-entry": "^6.0.0",
35
+ "@rollup/plugin-node-resolve": "^13.1.3",
36
+ "mkdirp": "^2.1.2",
37
+ "rollup": "^2.66.1",
38
+ "rollup-plugin-sourcemaps": "^0.6.3",
39
+ "typescript": "~5.0.0",
40
+ "uglify-js": "^3.4.9",
41
+ "rimraf": "^3.0.0",
42
+ "dotenv": "^16.0.0",
43
+ "@azure/identity": "^2.0.1",
44
+ "@azure-tools/test-recorder": "^3.0.0",
45
+ "@azure-tools/test-credential": "^1.0.0",
46
+ "mocha": "^7.1.1",
47
+ "@types/chai": "^4.2.8",
48
+ "chai": "^4.2.0",
49
+ "cross-env": "^7.0.2",
50
+ "@types/node": "^14.0.0",
51
+ "@azure/dev-tool": "^1.0.0"
52
+ },
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
56
+ },
57
+ "bugs": {
58
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
59
+ },
60
+ "files": [
61
+ "dist/**/*.js",
62
+ "dist/**/*.js.map",
63
+ "dist/**/*.d.ts",
64
+ "dist/**/*.d.ts.map",
65
+ "dist-esm/**/*.js",
66
+ "dist-esm/**/*.js.map",
67
+ "dist-esm/**/*.d.ts",
68
+ "dist-esm/**/*.d.ts.map",
69
+ "src/**/*.ts",
70
+ "README.md",
71
+ "LICENSE",
72
+ "rollup.config.js",
73
+ "tsconfig.json",
74
+ "review/*",
75
+ "CHANGELOG.md",
76
+ "types/*"
77
+ ],
78
+ "scripts": {
79
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
80
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
81
+ "prepack": "npm run build",
82
+ "pack": "npm pack 2>&1",
83
+ "extract-api": "api-extractor run --local",
84
+ "lint": "echo skipped",
85
+ "audit": "echo skipped",
86
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
87
+ "build:node": "echo skipped",
88
+ "build:browser": "echo skipped",
89
+ "build:test": "echo skipped",
90
+ "build:samples": "echo skipped.",
91
+ "check-format": "echo skipped",
92
+ "execute:samples": "echo skipped",
93
+ "format": "echo skipped",
94
+ "test": "npm run integration-test",
95
+ "test:node": "echo skipped",
96
+ "test:browser": "echo skipped",
97
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
98
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
99
+ "unit-test:browser": "echo skipped",
100
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
101
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
102
+ "integration-test:browser": "echo skipped"
103
+ },
104
+ "sideEffects": false,
105
+ "//metadata": {
106
+ "constantPaths": [
107
+ {
108
+ "path": "src/qumuloStorage.ts",
109
+ "prefix": "packageDetails"
110
+ }
111
+ ]
112
+ },
113
+ "autoPublish": true,
114
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/liftrqumulo/arm-qumulo",
115
+ "//sampleConfiguration": {
116
+ "productName": "",
117
+ "productSlugs": [
118
+ "azure"
119
+ ],
120
+ "disableDocsMs": true,
121
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-qumulo?view=azure-node-preview"
122
+ }
123
+ }
@@ -0,0 +1,315 @@
1
+ ## API Report File for "@azure/arm-qumulo"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { OperationState } from '@azure/core-lro';
10
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
11
+ import { SimplePollerLike } from '@azure/core-lro';
12
+
13
+ // @public
14
+ export type ActionType = string;
15
+
16
+ // @public
17
+ export type CreatedByType = string;
18
+
19
+ // @public
20
+ export interface ErrorAdditionalInfo {
21
+ readonly info?: Record<string, unknown>;
22
+ readonly type?: string;
23
+ }
24
+
25
+ // @public
26
+ export interface ErrorDetail {
27
+ readonly additionalInfo?: ErrorAdditionalInfo[];
28
+ readonly code?: string;
29
+ readonly details?: ErrorDetail[];
30
+ readonly message?: string;
31
+ readonly target?: string;
32
+ }
33
+
34
+ // @public
35
+ export interface ErrorResponse {
36
+ error?: ErrorDetail;
37
+ }
38
+
39
+ // @public
40
+ export interface FileSystemResource extends TrackedResource {
41
+ adminPassword: string;
42
+ availabilityZone?: string;
43
+ clusterLoginUrl?: string;
44
+ delegatedSubnetId: string;
45
+ identity?: ManagedServiceIdentity;
46
+ initialCapacity: number;
47
+ marketplaceDetails: MarketplaceDetails;
48
+ privateIPs?: string[];
49
+ readonly provisioningState?: ProvisioningState;
50
+ storageSku: StorageSku;
51
+ userDetails: UserDetails;
52
+ }
53
+
54
+ // @public
55
+ export interface FileSystemResourceListResult {
56
+ nextLink?: string;
57
+ value: FileSystemResource[];
58
+ }
59
+
60
+ // @public
61
+ export interface FileSystemResourceUpdate {
62
+ identity?: ManagedServiceIdentity;
63
+ properties?: FileSystemResourceUpdateProperties;
64
+ tags?: {
65
+ [propertyName: string]: string;
66
+ };
67
+ }
68
+
69
+ // @public
70
+ export interface FileSystemResourceUpdateProperties {
71
+ clusterLoginUrl?: string;
72
+ delegatedSubnetId?: string;
73
+ marketplaceDetails?: MarketplaceDetails;
74
+ privateIPs?: string[];
75
+ userDetails?: UserDetails;
76
+ }
77
+
78
+ // @public
79
+ export interface FileSystems {
80
+ beginCreateOrUpdate(resourceGroupName: string, fileSystemName: string, resource: FileSystemResource, options?: FileSystemsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FileSystemsCreateOrUpdateResponse>, FileSystemsCreateOrUpdateResponse>>;
81
+ beginCreateOrUpdateAndWait(resourceGroupName: string, fileSystemName: string, resource: FileSystemResource, options?: FileSystemsCreateOrUpdateOptionalParams): Promise<FileSystemsCreateOrUpdateResponse>;
82
+ beginDelete(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
83
+ beginDeleteAndWait(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<void>;
84
+ get(resourceGroupName: string, fileSystemName: string, options?: FileSystemsGetOptionalParams): Promise<FileSystemsGetResponse>;
85
+ listByResourceGroup(resourceGroupName: string, options?: FileSystemsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<FileSystemResource>;
86
+ listBySubscription(options?: FileSystemsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<FileSystemResource>;
87
+ update(resourceGroupName: string, fileSystemName: string, properties: FileSystemResourceUpdate, options?: FileSystemsUpdateOptionalParams): Promise<FileSystemsUpdateResponse>;
88
+ }
89
+
90
+ // @public
91
+ export interface FileSystemsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
92
+ resumeFrom?: string;
93
+ updateIntervalInMs?: number;
94
+ }
95
+
96
+ // @public
97
+ export type FileSystemsCreateOrUpdateResponse = FileSystemResource;
98
+
99
+ // @public
100
+ export interface FileSystemsDeleteOptionalParams extends coreClient.OperationOptions {
101
+ resumeFrom?: string;
102
+ updateIntervalInMs?: number;
103
+ }
104
+
105
+ // @public
106
+ export interface FileSystemsGetOptionalParams extends coreClient.OperationOptions {
107
+ }
108
+
109
+ // @public
110
+ export type FileSystemsGetResponse = FileSystemResource;
111
+
112
+ // @public
113
+ export interface FileSystemsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
114
+ }
115
+
116
+ // @public
117
+ export type FileSystemsListByResourceGroupNextResponse = FileSystemResourceListResult;
118
+
119
+ // @public
120
+ export interface FileSystemsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
121
+ }
122
+
123
+ // @public
124
+ export type FileSystemsListByResourceGroupResponse = FileSystemResourceListResult;
125
+
126
+ // @public
127
+ export interface FileSystemsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
128
+ }
129
+
130
+ // @public
131
+ export type FileSystemsListBySubscriptionNextResponse = FileSystemResourceListResult;
132
+
133
+ // @public
134
+ export interface FileSystemsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
135
+ }
136
+
137
+ // @public
138
+ export type FileSystemsListBySubscriptionResponse = FileSystemResourceListResult;
139
+
140
+ // @public
141
+ export interface FileSystemsUpdateOptionalParams extends coreClient.OperationOptions {
142
+ }
143
+
144
+ // @public
145
+ export type FileSystemsUpdateResponse = FileSystemResource;
146
+
147
+ // @public
148
+ export function getContinuationToken(page: unknown): string | undefined;
149
+
150
+ // @public
151
+ export enum KnownActionType {
152
+ Internal = "Internal"
153
+ }
154
+
155
+ // @public
156
+ export enum KnownCreatedByType {
157
+ Application = "Application",
158
+ Key = "Key",
159
+ ManagedIdentity = "ManagedIdentity",
160
+ User = "User"
161
+ }
162
+
163
+ // @public
164
+ export enum KnownManagedServiceIdentityType {
165
+ None = "None",
166
+ SystemAssigned = "SystemAssigned",
167
+ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
168
+ UserAssigned = "UserAssigned"
169
+ }
170
+
171
+ // @public
172
+ export enum KnownOrigin {
173
+ System = "system",
174
+ User = "user",
175
+ UserSystem = "user,system"
176
+ }
177
+
178
+ // @public
179
+ export interface ManagedServiceIdentity {
180
+ readonly principalId?: string;
181
+ readonly tenantId?: string;
182
+ type: ManagedServiceIdentityType;
183
+ userAssignedIdentities?: {
184
+ [propertyName: string]: UserAssignedIdentity;
185
+ };
186
+ }
187
+
188
+ // @public
189
+ export type ManagedServiceIdentityType = string;
190
+
191
+ // @public
192
+ export interface MarketplaceDetails {
193
+ marketplaceSubscriptionId?: string;
194
+ readonly marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
195
+ offerId: string;
196
+ planId: string;
197
+ publisherId: string;
198
+ }
199
+
200
+ // @public
201
+ export type MarketplaceSubscriptionStatus = "PendingFulfillmentStart" | "Subscribed" | "Suspended" | "Unsubscribed";
202
+
203
+ // @public
204
+ export interface Operation {
205
+ readonly actionType?: ActionType;
206
+ display?: OperationDisplay;
207
+ readonly isDataAction?: boolean;
208
+ readonly name?: string;
209
+ readonly origin?: Origin;
210
+ }
211
+
212
+ // @public
213
+ export interface OperationDisplay {
214
+ readonly description?: string;
215
+ readonly operation?: string;
216
+ readonly provider?: string;
217
+ readonly resource?: string;
218
+ }
219
+
220
+ // @public
221
+ export interface OperationListResult {
222
+ readonly nextLink?: string;
223
+ readonly value?: Operation[];
224
+ }
225
+
226
+ // @public
227
+ export interface Operations {
228
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
229
+ }
230
+
231
+ // @public
232
+ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
233
+ }
234
+
235
+ // @public
236
+ export type OperationsListNextResponse = OperationListResult;
237
+
238
+ // @public
239
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
240
+ }
241
+
242
+ // @public
243
+ export type OperationsListResponse = OperationListResult;
244
+
245
+ // @public
246
+ export type Origin = string;
247
+
248
+ // @public
249
+ export type ProvisioningState = "Accepted" | "Creating" | "Updating" | "Deleting" | "Succeeded" | "Failed" | "Canceled" | "Deleted" | "NotSpecified";
250
+
251
+ // @public (undocumented)
252
+ export class QumuloStorage extends coreClient.ServiceClient {
253
+ // (undocumented)
254
+ $host: string;
255
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: QumuloStorageOptionalParams);
256
+ // (undocumented)
257
+ apiVersion: string;
258
+ // (undocumented)
259
+ fileSystems: FileSystems;
260
+ // (undocumented)
261
+ operations: Operations;
262
+ // (undocumented)
263
+ subscriptionId: string;
264
+ }
265
+
266
+ // @public
267
+ export interface QumuloStorageOptionalParams extends coreClient.ServiceClientOptions {
268
+ $host?: string;
269
+ apiVersion?: string;
270
+ endpoint?: string;
271
+ }
272
+
273
+ // @public
274
+ export interface Resource {
275
+ readonly id?: string;
276
+ readonly name?: string;
277
+ readonly systemData?: SystemData;
278
+ readonly type?: string;
279
+ }
280
+
281
+ // @public
282
+ export type StorageSku = "Standard" | "Performance";
283
+
284
+ // @public
285
+ export interface SystemData {
286
+ createdAt?: Date;
287
+ createdBy?: string;
288
+ createdByType?: CreatedByType;
289
+ lastModifiedAt?: Date;
290
+ lastModifiedBy?: string;
291
+ lastModifiedByType?: CreatedByType;
292
+ }
293
+
294
+ // @public
295
+ export interface TrackedResource extends Resource {
296
+ location: string;
297
+ tags?: {
298
+ [propertyName: string]: string;
299
+ };
300
+ }
301
+
302
+ // @public
303
+ export interface UserAssignedIdentity {
304
+ readonly clientId?: string;
305
+ readonly principalId?: string;
306
+ }
307
+
308
+ // @public
309
+ export interface UserDetails {
310
+ email: string;
311
+ }
312
+
313
+ // (No @packageDocumentation comment for this package)
314
+
315
+ ```
@@ -0,0 +1,122 @@
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
+
9
+ import nodeResolve from "@rollup/plugin-node-resolve";
10
+ import cjs from "@rollup/plugin-commonjs";
11
+ import sourcemaps from "rollup-plugin-sourcemaps";
12
+ import multiEntry from "@rollup/plugin-multi-entry";
13
+ import json from "@rollup/plugin-json";
14
+
15
+ import nodeBuiltins from "builtin-modules";
16
+
17
+ // #region Warning Handler
18
+
19
+ /**
20
+ * A function that can determine whether a rollup warning should be ignored. If
21
+ * the function returns `true`, then the warning will not be displayed.
22
+ */
23
+
24
+ function ignoreNiseSinonEval(warning) {
25
+ return (
26
+ warning.code === "EVAL" &&
27
+ warning.id &&
28
+ (warning.id.includes("node_modules/nise") ||
29
+ warning.id.includes("node_modules/sinon")) === true
30
+ );
31
+ }
32
+
33
+ function ignoreChaiCircularDependency(warning) {
34
+ return (
35
+ warning.code === "CIRCULAR_DEPENDENCY" &&
36
+ warning.importer && warning.importer.includes("node_modules/chai") === true
37
+ );
38
+ }
39
+
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
41
+
42
+ /**
43
+ * Construct a warning handler for the shared rollup configuration
44
+ * that ignores certain warnings that are not relevant to testing.
45
+ */
46
+ function makeOnWarnForTesting() {
47
+ return (warning, warn) => {
48
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
49
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
50
+ warn(warning);
51
+ }
52
+ };
53
+ }
54
+
55
+ // #endregion
56
+
57
+ function makeBrowserTestConfig() {
58
+ const config = {
59
+ input: {
60
+ include: ["dist-esm/test/**/*.spec.js"],
61
+ exclude: ["dist-esm/test/**/node/**"]
62
+ },
63
+ output: {
64
+ file: `dist-test/index.browser.js`,
65
+ format: "umd",
66
+ sourcemap: true
67
+ },
68
+ preserveSymlinks: false,
69
+ plugins: [
70
+ multiEntry({ exports: false }),
71
+ nodeResolve({
72
+ mainFields: ["module", "browser"]
73
+ }),
74
+ cjs(),
75
+ json(),
76
+ sourcemaps()
77
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
78
+ ],
79
+ onwarn: makeOnWarnForTesting(),
80
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
81
+ // rollup started respecting the "sideEffects" field in package.json. Since
82
+ // our package.json sets "sideEffects=false", this also applies to test
83
+ // code, which causes all tests to be removed by tree-shaking.
84
+ treeshake: false
85
+ };
86
+
87
+ return config;
88
+ }
89
+
90
+ const defaultConfigurationOptions = {
91
+ disableBrowserBundle: false
92
+ };
93
+
94
+ export function makeConfig(pkg, options) {
95
+ options = {
96
+ ...defaultConfigurationOptions,
97
+ ...(options || {})
98
+ };
99
+
100
+ const baseConfig = {
101
+ // Use the package's module field if it has one
102
+ input: pkg["module"] || "dist-esm/src/index.js",
103
+ external: [
104
+ ...nodeBuiltins,
105
+ ...Object.keys(pkg.dependencies),
106
+ ...Object.keys(pkg.devDependencies)
107
+ ],
108
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109
+ preserveSymlinks: false,
110
+ plugins: [sourcemaps(), nodeResolve()]
111
+ };
112
+
113
+ const config = [baseConfig];
114
+
115
+ if (!options.disableBrowserBundle) {
116
+ config.push(makeBrowserTestConfig());
117
+ }
118
+
119
+ return config;
120
+ }
121
+
122
+ export default makeConfig(require("./package.json"));
package/src/index.ts ADDED
@@ -0,0 +1,13 @@
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
+
9
+ /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
11
+ export * from "./models";
12
+ export { QumuloStorage } from "./qumuloStorage";
13
+ export * from "./operationsInterfaces";
package/src/lroImpl.ts ADDED
@@ -0,0 +1,42 @@
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
+
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT license.
11
+
12
+ import { AbortSignalLike } from "@azure/abort-controller";
13
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
14
+
15
+ export function createLroSpec<T>(inputs: {
16
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
17
+ args: Record<string, unknown>;
18
+ spec: {
19
+ readonly requestBody?: unknown;
20
+ readonly path?: string;
21
+ readonly httpMethod: string;
22
+ } & Record<string, any>;
23
+ }): LongRunningOperation<T> {
24
+ const { args, spec, sendOperationFn } = inputs;
25
+ return {
26
+ requestMethod: spec.httpMethod,
27
+ requestPath: spec.path!,
28
+ sendInitialRequest: () => sendOperationFn(args, spec),
29
+ sendPollRequest: (
30
+ path: string,
31
+ options?: { abortSignal?: AbortSignalLike }
32
+ ) => {
33
+ const { requestBody, ...restSpec } = spec;
34
+ return sendOperationFn(args, {
35
+ ...restSpec,
36
+ httpMethod: "GET",
37
+ path,
38
+ abortSignal: options?.abortSignal
39
+ });
40
+ }
41
+ };
42
+ }