@azure/arm-dell-storage 1.0.0-beta.1 → 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 +2 -2
- package/README.md +1 -1
- package/dist/browser/api/fileSystems/operations.d.ts +6 -6
- package/dist/browser/api/fileSystems/operations.d.ts.map +1 -1
- package/dist/browser/api/fileSystems/operations.js +41 -32
- package/dist/browser/api/fileSystems/operations.js.map +1 -1
- package/dist/browser/api/fileSystems/options.d.ts +1 -1
- package/dist/browser/api/fileSystems/options.d.ts.map +1 -1
- package/dist/browser/api/fileSystems/options.js.map +1 -1
- package/dist/browser/api/operations/operations.d.ts +5 -5
- package/dist/browser/api/operations/operations.d.ts.map +1 -1
- package/dist/browser/api/operations/operations.js +7 -5
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/operations/options.d.ts +1 -1
- package/dist/browser/api/operations/options.d.ts.map +1 -1
- package/dist/browser/api/operations/options.js.map +1 -1
- package/dist/browser/api/storageContext.d.ts +5 -2
- package/dist/browser/api/storageContext.d.ts.map +1 -1
- package/dist/browser/api/storageContext.js +11 -9
- package/dist/browser/api/storageContext.js.map +1 -1
- package/dist/browser/classic/fileSystems/index.d.ts +5 -5
- package/dist/browser/classic/fileSystems/index.d.ts.map +1 -1
- package/dist/browser/classic/fileSystems/index.js +3 -1
- package/dist/browser/classic/fileSystems/index.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +4 -4
- package/dist/browser/classic/operations/index.d.ts.map +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +7 -3
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +18 -21
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.d.ts +4 -4
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -1
- package/dist/browser/restorePollerHelpers.js +14 -22
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +2 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +35 -51
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +15 -12
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +39 -8
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/browser/storageClient.d.ts +5 -5
- package/dist/browser/storageClient.d.ts.map +1 -1
- package/dist/browser/storageClient.js +12 -3
- package/dist/browser/storageClient.js.map +1 -1
- package/dist/commonjs/api/fileSystems/operations.d.ts +6 -6
- package/dist/commonjs/api/fileSystems/operations.d.ts.map +1 -1
- package/dist/commonjs/api/fileSystems/operations.js +40 -31
- package/dist/commonjs/api/fileSystems/operations.js.map +1 -1
- package/dist/commonjs/api/fileSystems/options.d.ts +1 -1
- package/dist/commonjs/api/fileSystems/options.d.ts.map +1 -1
- package/dist/commonjs/api/fileSystems/options.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +5 -5
- package/dist/commonjs/api/operations/operations.d.ts.map +1 -1
- package/dist/commonjs/api/operations/operations.js +6 -4
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/operations/options.d.ts +1 -1
- package/dist/commonjs/api/operations/options.d.ts.map +1 -1
- package/dist/commonjs/api/operations/options.js.map +1 -1
- package/dist/commonjs/api/storageContext.d.ts +5 -2
- package/dist/commonjs/api/storageContext.d.ts.map +1 -1
- package/dist/commonjs/api/storageContext.js +11 -9
- package/dist/commonjs/api/storageContext.js.map +1 -1
- package/dist/commonjs/classic/fileSystems/index.d.ts +5 -5
- package/dist/commonjs/classic/fileSystems/index.d.ts.map +1 -1
- package/dist/commonjs/classic/fileSystems/index.js +3 -1
- package/dist/commonjs/classic/fileSystems/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +4 -4
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +7 -3
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +18 -21
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.d.ts +4 -4
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +13 -21
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +2 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +35 -51
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +39 -8
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/storageClient.d.ts +5 -5
- package/dist/commonjs/storageClient.d.ts.map +1 -1
- package/dist/commonjs/storageClient.js +12 -3
- package/dist/commonjs/storageClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/fileSystems/operations.d.ts +6 -6
- package/dist/esm/api/fileSystems/operations.d.ts.map +1 -1
- package/dist/esm/api/fileSystems/operations.js +41 -32
- package/dist/esm/api/fileSystems/operations.js.map +1 -1
- package/dist/esm/api/fileSystems/options.d.ts +1 -1
- package/dist/esm/api/fileSystems/options.d.ts.map +1 -1
- package/dist/esm/api/fileSystems/options.js.map +1 -1
- package/dist/esm/api/operations/operations.d.ts +5 -5
- package/dist/esm/api/operations/operations.d.ts.map +1 -1
- package/dist/esm/api/operations/operations.js +7 -5
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/operations/options.d.ts +1 -1
- package/dist/esm/api/operations/options.d.ts.map +1 -1
- package/dist/esm/api/operations/options.js.map +1 -1
- package/dist/esm/api/storageContext.d.ts +5 -2
- package/dist/esm/api/storageContext.d.ts.map +1 -1
- package/dist/esm/api/storageContext.js +11 -9
- package/dist/esm/api/storageContext.js.map +1 -1
- package/dist/esm/classic/fileSystems/index.d.ts +5 -5
- package/dist/esm/classic/fileSystems/index.d.ts.map +1 -1
- package/dist/esm/classic/fileSystems/index.js +3 -1
- package/dist/esm/classic/fileSystems/index.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +4 -4
- package/dist/esm/classic/operations/index.d.ts.map +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +7 -3
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +18 -21
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.d.ts +4 -4
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -1
- package/dist/esm/restorePollerHelpers.js +14 -22
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +2 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +35 -51
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +15 -12
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +39 -8
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/esm/storageClient.d.ts +5 -5
- package/dist/esm/storageClient.d.ts.map +1 -1
- package/dist/esm/storageClient.js +12 -3
- package/dist/esm/storageClient.js.map +1 -1
- package/dist/react-native/api/fileSystems/operations.d.ts +6 -6
- package/dist/react-native/api/fileSystems/operations.d.ts.map +1 -1
- package/dist/react-native/api/fileSystems/operations.js +41 -32
- package/dist/react-native/api/fileSystems/operations.js.map +1 -1
- package/dist/react-native/api/fileSystems/options.d.ts +1 -1
- package/dist/react-native/api/fileSystems/options.d.ts.map +1 -1
- package/dist/react-native/api/fileSystems/options.js.map +1 -1
- package/dist/react-native/api/operations/operations.d.ts +5 -5
- package/dist/react-native/api/operations/operations.d.ts.map +1 -1
- package/dist/react-native/api/operations/operations.js +7 -5
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/operations/options.d.ts +1 -1
- package/dist/react-native/api/operations/options.d.ts.map +1 -1
- package/dist/react-native/api/operations/options.js.map +1 -1
- package/dist/react-native/api/storageContext.d.ts +5 -2
- package/dist/react-native/api/storageContext.d.ts.map +1 -1
- package/dist/react-native/api/storageContext.js +11 -9
- package/dist/react-native/api/storageContext.js.map +1 -1
- package/dist/react-native/classic/fileSystems/index.d.ts +5 -5
- package/dist/react-native/classic/fileSystems/index.d.ts.map +1 -1
- package/dist/react-native/classic/fileSystems/index.js +3 -1
- package/dist/react-native/classic/fileSystems/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +4 -4
- package/dist/react-native/classic/operations/index.d.ts.map +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -0
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +7 -3
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +18 -21
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.d.ts +4 -4
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +14 -22
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +2 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +35 -51
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +15 -12
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +39 -8
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/storageClient.d.ts +5 -5
- package/dist/react-native/storageClient.d.ts.map +1 -1
- package/dist/react-native/storageClient.js +12 -3
- package/dist/react-native/storageClient.js.map +1 -1
- package/package.json +47 -43
- package/review/arm-dell-storage-api-fileSystems-node.api.md +4 -4
- package/review/arm-dell-storage-api-node.api.md +4 -3
- package/review/arm-dell-storage-api-operations-node.api.md +2 -2
- package/review/arm-dell-storage-models-node.api.md +1 -1
- package/review/arm-dell-storage-node.api.md +20 -9
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Key links:
|
|
|
8
8
|
|
|
9
9
|
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dell/arm-dell-storage)
|
|
10
10
|
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-dell-storage)
|
|
11
|
-
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-dell-storage
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-dell-storage)
|
|
12
12
|
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dell/arm-dell-storage/samples)
|
|
13
13
|
|
|
14
14
|
## Getting started
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { StorageContext as Client } from "../index.js";
|
|
2
|
-
import { FileSystemResource, FileSystemResourceUpdate, _FileSystemResourceListResult } from "../../models/models.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
1
|
+
import type { StorageContext as Client } from "../index.js";
|
|
2
|
+
import type { FileSystemResource, FileSystemResourceUpdate, _FileSystemResourceListResult } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import type { FileSystemsListBySubscriptionOptionalParams, FileSystemsListByResourceGroupOptionalParams, FileSystemsDeleteOptionalParams, FileSystemsUpdateOptionalParams, FileSystemsCreateOrUpdateOptionalParams, FileSystemsGetOptionalParams } from "./options.js";
|
|
5
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
7
|
export declare function _listBySubscriptionSend(context: Client, options?: FileSystemsListBySubscriptionOptionalParams): StreamableMethod;
|
|
8
8
|
export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_FileSystemResourceListResult>;
|
|
9
9
|
/** List FileSystemResource resources by subscription ID */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/fileSystems/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/fileSystems/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,IAAI,MAAM,EAAE,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C,cAAc,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,CAQpE;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAiBlB;AAED,wBAAsB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAShG;AAED,+BAA+B;AAC/B,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,4BAAqD,GAC7D,OAAO,CAAC,kBAAkB,CAAC,CAG7B"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { errorResponseDeserializer, fileSystemResourceSerializer, fileSystemResourceDeserializer, fileSystemResourceUpdateSerializer, _fileSystemResourceListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
5
|
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
5
6
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
|
-
import {
|
|
7
|
-
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
8
8
|
export function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
9
|
-
var _a, _b;
|
|
10
9
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Dell.Storage/filesystems{?api%2Dversion}", {
|
|
11
10
|
subscriptionId: context.subscriptionId,
|
|
12
11
|
"api%2Dversion": context.apiVersion,
|
|
13
12
|
}, {
|
|
14
|
-
allowReserved:
|
|
13
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
14
|
+
});
|
|
15
|
+
return context.path(path).get({
|
|
16
|
+
...operationOptionsToRequestParameters(options),
|
|
17
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
15
18
|
});
|
|
16
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
17
19
|
}
|
|
18
20
|
export async function _listBySubscriptionDeserialize(result) {
|
|
19
21
|
const expectedStatuses = ["200"];
|
|
@@ -28,18 +30,18 @@ export async function _listBySubscriptionDeserialize(result) {
|
|
|
28
30
|
export function listBySubscription(context, options = { requestOptions: {} }) {
|
|
29
31
|
return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
30
32
|
}
|
|
31
|
-
export function _listByResourceGroupSend(context, resourceGroupName, options = {
|
|
32
|
-
requestOptions: {},
|
|
33
|
-
}) {
|
|
34
|
-
var _a, _b;
|
|
33
|
+
export function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
35
34
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems{?api%2Dversion}", {
|
|
36
35
|
subscriptionId: context.subscriptionId,
|
|
37
36
|
resourceGroupName: resourceGroupName,
|
|
38
37
|
"api%2Dversion": context.apiVersion,
|
|
39
38
|
}, {
|
|
40
|
-
allowReserved:
|
|
39
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
40
|
+
});
|
|
41
|
+
return context.path(path).get({
|
|
42
|
+
...operationOptionsToRequestParameters(options),
|
|
43
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
41
44
|
});
|
|
42
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
43
45
|
}
|
|
44
46
|
export async function _listByResourceGroupDeserialize(result) {
|
|
45
47
|
const expectedStatuses = ["200"];
|
|
@@ -51,25 +53,22 @@ export async function _listByResourceGroupDeserialize(result) {
|
|
|
51
53
|
return _fileSystemResourceListResultDeserializer(result.body);
|
|
52
54
|
}
|
|
53
55
|
/** List FileSystemResource resources by resource group */
|
|
54
|
-
export function listByResourceGroup(context, resourceGroupName, options = {
|
|
55
|
-
requestOptions: {},
|
|
56
|
-
}) {
|
|
56
|
+
export function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
57
57
|
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
58
58
|
}
|
|
59
59
|
export function _$deleteSend(context, resourceGroupName, filesystemName, options = { requestOptions: {} }) {
|
|
60
|
-
var _a, _b;
|
|
61
60
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}", {
|
|
62
61
|
subscriptionId: context.subscriptionId,
|
|
63
62
|
resourceGroupName: resourceGroupName,
|
|
64
63
|
filesystemName: filesystemName,
|
|
65
64
|
"api%2Dversion": context.apiVersion,
|
|
66
65
|
}, {
|
|
67
|
-
allowReserved:
|
|
66
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
68
67
|
});
|
|
69
|
-
return context.path(path).delete(
|
|
68
|
+
return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
|
|
70
69
|
}
|
|
71
70
|
export async function _$deleteDeserialize(result) {
|
|
72
|
-
const expectedStatuses = ["202", "204", "200"];
|
|
71
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
73
72
|
if (!expectedStatuses.includes(result.status)) {
|
|
74
73
|
const error = createRestError(result);
|
|
75
74
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -84,24 +83,28 @@ export async function _$deleteDeserialize(result) {
|
|
|
84
83
|
* to the operation to override the generated name.
|
|
85
84
|
*/
|
|
86
85
|
export function $delete(context, resourceGroupName, filesystemName, options = { requestOptions: {} }) {
|
|
87
|
-
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
88
|
-
updateIntervalInMs: options
|
|
89
|
-
abortSignal: options
|
|
86
|
+
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200", "201"], {
|
|
87
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
88
|
+
abortSignal: options?.abortSignal,
|
|
90
89
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, filesystemName, options),
|
|
91
90
|
resourceLocationConfig: "location",
|
|
92
91
|
});
|
|
93
92
|
}
|
|
94
93
|
export function _updateSend(context, resourceGroupName, filesystemName, properties, options = { requestOptions: {} }) {
|
|
95
|
-
var _a, _b;
|
|
96
94
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}", {
|
|
97
95
|
subscriptionId: context.subscriptionId,
|
|
98
96
|
resourceGroupName: resourceGroupName,
|
|
99
97
|
filesystemName: filesystemName,
|
|
100
98
|
"api%2Dversion": context.apiVersion,
|
|
101
99
|
}, {
|
|
102
|
-
allowReserved:
|
|
100
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
101
|
+
});
|
|
102
|
+
return context.path(path).patch({
|
|
103
|
+
...operationOptionsToRequestParameters(options),
|
|
104
|
+
contentType: "application/json",
|
|
105
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
106
|
+
body: fileSystemResourceUpdateSerializer(properties),
|
|
103
107
|
});
|
|
104
|
-
return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: fileSystemResourceUpdateSerializer(properties) }));
|
|
105
108
|
}
|
|
106
109
|
export async function _updateDeserialize(result) {
|
|
107
110
|
const expectedStatuses = ["200"];
|
|
@@ -118,16 +121,20 @@ export async function update(context, resourceGroupName, filesystemName, propert
|
|
|
118
121
|
return _updateDeserialize(result);
|
|
119
122
|
}
|
|
120
123
|
export function _createOrUpdateSend(context, resourceGroupName, filesystemName, resource, options = { requestOptions: {} }) {
|
|
121
|
-
var _a, _b;
|
|
122
124
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}", {
|
|
123
125
|
subscriptionId: context.subscriptionId,
|
|
124
126
|
resourceGroupName: resourceGroupName,
|
|
125
127
|
filesystemName: filesystemName,
|
|
126
128
|
"api%2Dversion": context.apiVersion,
|
|
127
129
|
}, {
|
|
128
|
-
allowReserved:
|
|
130
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
131
|
+
});
|
|
132
|
+
return context.path(path).put({
|
|
133
|
+
...operationOptionsToRequestParameters(options),
|
|
134
|
+
contentType: "application/json",
|
|
135
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
136
|
+
body: fileSystemResourceSerializer(resource),
|
|
129
137
|
});
|
|
130
|
-
return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: fileSystemResourceSerializer(resource) }));
|
|
131
138
|
}
|
|
132
139
|
export async function _createOrUpdateDeserialize(result) {
|
|
133
140
|
const expectedStatuses = ["200", "201", "202"];
|
|
@@ -141,23 +148,25 @@ export async function _createOrUpdateDeserialize(result) {
|
|
|
141
148
|
/** Create a FileSystemResource */
|
|
142
149
|
export function createOrUpdate(context, resourceGroupName, filesystemName, resource, options = { requestOptions: {} }) {
|
|
143
150
|
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
144
|
-
updateIntervalInMs: options
|
|
145
|
-
abortSignal: options
|
|
151
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
152
|
+
abortSignal: options?.abortSignal,
|
|
146
153
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, filesystemName, resource, options),
|
|
147
154
|
resourceLocationConfig: "azure-async-operation",
|
|
148
155
|
});
|
|
149
156
|
}
|
|
150
157
|
export function _getSend(context, resourceGroupName, filesystemName, options = { requestOptions: {} }) {
|
|
151
|
-
var _a, _b;
|
|
152
158
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}", {
|
|
153
159
|
subscriptionId: context.subscriptionId,
|
|
154
160
|
resourceGroupName: resourceGroupName,
|
|
155
161
|
filesystemName: filesystemName,
|
|
156
162
|
"api%2Dversion": context.apiVersion,
|
|
157
163
|
}, {
|
|
158
|
-
allowReserved:
|
|
164
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
165
|
+
});
|
|
166
|
+
return context.path(path).get({
|
|
167
|
+
...operationOptionsToRequestParameters(options),
|
|
168
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
159
169
|
});
|
|
160
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
161
170
|
}
|
|
162
171
|
export async function _getDeserialize(result) {
|
|
163
172
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/fileSystems/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,4BAA4B,EAC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,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IACnF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { StorageContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n FileSystemResource,\n fileSystemResourceSerializer,\n fileSystemResourceDeserializer,\n FileSystemResourceUpdate,\n fileSystemResourceUpdateSerializer,\n _FileSystemResourceListResult,\n _fileSystemResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n FileSystemsListBySubscriptionOptionalParams,\n FileSystemsListByResourceGroupOptionalParams,\n FileSystemsDeleteOptionalParams,\n FileSystemsUpdateOptionalParams,\n FileSystemsCreateOrUpdateOptionalParams,\n FileSystemsGetOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: FileSystemsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Dell.Storage/filesystems{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FileSystemResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _fileSystemResourceListResultDeserializer(result.body);\n}\n\n/** List FileSystemResource resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: FileSystemsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<FileSystemResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: FileSystemsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FileSystemResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _fileSystemResourceListResultDeserializer(result.body);\n}\n\n/** List FileSystemResource resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: FileSystemsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<FileSystemResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n options: FileSystemsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n filesystemName: filesystemName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a FileSystemResource */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n options: FileSystemsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, filesystemName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n properties: FileSystemResourceUpdate,\n options: FileSystemsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n filesystemName: filesystemName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: fileSystemResourceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<FileSystemResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return fileSystemResourceDeserializer(result.body);\n}\n\n/** Update a FileSystemResource */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n properties: FileSystemResourceUpdate,\n options: FileSystemsUpdateOptionalParams = { requestOptions: {} },\n): Promise<FileSystemResource> {\n const result = await _updateSend(context, resourceGroupName, filesystemName, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n resource: FileSystemResource,\n options: FileSystemsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n filesystemName: filesystemName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: fileSystemResourceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<FileSystemResource> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return fileSystemResourceDeserializer(result.body);\n}\n\n/** Create a FileSystemResource */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n resource: FileSystemResource,\n options: FileSystemsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<FileSystemResource>, FileSystemResource> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, filesystemName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<FileSystemResource>, FileSystemResource>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n options: FileSystemsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n filesystemName: filesystemName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<FileSystemResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return fileSystemResourceDeserializer(result.body);\n}\n\n/** Get a FileSystemResource */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n options: FileSystemsGetOptionalParams = { requestOptions: {} },\n): Promise<FileSystemResource> {\n const result = await _getSend(context, resourceGroupName, filesystemName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/fileSystems/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC5B,8BAA8B,EAC9B,kCAAkC,EAClC,yCAAyC,GAC1C,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAUxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,IAAI,GAAG,iBAAiB,CAC5B,oFAAoF,EACpF;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,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C/B,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,cAAsB,EACtB,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IACnF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { StorageContext as Client } from \"../index.js\";\nimport type {\n FileSystemResource,\n FileSystemResourceUpdate,\n _FileSystemResourceListResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n fileSystemResourceSerializer,\n fileSystemResourceDeserializer,\n fileSystemResourceUpdateSerializer,\n _fileSystemResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n FileSystemsListBySubscriptionOptionalParams,\n FileSystemsListByResourceGroupOptionalParams,\n FileSystemsDeleteOptionalParams,\n FileSystemsUpdateOptionalParams,\n FileSystemsCreateOrUpdateOptionalParams,\n FileSystemsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: FileSystemsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Dell.Storage/filesystems{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FileSystemResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _fileSystemResourceListResultDeserializer(result.body);\n}\n\n/** List FileSystemResource resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: FileSystemsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<FileSystemResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: FileSystemsListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FileSystemResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _fileSystemResourceListResultDeserializer(result.body);\n}\n\n/** List FileSystemResource resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: FileSystemsListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<FileSystemResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n options: FileSystemsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n filesystemName: filesystemName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a FileSystemResource */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n options: FileSystemsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, filesystemName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n properties: FileSystemResourceUpdate,\n options: FileSystemsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n filesystemName: filesystemName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: fileSystemResourceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<FileSystemResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return fileSystemResourceDeserializer(result.body);\n}\n\n/** Update a FileSystemResource */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n properties: FileSystemResourceUpdate,\n options: FileSystemsUpdateOptionalParams = { requestOptions: {} },\n): Promise<FileSystemResource> {\n const result = await _updateSend(context, resourceGroupName, filesystemName, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n resource: FileSystemResource,\n options: FileSystemsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n filesystemName: filesystemName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: fileSystemResourceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<FileSystemResource> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return fileSystemResourceDeserializer(result.body);\n}\n\n/** Create a FileSystemResource */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n resource: FileSystemResource,\n options: FileSystemsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<FileSystemResource>, FileSystemResource> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, filesystemName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<FileSystemResource>, FileSystemResource>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n options: FileSystemsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dell.Storage/filesystems/{filesystemName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n filesystemName: filesystemName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<FileSystemResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return fileSystemResourceDeserializer(result.body);\n}\n\n/** Get a FileSystemResource */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n filesystemName: string,\n options: FileSystemsGetOptionalParams = { requestOptions: {} },\n): Promise<FileSystemResource> {\n const result = await _getSend(context, resourceGroupName, filesystemName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/fileSystems/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/fileSystems/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;CAAG;AAExF,2BAA2B;AAC3B,MAAM,WAAW,4CAA6C,SAAQ,gBAAgB;CAAG;AAEzF,2BAA2B;AAC3B,MAAM,WAAW,+BAAgC,SAAQ,gBAAgB;IACvE,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,+BAAgC,SAAQ,gBAAgB;CAAG;AAE5E,2BAA2B;AAC3B,MAAM,WAAW,uCAAwC,SAAQ,gBAAgB;IAC/E,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/fileSystems/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface FileSystemsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface FileSystemsListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface FileSystemsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface FileSystemsUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface FileSystemsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface FileSystemsGetOptionalParams extends OperationOptions {}\n"]}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/fileSystems/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface FileSystemsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface FileSystemsListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface FileSystemsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface FileSystemsUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface FileSystemsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface FileSystemsGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { StorageContext as Client } from "../index.js";
|
|
2
|
-
import { _OperationListResult, Operation } from "../../models/models.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
1
|
+
import type { StorageContext as Client } from "../index.js";
|
|
2
|
+
import type { _OperationListResult, Operation } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import type { OperationsListOptionalParams } from "./options.js";
|
|
5
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
6
|
export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
|
|
7
7
|
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
|
|
8
8
|
/** List the operations for the provider */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAK9E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAGxF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGvF,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAclB;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAS/B;AAED,2CAA2C;AAC3C,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { _operationListResultDeserializer, errorResponseDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
5
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
5
|
-
import {
|
|
6
|
-
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
7
7
|
export function _listSend(context, options = { requestOptions: {} }) {
|
|
8
|
-
var _a, _b;
|
|
9
8
|
const path = expandUrlTemplate("/providers/Dell.Storage/operations{?api%2Dversion}", {
|
|
10
9
|
"api%2Dversion": context.apiVersion,
|
|
11
10
|
}, {
|
|
12
|
-
allowReserved:
|
|
11
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
12
|
+
});
|
|
13
|
+
return context.path(path).get({
|
|
14
|
+
...operationOptionsToRequestParameters(options),
|
|
15
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
13
16
|
});
|
|
14
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
15
17
|
}
|
|
16
18
|
export async function _listDeserialize(result) {
|
|
17
19
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings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AAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { StorageContext as Client } from \"../index.js\";\nimport type { _OperationListResult, Operation } from \"../../models/models.js\";\nimport {\n _operationListResultDeserializer,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { OperationsListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Dell.Storage/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
|
|
2
|
+
import type { Client, ClientOptions } from "@azure-rest/core-client";
|
|
3
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
3
4
|
/** Dell Storage service */
|
|
4
5
|
export interface StorageContext extends Client {
|
|
5
6
|
/** The API version to use for this operation. */
|
|
@@ -13,6 +14,8 @@ export interface StorageClientOptionalParams extends ClientOptions {
|
|
|
13
14
|
/** The API version to use for this operation. */
|
|
14
15
|
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
15
16
|
apiVersion?: string;
|
|
17
|
+
/** Specifies the Azure cloud environment for the client. */
|
|
18
|
+
cloudSetting?: AzureSupportedClouds;
|
|
16
19
|
}
|
|
17
20
|
/** Dell Storage service */
|
|
18
21
|
export declare function createStorage(credential: TokenCredential, subscriptionId: string, options?: StorageClientOptionalParams): StorageContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageContext.d.ts","sourceRoot":"","sources":["../../../src/api/storageContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"storageContext.d.ts","sourceRoot":"","sources":["../../../src/api/storageContext.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAErF,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,2BAA2B;AAC3B,MAAM,WAAW,cAAe,SAAQ,MAAM;IAC5C,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,0CAA0C;AAC1C,MAAM,WAAW,2BAA4B,SAAQ,aAAa;IAChE,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,oBAAoB,CAAC;CACrC;AAED,2BAA2B;AAC3B,wBAAgB,aAAa,CAC3B,UAAU,EAAE,eAAe,EAC3B,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,2BAAgC,GACxC,cAAc,CAiChB"}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { __rest } from "tslib";
|
|
4
3
|
import { logger } from "../logger.js";
|
|
4
|
+
import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
|
|
5
5
|
import { getClient } from "@azure-rest/core-client";
|
|
6
6
|
/** Dell Storage service */
|
|
7
7
|
export function createStorage(credential, subscriptionId, options = {}) {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const prefixFromOptions = (_b = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _b === void 0 ? void 0 : _b.userAgentPrefix;
|
|
8
|
+
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
9
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
11
10
|
const userAgentInfo = `azsdk-js-arm-dell-storage/1.0.0-beta.1`;
|
|
12
11
|
const userAgentPrefix = prefixFromOptions
|
|
13
12
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
14
13
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
15
|
+
...options,
|
|
16
|
+
userAgentOptions: { userAgentPrefix },
|
|
17
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
18
|
+
credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },
|
|
19
|
+
};
|
|
18
20
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
19
21
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
20
|
-
const apiVersion =
|
|
22
|
+
const apiVersion = options.apiVersion ?? "2025-03-21";
|
|
21
23
|
clientContext.pipeline.addPolicy({
|
|
22
24
|
name: "ClientApiVersionPolicy",
|
|
23
25
|
sendRequest: (req, next) => {
|
|
@@ -30,6 +32,6 @@ export function createStorage(credential, subscriptionId, options = {}) {
|
|
|
30
32
|
return next(req);
|
|
31
33
|
},
|
|
32
34
|
});
|
|
33
|
-
return
|
|
35
|
+
return { ...clientContext, apiVersion, subscriptionId };
|
|
34
36
|
}
|
|
35
37
|
//# sourceMappingURL=storageContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageContext.js","sourceRoot":"","sources":["../../../src/api/storageContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC
|
|
1
|
+
{"version":3,"file":"storageContext.js","sourceRoot":"","sources":["../../../src/api/storageContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,2BAA2B;AAC3B,MAAM,UAAU,aAAa,CAC3B,UAA2B,EAC3B,cAAsB,EACtB,UAAuC,EAAE;IAEzC,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,wCAAwC,CAAC;IAC/D,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GA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Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** Dell Storage service */\nexport interface StorageContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface StorageClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Dell Storage service */\nexport function createStorage(\n credential: TokenCredential,\n subscriptionId: string,\n options: StorageClientOptionalParams = {},\n): StorageContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-dell-storage/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-03-21\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return { ...clientContext, apiVersion, subscriptionId } as StorageContext;\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { StorageContext } from "../../api/storageContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
1
|
+
import type { StorageContext } from "../../api/storageContext.js";
|
|
2
|
+
import type { FileSystemsListBySubscriptionOptionalParams, FileSystemsListByResourceGroupOptionalParams, FileSystemsDeleteOptionalParams, FileSystemsUpdateOptionalParams, FileSystemsCreateOrUpdateOptionalParams, FileSystemsGetOptionalParams } from "../../api/fileSystems/options.js";
|
|
3
|
+
import type { FileSystemResource, FileSystemResourceUpdate } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
6
|
/** Interface representing a FileSystems operations. */
|
|
7
7
|
export interface FileSystemsOperations {
|
|
8
8
|
/** List FileSystemResource resources by subscription ID */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/fileSystems/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/fileSystems/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AASlE,OAAO,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