@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
package/dist/index.js
CHANGED
|
@@ -6,6 +6,26 @@ var coreClient = require('@azure/core-client');
|
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var coreLro = require('@azure/core-lro');
|
|
8
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
|
|
9
29
|
/*
|
|
10
30
|
* Copyright (c) Microsoft Corporation.
|
|
11
31
|
* Licensed under the MIT License.
|
|
@@ -13,6 +33,8 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
33
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
34
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
35
|
*/
|
|
36
|
+
/** Known values of {@link MetricAggregationType} that the service accepts. */
|
|
37
|
+
exports.KnownMetricAggregationType = void 0;
|
|
16
38
|
(function (KnownMetricAggregationType) {
|
|
17
39
|
KnownMetricAggregationType["NotSpecified"] = "NotSpecified";
|
|
18
40
|
KnownMetricAggregationType["None"] = "None";
|
|
@@ -22,16 +44,22 @@ var coreLro = require('@azure/core-lro');
|
|
|
22
44
|
KnownMetricAggregationType["Total"] = "Total";
|
|
23
45
|
KnownMetricAggregationType["Count"] = "Count";
|
|
24
46
|
})(exports.KnownMetricAggregationType || (exports.KnownMetricAggregationType = {}));
|
|
47
|
+
/** Known values of {@link ReasonCode} that the service accepts. */
|
|
48
|
+
exports.KnownReasonCode = void 0;
|
|
25
49
|
(function (KnownReasonCode) {
|
|
26
50
|
KnownReasonCode["QuotaId"] = "QuotaId";
|
|
27
51
|
KnownReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
|
|
28
52
|
})(exports.KnownReasonCode || (exports.KnownReasonCode = {}));
|
|
53
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
54
|
+
exports.KnownCreatedByType = void 0;
|
|
29
55
|
(function (KnownCreatedByType) {
|
|
30
56
|
KnownCreatedByType["User"] = "User";
|
|
31
57
|
KnownCreatedByType["Application"] = "Application";
|
|
32
58
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
33
59
|
KnownCreatedByType["Key"] = "Key";
|
|
34
60
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
61
|
+
/** Known values of {@link HealthStateType} that the service accepts. */
|
|
62
|
+
exports.KnownHealthStateType = void 0;
|
|
35
63
|
(function (KnownHealthStateType) {
|
|
36
64
|
KnownHealthStateType["Unknown"] = "Unknown";
|
|
37
65
|
KnownHealthStateType["Healthy"] = "Healthy";
|
|
@@ -43,6 +71,8 @@ var coreLro = require('@azure/core-lro');
|
|
|
43
71
|
KnownHealthStateType["Upgrading"] = "Upgrading";
|
|
44
72
|
KnownHealthStateType["Flushing"] = "Flushing";
|
|
45
73
|
})(exports.KnownHealthStateType || (exports.KnownHealthStateType = {}));
|
|
74
|
+
/** Known values of {@link ProvisioningStateType} that the service accepts. */
|
|
75
|
+
exports.KnownProvisioningStateType = void 0;
|
|
46
76
|
(function (KnownProvisioningStateType) {
|
|
47
77
|
KnownProvisioningStateType["Succeeded"] = "Succeeded";
|
|
48
78
|
KnownProvisioningStateType["Failed"] = "Failed";
|
|
@@ -51,42 +81,58 @@ var coreLro = require('@azure/core-lro');
|
|
|
51
81
|
KnownProvisioningStateType["Deleting"] = "Deleting";
|
|
52
82
|
KnownProvisioningStateType["Updating"] = "Updating";
|
|
53
83
|
})(exports.KnownProvisioningStateType || (exports.KnownProvisioningStateType = {}));
|
|
84
|
+
/** Known values of {@link FirmwareStatusType} that the service accepts. */
|
|
85
|
+
exports.KnownFirmwareStatusType = void 0;
|
|
54
86
|
(function (KnownFirmwareStatusType) {
|
|
55
87
|
KnownFirmwareStatusType["Available"] = "available";
|
|
56
88
|
KnownFirmwareStatusType["Unavailable"] = "unavailable";
|
|
57
89
|
})(exports.KnownFirmwareStatusType || (exports.KnownFirmwareStatusType = {}));
|
|
90
|
+
/** Known values of {@link NfsAccessRuleScope} that the service accepts. */
|
|
91
|
+
exports.KnownNfsAccessRuleScope = void 0;
|
|
58
92
|
(function (KnownNfsAccessRuleScope) {
|
|
59
93
|
KnownNfsAccessRuleScope["Default"] = "default";
|
|
60
94
|
KnownNfsAccessRuleScope["Network"] = "network";
|
|
61
95
|
KnownNfsAccessRuleScope["Host"] = "host";
|
|
62
96
|
})(exports.KnownNfsAccessRuleScope || (exports.KnownNfsAccessRuleScope = {}));
|
|
97
|
+
/** Known values of {@link NfsAccessRuleAccess} that the service accepts. */
|
|
98
|
+
exports.KnownNfsAccessRuleAccess = void 0;
|
|
63
99
|
(function (KnownNfsAccessRuleAccess) {
|
|
64
100
|
KnownNfsAccessRuleAccess["No"] = "no";
|
|
65
101
|
KnownNfsAccessRuleAccess["Ro"] = "ro";
|
|
66
102
|
KnownNfsAccessRuleAccess["Rw"] = "rw";
|
|
67
103
|
})(exports.KnownNfsAccessRuleAccess || (exports.KnownNfsAccessRuleAccess = {}));
|
|
104
|
+
/** Known values of {@link DomainJoinedType} that the service accepts. */
|
|
105
|
+
exports.KnownDomainJoinedType = void 0;
|
|
68
106
|
(function (KnownDomainJoinedType) {
|
|
69
107
|
KnownDomainJoinedType["Yes"] = "Yes";
|
|
70
108
|
KnownDomainJoinedType["No"] = "No";
|
|
71
109
|
KnownDomainJoinedType["Error"] = "Error";
|
|
72
110
|
})(exports.KnownDomainJoinedType || (exports.KnownDomainJoinedType = {}));
|
|
111
|
+
/** Known values of {@link UsernameSource} that the service accepts. */
|
|
112
|
+
exports.KnownUsernameSource = void 0;
|
|
73
113
|
(function (KnownUsernameSource) {
|
|
74
114
|
KnownUsernameSource["AD"] = "AD";
|
|
75
115
|
KnownUsernameSource["Ldap"] = "LDAP";
|
|
76
116
|
KnownUsernameSource["File"] = "File";
|
|
77
117
|
KnownUsernameSource["None"] = "None";
|
|
78
118
|
})(exports.KnownUsernameSource || (exports.KnownUsernameSource = {}));
|
|
119
|
+
/** Known values of {@link UsernameDownloadedType} that the service accepts. */
|
|
120
|
+
exports.KnownUsernameDownloadedType = void 0;
|
|
79
121
|
(function (KnownUsernameDownloadedType) {
|
|
80
122
|
KnownUsernameDownloadedType["Yes"] = "Yes";
|
|
81
123
|
KnownUsernameDownloadedType["No"] = "No";
|
|
82
124
|
KnownUsernameDownloadedType["Error"] = "Error";
|
|
83
125
|
})(exports.KnownUsernameDownloadedType || (exports.KnownUsernameDownloadedType = {}));
|
|
126
|
+
/** Known values of {@link StorageTargetType} that the service accepts. */
|
|
127
|
+
exports.KnownStorageTargetType = void 0;
|
|
84
128
|
(function (KnownStorageTargetType) {
|
|
85
129
|
KnownStorageTargetType["Nfs3"] = "nfs3";
|
|
86
130
|
KnownStorageTargetType["Clfs"] = "clfs";
|
|
87
131
|
KnownStorageTargetType["Unknown"] = "unknown";
|
|
88
132
|
KnownStorageTargetType["BlobNfs"] = "blobNfs";
|
|
89
133
|
})(exports.KnownStorageTargetType || (exports.KnownStorageTargetType = {}));
|
|
134
|
+
/** Known values of {@link OperationalStateType} that the service accepts. */
|
|
135
|
+
exports.KnownOperationalStateType = void 0;
|
|
90
136
|
(function (KnownOperationalStateType) {
|
|
91
137
|
KnownOperationalStateType["Ready"] = "Ready";
|
|
92
138
|
KnownOperationalStateType["Busy"] = "Busy";
|
|
@@ -686,6 +732,96 @@ const ErrorResponse = {
|
|
|
686
732
|
}
|
|
687
733
|
}
|
|
688
734
|
};
|
|
735
|
+
const ResourceUsagesListResult = {
|
|
736
|
+
type: {
|
|
737
|
+
name: "Composite",
|
|
738
|
+
className: "ResourceUsagesListResult",
|
|
739
|
+
modelProperties: {
|
|
740
|
+
nextLink: {
|
|
741
|
+
serializedName: "nextLink",
|
|
742
|
+
readOnly: true,
|
|
743
|
+
type: {
|
|
744
|
+
name: "String"
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
value: {
|
|
748
|
+
serializedName: "value",
|
|
749
|
+
readOnly: true,
|
|
750
|
+
type: {
|
|
751
|
+
name: "Sequence",
|
|
752
|
+
element: {
|
|
753
|
+
type: {
|
|
754
|
+
name: "Composite",
|
|
755
|
+
className: "ResourceUsage"
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
const ResourceUsage = {
|
|
764
|
+
type: {
|
|
765
|
+
name: "Composite",
|
|
766
|
+
className: "ResourceUsage",
|
|
767
|
+
modelProperties: {
|
|
768
|
+
limit: {
|
|
769
|
+
constraints: {
|
|
770
|
+
InclusiveMinimum: 0
|
|
771
|
+
},
|
|
772
|
+
serializedName: "limit",
|
|
773
|
+
readOnly: true,
|
|
774
|
+
type: {
|
|
775
|
+
name: "Number"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
unit: {
|
|
779
|
+
serializedName: "unit",
|
|
780
|
+
readOnly: true,
|
|
781
|
+
type: {
|
|
782
|
+
name: "String"
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
currentValue: {
|
|
786
|
+
constraints: {
|
|
787
|
+
InclusiveMinimum: 0
|
|
788
|
+
},
|
|
789
|
+
serializedName: "currentValue",
|
|
790
|
+
readOnly: true,
|
|
791
|
+
type: {
|
|
792
|
+
name: "Number"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
name: {
|
|
796
|
+
serializedName: "name",
|
|
797
|
+
type: {
|
|
798
|
+
name: "Composite",
|
|
799
|
+
className: "ResourceUsageName"
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
const ResourceUsageName = {
|
|
806
|
+
type: {
|
|
807
|
+
name: "Composite",
|
|
808
|
+
className: "ResourceUsageName",
|
|
809
|
+
modelProperties: {
|
|
810
|
+
value: {
|
|
811
|
+
serializedName: "value",
|
|
812
|
+
type: {
|
|
813
|
+
name: "String"
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
localizedValue: {
|
|
817
|
+
serializedName: "localizedValue",
|
|
818
|
+
type: {
|
|
819
|
+
name: "String"
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
};
|
|
689
825
|
const CachesListResult = {
|
|
690
826
|
type: {
|
|
691
827
|
name: "Composite",
|
|
@@ -847,6 +983,17 @@ const Cache = {
|
|
|
847
983
|
name: "Composite",
|
|
848
984
|
className: "CacheDirectorySettings"
|
|
849
985
|
}
|
|
986
|
+
},
|
|
987
|
+
zones: {
|
|
988
|
+
serializedName: "properties.zones",
|
|
989
|
+
type: {
|
|
990
|
+
name: "Sequence",
|
|
991
|
+
element: {
|
|
992
|
+
type: {
|
|
993
|
+
name: "String"
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
850
997
|
}
|
|
851
998
|
}
|
|
852
999
|
}
|
|
@@ -1755,6 +1902,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1755
1902
|
UsageModelDisplay: UsageModelDisplay,
|
|
1756
1903
|
AscOperation: AscOperation,
|
|
1757
1904
|
ErrorResponse: ErrorResponse,
|
|
1905
|
+
ResourceUsagesListResult: ResourceUsagesListResult,
|
|
1906
|
+
ResourceUsage: ResourceUsage,
|
|
1907
|
+
ResourceUsageName: ResourceUsageName,
|
|
1758
1908
|
CachesListResult: CachesListResult,
|
|
1759
1909
|
Cache: Cache,
|
|
1760
1910
|
CacheIdentity: CacheIdentity,
|
|
@@ -1818,7 +1968,7 @@ const $host = {
|
|
|
1818
1968
|
const apiVersion = {
|
|
1819
1969
|
parameterPath: "apiVersion",
|
|
1820
1970
|
mapper: {
|
|
1821
|
-
defaultValue: "
|
|
1971
|
+
defaultValue: "2022-01-01",
|
|
1822
1972
|
isConstant: true,
|
|
1823
1973
|
serializedName: "api-version",
|
|
1824
1974
|
type: {
|
|
@@ -2002,7 +2152,7 @@ class OperationsImpl {
|
|
|
2002
2152
|
* @param options The options parameters.
|
|
2003
2153
|
*/
|
|
2004
2154
|
_list(options) {
|
|
2005
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2155
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
2006
2156
|
}
|
|
2007
2157
|
/**
|
|
2008
2158
|
* ListNext
|
|
@@ -2010,12 +2160,12 @@ class OperationsImpl {
|
|
|
2010
2160
|
* @param options The options parameters.
|
|
2011
2161
|
*/
|
|
2012
2162
|
_listNext(nextLink, options) {
|
|
2013
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2163
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$4);
|
|
2014
2164
|
}
|
|
2015
2165
|
}
|
|
2016
2166
|
// Operation Specifications
|
|
2017
|
-
const serializer =
|
|
2018
|
-
const listOperationSpec = {
|
|
2167
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2168
|
+
const listOperationSpec$4 = {
|
|
2019
2169
|
path: "/providers/Microsoft.StorageCache/operations",
|
|
2020
2170
|
httpMethod: "GET",
|
|
2021
2171
|
responses: {
|
|
@@ -2029,9 +2179,9 @@ const listOperationSpec = {
|
|
|
2029
2179
|
queryParameters: [apiVersion],
|
|
2030
2180
|
urlParameters: [$host],
|
|
2031
2181
|
headerParameters: [accept],
|
|
2032
|
-
serializer
|
|
2182
|
+
serializer: serializer$7
|
|
2033
2183
|
};
|
|
2034
|
-
const listNextOperationSpec = {
|
|
2184
|
+
const listNextOperationSpec$4 = {
|
|
2035
2185
|
path: "{nextLink}",
|
|
2036
2186
|
httpMethod: "GET",
|
|
2037
2187
|
responses: {
|
|
@@ -2045,7 +2195,7 @@ const listNextOperationSpec = {
|
|
|
2045
2195
|
queryParameters: [apiVersion],
|
|
2046
2196
|
urlParameters: [$host, nextLink],
|
|
2047
2197
|
headerParameters: [accept],
|
|
2048
|
-
serializer
|
|
2198
|
+
serializer: serializer$7
|
|
2049
2199
|
};
|
|
2050
2200
|
|
|
2051
2201
|
/*
|
|
@@ -2118,7 +2268,7 @@ class SkusImpl {
|
|
|
2118
2268
|
* @param options The options parameters.
|
|
2119
2269
|
*/
|
|
2120
2270
|
_list(options) {
|
|
2121
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
2271
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
2122
2272
|
}
|
|
2123
2273
|
/**
|
|
2124
2274
|
* ListNext
|
|
@@ -2126,12 +2276,12 @@ class SkusImpl {
|
|
|
2126
2276
|
* @param options The options parameters.
|
|
2127
2277
|
*/
|
|
2128
2278
|
_listNext(nextLink, options) {
|
|
2129
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
2279
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
|
|
2130
2280
|
}
|
|
2131
2281
|
}
|
|
2132
2282
|
// Operation Specifications
|
|
2133
|
-
const serializer$
|
|
2134
|
-
const listOperationSpec$
|
|
2283
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2284
|
+
const listOperationSpec$3 = {
|
|
2135
2285
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/skus",
|
|
2136
2286
|
httpMethod: "GET",
|
|
2137
2287
|
responses: {
|
|
@@ -2145,9 +2295,9 @@ const listOperationSpec$1 = {
|
|
|
2145
2295
|
queryParameters: [apiVersion],
|
|
2146
2296
|
urlParameters: [$host, subscriptionId],
|
|
2147
2297
|
headerParameters: [accept],
|
|
2148
|
-
serializer: serializer$
|
|
2298
|
+
serializer: serializer$6
|
|
2149
2299
|
};
|
|
2150
|
-
const listNextOperationSpec$
|
|
2300
|
+
const listNextOperationSpec$3 = {
|
|
2151
2301
|
path: "{nextLink}",
|
|
2152
2302
|
httpMethod: "GET",
|
|
2153
2303
|
responses: {
|
|
@@ -2165,7 +2315,7 @@ const listNextOperationSpec$1 = {
|
|
|
2165
2315
|
subscriptionId
|
|
2166
2316
|
],
|
|
2167
2317
|
headerParameters: [accept],
|
|
2168
|
-
serializer: serializer$
|
|
2318
|
+
serializer: serializer$6
|
|
2169
2319
|
};
|
|
2170
2320
|
|
|
2171
2321
|
/*
|
|
@@ -2250,7 +2400,7 @@ class UsageModelsImpl {
|
|
|
2250
2400
|
}
|
|
2251
2401
|
}
|
|
2252
2402
|
// Operation Specifications
|
|
2253
|
-
const serializer$
|
|
2403
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2254
2404
|
const listOperationSpec$2 = {
|
|
2255
2405
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels",
|
|
2256
2406
|
httpMethod: "GET",
|
|
@@ -2265,7 +2415,7 @@ const listOperationSpec$2 = {
|
|
|
2265
2415
|
queryParameters: [apiVersion],
|
|
2266
2416
|
urlParameters: [$host, subscriptionId],
|
|
2267
2417
|
headerParameters: [accept],
|
|
2268
|
-
serializer: serializer$
|
|
2418
|
+
serializer: serializer$5
|
|
2269
2419
|
};
|
|
2270
2420
|
const listNextOperationSpec$2 = {
|
|
2271
2421
|
path: "{nextLink}",
|
|
@@ -2285,7 +2435,7 @@ const listNextOperationSpec$2 = {
|
|
|
2285
2435
|
subscriptionId
|
|
2286
2436
|
],
|
|
2287
2437
|
headerParameters: [accept],
|
|
2288
|
-
serializer: serializer$
|
|
2438
|
+
serializer: serializer$5
|
|
2289
2439
|
};
|
|
2290
2440
|
|
|
2291
2441
|
/*
|
|
@@ -2311,12 +2461,12 @@ class AscOperationsImpl {
|
|
|
2311
2461
|
* @param options The options parameters.
|
|
2312
2462
|
*/
|
|
2313
2463
|
get(location, operationId, options) {
|
|
2314
|
-
return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec);
|
|
2464
|
+
return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec$2);
|
|
2315
2465
|
}
|
|
2316
2466
|
}
|
|
2317
2467
|
// Operation Specifications
|
|
2318
|
-
const serializer$
|
|
2319
|
-
const getOperationSpec = {
|
|
2468
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2469
|
+
const getOperationSpec$2 = {
|
|
2320
2470
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/locations/{location}/ascOperations/{operationId}",
|
|
2321
2471
|
httpMethod: "GET",
|
|
2322
2472
|
responses: {
|
|
@@ -2335,6 +2485,134 @@ const getOperationSpec = {
|
|
|
2335
2485
|
operationId
|
|
2336
2486
|
],
|
|
2337
2487
|
headerParameters: [accept],
|
|
2488
|
+
serializer: serializer$4
|
|
2489
|
+
};
|
|
2490
|
+
|
|
2491
|
+
/*
|
|
2492
|
+
* Copyright (c) Microsoft Corporation.
|
|
2493
|
+
* Licensed under the MIT License.
|
|
2494
|
+
*
|
|
2495
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2496
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2497
|
+
*/
|
|
2498
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2499
|
+
/** Class containing AscUsages operations. */
|
|
2500
|
+
class AscUsagesImpl {
|
|
2501
|
+
/**
|
|
2502
|
+
* Initialize a new instance of the class AscUsages class.
|
|
2503
|
+
* @param client Reference to the service client
|
|
2504
|
+
*/
|
|
2505
|
+
constructor(client) {
|
|
2506
|
+
this.client = client;
|
|
2507
|
+
}
|
|
2508
|
+
/**
|
|
2509
|
+
* Gets the quantity used and quota limit for resources
|
|
2510
|
+
* @param location The name of the region to query for usage information.
|
|
2511
|
+
* @param options The options parameters.
|
|
2512
|
+
*/
|
|
2513
|
+
list(location, options) {
|
|
2514
|
+
const iter = this.listPagingAll(location, options);
|
|
2515
|
+
return {
|
|
2516
|
+
next() {
|
|
2517
|
+
return iter.next();
|
|
2518
|
+
},
|
|
2519
|
+
[Symbol.asyncIterator]() {
|
|
2520
|
+
return this;
|
|
2521
|
+
},
|
|
2522
|
+
byPage: () => {
|
|
2523
|
+
return this.listPagingPage(location, options);
|
|
2524
|
+
}
|
|
2525
|
+
};
|
|
2526
|
+
}
|
|
2527
|
+
listPagingPage(location, options) {
|
|
2528
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2529
|
+
let result = yield tslib.__await(this._list(location, options));
|
|
2530
|
+
yield yield tslib.__await(result.value || []);
|
|
2531
|
+
let continuationToken = result.nextLink;
|
|
2532
|
+
while (continuationToken) {
|
|
2533
|
+
result = yield tslib.__await(this._listNext(location, continuationToken, options));
|
|
2534
|
+
continuationToken = result.nextLink;
|
|
2535
|
+
yield yield tslib.__await(result.value || []);
|
|
2536
|
+
}
|
|
2537
|
+
});
|
|
2538
|
+
}
|
|
2539
|
+
listPagingAll(location, options) {
|
|
2540
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2541
|
+
var e_1, _a;
|
|
2542
|
+
try {
|
|
2543
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2544
|
+
const page = _c.value;
|
|
2545
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2549
|
+
finally {
|
|
2550
|
+
try {
|
|
2551
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2552
|
+
}
|
|
2553
|
+
finally { if (e_1) throw e_1.error; }
|
|
2554
|
+
}
|
|
2555
|
+
});
|
|
2556
|
+
}
|
|
2557
|
+
/**
|
|
2558
|
+
* Gets the quantity used and quota limit for resources
|
|
2559
|
+
* @param location The name of the region to query for usage information.
|
|
2560
|
+
* @param options The options parameters.
|
|
2561
|
+
*/
|
|
2562
|
+
_list(location, options) {
|
|
2563
|
+
return this.client.sendOperationRequest({ location, options }, listOperationSpec$1);
|
|
2564
|
+
}
|
|
2565
|
+
/**
|
|
2566
|
+
* ListNext
|
|
2567
|
+
* @param location The name of the region to query for usage information.
|
|
2568
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2569
|
+
* @param options The options parameters.
|
|
2570
|
+
*/
|
|
2571
|
+
_listNext(location, nextLink, options) {
|
|
2572
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$1);
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
// Operation Specifications
|
|
2576
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2577
|
+
const listOperationSpec$1 = {
|
|
2578
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/locations/{location}/usages",
|
|
2579
|
+
httpMethod: "GET",
|
|
2580
|
+
responses: {
|
|
2581
|
+
200: {
|
|
2582
|
+
bodyMapper: ResourceUsagesListResult
|
|
2583
|
+
},
|
|
2584
|
+
default: {
|
|
2585
|
+
bodyMapper: CloudError
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
queryParameters: [apiVersion],
|
|
2589
|
+
urlParameters: [
|
|
2590
|
+
$host,
|
|
2591
|
+
subscriptionId,
|
|
2592
|
+
location
|
|
2593
|
+
],
|
|
2594
|
+
headerParameters: [accept],
|
|
2595
|
+
serializer: serializer$3
|
|
2596
|
+
};
|
|
2597
|
+
const listNextOperationSpec$1 = {
|
|
2598
|
+
path: "{nextLink}",
|
|
2599
|
+
httpMethod: "GET",
|
|
2600
|
+
responses: {
|
|
2601
|
+
200: {
|
|
2602
|
+
bodyMapper: ResourceUsagesListResult
|
|
2603
|
+
},
|
|
2604
|
+
default: {
|
|
2605
|
+
bodyMapper: CloudError
|
|
2606
|
+
}
|
|
2607
|
+
},
|
|
2608
|
+
queryParameters: [apiVersion],
|
|
2609
|
+
urlParameters: [
|
|
2610
|
+
$host,
|
|
2611
|
+
nextLink,
|
|
2612
|
+
subscriptionId,
|
|
2613
|
+
location
|
|
2614
|
+
],
|
|
2615
|
+
headerParameters: [accept],
|
|
2338
2616
|
serializer: serializer$3
|
|
2339
2617
|
};
|
|
2340
2618
|
|
|
@@ -2485,7 +2763,7 @@ class CachesImpl {
|
|
|
2485
2763
|
* @param options The options parameters.
|
|
2486
2764
|
*/
|
|
2487
2765
|
_list(options) {
|
|
2488
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
2766
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2489
2767
|
}
|
|
2490
2768
|
/**
|
|
2491
2769
|
* Returns all Caches the user has access to under a resource group.
|
|
@@ -2526,7 +2804,7 @@ class CachesImpl {
|
|
|
2526
2804
|
}
|
|
2527
2805
|
};
|
|
2528
2806
|
});
|
|
2529
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, deleteOperationSpec);
|
|
2807
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, deleteOperationSpec$1);
|
|
2530
2808
|
return new coreLro.LroEngine(lro, {
|
|
2531
2809
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2532
2810
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2587,7 +2865,7 @@ class CachesImpl {
|
|
|
2587
2865
|
}
|
|
2588
2866
|
};
|
|
2589
2867
|
});
|
|
2590
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, createOrUpdateOperationSpec);
|
|
2868
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, createOrUpdateOperationSpec$1);
|
|
2591
2869
|
return new coreLro.LroEngine(lro, {
|
|
2592
2870
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2593
2871
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2701,7 +2979,7 @@ class CachesImpl {
|
|
|
2701
2979
|
}
|
|
2702
2980
|
};
|
|
2703
2981
|
});
|
|
2704
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, flushOperationSpec);
|
|
2982
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, flushOperationSpec$1);
|
|
2705
2983
|
return new coreLro.LroEngine(lro, {
|
|
2706
2984
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2707
2985
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
@@ -2885,7 +3163,7 @@ class CachesImpl {
|
|
|
2885
3163
|
* @param options The options parameters.
|
|
2886
3164
|
*/
|
|
2887
3165
|
_listNext(nextLink, options) {
|
|
2888
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec
|
|
3166
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2889
3167
|
}
|
|
2890
3168
|
/**
|
|
2891
3169
|
* ListByResourceGroupNext
|
|
@@ -2898,8 +3176,8 @@ class CachesImpl {
|
|
|
2898
3176
|
}
|
|
2899
3177
|
}
|
|
2900
3178
|
// Operation Specifications
|
|
2901
|
-
const serializer$
|
|
2902
|
-
const listOperationSpec
|
|
3179
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3180
|
+
const listOperationSpec = {
|
|
2903
3181
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches",
|
|
2904
3182
|
httpMethod: "GET",
|
|
2905
3183
|
responses: {
|
|
@@ -2913,7 +3191,7 @@ const listOperationSpec$3 = {
|
|
|
2913
3191
|
queryParameters: [apiVersion],
|
|
2914
3192
|
urlParameters: [$host, subscriptionId],
|
|
2915
3193
|
headerParameters: [accept],
|
|
2916
|
-
serializer: serializer$
|
|
3194
|
+
serializer: serializer$2
|
|
2917
3195
|
};
|
|
2918
3196
|
const listByResourceGroupOperationSpec = {
|
|
2919
3197
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches",
|
|
@@ -2933,9 +3211,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
2933
3211
|
resourceGroupName
|
|
2934
3212
|
],
|
|
2935
3213
|
headerParameters: [accept],
|
|
2936
|
-
serializer: serializer$
|
|
3214
|
+
serializer: serializer$2
|
|
2937
3215
|
};
|
|
2938
|
-
const deleteOperationSpec = {
|
|
3216
|
+
const deleteOperationSpec$1 = {
|
|
2939
3217
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
2940
3218
|
httpMethod: "DELETE",
|
|
2941
3219
|
responses: {
|
|
@@ -2955,7 +3233,7 @@ const deleteOperationSpec = {
|
|
|
2955
3233
|
cacheName
|
|
2956
3234
|
],
|
|
2957
3235
|
headerParameters: [accept],
|
|
2958
|
-
serializer: serializer$
|
|
3236
|
+
serializer: serializer$2
|
|
2959
3237
|
};
|
|
2960
3238
|
const getOperationSpec$1 = {
|
|
2961
3239
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
@@ -2976,9 +3254,9 @@ const getOperationSpec$1 = {
|
|
|
2976
3254
|
cacheName
|
|
2977
3255
|
],
|
|
2978
3256
|
headerParameters: [accept],
|
|
2979
|
-
serializer: serializer$
|
|
3257
|
+
serializer: serializer$2
|
|
2980
3258
|
};
|
|
2981
|
-
const createOrUpdateOperationSpec = {
|
|
3259
|
+
const createOrUpdateOperationSpec$1 = {
|
|
2982
3260
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
2983
3261
|
httpMethod: "PUT",
|
|
2984
3262
|
responses: {
|
|
@@ -3008,7 +3286,7 @@ const createOrUpdateOperationSpec = {
|
|
|
3008
3286
|
],
|
|
3009
3287
|
headerParameters: [accept, contentType],
|
|
3010
3288
|
mediaType: "json",
|
|
3011
|
-
serializer: serializer$
|
|
3289
|
+
serializer: serializer$2
|
|
3012
3290
|
};
|
|
3013
3291
|
const updateOperationSpec = {
|
|
3014
3292
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
@@ -3031,7 +3309,7 @@ const updateOperationSpec = {
|
|
|
3031
3309
|
],
|
|
3032
3310
|
headerParameters: [accept, contentType],
|
|
3033
3311
|
mediaType: "json",
|
|
3034
|
-
serializer: serializer$
|
|
3312
|
+
serializer: serializer$2
|
|
3035
3313
|
};
|
|
3036
3314
|
const debugInfoOperationSpec = {
|
|
3037
3315
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo",
|
|
@@ -3053,9 +3331,9 @@ const debugInfoOperationSpec = {
|
|
|
3053
3331
|
cacheName
|
|
3054
3332
|
],
|
|
3055
3333
|
headerParameters: [accept],
|
|
3056
|
-
serializer: serializer$
|
|
3334
|
+
serializer: serializer$2
|
|
3057
3335
|
};
|
|
3058
|
-
const flushOperationSpec = {
|
|
3336
|
+
const flushOperationSpec$1 = {
|
|
3059
3337
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush",
|
|
3060
3338
|
httpMethod: "POST",
|
|
3061
3339
|
responses: {
|
|
@@ -3075,7 +3353,7 @@ const flushOperationSpec = {
|
|
|
3075
3353
|
cacheName
|
|
3076
3354
|
],
|
|
3077
3355
|
headerParameters: [accept],
|
|
3078
|
-
serializer: serializer$
|
|
3356
|
+
serializer: serializer$2
|
|
3079
3357
|
};
|
|
3080
3358
|
const startOperationSpec = {
|
|
3081
3359
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start",
|
|
@@ -3097,7 +3375,7 @@ const startOperationSpec = {
|
|
|
3097
3375
|
cacheName
|
|
3098
3376
|
],
|
|
3099
3377
|
headerParameters: [accept],
|
|
3100
|
-
serializer: serializer$
|
|
3378
|
+
serializer: serializer$2
|
|
3101
3379
|
};
|
|
3102
3380
|
const stopOperationSpec = {
|
|
3103
3381
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop",
|
|
@@ -3119,7 +3397,7 @@ const stopOperationSpec = {
|
|
|
3119
3397
|
cacheName
|
|
3120
3398
|
],
|
|
3121
3399
|
headerParameters: [accept],
|
|
3122
|
-
serializer: serializer$
|
|
3400
|
+
serializer: serializer$2
|
|
3123
3401
|
};
|
|
3124
3402
|
const upgradeFirmwareOperationSpec = {
|
|
3125
3403
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade",
|
|
@@ -3141,9 +3419,9 @@ const upgradeFirmwareOperationSpec = {
|
|
|
3141
3419
|
cacheName
|
|
3142
3420
|
],
|
|
3143
3421
|
headerParameters: [accept],
|
|
3144
|
-
serializer: serializer$
|
|
3422
|
+
serializer: serializer$2
|
|
3145
3423
|
};
|
|
3146
|
-
const listNextOperationSpec
|
|
3424
|
+
const listNextOperationSpec = {
|
|
3147
3425
|
path: "{nextLink}",
|
|
3148
3426
|
httpMethod: "GET",
|
|
3149
3427
|
responses: {
|
|
@@ -3161,7 +3439,7 @@ const listNextOperationSpec$3 = {
|
|
|
3161
3439
|
subscriptionId
|
|
3162
3440
|
],
|
|
3163
3441
|
headerParameters: [accept],
|
|
3164
|
-
serializer: serializer$
|
|
3442
|
+
serializer: serializer$2
|
|
3165
3443
|
};
|
|
3166
3444
|
const listByResourceGroupNextOperationSpec = {
|
|
3167
3445
|
path: "{nextLink}",
|
|
@@ -3182,7 +3460,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3182
3460
|
resourceGroupName
|
|
3183
3461
|
],
|
|
3184
3462
|
headerParameters: [accept],
|
|
3185
|
-
serializer: serializer$
|
|
3463
|
+
serializer: serializer$2
|
|
3186
3464
|
};
|
|
3187
3465
|
|
|
3188
3466
|
/*
|
|
@@ -3352,7 +3630,7 @@ class StorageTargetsImpl {
|
|
|
3352
3630
|
}
|
|
3353
3631
|
};
|
|
3354
3632
|
});
|
|
3355
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, deleteOperationSpec
|
|
3633
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, deleteOperationSpec);
|
|
3356
3634
|
return new coreLro.LroEngine(lro, {
|
|
3357
3635
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3358
3636
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -3385,7 +3663,7 @@ class StorageTargetsImpl {
|
|
|
3385
3663
|
* @param options The options parameters.
|
|
3386
3664
|
*/
|
|
3387
3665
|
get(resourceGroupName, cacheName, storageTargetName, options) {
|
|
3388
|
-
return this.client.sendOperationRequest({ resourceGroupName, cacheName, storageTargetName, options }, getOperationSpec
|
|
3666
|
+
return this.client.sendOperationRequest({ resourceGroupName, cacheName, storageTargetName, options }, getOperationSpec);
|
|
3389
3667
|
}
|
|
3390
3668
|
/**
|
|
3391
3669
|
* Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down
|
|
@@ -3421,7 +3699,7 @@ class StorageTargetsImpl {
|
|
|
3421
3699
|
}
|
|
3422
3700
|
};
|
|
3423
3701
|
});
|
|
3424
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, createOrUpdateOperationSpec
|
|
3702
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, createOrUpdateOperationSpec);
|
|
3425
3703
|
return new coreLro.LroEngine(lro, {
|
|
3426
3704
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3427
3705
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -3457,7 +3735,7 @@ class StorageTargetsImpl {
|
|
|
3457
3735
|
}
|
|
3458
3736
|
}
|
|
3459
3737
|
// Operation Specifications
|
|
3460
|
-
const serializer$
|
|
3738
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3461
3739
|
const dnsRefreshOperationSpec = {
|
|
3462
3740
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh",
|
|
3463
3741
|
httpMethod: "POST",
|
|
@@ -3479,7 +3757,7 @@ const dnsRefreshOperationSpec = {
|
|
|
3479
3757
|
storageTargetName
|
|
3480
3758
|
],
|
|
3481
3759
|
headerParameters: [accept],
|
|
3482
|
-
serializer: serializer$
|
|
3760
|
+
serializer: serializer$1
|
|
3483
3761
|
};
|
|
3484
3762
|
const listByCacheOperationSpec = {
|
|
3485
3763
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets",
|
|
@@ -3500,9 +3778,9 @@ const listByCacheOperationSpec = {
|
|
|
3500
3778
|
cacheName
|
|
3501
3779
|
],
|
|
3502
3780
|
headerParameters: [accept],
|
|
3503
|
-
serializer: serializer$
|
|
3781
|
+
serializer: serializer$1
|
|
3504
3782
|
};
|
|
3505
|
-
const deleteOperationSpec
|
|
3783
|
+
const deleteOperationSpec = {
|
|
3506
3784
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
|
|
3507
3785
|
httpMethod: "DELETE",
|
|
3508
3786
|
responses: {
|
|
@@ -3523,9 +3801,9 @@ const deleteOperationSpec$1 = {
|
|
|
3523
3801
|
storageTargetName
|
|
3524
3802
|
],
|
|
3525
3803
|
headerParameters: [accept],
|
|
3526
|
-
serializer: serializer$
|
|
3804
|
+
serializer: serializer$1
|
|
3527
3805
|
};
|
|
3528
|
-
const getOperationSpec
|
|
3806
|
+
const getOperationSpec = {
|
|
3529
3807
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
|
|
3530
3808
|
httpMethod: "GET",
|
|
3531
3809
|
responses: {
|
|
@@ -3545,9 +3823,9 @@ const getOperationSpec$2 = {
|
|
|
3545
3823
|
storageTargetName
|
|
3546
3824
|
],
|
|
3547
3825
|
headerParameters: [accept],
|
|
3548
|
-
serializer: serializer$
|
|
3826
|
+
serializer: serializer$1
|
|
3549
3827
|
};
|
|
3550
|
-
const createOrUpdateOperationSpec
|
|
3828
|
+
const createOrUpdateOperationSpec = {
|
|
3551
3829
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
|
|
3552
3830
|
httpMethod: "PUT",
|
|
3553
3831
|
responses: {
|
|
@@ -3578,7 +3856,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
3578
3856
|
],
|
|
3579
3857
|
headerParameters: [accept, contentType],
|
|
3580
3858
|
mediaType: "json",
|
|
3581
|
-
serializer: serializer$
|
|
3859
|
+
serializer: serializer$1
|
|
3582
3860
|
};
|
|
3583
3861
|
const listByCacheNextOperationSpec = {
|
|
3584
3862
|
path: "{nextLink}",
|
|
@@ -3600,7 +3878,7 @@ const listByCacheNextOperationSpec = {
|
|
|
3600
3878
|
cacheName
|
|
3601
3879
|
],
|
|
3602
3880
|
headerParameters: [accept],
|
|
3603
|
-
serializer: serializer$
|
|
3881
|
+
serializer: serializer$1
|
|
3604
3882
|
};
|
|
3605
3883
|
|
|
3606
3884
|
/*
|
|
@@ -3652,7 +3930,7 @@ class StorageTargetOperationsImpl {
|
|
|
3652
3930
|
}
|
|
3653
3931
|
};
|
|
3654
3932
|
});
|
|
3655
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, flushOperationSpec
|
|
3933
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, flushOperationSpec);
|
|
3656
3934
|
return new coreLro.LroEngine(lro, {
|
|
3657
3935
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3658
3936
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
@@ -3783,10 +4061,66 @@ class StorageTargetOperationsImpl {
|
|
|
3783
4061
|
return poller.pollUntilDone();
|
|
3784
4062
|
});
|
|
3785
4063
|
}
|
|
4064
|
+
/**
|
|
4065
|
+
* Invalidate all cached data for a storage target. Cached files are discarded and fetched from the
|
|
4066
|
+
* back end on the next request.
|
|
4067
|
+
* @param resourceGroupName Target resource group.
|
|
4068
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
4069
|
+
* the [-0-9a-zA-Z_] char class.
|
|
4070
|
+
* @param storageTargetName Name of Storage Target.
|
|
4071
|
+
* @param options The options parameters.
|
|
4072
|
+
*/
|
|
4073
|
+
beginInvalidate(resourceGroupName, cacheName, storageTargetName, options) {
|
|
4074
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4075
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4076
|
+
return this.client.sendOperationRequest(args, spec);
|
|
4077
|
+
});
|
|
4078
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4079
|
+
var _a;
|
|
4080
|
+
let currentRawResponse = undefined;
|
|
4081
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4082
|
+
const callback = (rawResponse, flatResponse) => {
|
|
4083
|
+
currentRawResponse = rawResponse;
|
|
4084
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4085
|
+
};
|
|
4086
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4087
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
4088
|
+
return {
|
|
4089
|
+
flatResponse,
|
|
4090
|
+
rawResponse: {
|
|
4091
|
+
statusCode: currentRawResponse.status,
|
|
4092
|
+
body: currentRawResponse.parsedBody,
|
|
4093
|
+
headers: currentRawResponse.headers.toJSON()
|
|
4094
|
+
}
|
|
4095
|
+
};
|
|
4096
|
+
});
|
|
4097
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, invalidateOperationSpec);
|
|
4098
|
+
return new coreLro.LroEngine(lro, {
|
|
4099
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4100
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4101
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
4102
|
+
});
|
|
4103
|
+
});
|
|
4104
|
+
}
|
|
4105
|
+
/**
|
|
4106
|
+
* Invalidate all cached data for a storage target. Cached files are discarded and fetched from the
|
|
4107
|
+
* back end on the next request.
|
|
4108
|
+
* @param resourceGroupName Target resource group.
|
|
4109
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
4110
|
+
* the [-0-9a-zA-Z_] char class.
|
|
4111
|
+
* @param storageTargetName Name of Storage Target.
|
|
4112
|
+
* @param options The options parameters.
|
|
4113
|
+
*/
|
|
4114
|
+
beginInvalidateAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
4115
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4116
|
+
const poller = yield this.beginInvalidate(resourceGroupName, cacheName, storageTargetName, options);
|
|
4117
|
+
return poller.pollUntilDone();
|
|
4118
|
+
});
|
|
4119
|
+
}
|
|
3786
4120
|
}
|
|
3787
4121
|
// Operation Specifications
|
|
3788
|
-
const serializer
|
|
3789
|
-
const flushOperationSpec
|
|
4122
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4123
|
+
const flushOperationSpec = {
|
|
3790
4124
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/flush",
|
|
3791
4125
|
httpMethod: "POST",
|
|
3792
4126
|
responses: {
|
|
@@ -3807,7 +4141,7 @@ const flushOperationSpec$1 = {
|
|
|
3807
4141
|
storageTargetName
|
|
3808
4142
|
],
|
|
3809
4143
|
headerParameters: [accept],
|
|
3810
|
-
serializer
|
|
4144
|
+
serializer
|
|
3811
4145
|
};
|
|
3812
4146
|
const suspendOperationSpec = {
|
|
3813
4147
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/suspend",
|
|
@@ -3830,7 +4164,7 @@ const suspendOperationSpec = {
|
|
|
3830
4164
|
storageTargetName
|
|
3831
4165
|
],
|
|
3832
4166
|
headerParameters: [accept],
|
|
3833
|
-
serializer
|
|
4167
|
+
serializer
|
|
3834
4168
|
};
|
|
3835
4169
|
const resumeOperationSpec = {
|
|
3836
4170
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/resume",
|
|
@@ -3853,7 +4187,30 @@ const resumeOperationSpec = {
|
|
|
3853
4187
|
storageTargetName
|
|
3854
4188
|
],
|
|
3855
4189
|
headerParameters: [accept],
|
|
3856
|
-
serializer
|
|
4190
|
+
serializer
|
|
4191
|
+
};
|
|
4192
|
+
const invalidateOperationSpec = {
|
|
4193
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/invalidate",
|
|
4194
|
+
httpMethod: "POST",
|
|
4195
|
+
responses: {
|
|
4196
|
+
200: {},
|
|
4197
|
+
201: {},
|
|
4198
|
+
202: {},
|
|
4199
|
+
204: {},
|
|
4200
|
+
default: {
|
|
4201
|
+
bodyMapper: CloudError
|
|
4202
|
+
}
|
|
4203
|
+
},
|
|
4204
|
+
queryParameters: [apiVersion],
|
|
4205
|
+
urlParameters: [
|
|
4206
|
+
$host,
|
|
4207
|
+
subscriptionId,
|
|
4208
|
+
resourceGroupName,
|
|
4209
|
+
cacheName,
|
|
4210
|
+
storageTargetName
|
|
4211
|
+
],
|
|
4212
|
+
headerParameters: [accept],
|
|
4213
|
+
serializer
|
|
3857
4214
|
};
|
|
3858
4215
|
|
|
3859
4216
|
/*
|
|
@@ -3863,7 +4220,7 @@ const resumeOperationSpec = {
|
|
|
3863
4220
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3864
4221
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3865
4222
|
*/
|
|
3866
|
-
class StorageCacheManagementClient extends
|
|
4223
|
+
class StorageCacheManagementClient extends coreClient__namespace.ServiceClient {
|
|
3867
4224
|
/**
|
|
3868
4225
|
* Initializes a new instance of the StorageCacheManagementClient class.
|
|
3869
4226
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -3886,7 +4243,7 @@ class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
|
3886
4243
|
requestContentType: "application/json; charset=utf-8",
|
|
3887
4244
|
credential: credentials
|
|
3888
4245
|
};
|
|
3889
|
-
const packageDetails = `azsdk-js-arm-storagecache/5.
|
|
4246
|
+
const packageDetails = `azsdk-js-arm-storagecache/5.1.0`;
|
|
3890
4247
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3891
4248
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3892
4249
|
: `${packageDetails}`;
|
|
@@ -3901,11 +4258,12 @@ class StorageCacheManagementClient extends coreClient.ServiceClient {
|
|
|
3901
4258
|
this.subscriptionId = subscriptionId;
|
|
3902
4259
|
// Assigning values to Constant parameters
|
|
3903
4260
|
this.$host = options.$host || "https://management.azure.com";
|
|
3904
|
-
this.apiVersion = options.apiVersion || "
|
|
4261
|
+
this.apiVersion = options.apiVersion || "2022-01-01";
|
|
3905
4262
|
this.operations = new OperationsImpl(this);
|
|
3906
4263
|
this.skus = new SkusImpl(this);
|
|
3907
4264
|
this.usageModels = new UsageModelsImpl(this);
|
|
3908
4265
|
this.ascOperations = new AscOperationsImpl(this);
|
|
4266
|
+
this.ascUsages = new AscUsagesImpl(this);
|
|
3909
4267
|
this.caches = new CachesImpl(this);
|
|
3910
4268
|
this.storageTargets = new StorageTargetsImpl(this);
|
|
3911
4269
|
this.storageTargetOperations = new StorageTargetOperationsImpl(this);
|