@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.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +1602 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.js +93 -0
- package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/fileSystemsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileSystemsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileSystemsDeleteSample.js +56 -0
- package/dist-esm/samples-dev/fileSystemsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fileSystemsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileSystemsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileSystemsGetSample.js +56 -0
- package/dist-esm/samples-dev/fileSystemsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.js +96 -0
- package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.js +94 -0
- package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/fileSystemsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileSystemsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileSystemsUpdateSample.js +74 -0
- package/dist-esm/samples-dev/fileSystemsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +96 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +415 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +48 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +19 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +618 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +12 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +109 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/fileSystems.d.ts +99 -0
- package/dist-esm/src/operations/fileSystems.d.ts.map +1 -0
- package/dist-esm/src/operations/fileSystems.js +499 -0
- package/dist-esm/src/operations/fileSystems.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +10 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileSystems.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/fileSystems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileSystems.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileSystems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/qumuloStorage.d.ts +21 -0
- package/dist-esm/src/qumuloStorage.d.ts.map +1 -0
- package/dist-esm/src/qumuloStorage.js +101 -0
- package/dist-esm/src/qumuloStorage.js.map +1 -0
- package/dist-esm/test/liftrqumulo_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/liftrqumulo_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/liftrqumulo_operations_test.spec.js +76 -0
- package/dist-esm/test/liftrqumulo_operations_test.spec.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-qumulo.api.md +315 -0
- package/rollup.config.js +122 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +477 -0
- package/src/models/mappers.ts +653 -0
- package/src/models/parameters.ts +127 -0
- package/src/operations/fileSystems.ts +633 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/operations.ts +149 -0
- package/src/operationsInterfaces/fileSystems.ts +121 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/pagingHelper.ts +39 -0
- package/src/qumuloStorage.ts +142 -0
- package/tsconfig.json +33 -0
- package/types/arm-qumulo.d.ts +563 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing Operations operations. */
|
|
15
|
+
export class OperationsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Operations class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List the operations for the provider
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(options) {
|
|
28
|
+
const iter = this.listPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: (settings) => {
|
|
37
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
+
}
|
|
40
|
+
return this.listPagingPage(options, settings);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listPagingPage(options, settings) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = yield __await(this._list(options));
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield yield __await(page);
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield yield __await(page);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
listPagingAll(options) {
|
|
65
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
66
|
+
var _a, e_1, _b, _c;
|
|
67
|
+
try {
|
|
68
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
69
|
+
_c = _f.value;
|
|
70
|
+
_d = false;
|
|
71
|
+
try {
|
|
72
|
+
const page = _c;
|
|
73
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
+
}
|
|
75
|
+
finally {
|
|
76
|
+
_d = true;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* List the operations for the provider
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
_list(options) {
|
|
94
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* ListNext
|
|
98
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
_listNext(nextLink, options) {
|
|
102
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// Operation Specifications
|
|
106
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
107
|
+
const listOperationSpec = {
|
|
108
|
+
path: "/providers/Qumulo.Storage/operations",
|
|
109
|
+
httpMethod: "GET",
|
|
110
|
+
responses: {
|
|
111
|
+
200: {
|
|
112
|
+
bodyMapper: Mappers.OperationListResult
|
|
113
|
+
},
|
|
114
|
+
default: {
|
|
115
|
+
bodyMapper: Mappers.ErrorResponse
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
queryParameters: [Parameters.apiVersion],
|
|
119
|
+
urlParameters: [Parameters.$host],
|
|
120
|
+
headerParameters: [Parameters.accept],
|
|
121
|
+
serializer
|
|
122
|
+
};
|
|
123
|
+
const listNextOperationSpec = {
|
|
124
|
+
path: "{nextLink}",
|
|
125
|
+
httpMethod: "GET",
|
|
126
|
+
responses: {
|
|
127
|
+
200: {
|
|
128
|
+
bodyMapper: Mappers.OperationListResult
|
|
129
|
+
},
|
|
130
|
+
default: {
|
|
131
|
+
bodyMapper: Mappers.ErrorResponse
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
136
|
+
serializer
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC,EACtC,QAAuB;;YAEvB,IAAI,MAA8B,CAAC;YACnC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE;gBACtB,MAAM,GAAG,cAAM,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AG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,sCAAsC;IAC5C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { FileSystemResource, FileSystemsListBySubscriptionOptionalParams, FileSystemsListByResourceGroupOptionalParams, FileSystemsGetOptionalParams, FileSystemsGetResponse, FileSystemsCreateOrUpdateOptionalParams, FileSystemsCreateOrUpdateResponse, FileSystemResourceUpdate, FileSystemsUpdateOptionalParams, FileSystemsUpdateResponse, FileSystemsDeleteOptionalParams } from "../models";
|
|
4
|
+
/** Interface representing a FileSystems. */
|
|
5
|
+
export interface FileSystems {
|
|
6
|
+
/**
|
|
7
|
+
* List FileSystemResource resources by subscription ID
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
listBySubscription(options?: FileSystemsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<FileSystemResource>;
|
|
11
|
+
/**
|
|
12
|
+
* List FileSystemResource resources by resource group
|
|
13
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
listByResourceGroup(resourceGroupName: string, options?: FileSystemsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<FileSystemResource>;
|
|
17
|
+
/**
|
|
18
|
+
* Get a FileSystemResource
|
|
19
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
20
|
+
* @param fileSystemName Name of the File System resource
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
get(resourceGroupName: string, fileSystemName: string, options?: FileSystemsGetOptionalParams): Promise<FileSystemsGetResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a FileSystemResource
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param fileSystemName Name of the File System resource
|
|
28
|
+
* @param resource Resource create parameters.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
beginCreateOrUpdate(resourceGroupName: string, fileSystemName: string, resource: FileSystemResource, options?: FileSystemsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FileSystemsCreateOrUpdateResponse>, FileSystemsCreateOrUpdateResponse>>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a FileSystemResource
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param fileSystemName Name of the File System resource
|
|
36
|
+
* @param resource Resource create parameters.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, fileSystemName: string, resource: FileSystemResource, options?: FileSystemsCreateOrUpdateOptionalParams): Promise<FileSystemsCreateOrUpdateResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Update a FileSystemResource
|
|
42
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
43
|
+
* @param fileSystemName Name of the File System resource
|
|
44
|
+
* @param properties The resource properties to be updated.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
update(resourceGroupName: string, fileSystemName: string, properties: FileSystemResourceUpdate, options?: FileSystemsUpdateOptionalParams): Promise<FileSystemsUpdateResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Delete a FileSystemResource
|
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
51
|
+
* @param fileSystemName Name of the File System resource
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
beginDelete(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete a FileSystemResource
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
|
+
* @param fileSystemName Name of the File System resource
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
beginDeleteAndWait(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=fileSystems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileSystems.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/fileSystems.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,kBAAkB,EAClB,2CAA2C,EAC3C,4CA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M,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACzD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=fileSystems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileSystems.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/fileSystems.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export * from "./operations";
|
|
9
|
+
export * from "./fileSystems";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* List the operations for the provider
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
const pageMap = new WeakMap();
|
|
9
|
+
/**
|
|
10
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
11
|
+
* returns a continuation token that can be used to begin paging from
|
|
12
|
+
* that point later.
|
|
13
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
14
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
|
+
*/
|
|
16
|
+
export function getContinuationToken(page) {
|
|
17
|
+
var _a;
|
|
18
|
+
if (typeof page !== "object" || page === null) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
22
|
+
}
|
|
23
|
+
export function setContinuationToken(page, continuationToken) {
|
|
24
|
+
var _a;
|
|
25
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
29
|
+
pageInfo.continuationToken = continuationToken;
|
|
30
|
+
pageMap.set(page, pageInfo);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { Operations, FileSystems } from "./operationsInterfaces";
|
|
4
|
+
import { QumuloStorageOptionalParams } from "./models";
|
|
5
|
+
export declare class QumuloStorage extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the QumuloStorage class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The ID of the target subscription.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: QumuloStorageOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
operations: Operations;
|
|
19
|
+
fileSystems: FileSystems;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=qumuloStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qumuloStorage.d.ts","sourceRoot":"","sources":["../../src/qumuloStorage.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAEvD,qBAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2BAA2B;IA6EvC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;CAC1B"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import { OperationsImpl, FileSystemsImpl } from "./operations";
|
|
12
|
+
export class QumuloStorage extends coreClient.ServiceClient {
|
|
13
|
+
/**
|
|
14
|
+
* Initializes a new instance of the QumuloStorage class.
|
|
15
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
16
|
+
* @param subscriptionId The ID of the target subscription.
|
|
17
|
+
* @param options The parameter options
|
|
18
|
+
*/
|
|
19
|
+
constructor(credentials, subscriptionId, options) {
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
if (credentials === undefined) {
|
|
22
|
+
throw new Error("'credentials' cannot be null");
|
|
23
|
+
}
|
|
24
|
+
if (subscriptionId === undefined) {
|
|
25
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
26
|
+
}
|
|
27
|
+
// Initializing default values for options
|
|
28
|
+
if (!options) {
|
|
29
|
+
options = {};
|
|
30
|
+
}
|
|
31
|
+
const defaults = {
|
|
32
|
+
requestContentType: "application/json; charset=utf-8",
|
|
33
|
+
credential: credentials
|
|
34
|
+
};
|
|
35
|
+
const packageDetails = `azsdk-js-arm-qumulo/1.0.0`;
|
|
36
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
|
+
: `${packageDetails}`;
|
|
39
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
+
userAgentPrefix
|
|
41
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
42
|
+
super(optionsWithDefaults);
|
|
43
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
48
|
+
}
|
|
49
|
+
if (!options ||
|
|
50
|
+
!options.pipeline ||
|
|
51
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
52
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
53
|
+
this.pipeline.removePolicy({
|
|
54
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
55
|
+
});
|
|
56
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
|
+
credential: credentials,
|
|
58
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
59
|
+
challengeCallbacks: {
|
|
60
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
// Parameter assignments
|
|
65
|
+
this.subscriptionId = subscriptionId;
|
|
66
|
+
// Assigning values to Constant parameters
|
|
67
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
68
|
+
this.apiVersion = options.apiVersion || "2022-10-12";
|
|
69
|
+
this.operations = new OperationsImpl(this);
|
|
70
|
+
this.fileSystems = new FileSystemsImpl(this);
|
|
71
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
72
|
+
}
|
|
73
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
74
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
75
|
+
if (!apiVersion) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const apiVersionPolicy = {
|
|
79
|
+
name: "CustomApiVersionPolicy",
|
|
80
|
+
sendRequest(request, next) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const param = request.url.split("?");
|
|
83
|
+
if (param.length > 1) {
|
|
84
|
+
const newParams = param[1].split("&").map((item) => {
|
|
85
|
+
if (item.indexOf("api-version") > -1) {
|
|
86
|
+
return "api-version=" + apiVersion;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return item;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
93
|
+
}
|
|
94
|
+
return next(request);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=qumuloStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qumuloStorage.js","sourceRoot":"","sources":["../../src/qumuloStorage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MA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B,GAAG;YACvB,IAAI,EAAE,wBAAwB;YACxB,WAAW,CACf,OAAwB,EACxB,IAAiB;;oBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;wBACpB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;4BACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE;gCACpC,OAAO,cAAc,GAAG,UAAU,CAAC;6BACpC;iCAAM;gCACL,OAAO,IAAI,CAAC;6BACb;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;qBACpD;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liftrqumulo_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/liftrqumulo_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { QumuloStorage } from "../src/qumuloStorage";
|
|
12
|
+
const replaceableVariables = {
|
|
13
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
14
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
15
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
16
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
17
|
+
};
|
|
18
|
+
const recorderOptions = {
|
|
19
|
+
envSetupForPlayback: replaceableVariables
|
|
20
|
+
};
|
|
21
|
+
export const testPollingOptions = {
|
|
22
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
23
|
+
};
|
|
24
|
+
describe("liftrqumulo test", () => {
|
|
25
|
+
let recorder;
|
|
26
|
+
let subscriptionId;
|
|
27
|
+
let client;
|
|
28
|
+
let location;
|
|
29
|
+
let resourceGroup;
|
|
30
|
+
let fileSystemName;
|
|
31
|
+
beforeEach(function () {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
recorder = new Recorder(this.currentTest);
|
|
34
|
+
yield recorder.start(recorderOptions);
|
|
35
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
36
|
+
// This is an example of how the environment variables are used
|
|
37
|
+
const credential = createTestCredential();
|
|
38
|
+
client = new QumuloStorage(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
39
|
+
location = "eastus";
|
|
40
|
+
resourceGroup = "myjstest";
|
|
41
|
+
fileSystemName = "myfileSystem";
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
afterEach(function () {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
yield recorder.stop();
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
it("operation list test", function () {
|
|
50
|
+
var _a, e_1, _b, _c;
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const resArray = new Array();
|
|
53
|
+
try {
|
|
54
|
+
for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
55
|
+
_c = _f.value;
|
|
56
|
+
_d = false;
|
|
57
|
+
try {
|
|
58
|
+
let item = _c;
|
|
59
|
+
resArray.push(item);
|
|
60
|
+
}
|
|
61
|
+
finally {
|
|
62
|
+
_d = true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
+
finally {
|
|
68
|
+
try {
|
|
69
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
70
|
+
}
|
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=liftrqumulo_operations_test.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liftrqumulo_operations_test.spec.js","sourceRoot":"","sources":["../../test/liftrqumulo_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAA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