@azure/arm-storsimple8000series 2.1.1-alpha.20250619.1 → 2.1.1-alpha.20250718.2
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/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +367 -172
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/accessControlRecords.js +32 -39
- package/dist/browser/operations/accessControlRecords.js.map +1 -1
- package/dist/browser/operations/alerts.js +23 -40
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/backupPolicies.js +43 -45
- package/dist/browser/operations/backupPolicies.js.map +1 -1
- package/dist/browser/operations/backupSchedules.js +32 -39
- package/dist/browser/operations/backupSchedules.js.map +1 -1
- package/dist/browser/operations/backups.js +56 -58
- package/dist/browser/operations/backups.js.map +1 -1
- package/dist/browser/operations/bandwidthSettings.js +32 -39
- package/dist/browser/operations/bandwidthSettings.js.map +1 -1
- package/dist/browser/operations/cloudAppliances.js +21 -33
- package/dist/browser/operations/cloudAppliances.js.map +1 -1
- package/dist/browser/operations/deviceSettings.js +56 -30
- package/dist/browser/operations/deviceSettings.js.map +1 -1
- package/dist/browser/operations/devices.js +112 -167
- package/dist/browser/operations/devices.js.map +1 -1
- package/dist/browser/operations/hardwareComponentGroups.js +21 -33
- package/dist/browser/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/browser/operations/jobs.js +56 -85
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/managers.js +51 -136
- package/dist/browser/operations/managers.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/storageAccountCredentials.js +32 -39
- package/dist/browser/operations/storageAccountCredentials.js.map +1 -1
- package/dist/browser/operations/volumeContainers.js +50 -91
- package/dist/browser/operations/volumeContainers.js.map +1 -1
- package/dist/browser/operations/volumes.js +59 -117
- package/dist/browser/operations/volumes.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/browser/storSimple8000SeriesManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +367 -172
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/accessControlRecords.js +32 -38
- package/dist/commonjs/operations/accessControlRecords.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +23 -39
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/backupPolicies.js +43 -44
- package/dist/commonjs/operations/backupPolicies.js.map +1 -1
- package/dist/commonjs/operations/backupSchedules.js +32 -38
- package/dist/commonjs/operations/backupSchedules.js.map +1 -1
- package/dist/commonjs/operations/backups.js +56 -57
- package/dist/commonjs/operations/backups.js.map +1 -1
- package/dist/commonjs/operations/bandwidthSettings.js +32 -38
- package/dist/commonjs/operations/bandwidthSettings.js.map +1 -1
- package/dist/commonjs/operations/cloudAppliances.js +21 -32
- package/dist/commonjs/operations/cloudAppliances.js.map +1 -1
- package/dist/commonjs/operations/deviceSettings.js +56 -30
- package/dist/commonjs/operations/deviceSettings.js.map +1 -1
- package/dist/commonjs/operations/devices.js +112 -166
- package/dist/commonjs/operations/devices.js.map +1 -1
- package/dist/commonjs/operations/hardwareComponentGroups.js +21 -32
- package/dist/commonjs/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/commonjs/operations/jobs.js +56 -84
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/managers.js +51 -135
- package/dist/commonjs/operations/managers.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/storageAccountCredentials.js +32 -38
- package/dist/commonjs/operations/storageAccountCredentials.js.map +1 -1
- package/dist/commonjs/operations/volumeContainers.js +50 -90
- package/dist/commonjs/operations/volumeContainers.js.map +1 -1
- package/dist/commonjs/operations/volumes.js +59 -116
- package/dist/commonjs/operations/volumes.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/commonjs/storSimple8000SeriesManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +367 -172
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/accessControlRecords.js +32 -39
- package/dist/esm/operations/accessControlRecords.js.map +1 -1
- package/dist/esm/operations/alerts.js +23 -40
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/backupPolicies.js +43 -45
- package/dist/esm/operations/backupPolicies.js.map +1 -1
- package/dist/esm/operations/backupSchedules.js +32 -39
- package/dist/esm/operations/backupSchedules.js.map +1 -1
- package/dist/esm/operations/backups.js +56 -58
- package/dist/esm/operations/backups.js.map +1 -1
- package/dist/esm/operations/bandwidthSettings.js +32 -39
- package/dist/esm/operations/bandwidthSettings.js.map +1 -1
- package/dist/esm/operations/cloudAppliances.js +21 -33
- package/dist/esm/operations/cloudAppliances.js.map +1 -1
- package/dist/esm/operations/deviceSettings.js +56 -30
- package/dist/esm/operations/deviceSettings.js.map +1 -1
- package/dist/esm/operations/devices.js +112 -167
- package/dist/esm/operations/devices.js.map +1 -1
- package/dist/esm/operations/hardwareComponentGroups.js +21 -33
- package/dist/esm/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/esm/operations/jobs.js +56 -85
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/managers.js +51 -136
- package/dist/esm/operations/managers.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/storageAccountCredentials.js +32 -39
- package/dist/esm/operations/storageAccountCredentials.js.map +1 -1
- package/dist/esm/operations/volumeContainers.js +50 -91
- package/dist/esm/operations/volumeContainers.js.map +1 -1
- package/dist/esm/operations/volumes.js +59 -117
- package/dist/esm/operations/volumes.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/esm/storSimple8000SeriesManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +367 -172
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/accessControlRecords.js +32 -39
- package/dist/react-native/operations/accessControlRecords.js.map +1 -1
- package/dist/react-native/operations/alerts.js +23 -40
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/backupPolicies.js +43 -45
- package/dist/react-native/operations/backupPolicies.js.map +1 -1
- package/dist/react-native/operations/backupSchedules.js +32 -39
- package/dist/react-native/operations/backupSchedules.js.map +1 -1
- package/dist/react-native/operations/backups.js +56 -58
- package/dist/react-native/operations/backups.js.map +1 -1
- package/dist/react-native/operations/bandwidthSettings.js +32 -39
- package/dist/react-native/operations/bandwidthSettings.js.map +1 -1
- package/dist/react-native/operations/cloudAppliances.js +21 -33
- package/dist/react-native/operations/cloudAppliances.js.map +1 -1
- package/dist/react-native/operations/deviceSettings.js +56 -30
- package/dist/react-native/operations/deviceSettings.js.map +1 -1
- package/dist/react-native/operations/devices.js +112 -167
- package/dist/react-native/operations/devices.js.map +1 -1
- package/dist/react-native/operations/hardwareComponentGroups.js +21 -33
- package/dist/react-native/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/react-native/operations/jobs.js +56 -85
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/managers.js +51 -136
- package/dist/react-native/operations/managers.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/storageAccountCredentials.js +32 -39
- package/dist/react-native/operations/storageAccountCredentials.js.map +1 -1
- package/dist/react-native/operations/volumeContainers.js +50 -91
- package/dist/react-native/operations/volumeContainers.js.map +1 -1
- package/dist/react-native/operations/volumes.js +59 -117
- package/dist/react-native/operations/volumes.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/react-native/storSimple8000SeriesManagementClient.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-storsimple8000series.api.md → arm-storsimple8000series-node.api.md} +0 -0
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { LroImpl } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Jobs operations. */
|
|
17
16
|
export class JobsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Jobs class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -40,52 +40,35 @@ export class JobsImpl {
|
|
|
40
40
|
return this;
|
|
41
41
|
},
|
|
42
42
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
44
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
45
|
}
|
|
46
46
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
50
|
+
async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByDeviceNext(deviceName, resourceGroupName, managerName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
69
67
|
}
|
|
70
|
-
listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = __asyncValues(this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
68
|
+
async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
69
|
+
for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
89
72
|
}
|
|
90
73
|
/**
|
|
91
74
|
* Gets all the jobs for the specified manager. With optional OData query parameters, a filtered set of
|
|
@@ -104,52 +87,35 @@ export class JobsImpl {
|
|
|
104
87
|
return this;
|
|
105
88
|
},
|
|
106
89
|
byPage: (settings) => {
|
|
107
|
-
if (settings
|
|
90
|
+
if (settings?.maxPageSize) {
|
|
108
91
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
109
92
|
}
|
|
110
93
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
111
94
|
}
|
|
112
95
|
};
|
|
113
96
|
}
|
|
114
|
-
listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
});
|
|
97
|
+
async *listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
98
|
+
let result;
|
|
99
|
+
let continuationToken = settings?.continuationToken;
|
|
100
|
+
if (!continuationToken) {
|
|
101
|
+
result = await this._listByManager(resourceGroupName, managerName, options);
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
107
|
+
while (continuationToken) {
|
|
108
|
+
result = await this._listByManagerNext(resourceGroupName, managerName, continuationToken, options);
|
|
109
|
+
continuationToken = result.nextLink;
|
|
110
|
+
let page = result.value || [];
|
|
111
|
+
setContinuationToken(page, continuationToken);
|
|
112
|
+
yield page;
|
|
113
|
+
}
|
|
133
114
|
}
|
|
134
|
-
listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
for (var _d = true, _e = __asyncValues(this.listByManagerPagingPage(resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
139
|
-
_c = _f.value;
|
|
140
|
-
_d = false;
|
|
141
|
-
const page = _c;
|
|
142
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
146
|
-
finally {
|
|
147
|
-
try {
|
|
148
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
149
|
-
}
|
|
150
|
-
finally { if (e_2) throw e_2.error; }
|
|
151
|
-
}
|
|
152
|
-
});
|
|
115
|
+
async *listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
116
|
+
for await (const page of this.listByManagerPagingPage(resourceGroupName, managerName, options)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
153
119
|
}
|
|
154
120
|
/**
|
|
155
121
|
* Gets all the jobs for specified device. With optional OData query parameters, a filtered set of jobs
|
|
@@ -186,14 +152,19 @@ export class JobsImpl {
|
|
|
186
152
|
return this.client.sendOperationRequest(args, spec);
|
|
187
153
|
};
|
|
188
154
|
const sendOperation = async (args, spec) => {
|
|
189
|
-
var _a;
|
|
190
155
|
let currentRawResponse = undefined;
|
|
191
|
-
const providedCallback =
|
|
156
|
+
const providedCallback = args.options?.onResponse;
|
|
192
157
|
const callback = (rawResponse, flatResponse) => {
|
|
193
158
|
currentRawResponse = rawResponse;
|
|
194
|
-
providedCallback
|
|
159
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
160
|
+
};
|
|
161
|
+
const updatedArgs = {
|
|
162
|
+
...args,
|
|
163
|
+
options: {
|
|
164
|
+
...args.options,
|
|
165
|
+
onResponse: callback
|
|
166
|
+
}
|
|
195
167
|
};
|
|
196
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
197
168
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
198
169
|
return {
|
|
199
170
|
flatResponse,
|
|
@@ -206,8 +177,8 @@ export class JobsImpl {
|
|
|
206
177
|
};
|
|
207
178
|
const lro = new LroImpl(sendOperation, { deviceName, jobName, resourceGroupName, managerName, options }, cancelOperationSpec);
|
|
208
179
|
const poller = new LroEngine(lro, {
|
|
209
|
-
resumeFrom: options
|
|
210
|
-
intervalInMs: options
|
|
180
|
+
resumeFrom: options?.resumeFrom,
|
|
181
|
+
intervalInMs: options?.updateIntervalInMs
|
|
211
182
|
});
|
|
212
183
|
await poller.poll();
|
|
213
184
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAgBxC,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MA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,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Jobs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorSimple8000SeriesManagementClient } from \"../storSimple8000SeriesManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Job,\n JobsListByDeviceNextOptionalParams,\n JobsListByDeviceOptionalParams,\n JobsListByDeviceResponse,\n JobsListByManagerNextOptionalParams,\n JobsListByManagerOptionalParams,\n JobsListByManagerResponse,\n JobsGetOptionalParams,\n JobsGetResponse,\n JobsCancelOptionalParams,\n JobsListByDeviceNextResponse,\n JobsListByManagerNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Jobs operations. */\nexport class JobsImpl implements Jobs {\n private readonly client: StorSimple8000SeriesManagementClient;\n\n /**\n * Initialize a new instance of the class Jobs class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimple8000SeriesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the jobs for specified device. With optional OData query parameters, a filtered set of jobs\n * is returned.\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByDevice(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<Job> {\n const iter = this.listByDevicePagingAll(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDevicePagingPage(\n deviceName,\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByDevicePagingPage(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByDeviceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Job[]> {\n let result: JobsListByDeviceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDevice(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDeviceNext(\n deviceName,\n resourceGroupName,\n managerName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDevicePagingAll(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByDeviceOptionalParams\n ): AsyncIterableIterator<Job> {\n for await (const page of this.listByDevicePagingPage(\n deviceName,\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the jobs for the specified manager. With optional OData query parameters, a filtered set of\n * jobs is returned.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByManager(\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByManagerOptionalParams\n ): PagedAsyncIterableIterator<Job> {\n const iter = this.listByManagerPagingAll(\n resourceGroupName,\n managerName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByManagerPagingPage(\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByManagerOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Job[]> {\n let result: JobsListByManagerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByManager(\n resourceGroupName,\n managerName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByManagerNext(\n resourceGroupName,\n managerName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByManagerPagingAll(\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByManagerOptionalParams\n ): AsyncIterableIterator<Job> {\n for await (const page of this.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the jobs for specified device. With optional OData query parameters, a filtered set of jobs\n * is returned.\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByDevice(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByDeviceOptionalParams\n ): Promise<JobsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Gets the details of the specified job name.\n * @param deviceName The device name\n * @param jobName The job Name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n get(\n deviceName: string,\n jobName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsGetOptionalParams\n ): Promise<JobsGetResponse> {\n return this.client.sendOperationRequest(\n { deviceName, jobName, resourceGroupName, managerName, options },\n getOperationSpec\n );\n }\n\n /**\n * Cancels a job on the device.\n * @param deviceName The device name\n * @param jobName The jobName.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginCancel(\n deviceName: string,\n jobName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsCancelOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { deviceName, jobName, resourceGroupName, managerName, options },\n cancelOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Cancels a job on the device.\n * @param deviceName The device name\n * @param jobName The jobName.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginCancelAndWait(\n deviceName: string,\n jobName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsCancelOptionalParams\n ): Promise<void> {\n const poller = await this.beginCancel(\n deviceName,\n jobName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all the jobs for the specified manager. With optional OData query parameters, a filtered set of\n * jobs is returned.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByManager(\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByManagerOptionalParams\n ): Promise<JobsListByManagerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, options },\n listByManagerOperationSpec\n );\n }\n\n /**\n * ListByDeviceNext\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param nextLink The nextLink from the previous successful call to the ListByDevice method.\n * @param options The options parameters.\n */\n private _listByDeviceNext(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n nextLink: string,\n options?: JobsListByDeviceNextOptionalParams\n ): Promise<JobsListByDeviceNextResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, nextLink, options },\n listByDeviceNextOperationSpec\n );\n }\n\n /**\n * ListByManagerNext\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param nextLink The nextLink from the previous successful call to the ListByManager method.\n * @param options The options parameters.\n */\n private _listByManagerNext(\n resourceGroupName: string,\n managerName: string,\n nextLink: string,\n options?: JobsListByManagerNextOptionalParams\n ): Promise<JobsListByManagerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, nextLink, options },\n listByManagerNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByDeviceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/jobs/{jobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Job\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.jobName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/jobs/{jobName}/cancel\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.jobName\n ],\n serializer\n};\nconst listByManagerOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByDeviceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByManagerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,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aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Jobs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorSimple8000SeriesManagementClient } from \"../storSimple8000SeriesManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Job,\n JobsListByDeviceNextOptionalParams,\n JobsListByDeviceOptionalParams,\n JobsListByDeviceResponse,\n JobsListByManagerNextOptionalParams,\n JobsListByManagerOptionalParams,\n JobsListByManagerResponse,\n JobsGetOptionalParams,\n JobsGetResponse,\n JobsCancelOptionalParams,\n JobsListByDeviceNextResponse,\n JobsListByManagerNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Jobs operations. */\nexport class JobsImpl implements Jobs {\n private readonly client: StorSimple8000SeriesManagementClient;\n\n /**\n * Initialize a new instance of the class Jobs class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimple8000SeriesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the jobs for specified device. With optional OData query parameters, a filtered set of jobs\n * is returned.\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByDevice(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<Job> {\n const iter = this.listByDevicePagingAll(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDevicePagingPage(\n deviceName,\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByDevicePagingPage(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByDeviceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Job[]> {\n let result: JobsListByDeviceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDevice(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDeviceNext(\n deviceName,\n resourceGroupName,\n managerName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDevicePagingAll(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByDeviceOptionalParams\n ): AsyncIterableIterator<Job> {\n for await (const page of this.listByDevicePagingPage(\n deviceName,\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the jobs for the specified manager. With optional OData query parameters, a filtered set of\n * jobs is returned.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByManager(\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByManagerOptionalParams\n ): PagedAsyncIterableIterator<Job> {\n const iter = this.listByManagerPagingAll(\n resourceGroupName,\n managerName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByManagerPagingPage(\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByManagerOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Job[]> {\n let result: JobsListByManagerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByManager(\n resourceGroupName,\n managerName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByManagerNext(\n resourceGroupName,\n managerName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByManagerPagingAll(\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByManagerOptionalParams\n ): AsyncIterableIterator<Job> {\n for await (const page of this.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the jobs for specified device. With optional OData query parameters, a filtered set of jobs\n * is returned.\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByDevice(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByDeviceOptionalParams\n ): Promise<JobsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Gets the details of the specified job name.\n * @param deviceName The device name\n * @param jobName The job Name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n get(\n deviceName: string,\n jobName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsGetOptionalParams\n ): Promise<JobsGetResponse> {\n return this.client.sendOperationRequest(\n { deviceName, jobName, resourceGroupName, managerName, options },\n getOperationSpec\n );\n }\n\n /**\n * Cancels a job on the device.\n * @param deviceName The device name\n * @param jobName The jobName.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginCancel(\n deviceName: string,\n jobName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsCancelOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { deviceName, jobName, resourceGroupName, managerName, options },\n cancelOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Cancels a job on the device.\n * @param deviceName The device name\n * @param jobName The jobName.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginCancelAndWait(\n deviceName: string,\n jobName: string,\n resourceGroupName: string,\n managerName: string,\n options?: JobsCancelOptionalParams\n ): Promise<void> {\n const poller = await this.beginCancel(\n deviceName,\n jobName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all the jobs for the specified manager. With optional OData query parameters, a filtered set of\n * jobs is returned.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByManager(\n resourceGroupName: string,\n managerName: string,\n options?: JobsListByManagerOptionalParams\n ): Promise<JobsListByManagerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, options },\n listByManagerOperationSpec\n );\n }\n\n /**\n * ListByDeviceNext\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param nextLink The nextLink from the previous successful call to the ListByDevice method.\n * @param options The options parameters.\n */\n private _listByDeviceNext(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n nextLink: string,\n options?: JobsListByDeviceNextOptionalParams\n ): Promise<JobsListByDeviceNextResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, nextLink, options },\n listByDeviceNextOperationSpec\n );\n }\n\n /**\n * ListByManagerNext\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param nextLink The nextLink from the previous successful call to the ListByManager method.\n * @param options The options parameters.\n */\n private _listByManagerNext(\n resourceGroupName: string,\n managerName: string,\n nextLink: string,\n options?: JobsListByManagerNextOptionalParams\n ): Promise<JobsListByManagerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, nextLink, options },\n listByManagerNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByDeviceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/jobs/{jobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Job\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.jobName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/jobs/{jobName}/cancel\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.jobName\n ],\n serializer\n};\nconst listByManagerOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByDeviceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByManagerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing Managers operations. */
|
|
14
13
|
export class ManagersImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class Managers class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -33,39 +33,22 @@ export class ManagersImpl {
|
|
|
33
33
|
return this;
|
|
34
34
|
},
|
|
35
35
|
byPage: (settings) => {
|
|
36
|
-
if (settings
|
|
36
|
+
if (settings?.maxPageSize) {
|
|
37
37
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
38
38
|
}
|
|
39
39
|
return this.listPagingPage(options, settings);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
listPagingPage(options, _settings) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var _a, e_1, _b, _c;
|
|
53
|
-
try {
|
|
54
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
55
|
-
_c = _f.value;
|
|
56
|
-
_d = false;
|
|
57
|
-
const page = _c;
|
|
58
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
-
finally {
|
|
63
|
-
try {
|
|
64
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
65
|
-
}
|
|
66
|
-
finally { if (e_1) throw e_1.error; }
|
|
67
|
-
}
|
|
68
|
-
});
|
|
43
|
+
async *listPagingPage(options, _settings) {
|
|
44
|
+
let result;
|
|
45
|
+
result = await this._list(options);
|
|
46
|
+
yield result.value || [];
|
|
47
|
+
}
|
|
48
|
+
async *listPagingAll(options) {
|
|
49
|
+
for await (const page of this.listPagingPage(options)) {
|
|
50
|
+
yield* page;
|
|
51
|
+
}
|
|
69
52
|
}
|
|
70
53
|
/**
|
|
71
54
|
* Retrieves all the managers in a resource group.
|
|
@@ -82,39 +65,22 @@ export class ManagersImpl {
|
|
|
82
65
|
return this;
|
|
83
66
|
},
|
|
84
67
|
byPage: (settings) => {
|
|
85
|
-
if (settings
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
86
69
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
87
70
|
}
|
|
88
71
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
89
72
|
}
|
|
90
73
|
};
|
|
91
74
|
}
|
|
92
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
var _a, e_2, _b, _c;
|
|
102
|
-
try {
|
|
103
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
104
|
-
_c = _f.value;
|
|
105
|
-
_d = false;
|
|
106
|
-
const page = _c;
|
|
107
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
111
|
-
finally {
|
|
112
|
-
try {
|
|
113
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
114
|
-
}
|
|
115
|
-
finally { if (e_2) throw e_2.error; }
|
|
116
|
-
}
|
|
117
|
-
});
|
|
75
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
76
|
+
let result;
|
|
77
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
78
|
+
yield result.value || [];
|
|
79
|
+
}
|
|
80
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
81
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
82
|
+
yield* page;
|
|
83
|
+
}
|
|
118
84
|
}
|
|
119
85
|
/**
|
|
120
86
|
* Lists the features and their support status
|
|
@@ -132,39 +98,22 @@ export class ManagersImpl {
|
|
|
132
98
|
return this;
|
|
133
99
|
},
|
|
134
100
|
byPage: (settings) => {
|
|
135
|
-
if (settings
|
|
101
|
+
if (settings?.maxPageSize) {
|
|
136
102
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
137
103
|
}
|
|
138
104
|
return this.listFeatureSupportStatusPagingPage(resourceGroupName, managerName, options, settings);
|
|
139
105
|
}
|
|
140
106
|
};
|
|
141
107
|
}
|
|
142
|
-
listFeatureSupportStatusPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
var _a, e_3, _b, _c;
|
|
152
|
-
try {
|
|
153
|
-
for (var _d = true, _e = __asyncValues(this.listFeatureSupportStatusPagingPage(resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
154
|
-
_c = _f.value;
|
|
155
|
-
_d = false;
|
|
156
|
-
const page = _c;
|
|
157
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
161
|
-
finally {
|
|
162
|
-
try {
|
|
163
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
164
|
-
}
|
|
165
|
-
finally { if (e_3) throw e_3.error; }
|
|
166
|
-
}
|
|
167
|
-
});
|
|
108
|
+
async *listFeatureSupportStatusPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
109
|
+
let result;
|
|
110
|
+
result = await this._listFeatureSupportStatus(resourceGroupName, managerName, options);
|
|
111
|
+
yield result.value || [];
|
|
112
|
+
}
|
|
113
|
+
async *listFeatureSupportStatusPagingAll(resourceGroupName, managerName, options) {
|
|
114
|
+
for await (const page of this.listFeatureSupportStatusPagingPage(resourceGroupName, managerName, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
168
117
|
}
|
|
169
118
|
/**
|
|
170
119
|
* Gets the metrics for the specified manager.
|
|
@@ -183,39 +132,22 @@ export class ManagersImpl {
|
|
|
183
132
|
return this;
|
|
184
133
|
},
|
|
185
134
|
byPage: (settings) => {
|
|
186
|
-
if (settings
|
|
135
|
+
if (settings?.maxPageSize) {
|
|
187
136
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
188
137
|
}
|
|
189
138
|
return this.listMetricsPagingPage(resourceGroupName, managerName, filter, options, settings);
|
|
190
139
|
}
|
|
191
140
|
};
|
|
192
141
|
}
|
|
193
|
-
listMetricsPagingPage(resourceGroupName, managerName, filter, options, _settings) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
var _a, e_4, _b, _c;
|
|
203
|
-
try {
|
|
204
|
-
for (var _d = true, _e = __asyncValues(this.listMetricsPagingPage(resourceGroupName, managerName, filter, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
205
|
-
_c = _f.value;
|
|
206
|
-
_d = false;
|
|
207
|
-
const page = _c;
|
|
208
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
212
|
-
finally {
|
|
213
|
-
try {
|
|
214
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
215
|
-
}
|
|
216
|
-
finally { if (e_4) throw e_4.error; }
|
|
217
|
-
}
|
|
218
|
-
});
|
|
142
|
+
async *listMetricsPagingPage(resourceGroupName, managerName, filter, options, _settings) {
|
|
143
|
+
let result;
|
|
144
|
+
result = await this._listMetrics(resourceGroupName, managerName, filter, options);
|
|
145
|
+
yield result.value || [];
|
|
146
|
+
}
|
|
147
|
+
async *listMetricsPagingAll(resourceGroupName, managerName, filter, options) {
|
|
148
|
+
for await (const page of this.listMetricsPagingPage(resourceGroupName, managerName, filter, options)) {
|
|
149
|
+
yield* page;
|
|
150
|
+
}
|
|
219
151
|
}
|
|
220
152
|
/**
|
|
221
153
|
* Gets the metric definitions for the specified manager.
|
|
@@ -233,39 +165,22 @@ export class ManagersImpl {
|
|
|
233
165
|
return this;
|
|
234
166
|
},
|
|
235
167
|
byPage: (settings) => {
|
|
236
|
-
if (settings
|
|
168
|
+
if (settings?.maxPageSize) {
|
|
237
169
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
238
170
|
}
|
|
239
171
|
return this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options, settings);
|
|
240
172
|
}
|
|
241
173
|
};
|
|
242
174
|
}
|
|
243
|
-
listMetricDefinitionPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
var _a, e_5, _b, _c;
|
|
253
|
-
try {
|
|
254
|
-
for (var _d = true, _e = __asyncValues(this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
255
|
-
_c = _f.value;
|
|
256
|
-
_d = false;
|
|
257
|
-
const page = _c;
|
|
258
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
262
|
-
finally {
|
|
263
|
-
try {
|
|
264
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
265
|
-
}
|
|
266
|
-
finally { if (e_5) throw e_5.error; }
|
|
267
|
-
}
|
|
268
|
-
});
|
|
175
|
+
async *listMetricDefinitionPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
176
|
+
let result;
|
|
177
|
+
result = await this._listMetricDefinition(resourceGroupName, managerName, options);
|
|
178
|
+
yield result.value || [];
|
|
179
|
+
}
|
|
180
|
+
async *listMetricDefinitionPagingAll(resourceGroupName, managerName, options) {
|
|
181
|
+
for await (const page of this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options)) {
|
|
182
|
+
yield* page;
|
|
183
|
+
}
|
|
269
184
|
}
|
|
270
185
|
/**
|
|
271
186
|
* Retrieves all the managers in a subscription.
|