@azure/arm-storagecache 8.1.0 → 8.2.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/README.md +2 -2
- package/dist/browser/models/index.d.ts +185 -2
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +32 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +6 -0
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +183 -0
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +3 -0
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +25 -2
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/expansionJobs.d.ts +120 -0
- package/dist/browser/operations/expansionJobs.d.ts.map +1 -0
- package/dist/browser/operations/expansionJobs.js +473 -0
- package/dist/browser/operations/expansionJobs.js.map +1 -0
- package/dist/browser/operations/index.d.ts +1 -0
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +1 -0
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/browser/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/expansionJobs.js +4 -0
- package/dist/browser/operationsInterfaces/expansionJobs.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +1 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/storageCacheManagementClient.d.ts +2 -1
- package/dist/browser/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/browser/storageCacheManagementClient.js +5 -3
- package/dist/browser/storageCacheManagementClient.js.map +1 -1
- package/dist/commonjs/index.js +35 -16
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/lroImpl.js +41 -21
- package/dist/commonjs/lroImpl.js.map +7 -1
- package/dist/commonjs/models/index.d.ts +185 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +326 -386
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/mappers.d.ts +6 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +4573 -4116
- package/dist/commonjs/models/mappers.js.map +7 -1
- package/dist/commonjs/models/parameters.d.ts +3 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +402 -287
- package/dist/commonjs/models/parameters.js.map +7 -1
- package/dist/commonjs/operations/amlFilesystems.js +594 -540
- package/dist/commonjs/operations/amlFilesystems.js.map +7 -1
- package/dist/commonjs/operations/ascOperations.js +79 -49
- package/dist/commonjs/operations/ascOperations.js.map +7 -1
- package/dist/commonjs/operations/ascUsages.js +141 -112
- package/dist/commonjs/operations/ascUsages.js.map +7 -1
- package/dist/commonjs/operations/autoExportJobs.js +527 -458
- package/dist/commonjs/operations/autoExportJobs.js.map +7 -1
- package/dist/commonjs/operations/autoImportJobs.js +527 -458
- package/dist/commonjs/operations/autoImportJobs.js.map +7 -1
- package/dist/commonjs/operations/caches.js +1353 -1315
- package/dist/commonjs/operations/caches.js.map +7 -1
- package/dist/commonjs/operations/expansionJobs.d.ts +120 -0
- package/dist/commonjs/operations/expansionJobs.d.ts.map +1 -0
- package/dist/commonjs/operations/expansionJobs.js +547 -0
- package/dist/commonjs/operations/expansionJobs.js.map +7 -0
- package/dist/commonjs/operations/importJobs.js +522 -453
- package/dist/commonjs/operations/importJobs.js.map +7 -1
- package/dist/commonjs/operations/index.d.ts +1 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +45 -20
- package/dist/commonjs/operations/index.js.map +7 -1
- package/dist/commonjs/operations/operations.js +133 -104
- package/dist/commonjs/operations/operations.js.map +7 -1
- package/dist/commonjs/operations/skus.js +133 -104
- package/dist/commonjs/operations/skus.js.map +7 -1
- package/dist/commonjs/operations/storageTargetOperations.js +396 -356
- package/dist/commonjs/operations/storageTargetOperations.js.map +7 -1
- package/dist/commonjs/operations/storageTargets.js +567 -508
- package/dist/commonjs/operations/storageTargets.js.map +7 -1
- package/dist/commonjs/operations/usageModels.js +133 -104
- package/dist/commonjs/operations/usageModels.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/amlFilesystems.js +15 -5
- package/dist/commonjs/operationsInterfaces/amlFilesystems.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/ascOperations.js +15 -5
- package/dist/commonjs/operationsInterfaces/ascOperations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/ascUsages.js +15 -5
- package/dist/commonjs/operationsInterfaces/ascUsages.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/autoExportJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/autoExportJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/autoImportJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/autoImportJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/caches.js +15 -5
- package/dist/commonjs/operationsInterfaces/caches.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.js +15 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.js.map +7 -0
- package/dist/commonjs/operationsInterfaces/importJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/importJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +45 -20
- package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/operations.js +15 -5
- package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/skus.js +15 -5
- package/dist/commonjs/operationsInterfaces/skus.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/storageTargetOperations.js +15 -5
- package/dist/commonjs/operationsInterfaces/storageTargetOperations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/storageTargets.js +15 -5
- package/dist/commonjs/operationsInterfaces/storageTargets.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/usageModels.js +15 -5
- package/dist/commonjs/operationsInterfaces/usageModels.js.map +7 -1
- package/dist/commonjs/pagingHelper.js +39 -25
- package/dist/commonjs/pagingHelper.js.map +7 -1
- package/dist/commonjs/storageCacheManagementClient.d.ts +2 -1
- package/dist/commonjs/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/commonjs/storageCacheManagementClient.js +198 -172
- package/dist/commonjs/storageCacheManagementClient.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/index.js +6 -8
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/lroImpl.js +19 -19
- package/dist/esm/lroImpl.js.map +7 -1
- package/dist/esm/models/index.d.ts +185 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +272 -383
- package/dist/esm/models/index.js.map +7 -1
- package/dist/esm/models/mappers.d.ts +6 -0
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +4422 -4111
- package/dist/esm/models/mappers.js.map +7 -1
- package/dist/esm/models/parameters.d.ts +3 -0
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +360 -283
- package/dist/esm/models/parameters.js.map +7 -1
- package/dist/esm/operations/amlFilesystems.js +556 -530
- package/dist/esm/operations/amlFilesystems.js.map +7 -1
- package/dist/esm/operations/ascOperations.js +44 -42
- package/dist/esm/operations/ascOperations.js.map +7 -1
- package/dist/esm/operations/ascUsages.js +105 -104
- package/dist/esm/operations/ascUsages.js.map +7 -1
- package/dist/esm/operations/autoExportJobs.js +489 -448
- package/dist/esm/operations/autoExportJobs.js.map +7 -1
- package/dist/esm/operations/autoImportJobs.js +489 -448
- package/dist/esm/operations/autoImportJobs.js.map +7 -1
- package/dist/esm/operations/caches.js +1315 -1305
- package/dist/esm/operations/caches.js.map +7 -1
- package/dist/esm/operations/expansionJobs.d.ts +120 -0
- package/dist/esm/operations/expansionJobs.d.ts.map +1 -0
- package/dist/esm/operations/expansionJobs.js +514 -0
- package/dist/esm/operations/expansionJobs.js.map +7 -0
- package/dist/esm/operations/importJobs.js +484 -443
- package/dist/esm/operations/importJobs.js.map +7 -1
- package/dist/esm/operations/index.d.ts +1 -0
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +1 -5
- package/dist/esm/operations/index.js.map +7 -1
- package/dist/esm/operations/operations.js +97 -96
- package/dist/esm/operations/operations.js.map +7 -1
- package/dist/esm/operations/skus.js +97 -96
- package/dist/esm/operations/skus.js.map +7 -1
- package/dist/esm/operations/storageTargetOperations.js +359 -347
- package/dist/esm/operations/storageTargetOperations.js.map +7 -1
- package/dist/esm/operations/storageTargets.js +529 -498
- package/dist/esm/operations/storageTargets.js.map +7 -1
- package/dist/esm/operations/usageModels.js +97 -96
- package/dist/esm/operations/usageModels.js.map +7 -1
- package/dist/esm/operationsInterfaces/amlFilesystems.js +0 -4
- package/dist/esm/operationsInterfaces/amlFilesystems.js.map +7 -1
- package/dist/esm/operationsInterfaces/ascOperations.js +0 -4
- package/dist/esm/operationsInterfaces/ascOperations.js.map +7 -1
- package/dist/esm/operationsInterfaces/ascUsages.js +0 -4
- package/dist/esm/operationsInterfaces/ascUsages.js.map +7 -1
- package/dist/esm/operationsInterfaces/autoExportJobs.js +0 -4
- package/dist/esm/operationsInterfaces/autoExportJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/autoImportJobs.js +0 -4
- package/dist/esm/operationsInterfaces/autoImportJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/caches.js +0 -4
- package/dist/esm/operationsInterfaces/caches.js.map +7 -1
- package/dist/esm/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/esm/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/expansionJobs.js +0 -0
- package/dist/esm/operationsInterfaces/expansionJobs.js.map +7 -0
- package/dist/esm/operationsInterfaces/importJobs.js +0 -4
- package/dist/esm/operationsInterfaces/importJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/index.d.ts +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +1 -5
- package/dist/esm/operationsInterfaces/index.js.map +7 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -4
- package/dist/esm/operationsInterfaces/operations.js.map +7 -1
- package/dist/esm/operationsInterfaces/skus.js +0 -4
- package/dist/esm/operationsInterfaces/skus.js.map +7 -1
- package/dist/esm/operationsInterfaces/storageTargetOperations.js +0 -4
- package/dist/esm/operationsInterfaces/storageTargetOperations.js.map +7 -1
- package/dist/esm/operationsInterfaces/storageTargets.js +0 -4
- package/dist/esm/operationsInterfaces/storageTargets.js.map +7 -1
- package/dist/esm/operationsInterfaces/usageModels.js +0 -4
- package/dist/esm/operationsInterfaces/usageModels.js.map +7 -1
- package/dist/esm/pagingHelper.js +17 -23
- package/dist/esm/pagingHelper.js.map +7 -1
- package/dist/esm/storageCacheManagementClient.d.ts +2 -1
- package/dist/esm/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/esm/storageCacheManagementClient.js +176 -164
- package/dist/esm/storageCacheManagementClient.js.map +7 -1
- package/dist/react-native/models/index.d.ts +185 -2
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +32 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +6 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +183 -0
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +3 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +25 -2
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/expansionJobs.d.ts +120 -0
- package/dist/react-native/operations/expansionJobs.d.ts.map +1 -0
- package/dist/react-native/operations/expansionJobs.js +473 -0
- package/dist/react-native/operations/expansionJobs.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +1 -0
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +1 -0
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.js +4 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +1 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/storageCacheManagementClient.d.ts +2 -1
- package/dist/react-native/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/react-native/storageCacheManagementClient.js +5 -3
- package/dist/react-native/storageCacheManagementClient.js.map +1 -1
- package/package.json +26 -38
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { ExpansionJob, ExpansionJobsListByAmlFilesystemOptionalParams, ExpansionJobsDeleteOptionalParams, ExpansionJobsDeleteResponse, ExpansionJobsGetOptionalParams, ExpansionJobsGetResponse, ExpansionJobsCreateOrUpdateOptionalParams, ExpansionJobsCreateOrUpdateResponse, ExpansionJobUpdate, ExpansionJobsUpdateOptionalParams, ExpansionJobsUpdateResponse } from "../models/index.js";
|
|
4
|
+
/** Interface representing a ExpansionJobs. */
|
|
5
|
+
export interface ExpansionJobs {
|
|
6
|
+
/**
|
|
7
|
+
* Returns all the expansion jobs the user has access to under an AML File System.
|
|
8
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
10
|
+
* hyphens. Start and end with alphanumeric.
|
|
11
|
+
* @param options The options parameters.
|
|
12
|
+
*/
|
|
13
|
+
listByAmlFilesystem(resourceGroupName: string, amlFilesystemName: string, options?: ExpansionJobsListByAmlFilesystemOptionalParams): PagedAsyncIterableIterator<ExpansionJob>;
|
|
14
|
+
/**
|
|
15
|
+
* Schedules an expansion job for deletion.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
18
|
+
* hyphens. Start and end with alphanumeric.
|
|
19
|
+
* @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
|
|
20
|
+
* Start and end with alphanumeric.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
beginDelete(resourceGroupName: string, amlFilesystemName: string, expansionJobName: string, options?: ExpansionJobsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<ExpansionJobsDeleteResponse>, ExpansionJobsDeleteResponse>>;
|
|
24
|
+
/**
|
|
25
|
+
* Schedules an expansion job for deletion.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
28
|
+
* hyphens. Start and end with alphanumeric.
|
|
29
|
+
* @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
|
|
30
|
+
* Start and end with alphanumeric.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
beginDeleteAndWait(resourceGroupName: string, amlFilesystemName: string, expansionJobName: string, options?: ExpansionJobsDeleteOptionalParams): Promise<ExpansionJobsDeleteResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns an expansion job.
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
38
|
+
* hyphens. Start and end with alphanumeric.
|
|
39
|
+
* @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
|
|
40
|
+
* Start and end with alphanumeric.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
get(resourceGroupName: string, amlFilesystemName: string, expansionJobName: string, options?: ExpansionJobsGetOptionalParams): Promise<ExpansionJobsGetResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Create or update an expansion job.
|
|
46
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
47
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
48
|
+
* hyphens. Start and end with alphanumeric.
|
|
49
|
+
* @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
|
|
50
|
+
* Start and end with alphanumeric.
|
|
51
|
+
* @param expansionJob Object containing the user-selectable properties of the expansion job. If
|
|
52
|
+
* read-only properties are included, they must match the existing values of those properties.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
beginCreateOrUpdate(resourceGroupName: string, amlFilesystemName: string, expansionJobName: string, expansionJob: ExpansionJob, options?: ExpansionJobsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ExpansionJobsCreateOrUpdateResponse>, ExpansionJobsCreateOrUpdateResponse>>;
|
|
56
|
+
/**
|
|
57
|
+
* Create or update an expansion job.
|
|
58
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
59
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
60
|
+
* hyphens. Start and end with alphanumeric.
|
|
61
|
+
* @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
|
|
62
|
+
* Start and end with alphanumeric.
|
|
63
|
+
* @param expansionJob Object containing the user-selectable properties of the expansion job. If
|
|
64
|
+
* read-only properties are included, they must match the existing values of those properties.
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, amlFilesystemName: string, expansionJobName: string, expansionJob: ExpansionJob, options?: ExpansionJobsCreateOrUpdateOptionalParams): Promise<ExpansionJobsCreateOrUpdateResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Update an expansion job instance.
|
|
70
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
71
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
72
|
+
* hyphens. Start and end with alphanumeric.
|
|
73
|
+
* @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
|
|
74
|
+
* Start and end with alphanumeric.
|
|
75
|
+
* @param expansionJob Object containing the user-selectable properties of the expansion job. If
|
|
76
|
+
* read-only properties are included, they must match the existing values of those properties.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
beginUpdate(resourceGroupName: string, amlFilesystemName: string, expansionJobName: string, expansionJob: ExpansionJobUpdate, options?: ExpansionJobsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ExpansionJobsUpdateResponse>, ExpansionJobsUpdateResponse>>;
|
|
80
|
+
/**
|
|
81
|
+
* Update an expansion job instance.
|
|
82
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
83
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
84
|
+
* hyphens. Start and end with alphanumeric.
|
|
85
|
+
* @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
|
|
86
|
+
* Start and end with alphanumeric.
|
|
87
|
+
* @param expansionJob Object containing the user-selectable properties of the expansion job. If
|
|
88
|
+
* read-only properties are included, they must match the existing values of those properties.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
beginUpdateAndWait(resourceGroupName: string, amlFilesystemName: string, expansionJobName: string, expansionJob: ExpansionJobUpdate, options?: ExpansionJobsUpdateOptionalParams): Promise<ExpansionJobsUpdateResponse>;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=expansionJobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expansionJobs.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/expansionJobs.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,YAAY,EACZ,8CAA8C,EAC9C,iCAAiC,EACjC,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,yCAAyC,EACzC,mCAAmC,EACnC,kBAAkB,EAClB,iCAAiC,EACjC,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;;;;;OAQG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CACR,gBAAgB,CAAC,cAAc,CAAC,2BAA2B,CAAC,EAAE,2BAA2B,CAAC,CAC3F,CAAC;IACF;;;;;;;;OAQG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM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C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expansionJobs.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/expansionJobs.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n ExpansionJob,\n ExpansionJobsListByAmlFilesystemOptionalParams,\n ExpansionJobsDeleteOptionalParams,\n ExpansionJobsDeleteResponse,\n ExpansionJobsGetOptionalParams,\n ExpansionJobsGetResponse,\n ExpansionJobsCreateOrUpdateOptionalParams,\n ExpansionJobsCreateOrUpdateResponse,\n ExpansionJobUpdate,\n ExpansionJobsUpdateOptionalParams,\n ExpansionJobsUpdateResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a ExpansionJobs. */\nexport interface ExpansionJobs {\n /**\n * Returns all the expansion jobs the user has access to under an AML File System.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n listByAmlFilesystem(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ExpansionJobsListByAmlFilesystemOptionalParams,\n ): PagedAsyncIterableIterator<ExpansionJob>;\n /**\n * Schedules an expansion job for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n options?: ExpansionJobsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<ExpansionJobsDeleteResponse>, ExpansionJobsDeleteResponse>\n >;\n /**\n * Schedules an expansion job for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n options?: ExpansionJobsDeleteOptionalParams,\n ): Promise<ExpansionJobsDeleteResponse>;\n /**\n * Returns an expansion job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n options?: ExpansionJobsGetOptionalParams,\n ): Promise<ExpansionJobsGetResponse>;\n /**\n * Create or update an expansion job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param expansionJob Object containing the user-selectable properties of the expansion job. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n expansionJob: ExpansionJob,\n options?: ExpansionJobsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ExpansionJobsCreateOrUpdateResponse>,\n ExpansionJobsCreateOrUpdateResponse\n >\n >;\n /**\n * Create or update an expansion job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param expansionJob Object containing the user-selectable properties of the expansion job. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n expansionJob: ExpansionJob,\n options?: ExpansionJobsCreateOrUpdateOptionalParams,\n ): Promise<ExpansionJobsCreateOrUpdateResponse>;\n /**\n * Update an expansion job instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param expansionJob Object containing the user-selectable properties of the expansion job. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n expansionJob: ExpansionJobUpdate,\n options?: ExpansionJobsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<ExpansionJobsUpdateResponse>, ExpansionJobsUpdateResponse>\n >;\n /**\n * Update an expansion job instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param expansionJob Object containing the user-selectable properties of the expansion job. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n expansionJob: ExpansionJobUpdate,\n options?: ExpansionJobsUpdateOptionalParams,\n ): Promise<ExpansionJobsUpdateResponse>;\n}\n"]}
|
|
@@ -2,6 +2,7 @@ export * from "./amlFilesystems.js";
|
|
|
2
2
|
export * from "./autoExportJobs.js";
|
|
3
3
|
export * from "./importJobs.js";
|
|
4
4
|
export * from "./autoImportJobs.js";
|
|
5
|
+
export * from "./expansionJobs.js";
|
|
5
6
|
export * from "./operations.js";
|
|
6
7
|
export * from "./skus.js";
|
|
7
8
|
export * from "./usageModels.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
|
|
@@ -6,6 +6,7 @@ export * from "./amlFilesystems.js";
|
|
|
6
6
|
export * from "./autoExportJobs.js";
|
|
7
7
|
export * from "./importJobs.js";
|
|
8
8
|
export * from "./autoImportJobs.js";
|
|
9
|
+
export * from "./expansionJobs.js";
|
|
9
10
|
export * from "./operations.js";
|
|
10
11
|
export * from "./skus.js";
|
|
11
12
|
export * from "./usageModels.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nexport * from \"./amlFilesystems.js\";\nexport * from \"./autoExportJobs.js\";\nexport * from \"./importJobs.js\";\nexport * from \"./autoImportJobs.js\";\nexport * from \"./operations.js\";\nexport * from \"./skus.js\";\nexport * from \"./usageModels.js\";\nexport * from \"./ascOperations.js\";\nexport * from \"./ascUsages.js\";\nexport * from \"./caches.js\";\nexport * from \"./storageTargets.js\";\nexport * from \"./storageTargetOperations.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nexport * from \"./amlFilesystems.js\";\nexport * from \"./autoExportJobs.js\";\nexport * from \"./importJobs.js\";\nexport * from \"./autoImportJobs.js\";\nexport * from \"./expansionJobs.js\";\nexport * from \"./operations.js\";\nexport * from \"./skus.js\";\nexport * from \"./usageModels.js\";\nexport * from \"./ascOperations.js\";\nexport * from \"./ascUsages.js\";\nexport * from \"./caches.js\";\nexport * from \"./storageTargets.js\";\nexport * from \"./storageTargetOperations.js\";\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { AmlFilesystems, AutoExportJobs, ImportJobs, AutoImportJobs, Operations, Skus, UsageModels, AscOperations, AscUsages, Caches, StorageTargets, StorageTargetOperations } from "./operationsInterfaces/index.js";
|
|
3
|
+
import { AmlFilesystems, AutoExportJobs, ImportJobs, AutoImportJobs, ExpansionJobs, Operations, Skus, UsageModels, AscOperations, AscUsages, Caches, StorageTargets, StorageTargetOperations } from "./operationsInterfaces/index.js";
|
|
4
4
|
import { StorageCacheManagementClientOptionalParams, CheckAmlFSSubnetsOptionalParams, GetRequiredAmlFSSubnetsSizeOptionalParams, GetRequiredAmlFSSubnetsSizeResponse } from "./models/index.js";
|
|
5
5
|
export declare class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -29,6 +29,7 @@ export declare class StorageCacheManagementClient extends coreClient.ServiceClie
|
|
|
29
29
|
autoExportJobs: AutoExportJobs;
|
|
30
30
|
importJobs: ImportJobs;
|
|
31
31
|
autoImportJobs: AutoImportJobs;
|
|
32
|
+
expansionJobs: ExpansionJobs;
|
|
32
33
|
operations: Operations;
|
|
33
34
|
skus: Skus;
|
|
34
35
|
usageModels: UsageModels;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageCacheManagementClient.d.ts","sourceRoot":"","sources":["../../src/storageCacheManagementClient.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageCacheManagementClient.d.ts","sourceRoot":"","sources":["../../src/storageCacheManagementClient.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAgB7C,OAAO,EACL,cAAc,EACd,cAAc,EACd,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,IAAI,EACJ,WAAW,EACX,aAAa,EACb,SAAS,EACT,MAAM,EACN,cAAc,EACd,uBAAuB,EACxB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,0CAA0C,EAC1C,+BAA+B,EAC/B,yCAAyC,EACzC,mCAAmC,EACpC,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,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,0CAA0C;IAqFtD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IAwBjC;;;OAGG;IACH,iBAAiB,CAAC,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3E;;;OAGG;IACH,2BAA2B,CACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAI/C,cAAc,EAAE,cAAc,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;IAC/B,uBAAuB,EAAE,uBAAuB,CAAC;CAClD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5
5
|
import * as coreClient from "@azure/core-client";
|
|
6
6
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
7
|
-
import { AmlFilesystemsImpl, AutoExportJobsImpl, ImportJobsImpl, AutoImportJobsImpl, OperationsImpl, SkusImpl, UsageModelsImpl, AscOperationsImpl, AscUsagesImpl, CachesImpl, StorageTargetsImpl, StorageTargetOperationsImpl, } from "./operations/index.js";
|
|
7
|
+
import { AmlFilesystemsImpl, AutoExportJobsImpl, ImportJobsImpl, AutoImportJobsImpl, ExpansionJobsImpl, OperationsImpl, SkusImpl, UsageModelsImpl, AscOperationsImpl, AscUsagesImpl, CachesImpl, StorageTargetsImpl, StorageTargetOperationsImpl, } from "./operations/index.js";
|
|
8
8
|
import * as Parameters from "./models/parameters.js";
|
|
9
9
|
import * as Mappers from "./models/mappers.js";
|
|
10
10
|
export class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
@@ -32,7 +32,7 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials,
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-storagecache/8.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-storagecache/8.2.0`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
@@ -69,11 +69,12 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
|
69
69
|
this.subscriptionId = subscriptionId;
|
|
70
70
|
// Assigning values to Constant parameters
|
|
71
71
|
this.$host = options.$host || "https://management.azure.com";
|
|
72
|
-
this.apiVersion = options.apiVersion || "
|
|
72
|
+
this.apiVersion = options.apiVersion || "2026-01-01";
|
|
73
73
|
this.amlFilesystems = new AmlFilesystemsImpl(this);
|
|
74
74
|
this.autoExportJobs = new AutoExportJobsImpl(this);
|
|
75
75
|
this.importJobs = new ImportJobsImpl(this);
|
|
76
76
|
this.autoImportJobs = new AutoImportJobsImpl(this);
|
|
77
|
+
this.expansionJobs = new ExpansionJobsImpl(this);
|
|
77
78
|
this.operations = new OperationsImpl(this);
|
|
78
79
|
this.skus = new SkusImpl(this);
|
|
79
80
|
this.usageModels = new UsageModelsImpl(this);
|
|
@@ -127,6 +128,7 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
|
127
128
|
autoExportJobs;
|
|
128
129
|
importJobs;
|
|
129
130
|
autoImportJobs;
|
|
131
|
+
expansionJobs;
|
|
130
132
|
operations;
|
|
131
133
|
skus;
|
|
132
134
|
usageModels;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageCacheManagementClient.js","sourceRoot":"","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under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AmlFilesystemsImpl,\n AutoExportJobsImpl,\n ImportJobsImpl,\n AutoImportJobsImpl,\n OperationsImpl,\n SkusImpl,\n UsageModelsImpl,\n AscOperationsImpl,\n AscUsagesImpl,\n CachesImpl,\n StorageTargetsImpl,\n StorageTargetOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n AmlFilesystems,\n AutoExportJobs,\n ImportJobs,\n AutoImportJobs,\n Operations,\n Skus,\n UsageModels,\n AscOperations,\n AscUsages,\n Caches,\n StorageTargets,\n StorageTargetOperations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n StorageCacheManagementClientOptionalParams,\n CheckAmlFSSubnetsOptionalParams,\n GetRequiredAmlFSSubnetsSizeOptionalParams,\n GetRequiredAmlFSSubnetsSizeResponse,\n} from \"./models/index.js\";\n\nexport class StorageCacheManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageCacheManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageCacheManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageCacheManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storagecache/8.1.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-07-01\";\n this.amlFilesystems = new AmlFilesystemsImpl(this);\n this.autoExportJobs = new AutoExportJobsImpl(this);\n this.importJobs = new ImportJobsImpl(this);\n this.autoImportJobs = new AutoImportJobsImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.usageModels = new UsageModelsImpl(this);\n this.ascOperations = new AscOperationsImpl(this);\n this.ascUsages = new AscUsagesImpl(this);\n this.caches = new CachesImpl(this);\n this.storageTargets = new StorageTargetsImpl(this);\n this.storageTargetOperations = new StorageTargetOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check that subnets will be valid for AML file system create calls.\n * @param options The options parameters.\n */\n checkAmlFSSubnets(options?: CheckAmlFSSubnetsOptionalParams): Promise<void> {\n return this.sendOperationRequest({ options }, checkAmlFSSubnetsOperationSpec);\n }\n\n /**\n * Get the number of available IP addresses needed for the AML file system information provided.\n * @param options The options parameters.\n */\n getRequiredAmlFSSubnetsSize(\n options?: GetRequiredAmlFSSubnetsSizeOptionalParams,\n ): Promise<GetRequiredAmlFSSubnetsSizeResponse> {\n return this.sendOperationRequest({ options }, getRequiredAmlFSSubnetsSizeOperationSpec);\n }\n\n amlFilesystems: AmlFilesystems;\n autoExportJobs: AutoExportJobs;\n importJobs: ImportJobs;\n autoImportJobs: AutoImportJobs;\n operations: Operations;\n skus: Skus;\n usageModels: UsageModels;\n ascOperations: AscOperations;\n ascUsages: AscUsages;\n caches: Caches;\n storageTargets: StorageTargets;\n storageTargetOperations: StorageTargetOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkAmlFSSubnetsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/checkAmlFSSubnets\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 400: {\n bodyMapper: Mappers.AmlFilesystemCheckSubnetError,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.amlFilesystemSubnetInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getRequiredAmlFSSubnetsSizeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/getRequiredAmlFSSubnetsSize\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RequiredAmlFilesystemSubnetsSize,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.requiredAMLFilesystemSubnetsSizeInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"storageCacheManagementClient.js","sourceRoot":"","sources":["../../src/storageCacheManagementClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAgB/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,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,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,uBAAuB;IAC/C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,8FAA8F;IACpG,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,oCAAoC;IAC5D,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AmlFilesystemsImpl,\n AutoExportJobsImpl,\n ImportJobsImpl,\n AutoImportJobsImpl,\n ExpansionJobsImpl,\n OperationsImpl,\n SkusImpl,\n UsageModelsImpl,\n AscOperationsImpl,\n AscUsagesImpl,\n CachesImpl,\n StorageTargetsImpl,\n StorageTargetOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n AmlFilesystems,\n AutoExportJobs,\n ImportJobs,\n AutoImportJobs,\n ExpansionJobs,\n Operations,\n Skus,\n UsageModels,\n AscOperations,\n AscUsages,\n Caches,\n StorageTargets,\n StorageTargetOperations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n StorageCacheManagementClientOptionalParams,\n CheckAmlFSSubnetsOptionalParams,\n GetRequiredAmlFSSubnetsSizeOptionalParams,\n GetRequiredAmlFSSubnetsSizeResponse,\n} from \"./models/index.js\";\n\nexport class StorageCacheManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageCacheManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageCacheManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageCacheManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storagecache/8.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2026-01-01\";\n this.amlFilesystems = new AmlFilesystemsImpl(this);\n this.autoExportJobs = new AutoExportJobsImpl(this);\n this.importJobs = new ImportJobsImpl(this);\n this.autoImportJobs = new AutoImportJobsImpl(this);\n this.expansionJobs = new ExpansionJobsImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.usageModels = new UsageModelsImpl(this);\n this.ascOperations = new AscOperationsImpl(this);\n this.ascUsages = new AscUsagesImpl(this);\n this.caches = new CachesImpl(this);\n this.storageTargets = new StorageTargetsImpl(this);\n this.storageTargetOperations = new StorageTargetOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check that subnets will be valid for AML file system create calls.\n * @param options The options parameters.\n */\n checkAmlFSSubnets(options?: CheckAmlFSSubnetsOptionalParams): Promise<void> {\n return this.sendOperationRequest({ options }, checkAmlFSSubnetsOperationSpec);\n }\n\n /**\n * Get the number of available IP addresses needed for the AML file system information provided.\n * @param options The options parameters.\n */\n getRequiredAmlFSSubnetsSize(\n options?: GetRequiredAmlFSSubnetsSizeOptionalParams,\n ): Promise<GetRequiredAmlFSSubnetsSizeResponse> {\n return this.sendOperationRequest({ options }, getRequiredAmlFSSubnetsSizeOperationSpec);\n }\n\n amlFilesystems: AmlFilesystems;\n autoExportJobs: AutoExportJobs;\n importJobs: ImportJobs;\n autoImportJobs: AutoImportJobs;\n expansionJobs: ExpansionJobs;\n operations: Operations;\n skus: Skus;\n usageModels: UsageModels;\n ascOperations: AscOperations;\n ascUsages: AscUsages;\n caches: Caches;\n storageTargets: StorageTargets;\n storageTargetOperations: StorageTargetOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkAmlFSSubnetsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/checkAmlFSSubnets\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 400: {\n bodyMapper: Mappers.AmlFilesystemCheckSubnetError,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.amlFilesystemSubnetInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getRequiredAmlFSSubnetsSizeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/getRequiredAmlFSSubnetsSize\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RequiredAmlFilesystemSubnetsSize,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.requiredAMLFilesystemSubnetsSizeInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -1,16 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var src_exports = {};
|
|
20
|
+
__export(src_exports, {
|
|
21
|
+
StorageCacheManagementClient: () => import_storageCacheManagementClient.StorageCacheManagementClient,
|
|
22
|
+
getContinuationToken: () => import_pagingHelper.getContinuationToken
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(src_exports);
|
|
25
|
+
var import_pagingHelper = require("./pagingHelper.js");
|
|
26
|
+
__reExport(src_exports, require("./models/index.js"), module.exports);
|
|
27
|
+
var import_storageCacheManagementClient = require("./storageCacheManagementClient.js");
|
|
28
|
+
__reExport(src_exports, require("./operationsInterfaces/index.js"), module.exports);
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
StorageCacheManagementClient,
|
|
32
|
+
getContinuationToken,
|
|
33
|
+
...require("./models/index.js"),
|
|
34
|
+
...require("./operationsInterfaces/index.js")
|
|
35
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { StorageCacheManagementClient } from \"./storageCacheManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,0BAAqC;AACrC,wBAAc,8BARd;AASA,0CAA6C;AAC7C,wBAAc,4CAVd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -1,23 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var lroImpl_exports = {};
|
|
19
|
+
__export(lroImpl_exports, {
|
|
20
|
+
createLroSpec: () => createLroSpec
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(lroImpl_exports);
|
|
6
23
|
function createLroSpec(inputs) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (path, options) => {
|
|
30
|
+
const { requestBody, ...restSpec } = spec;
|
|
31
|
+
return sendOperationFn(args, {
|
|
32
|
+
...restSpec,
|
|
33
|
+
httpMethod: "GET",
|
|
34
|
+
path,
|
|
35
|
+
abortSignal: options?.abortSignal
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
22
39
|
}
|
|
23
|
-
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
createLroSpec
|
|
43
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/lroImpl.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,cAAiB,QAQL;AAC1B,QAAM,EAAE,MAAM,MAAM,gBAAgB,IAAI;AACxC,SAAO;AAAA,IACL,eAAe,KAAK;AAAA,IACpB,aAAa,KAAK;AAAA,IAClB,oBAAoB,MAAM,gBAAgB,MAAM,IAAI;AAAA,IACpD,iBAAiB,CAAC,MAAc,YAAgD;AAC9E,YAAM,EAAE,aAAa,GAAG,SAAS,IAAI;AACrC,aAAO,gBAAgB,MAAM;AAAA,QAC3B,GAAG;AAAA,QACH,YAAY;AAAA,QACZ;AAAA,QACA,aAAa,SAAS;AAAA,MACxB,CAAC;AAAA,IACH;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|