@azure/arm-storagecache 5.0.0 → 5.1.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 +19 -0
- package/README.md +11 -0
- package/dist/index.js +425 -67
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/ascOperationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/ascOperationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ascOperationsGetSample.js +31 -0
- package/dist-esm/samples-dev/ascOperationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/ascUsagesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/ascUsagesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ascUsagesListSample.js +44 -0
- package/dist-esm/samples-dev/ascUsagesListSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdateSample.js +151 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesDebugInfoSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesDebugInfoSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesDebugInfoSample.js +31 -0
- package/dist-esm/samples-dev/cachesDebugInfoSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/cachesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesFlushSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesFlushSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesFlushSample.js +31 -0
- package/dist-esm/samples-dev/cachesFlushSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesGetSample.js +31 -0
- package/dist-esm/samples-dev/cachesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/cachesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesListSample.js +43 -0
- package/dist-esm/samples-dev/cachesListSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesStartSample.js +31 -0
- package/dist-esm/samples-dev/cachesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesStopSample.js +31 -0
- package/dist-esm/samples-dev/cachesStopSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesUpdateSample.js +191 -0
- package/dist-esm/samples-dev/cachesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/cachesUpgradeFirmwareSample.d.ts +2 -0
- package/dist-esm/samples-dev/cachesUpgradeFirmwareSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesUpgradeFirmwareSample.js +31 -0
- package/dist-esm/samples-dev/cachesUpgradeFirmwareSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +43 -0
- package/dist-esm/samples-dev/skusListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetFlushSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetFlushSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetFlushSample.js +32 -0
- package/dist-esm/samples-dev/storageTargetFlushSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetInvalidateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetInvalidateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetInvalidateSample.js +32 -0
- package/dist-esm/samples-dev/storageTargetInvalidateSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetResumeSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetResumeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetResumeSample.js +32 -0
- package/dist-esm/samples-dev/storageTargetResumeSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetSuspendSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetSuspendSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetSuspendSample.js +32 -0
- package/dist-esm/samples-dev/storageTargetSuspendSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateSample.js +103 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/storageTargetsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsDnsRefreshSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsDnsRefreshSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsDnsRefreshSample.js +32 -0
- package/dist-esm/samples-dev/storageTargetsDnsRefreshSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsGetSample.js +32 -0
- package/dist-esm/samples-dev/storageTargetsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsListByCacheSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsListByCacheSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsListByCacheSample.js +45 -0
- package/dist-esm/samples-dev/storageTargetsListByCacheSample.js.map +1 -0
- package/dist-esm/samples-dev/usageModelsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/usageModelsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usageModelsListSample.js +43 -0
- package/dist-esm/samples-dev/usageModelsListSample.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +62 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +101 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/ascUsages.d.ts +35 -0
- package/dist-esm/src/operations/ascUsages.d.ts.map +1 -0
- package/dist-esm/src/operations/ascUsages.js +132 -0
- package/dist-esm/src/operations/ascUsages.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/storageTargetOperations.d.ts +21 -1
- package/dist-esm/src/operations/storageTargetOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/storageTargetOperations.js +79 -0
- package/dist-esm/src/operations/storageTargetOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/ascUsages.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/ascUsages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/ascUsages.js +9 -0
- package/dist-esm/src/operationsInterfaces/ascUsages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/storageTargetOperations.d.ts +21 -1
- package/dist-esm/src/operationsInterfaces/storageTargetOperations.d.ts.map +1 -1
- package/dist-esm/src/storageCacheManagementClient.d.ts +2 -1
- package/dist-esm/src/storageCacheManagementClient.d.ts.map +1 -1
- package/dist-esm/src/storageCacheManagementClient.js +4 -3
- package/dist-esm/src/storageCacheManagementClient.js.map +1 -1
- package/package.json +25 -13
- package/review/arm-storagecache.api.md +50 -0
- package/rollup.config.js +6 -72
- package/src/models/index.ts +71 -0
- package/src/models/mappers.ts +104 -0
- package/src/models/parameters.ts +1 -1
- package/src/operations/ascUsages.ts +158 -0
- package/src/operations/index.ts +1 -0
- package/src/operations/storageTargetOperations.ts +116 -1
- package/src/operationsInterfaces/ascUsages.ts +24 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/storageTargetOperations.ts +32 -1
- package/src/storageCacheManagementClient.ts +6 -2
- package/tsconfig.json +18 -5
- package/types/arm-storagecache.d.ts +101 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ascUsages.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/ascUsages.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAGvE,0CAA0C;AAC1C,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,aAAa,CAAC,CAAC;CAC9C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ascUsages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ascUsages.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/ascUsages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
|
@@ -9,6 +9,7 @@ export * from "./operations";
|
|
|
9
9
|
export * from "./skus";
|
|
10
10
|
export * from "./usageModels";
|
|
11
11
|
export * from "./ascOperations";
|
|
12
|
+
export * from "./ascUsages";
|
|
12
13
|
export * from "./caches";
|
|
13
14
|
export * from "./storageTargets";
|
|
14
15
|
export * from "./storageTargetOperations";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
2
|
-
import { StorageTargetFlushOptionalParams, StorageTargetSuspendOptionalParams, StorageTargetResumeOptionalParams } from "../models";
|
|
2
|
+
import { StorageTargetFlushOptionalParams, StorageTargetSuspendOptionalParams, StorageTargetResumeOptionalParams, StorageTargetInvalidateOptionalParams } from "../models";
|
|
3
3
|
/** Interface representing a StorageTargetOperations. */
|
|
4
4
|
export interface StorageTargetOperations {
|
|
5
5
|
/**
|
|
@@ -58,5 +58,25 @@ export interface StorageTargetOperations {
|
|
|
58
58
|
* @param options The options parameters.
|
|
59
59
|
*/
|
|
60
60
|
beginResumeAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetResumeOptionalParams): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Invalidate all cached data for a storage target. Cached files are discarded and fetched from the
|
|
63
|
+
* back end on the next request.
|
|
64
|
+
* @param resourceGroupName Target resource group.
|
|
65
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
66
|
+
* the [-0-9a-zA-Z_] char class.
|
|
67
|
+
* @param storageTargetName Name of Storage Target.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
beginInvalidate(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetInvalidateOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
71
|
+
/**
|
|
72
|
+
* Invalidate all cached data for a storage target. Cached files are discarded and fetched from the
|
|
73
|
+
* back end on the next request.
|
|
74
|
+
* @param resourceGroupName Target resource group.
|
|
75
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
76
|
+
* the [-0-9a-zA-Z_] char class.
|
|
77
|
+
* @param storageTargetName Name of Storage Target.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
beginInvalidateAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetInvalidateOptionalParams): Promise<void>;
|
|
61
81
|
}
|
|
62
82
|
//# sourceMappingURL=storageTargetOperations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageTargetOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/storageTargetOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"storageTargetOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/storageTargetOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,iCAAiC,EACjC,qCAAqC,EACtC,MAAM,WAAW,CAAC;AAEnB,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;OAQG;IACH,UAAU,CACR,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;;;;OAQG;IACH,iBAAiB,CACf,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;OAOG;IACH,YAAY,CACV,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;;;OAOG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;OAOG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;;;OAOG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;;OAQG;IACH,eAAe,CACb,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;;;;OAQG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations, Skus, UsageModels, AscOperations, Caches, StorageTargets, StorageTargetOperations } from "./operationsInterfaces";
|
|
3
|
+
import { Operations, Skus, UsageModels, AscOperations, AscUsages, Caches, StorageTargets, StorageTargetOperations } from "./operationsInterfaces";
|
|
4
4
|
import { StorageCacheManagementClientOptionalParams } from "./models";
|
|
5
5
|
export declare class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -18,6 +18,7 @@ export declare class StorageCacheManagementClient extends coreClient.ServiceClie
|
|
|
18
18
|
skus: Skus;
|
|
19
19
|
usageModels: UsageModels;
|
|
20
20
|
ascOperations: AscOperations;
|
|
21
|
+
ascUsages: AscUsages;
|
|
21
22
|
caches: Caches;
|
|
22
23
|
storageTargets: StorageTargets;
|
|
23
24
|
storageTargetOperations: StorageTargetOperations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageCacheManagementClient.d.ts","sourceRoot":"","sources":["../../src/storageCacheManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageCacheManagementClient.d.ts","sourceRoot":"","sources":["../../src/storageCacheManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAW7C,OAAO,EACL,UAAU,EACV,IAAI,EACJ,WAAW,EACX,aAAa,EACb,SAAS,EACT,MAAM,EACN,cAAc,EACd,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,0CAA0C,EAAE,MAAM,UAAU,CAAC;AAEtE,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0CAA0C;IAoDtD,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"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
-
import { OperationsImpl, SkusImpl, UsageModelsImpl, AscOperationsImpl, CachesImpl, StorageTargetsImpl, StorageTargetOperationsImpl } from "./operations";
|
|
9
|
+
import { OperationsImpl, SkusImpl, UsageModelsImpl, AscOperationsImpl, AscUsagesImpl, CachesImpl, StorageTargetsImpl, StorageTargetOperationsImpl } from "./operations";
|
|
10
10
|
export class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
11
11
|
/**
|
|
12
12
|
* Initializes a new instance of the StorageCacheManagementClient class.
|
|
@@ -30,7 +30,7 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
|
30
30
|
requestContentType: "application/json; charset=utf-8",
|
|
31
31
|
credential: credentials
|
|
32
32
|
};
|
|
33
|
-
const packageDetails = `azsdk-js-arm-storagecache/5.
|
|
33
|
+
const packageDetails = `azsdk-js-arm-storagecache/5.1.0`;
|
|
34
34
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
35
35
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
36
36
|
: `${packageDetails}`;
|
|
@@ -45,11 +45,12 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
|
45
45
|
this.subscriptionId = subscriptionId;
|
|
46
46
|
// Assigning values to Constant parameters
|
|
47
47
|
this.$host = options.$host || "https://management.azure.com";
|
|
48
|
-
this.apiVersion = options.apiVersion || "
|
|
48
|
+
this.apiVersion = options.apiVersion || "2022-01-01";
|
|
49
49
|
this.operations = new OperationsImpl(this);
|
|
50
50
|
this.skus = new SkusImpl(this);
|
|
51
51
|
this.usageModels = new UsageModelsImpl(this);
|
|
52
52
|
this.ascOperations = new AscOperationsImpl(this);
|
|
53
|
+
this.ascUsages = new AscUsagesImpl(this);
|
|
53
54
|
this.caches = new CachesImpl(this);
|
|
54
55
|
this.storageTargets = new StorageTargetsImpl(this);
|
|
55
56
|
this.storageTargetOperations = new StorageTargetOperationsImpl(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageCacheManagementClient.js","sourceRoot":"","sources":["../../src/storageCacheManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"storageCacheManagementClient.js","sourceRoot":"","sources":["../../src/storageCacheManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,cAAc,CAAC;AAatB,MAAM,OAAO,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IAKxE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoD;QAEpD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAA+C;YAC3D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,iCAAiC,CAAC;QACzD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,uBAAuB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;IACvE,CAAC;CAUF"}
|
package/package.json
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for StorageCacheManagementClient.",
|
|
6
|
-
"version": "5.
|
|
7
|
-
"engines": {
|
|
6
|
+
"version": "5.1.0",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
8
10
|
"dependencies": {
|
|
9
11
|
"@azure/core-lro": "^2.2.0",
|
|
10
12
|
"@azure/abort-controller": "^1.0.0",
|
|
@@ -14,20 +16,26 @@
|
|
|
14
16
|
"@azure/core-rest-pipeline": "^1.1.0",
|
|
15
17
|
"tslib": "^2.2.0"
|
|
16
18
|
},
|
|
17
|
-
"keywords": [
|
|
19
|
+
"keywords": [
|
|
20
|
+
"node",
|
|
21
|
+
"azure",
|
|
22
|
+
"typescript",
|
|
23
|
+
"browser",
|
|
24
|
+
"isomorphic"
|
|
25
|
+
],
|
|
18
26
|
"license": "MIT",
|
|
19
27
|
"main": "./dist/index.js",
|
|
20
28
|
"module": "./dist-esm/src/index.js",
|
|
21
29
|
"types": "./types/arm-storagecache.d.ts",
|
|
22
30
|
"devDependencies": {
|
|
23
31
|
"@microsoft/api-extractor": "^7.18.11",
|
|
24
|
-
"@rollup/plugin-commonjs": "
|
|
25
|
-
"@rollup/plugin-json": "^4.
|
|
26
|
-
"@rollup/plugin-multi-entry": "^
|
|
27
|
-
"@rollup/plugin-node-resolve": "^
|
|
32
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
33
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^4.1.0",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
28
36
|
"mkdirp": "^1.0.4",
|
|
29
|
-
"rollup": "^
|
|
30
|
-
"rollup-plugin-sourcemaps": "^0.
|
|
37
|
+
"rollup": "^2.66.1",
|
|
38
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
31
39
|
"typescript": "~4.2.0",
|
|
32
40
|
"uglify-js": "^3.4.9",
|
|
33
41
|
"rimraf": "^3.0.0",
|
|
@@ -41,7 +49,9 @@
|
|
|
41
49
|
"type": "git",
|
|
42
50
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
43
51
|
},
|
|
44
|
-
"bugs": {
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
54
|
+
},
|
|
45
55
|
"files": [
|
|
46
56
|
"dist/**/*.js",
|
|
47
57
|
"dist/**/*.js.map",
|
|
@@ -91,7 +101,7 @@
|
|
|
91
101
|
"//metadata": {
|
|
92
102
|
"constantPaths": [
|
|
93
103
|
{
|
|
94
|
-
"path": "src/
|
|
104
|
+
"path": "src/storageCacheManagementClient.ts",
|
|
95
105
|
"prefix": "packageDetails"
|
|
96
106
|
}
|
|
97
107
|
]
|
|
@@ -99,8 +109,10 @@
|
|
|
99
109
|
"autoPublish": true,
|
|
100
110
|
"//sampleConfiguration": {
|
|
101
111
|
"productName": "",
|
|
102
|
-
"productSlugs": [
|
|
112
|
+
"productSlugs": [
|
|
113
|
+
"azure"
|
|
114
|
+
],
|
|
103
115
|
"disableDocsMs": true,
|
|
104
116
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagecache?view=azure-node-preview"
|
|
105
117
|
}
|
|
106
|
-
}
|
|
118
|
+
}
|
|
@@ -63,6 +63,25 @@ export interface AscOperationsGetOptionalParams extends coreClient.OperationOpti
|
|
|
63
63
|
// @public
|
|
64
64
|
export type AscOperationsGetResponse = AscOperation;
|
|
65
65
|
|
|
66
|
+
// @public
|
|
67
|
+
export interface AscUsages {
|
|
68
|
+
list(location: string, options?: AscUsagesListOptionalParams): PagedAsyncIterableIterator<ResourceUsage>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// @public
|
|
72
|
+
export interface AscUsagesListNextOptionalParams extends coreClient.OperationOptions {
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// @public
|
|
76
|
+
export type AscUsagesListNextResponse = ResourceUsagesListResult;
|
|
77
|
+
|
|
78
|
+
// @public
|
|
79
|
+
export interface AscUsagesListOptionalParams extends coreClient.OperationOptions {
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// @public
|
|
83
|
+
export type AscUsagesListResponse = ResourceUsagesListResult;
|
|
84
|
+
|
|
66
85
|
// @public
|
|
67
86
|
export interface BlobNfsTarget {
|
|
68
87
|
target?: string;
|
|
@@ -91,6 +110,7 @@ interface Cache_2 {
|
|
|
91
110
|
};
|
|
92
111
|
readonly type?: string;
|
|
93
112
|
readonly upgradeStatus?: CacheUpgradeStatus;
|
|
113
|
+
zones?: string[];
|
|
94
114
|
}
|
|
95
115
|
export { Cache_2 as Cache }
|
|
96
116
|
|
|
@@ -640,6 +660,26 @@ export interface ResourceSkusResult {
|
|
|
640
660
|
readonly value?: ResourceSku[];
|
|
641
661
|
}
|
|
642
662
|
|
|
663
|
+
// @public
|
|
664
|
+
export interface ResourceUsage {
|
|
665
|
+
readonly currentValue?: number;
|
|
666
|
+
readonly limit?: number;
|
|
667
|
+
readonly name?: ResourceUsageName;
|
|
668
|
+
readonly unit?: string;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// @public
|
|
672
|
+
export interface ResourceUsageName {
|
|
673
|
+
localizedValue?: string;
|
|
674
|
+
value?: string;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
// @public
|
|
678
|
+
export interface ResourceUsagesListResult {
|
|
679
|
+
readonly nextLink?: string;
|
|
680
|
+
readonly value?: ResourceUsage[];
|
|
681
|
+
}
|
|
682
|
+
|
|
643
683
|
// @public
|
|
644
684
|
export interface Restriction {
|
|
645
685
|
reasonCode?: ReasonCode;
|
|
@@ -676,6 +716,8 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
|
676
716
|
// (undocumented)
|
|
677
717
|
ascOperations: AscOperations;
|
|
678
718
|
// (undocumented)
|
|
719
|
+
ascUsages: AscUsages;
|
|
720
|
+
// (undocumented)
|
|
679
721
|
caches: Caches;
|
|
680
722
|
// (undocumented)
|
|
681
723
|
operations: Operations;
|
|
@@ -716,10 +758,18 @@ export interface StorageTargetFlushOptionalParams extends coreClient.OperationOp
|
|
|
716
758
|
updateIntervalInMs?: number;
|
|
717
759
|
}
|
|
718
760
|
|
|
761
|
+
// @public
|
|
762
|
+
export interface StorageTargetInvalidateOptionalParams extends coreClient.OperationOptions {
|
|
763
|
+
resumeFrom?: string;
|
|
764
|
+
updateIntervalInMs?: number;
|
|
765
|
+
}
|
|
766
|
+
|
|
719
767
|
// @public
|
|
720
768
|
export interface StorageTargetOperations {
|
|
721
769
|
beginFlush(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetFlushOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
722
770
|
beginFlushAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetFlushOptionalParams): Promise<void>;
|
|
771
|
+
beginInvalidate(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetInvalidateOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
772
|
+
beginInvalidateAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetInvalidateOptionalParams): Promise<void>;
|
|
723
773
|
beginResume(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetResumeOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
724
774
|
beginResumeAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetResumeOptionalParams): Promise<void>;
|
|
725
775
|
beginSuspend(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetSuspendOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
package/rollup.config.js
CHANGED
|
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
|
|
|
14
14
|
|
|
15
15
|
import nodeBuiltins from "builtin-modules";
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
-
*
|
|
20
|
-
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
-
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
-
* rollup's automatic discovery mechanism.
|
|
23
|
-
*
|
|
24
|
-
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
-
*/
|
|
26
|
-
export function openTelemetryCommonJs() {
|
|
27
|
-
const namedExports = {};
|
|
28
|
-
|
|
29
|
-
for (const key of [
|
|
30
|
-
"@opentelemetry/api",
|
|
31
|
-
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
-
]) {
|
|
33
|
-
namedExports[key] = [
|
|
34
|
-
"SpanKind",
|
|
35
|
-
"TraceFlags",
|
|
36
|
-
"getSpan",
|
|
37
|
-
"setSpan",
|
|
38
|
-
"SpanStatusCode",
|
|
39
|
-
"getSpanContext",
|
|
40
|
-
"setSpanContext"
|
|
41
|
-
];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
-
|
|
46
|
-
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
-
namedExports[
|
|
48
|
-
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
-
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
-
] = [
|
|
51
|
-
"SpanKind",
|
|
52
|
-
"TraceFlags",
|
|
53
|
-
"getSpan",
|
|
54
|
-
"setSpan",
|
|
55
|
-
"StatusCode",
|
|
56
|
-
"CanonicalCode",
|
|
57
|
-
"getSpanContext",
|
|
58
|
-
"setSpanContext"
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return namedExports;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
17
|
// #region Warning Handler
|
|
66
18
|
|
|
67
19
|
/**
|
|
68
|
-
* A function that can determine whether a
|
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
|
69
21
|
* the function returns `true`, then the warning will not be displayed.
|
|
70
22
|
*/
|
|
71
23
|
|
|
72
|
-
function
|
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
|
73
25
|
return (
|
|
74
26
|
warning.code === "EVAL" &&
|
|
75
27
|
warning.id &&
|
|
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
|
|
|
78
30
|
);
|
|
79
31
|
}
|
|
80
32
|
|
|
81
|
-
function
|
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
|
82
34
|
return (
|
|
83
35
|
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
36
|
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
37
|
);
|
|
86
38
|
}
|
|
87
39
|
|
|
88
|
-
const warningInhibitors = [
|
|
89
|
-
ignoreChaiCircularDependencyWarnings,
|
|
90
|
-
ignoreNiseSinonEvalWarnings
|
|
91
|
-
];
|
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
92
41
|
|
|
93
42
|
/**
|
|
94
43
|
* Construct a warning handler for the shared rollup configuration
|
|
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
|
|
|
122
71
|
nodeResolve({
|
|
123
72
|
mainFields: ["module", "browser"]
|
|
124
73
|
}),
|
|
125
|
-
cjs(
|
|
126
|
-
namedExports: {
|
|
127
|
-
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
-
// analyze its exports.
|
|
129
|
-
chai: [
|
|
130
|
-
"version",
|
|
131
|
-
"use",
|
|
132
|
-
"util",
|
|
133
|
-
"config",
|
|
134
|
-
"expect",
|
|
135
|
-
"should",
|
|
136
|
-
"assert"
|
|
137
|
-
],
|
|
138
|
-
...openTelemetryCommonJs()
|
|
139
|
-
}
|
|
140
|
-
}),
|
|
74
|
+
cjs(),
|
|
141
75
|
json(),
|
|
142
76
|
sourcemaps()
|
|
143
77
|
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
|
|
|
173
107
|
],
|
|
174
108
|
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
109
|
preserveSymlinks: false,
|
|
176
|
-
plugins: [sourcemaps(), nodeResolve()
|
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
|
177
111
|
};
|
|
178
112
|
|
|
179
113
|
const config = [baseConfig];
|
package/src/models/index.ts
CHANGED
|
@@ -213,6 +213,52 @@ export interface ErrorResponse {
|
|
|
213
213
|
message?: string;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
/** Result of the request to list resource usages. It contains a list of resource usages & limits and a URL link to get the next set of results. */
|
|
217
|
+
export interface ResourceUsagesListResult {
|
|
218
|
+
/**
|
|
219
|
+
* URL to get the next set of resource usage list results if there are any.
|
|
220
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
221
|
+
*/
|
|
222
|
+
readonly nextLink?: string;
|
|
223
|
+
/**
|
|
224
|
+
* List of usages and limits for resources controlled by the Microsoft.StorageCache resource provider.
|
|
225
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
226
|
+
*/
|
|
227
|
+
readonly value?: ResourceUsage[];
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/** The usage and limit (quota) for a resource. */
|
|
231
|
+
export interface ResourceUsage {
|
|
232
|
+
/**
|
|
233
|
+
* The limit (quota) for this resource.
|
|
234
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
235
|
+
*/
|
|
236
|
+
readonly limit?: number;
|
|
237
|
+
/**
|
|
238
|
+
* Unit that the limit and usages are expressed in, such as 'Count'.
|
|
239
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
240
|
+
*/
|
|
241
|
+
readonly unit?: string;
|
|
242
|
+
/**
|
|
243
|
+
* The current usage of this resource.
|
|
244
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
245
|
+
*/
|
|
246
|
+
readonly currentValue?: number;
|
|
247
|
+
/**
|
|
248
|
+
* Naming information for this resource type.
|
|
249
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
250
|
+
*/
|
|
251
|
+
readonly name?: ResourceUsageName;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** Naming information for this resource type. */
|
|
255
|
+
export interface ResourceUsageName {
|
|
256
|
+
/** Canonical name for this resource type. */
|
|
257
|
+
value?: string;
|
|
258
|
+
/** Localized name for this resource type. */
|
|
259
|
+
localizedValue?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
216
262
|
/** Result of the request to list Caches. It contains a list of Caches and a URL link to get the next set of results. */
|
|
217
263
|
export interface CachesListResult {
|
|
218
264
|
/** URL to get the next set of Cache list results, if there are any. */
|
|
@@ -283,6 +329,8 @@ export interface Cache {
|
|
|
283
329
|
securitySettings?: CacheSecuritySettings;
|
|
284
330
|
/** Specifies Directory Services settings of the cache. */
|
|
285
331
|
directoryServicesSettings?: CacheDirectorySettings;
|
|
332
|
+
/** Availability zones for resources. This field should only contain a single element in the array. */
|
|
333
|
+
zones?: string[];
|
|
286
334
|
}
|
|
287
335
|
|
|
288
336
|
/** Cache identity properties. */
|
|
@@ -963,6 +1011,20 @@ export interface AscOperationsGetOptionalParams
|
|
|
963
1011
|
/** Contains response data for the get operation. */
|
|
964
1012
|
export type AscOperationsGetResponse = AscOperation;
|
|
965
1013
|
|
|
1014
|
+
/** Optional parameters. */
|
|
1015
|
+
export interface AscUsagesListOptionalParams
|
|
1016
|
+
extends coreClient.OperationOptions {}
|
|
1017
|
+
|
|
1018
|
+
/** Contains response data for the list operation. */
|
|
1019
|
+
export type AscUsagesListResponse = ResourceUsagesListResult;
|
|
1020
|
+
|
|
1021
|
+
/** Optional parameters. */
|
|
1022
|
+
export interface AscUsagesListNextOptionalParams
|
|
1023
|
+
extends coreClient.OperationOptions {}
|
|
1024
|
+
|
|
1025
|
+
/** Contains response data for the listNext operation. */
|
|
1026
|
+
export type AscUsagesListNextResponse = ResourceUsagesListResult;
|
|
1027
|
+
|
|
966
1028
|
/** Optional parameters. */
|
|
967
1029
|
export interface CachesListOptionalParams extends coreClient.OperationOptions {}
|
|
968
1030
|
|
|
@@ -1153,6 +1215,15 @@ export interface StorageTargetResumeOptionalParams
|
|
|
1153
1215
|
resumeFrom?: string;
|
|
1154
1216
|
}
|
|
1155
1217
|
|
|
1218
|
+
/** Optional parameters. */
|
|
1219
|
+
export interface StorageTargetInvalidateOptionalParams
|
|
1220
|
+
extends coreClient.OperationOptions {
|
|
1221
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
1222
|
+
updateIntervalInMs?: number;
|
|
1223
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
1224
|
+
resumeFrom?: string;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1156
1227
|
/** Optional parameters. */
|
|
1157
1228
|
export interface StorageCacheManagementClientOptionalParams
|
|
1158
1229
|
extends coreClient.ServiceClientOptions {
|
package/src/models/mappers.ts
CHANGED
|
@@ -611,6 +611,99 @@ export const ErrorResponse: coreClient.CompositeMapper = {
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
|
|
614
|
+
export const ResourceUsagesListResult: coreClient.CompositeMapper = {
|
|
615
|
+
type: {
|
|
616
|
+
name: "Composite",
|
|
617
|
+
className: "ResourceUsagesListResult",
|
|
618
|
+
modelProperties: {
|
|
619
|
+
nextLink: {
|
|
620
|
+
serializedName: "nextLink",
|
|
621
|
+
readOnly: true,
|
|
622
|
+
type: {
|
|
623
|
+
name: "String"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
value: {
|
|
627
|
+
serializedName: "value",
|
|
628
|
+
readOnly: true,
|
|
629
|
+
type: {
|
|
630
|
+
name: "Sequence",
|
|
631
|
+
element: {
|
|
632
|
+
type: {
|
|
633
|
+
name: "Composite",
|
|
634
|
+
className: "ResourceUsage"
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
export const ResourceUsage: coreClient.CompositeMapper = {
|
|
644
|
+
type: {
|
|
645
|
+
name: "Composite",
|
|
646
|
+
className: "ResourceUsage",
|
|
647
|
+
modelProperties: {
|
|
648
|
+
limit: {
|
|
649
|
+
constraints: {
|
|
650
|
+
InclusiveMinimum: 0
|
|
651
|
+
},
|
|
652
|
+
serializedName: "limit",
|
|
653
|
+
readOnly: true,
|
|
654
|
+
type: {
|
|
655
|
+
name: "Number"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
unit: {
|
|
659
|
+
serializedName: "unit",
|
|
660
|
+
readOnly: true,
|
|
661
|
+
type: {
|
|
662
|
+
name: "String"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
currentValue: {
|
|
666
|
+
constraints: {
|
|
667
|
+
InclusiveMinimum: 0
|
|
668
|
+
},
|
|
669
|
+
serializedName: "currentValue",
|
|
670
|
+
readOnly: true,
|
|
671
|
+
type: {
|
|
672
|
+
name: "Number"
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
name: {
|
|
676
|
+
serializedName: "name",
|
|
677
|
+
type: {
|
|
678
|
+
name: "Composite",
|
|
679
|
+
className: "ResourceUsageName"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
export const ResourceUsageName: coreClient.CompositeMapper = {
|
|
687
|
+
type: {
|
|
688
|
+
name: "Composite",
|
|
689
|
+
className: "ResourceUsageName",
|
|
690
|
+
modelProperties: {
|
|
691
|
+
value: {
|
|
692
|
+
serializedName: "value",
|
|
693
|
+
type: {
|
|
694
|
+
name: "String"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
localizedValue: {
|
|
698
|
+
serializedName: "localizedValue",
|
|
699
|
+
type: {
|
|
700
|
+
name: "String"
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
|
|
614
707
|
export const CachesListResult: coreClient.CompositeMapper = {
|
|
615
708
|
type: {
|
|
616
709
|
name: "Composite",
|
|
@@ -773,6 +866,17 @@ export const Cache: coreClient.CompositeMapper = {
|
|
|
773
866
|
name: "Composite",
|
|
774
867
|
className: "CacheDirectorySettings"
|
|
775
868
|
}
|
|
869
|
+
},
|
|
870
|
+
zones: {
|
|
871
|
+
serializedName: "properties.zones",
|
|
872
|
+
type: {
|
|
873
|
+
name: "Sequence",
|
|
874
|
+
element: {
|
|
875
|
+
type: {
|
|
876
|
+
name: "String"
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
776
880
|
}
|
|
777
881
|
}
|
|
778
882
|
}
|
package/src/models/parameters.ts
CHANGED
|
@@ -43,7 +43,7 @@ export const $host: OperationURLParameter = {
|
|
|
43
43
|
export const apiVersion: OperationQueryParameter = {
|
|
44
44
|
parameterPath: "apiVersion",
|
|
45
45
|
mapper: {
|
|
46
|
-
defaultValue: "
|
|
46
|
+
defaultValue: "2022-01-01",
|
|
47
47
|
isConstant: true,
|
|
48
48
|
serializedName: "api-version",
|
|
49
49
|
type: {
|