@azure/arm-storsimple1200series 2.1.1-alpha.20250718.1 → 2.1.1-alpha.20250730.1
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 +361 -169
- 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/availableProviderOperationsOperations.js +23 -40
- package/dist/browser/operations/availableProviderOperationsOperations.js.map +1 -1
- package/dist/browser/operations/backupScheduleGroups.js +32 -39
- package/dist/browser/operations/backupScheduleGroups.js.map +1 -1
- package/dist/browser/operations/backups.js +67 -91
- package/dist/browser/operations/backups.js.map +1 -1
- package/dist/browser/operations/chapSettingsOperations.js +32 -39
- package/dist/browser/operations/chapSettingsOperations.js.map +1 -1
- package/dist/browser/operations/devices.js +136 -159
- package/dist/browser/operations/devices.js.map +1 -1
- package/dist/browser/operations/fileServers.js +70 -123
- package/dist/browser/operations/fileServers.js.map +1 -1
- package/dist/browser/operations/fileShares.js +59 -117
- package/dist/browser/operations/fileShares.js.map +1 -1
- package/dist/browser/operations/iscsiDisks.js +59 -117
- package/dist/browser/operations/iscsiDisks.js.map +1 -1
- package/dist/browser/operations/iscsiServers.js +70 -123
- package/dist/browser/operations/iscsiServers.js.map +1 -1
- package/dist/browser/operations/jobs.js +45 -79
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/managers.js +37 -105
- package/dist/browser/operations/managers.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/storageDomains.js +32 -39
- package/dist/browser/operations/storageDomains.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storSimpleManagementClient.js +28 -5
- package/dist/browser/storSimpleManagementClient.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 +361 -169
- 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/availableProviderOperationsOperations.js +23 -39
- package/dist/commonjs/operations/availableProviderOperationsOperations.js.map +1 -1
- package/dist/commonjs/operations/backupScheduleGroups.js +32 -38
- package/dist/commonjs/operations/backupScheduleGroups.js.map +1 -1
- package/dist/commonjs/operations/backups.js +67 -90
- package/dist/commonjs/operations/backups.js.map +1 -1
- package/dist/commonjs/operations/chapSettingsOperations.js +32 -38
- package/dist/commonjs/operations/chapSettingsOperations.js.map +1 -1
- package/dist/commonjs/operations/devices.js +136 -158
- package/dist/commonjs/operations/devices.js.map +1 -1
- package/dist/commonjs/operations/fileServers.js +70 -122
- package/dist/commonjs/operations/fileServers.js.map +1 -1
- package/dist/commonjs/operations/fileShares.js +59 -116
- package/dist/commonjs/operations/fileShares.js.map +1 -1
- package/dist/commonjs/operations/iscsiDisks.js +59 -116
- package/dist/commonjs/operations/iscsiDisks.js.map +1 -1
- package/dist/commonjs/operations/iscsiServers.js +70 -122
- package/dist/commonjs/operations/iscsiServers.js.map +1 -1
- package/dist/commonjs/operations/jobs.js +45 -78
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/managers.js +37 -104
- package/dist/commonjs/operations/managers.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/storageDomains.js +32 -38
- package/dist/commonjs/operations/storageDomains.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storSimpleManagementClient.js +28 -5
- package/dist/commonjs/storSimpleManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +361 -169
- 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/availableProviderOperationsOperations.js +23 -40
- package/dist/esm/operations/availableProviderOperationsOperations.js.map +1 -1
- package/dist/esm/operations/backupScheduleGroups.js +32 -39
- package/dist/esm/operations/backupScheduleGroups.js.map +1 -1
- package/dist/esm/operations/backups.js +67 -91
- package/dist/esm/operations/backups.js.map +1 -1
- package/dist/esm/operations/chapSettingsOperations.js +32 -39
- package/dist/esm/operations/chapSettingsOperations.js.map +1 -1
- package/dist/esm/operations/devices.js +136 -159
- package/dist/esm/operations/devices.js.map +1 -1
- package/dist/esm/operations/fileServers.js +70 -123
- package/dist/esm/operations/fileServers.js.map +1 -1
- package/dist/esm/operations/fileShares.js +59 -117
- package/dist/esm/operations/fileShares.js.map +1 -1
- package/dist/esm/operations/iscsiDisks.js +59 -117
- package/dist/esm/operations/iscsiDisks.js.map +1 -1
- package/dist/esm/operations/iscsiServers.js +70 -123
- package/dist/esm/operations/iscsiServers.js.map +1 -1
- package/dist/esm/operations/jobs.js +45 -79
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/managers.js +37 -105
- package/dist/esm/operations/managers.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/storageDomains.js +32 -39
- package/dist/esm/operations/storageDomains.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storSimpleManagementClient.js +28 -5
- package/dist/esm/storSimpleManagementClient.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 +361 -169
- 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/availableProviderOperationsOperations.js +23 -40
- package/dist/react-native/operations/availableProviderOperationsOperations.js.map +1 -1
- package/dist/react-native/operations/backupScheduleGroups.js +32 -39
- package/dist/react-native/operations/backupScheduleGroups.js.map +1 -1
- package/dist/react-native/operations/backups.js +67 -91
- package/dist/react-native/operations/backups.js.map +1 -1
- package/dist/react-native/operations/chapSettingsOperations.js +32 -39
- package/dist/react-native/operations/chapSettingsOperations.js.map +1 -1
- package/dist/react-native/operations/devices.js +136 -159
- package/dist/react-native/operations/devices.js.map +1 -1
- package/dist/react-native/operations/fileServers.js +70 -123
- package/dist/react-native/operations/fileServers.js.map +1 -1
- package/dist/react-native/operations/fileShares.js +59 -117
- package/dist/react-native/operations/fileShares.js.map +1 -1
- package/dist/react-native/operations/iscsiDisks.js +59 -117
- package/dist/react-native/operations/iscsiDisks.js.map +1 -1
- package/dist/react-native/operations/iscsiServers.js +70 -123
- package/dist/react-native/operations/iscsiServers.js.map +1 -1
- package/dist/react-native/operations/jobs.js +45 -79
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/managers.js +37 -105
- package/dist/react-native/operations/managers.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/storageDomains.js +32 -39
- package/dist/react-native/operations/storageDomains.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/storSimpleManagementClient.js +28 -5
- package/dist/react-native/storSimpleManagementClient.js.map +1 -1
- package/package.json +2 -2
|
@@ -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 * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
@@ -14,6 +13,7 @@ import { LroImpl } from "../lroImpl.js";
|
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
|
15
14
|
/** Class containing BackupScheduleGroups operations. */
|
|
16
15
|
export class BackupScheduleGroupsImpl {
|
|
16
|
+
client;
|
|
17
17
|
/**
|
|
18
18
|
* Initialize a new instance of the class BackupScheduleGroups class.
|
|
19
19
|
* @param client Reference to the service client
|
|
@@ -38,39 +38,22 @@ export class BackupScheduleGroupsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, _settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
yield yield __await(result.value || []);
|
|
53
|
-
});
|
|
48
|
+
async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, _settings) {
|
|
49
|
+
let result;
|
|
50
|
+
result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
|
|
51
|
+
yield result.value || [];
|
|
54
52
|
}
|
|
55
|
-
listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
for (var _d = true, _e = __asyncValues(this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
-
_c = _f.value;
|
|
61
|
-
_d = false;
|
|
62
|
-
const page = _c;
|
|
63
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
-
finally {
|
|
68
|
-
try {
|
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
70
|
-
}
|
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
|
72
|
-
}
|
|
73
|
-
});
|
|
53
|
+
async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
54
|
+
for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
55
|
+
yield* page;
|
|
56
|
+
}
|
|
74
57
|
}
|
|
75
58
|
/**
|
|
76
59
|
* Retrieves all the backup schedule groups in a device.
|
|
@@ -113,14 +96,19 @@ export class BackupScheduleGroupsImpl {
|
|
|
113
96
|
return this.client.sendOperationRequest(args, spec);
|
|
114
97
|
};
|
|
115
98
|
const sendOperation = async (args, spec) => {
|
|
116
|
-
var _a;
|
|
117
99
|
let currentRawResponse = undefined;
|
|
118
|
-
const providedCallback =
|
|
100
|
+
const providedCallback = args.options?.onResponse;
|
|
119
101
|
const callback = (rawResponse, flatResponse) => {
|
|
120
102
|
currentRawResponse = rawResponse;
|
|
121
|
-
providedCallback
|
|
103
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
104
|
+
};
|
|
105
|
+
const updatedArgs = {
|
|
106
|
+
...args,
|
|
107
|
+
options: {
|
|
108
|
+
...args.options,
|
|
109
|
+
onResponse: callback
|
|
110
|
+
}
|
|
122
111
|
};
|
|
123
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
124
112
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
125
113
|
return {
|
|
126
114
|
flatResponse,
|
|
@@ -140,8 +128,8 @@ export class BackupScheduleGroupsImpl {
|
|
|
140
128
|
options
|
|
141
129
|
}, createOrUpdateOperationSpec);
|
|
142
130
|
const poller = new LroEngine(lro, {
|
|
143
|
-
resumeFrom: options
|
|
144
|
-
intervalInMs: options
|
|
131
|
+
resumeFrom: options?.resumeFrom,
|
|
132
|
+
intervalInMs: options?.updateIntervalInMs
|
|
145
133
|
});
|
|
146
134
|
await poller.poll();
|
|
147
135
|
return poller;
|
|
@@ -172,14 +160,19 @@ export class BackupScheduleGroupsImpl {
|
|
|
172
160
|
return this.client.sendOperationRequest(args, spec);
|
|
173
161
|
};
|
|
174
162
|
const sendOperation = async (args, spec) => {
|
|
175
|
-
var _a;
|
|
176
163
|
let currentRawResponse = undefined;
|
|
177
|
-
const providedCallback =
|
|
164
|
+
const providedCallback = args.options?.onResponse;
|
|
178
165
|
const callback = (rawResponse, flatResponse) => {
|
|
179
166
|
currentRawResponse = rawResponse;
|
|
180
|
-
providedCallback
|
|
167
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
168
|
+
};
|
|
169
|
+
const updatedArgs = {
|
|
170
|
+
...args,
|
|
171
|
+
options: {
|
|
172
|
+
...args.options,
|
|
173
|
+
onResponse: callback
|
|
174
|
+
}
|
|
181
175
|
};
|
|
182
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
183
176
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
184
177
|
return {
|
|
185
178
|
flatResponse,
|
|
@@ -198,8 +191,8 @@ export class BackupScheduleGroupsImpl {
|
|
|
198
191
|
options
|
|
199
192
|
}, deleteOperationSpec);
|
|
200
193
|
const poller = new LroEngine(lro, {
|
|
201
|
-
resumeFrom: options
|
|
202
|
-
intervalInMs: options
|
|
194
|
+
resumeFrom: options?.resumeFrom,
|
|
195
|
+
intervalInMs: options?.updateIntervalInMs
|
|
203
196
|
});
|
|
204
197
|
await poller.poll();
|
|
205
198
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupScheduleGroups.js","sourceRoot":"","sources":["../../../src/operations/backupScheduleGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,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;AAYxC,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,UAAkB,EAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uB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ACX,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 { BackupScheduleGroups } 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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n BackupScheduleGroup,\n BackupScheduleGroupsListByDeviceOptionalParams,\n BackupScheduleGroupsListByDeviceResponse,\n BackupScheduleGroupsGetOptionalParams,\n BackupScheduleGroupsGetResponse,\n BackupScheduleGroupsCreateOrUpdateOptionalParams,\n BackupScheduleGroupsCreateOrUpdateResponse,\n BackupScheduleGroupsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupScheduleGroups operations. */\nexport class BackupScheduleGroupsImpl implements BackupScheduleGroups {\n private readonly client: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class BackupScheduleGroups class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimpleManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all the backup schedule groups in a device.\n * @param deviceName The name of the device.\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<BackupScheduleGroup> {\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?: BackupScheduleGroupsListByDeviceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<BackupScheduleGroup[]> {\n let result: BackupScheduleGroupsListByDeviceResponse;\n result = await this._listByDevice(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByDevicePagingAll(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsListByDeviceOptionalParams\n ): AsyncIterableIterator<BackupScheduleGroup> {\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 * Retrieves all the backup schedule groups in a device.\n * @param deviceName The name of the device.\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): Promise<BackupScheduleGroupsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Returns the properties of the specified backup schedule group name.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\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 scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsGetOptionalParams\n ): Promise<BackupScheduleGroupsGetResponse> {\n return this.client.sendOperationRequest(\n {\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or Updates the backup schedule Group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param scheduleGroup The schedule group to be created\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n scheduleGroup: BackupScheduleGroup,\n options?: BackupScheduleGroupsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<BackupScheduleGroupsCreateOrUpdateResponse>,\n BackupScheduleGroupsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BackupScheduleGroupsCreateOrUpdateResponse> => {\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 {\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n scheduleGroup,\n options\n },\n createOrUpdateOperationSpec\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 * Creates or Updates the backup schedule Group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param scheduleGroup The schedule group to be created\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n scheduleGroup: BackupScheduleGroup,\n options?: BackupScheduleGroupsCreateOrUpdateOptionalParams\n ): Promise<BackupScheduleGroupsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n scheduleGroup,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the backup schedule group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDelete(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsDeleteOptionalParams\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 {\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n options\n },\n deleteOperationSpec\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 * Deletes the backup schedule group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\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}/backupScheduleGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\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}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n default: {\n bodyMapper: Mappers.ErrorModel\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.scheduleGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 201: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 202: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 204: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.scheduleGroup,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.scheduleGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\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.scheduleGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"backupScheduleGroups.js","sourceRoot":"","sources":["../../../src/operations/backupScheduleGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU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ACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,iBAAiB;KAC7B;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 { BackupScheduleGroups } 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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n BackupScheduleGroup,\n BackupScheduleGroupsListByDeviceOptionalParams,\n BackupScheduleGroupsListByDeviceResponse,\n BackupScheduleGroupsGetOptionalParams,\n BackupScheduleGroupsGetResponse,\n BackupScheduleGroupsCreateOrUpdateOptionalParams,\n BackupScheduleGroupsCreateOrUpdateResponse,\n BackupScheduleGroupsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupScheduleGroups operations. */\nexport class BackupScheduleGroupsImpl implements BackupScheduleGroups {\n private readonly client: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class BackupScheduleGroups class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimpleManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all the backup schedule groups in a device.\n * @param deviceName The name of the device.\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<BackupScheduleGroup> {\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?: BackupScheduleGroupsListByDeviceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<BackupScheduleGroup[]> {\n let result: BackupScheduleGroupsListByDeviceResponse;\n result = await this._listByDevice(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByDevicePagingAll(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsListByDeviceOptionalParams\n ): AsyncIterableIterator<BackupScheduleGroup> {\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 * Retrieves all the backup schedule groups in a device.\n * @param deviceName The name of the device.\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): Promise<BackupScheduleGroupsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Returns the properties of the specified backup schedule group name.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\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 scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsGetOptionalParams\n ): Promise<BackupScheduleGroupsGetResponse> {\n return this.client.sendOperationRequest(\n {\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or Updates the backup schedule Group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param scheduleGroup The schedule group to be created\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n scheduleGroup: BackupScheduleGroup,\n options?: BackupScheduleGroupsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<BackupScheduleGroupsCreateOrUpdateResponse>,\n BackupScheduleGroupsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BackupScheduleGroupsCreateOrUpdateResponse> => {\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 {\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n scheduleGroup,\n options\n },\n createOrUpdateOperationSpec\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 * Creates or Updates the backup schedule Group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param scheduleGroup The schedule group to be created\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n scheduleGroup: BackupScheduleGroup,\n options?: BackupScheduleGroupsCreateOrUpdateOptionalParams\n ): Promise<BackupScheduleGroupsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n scheduleGroup,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the backup schedule group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDelete(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsDeleteOptionalParams\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 {\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n options\n },\n deleteOperationSpec\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 * Deletes the backup schedule group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\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}/backupScheduleGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\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}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n default: {\n bodyMapper: Mappers.ErrorModel\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.scheduleGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 201: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 202: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 204: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.scheduleGroup,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.scheduleGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\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.scheduleGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -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 Backups operations. */
|
|
17
16
|
export class BackupsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Backups class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class BackupsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByManager(resourceGroupName, managerName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByManagerNext(resourceGroupName, managerName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByManagerPagingPage(resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
67
|
+
for await (const page of this.listByManagerPagingPage(resourceGroupName, managerName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Retrieves all the backups in a device. Can be used to get the backups for failover also.
|
|
@@ -102,52 +85,35 @@ export class BackupsImpl {
|
|
|
102
85
|
return this;
|
|
103
86
|
},
|
|
104
87
|
byPage: (settings) => {
|
|
105
|
-
if (settings
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
106
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
107
90
|
}
|
|
108
91
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
109
92
|
}
|
|
110
93
|
};
|
|
111
94
|
}
|
|
112
|
-
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
});
|
|
95
|
+
async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listByDeviceNext(deviceName, resourceGroupName, managerName, continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
131
112
|
}
|
|
132
|
-
listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
for (var _d = true, _e = __asyncValues(this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
137
|
-
_c = _f.value;
|
|
138
|
-
_d = false;
|
|
139
|
-
const page = _c;
|
|
140
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
144
|
-
finally {
|
|
145
|
-
try {
|
|
146
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
147
|
-
}
|
|
148
|
-
finally { if (e_2) throw e_2.error; }
|
|
149
|
-
}
|
|
150
|
-
});
|
|
113
|
+
async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
114
|
+
for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
151
117
|
}
|
|
152
118
|
/**
|
|
153
119
|
* Retrieves all the backups in a manager.
|
|
@@ -181,14 +147,19 @@ export class BackupsImpl {
|
|
|
181
147
|
return this.client.sendOperationRequest(args, spec);
|
|
182
148
|
};
|
|
183
149
|
const sendOperation = async (args, spec) => {
|
|
184
|
-
var _a;
|
|
185
150
|
let currentRawResponse = undefined;
|
|
186
|
-
const providedCallback =
|
|
151
|
+
const providedCallback = args.options?.onResponse;
|
|
187
152
|
const callback = (rawResponse, flatResponse) => {
|
|
188
153
|
currentRawResponse = rawResponse;
|
|
189
|
-
providedCallback
|
|
154
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
155
|
+
};
|
|
156
|
+
const updatedArgs = {
|
|
157
|
+
...args,
|
|
158
|
+
options: {
|
|
159
|
+
...args.options,
|
|
160
|
+
onResponse: callback
|
|
161
|
+
}
|
|
190
162
|
};
|
|
191
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
192
163
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
193
164
|
return {
|
|
194
165
|
flatResponse,
|
|
@@ -201,8 +172,8 @@ export class BackupsImpl {
|
|
|
201
172
|
};
|
|
202
173
|
const lro = new LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, deleteOperationSpec);
|
|
203
174
|
const poller = new LroEngine(lro, {
|
|
204
|
-
resumeFrom: options
|
|
205
|
-
intervalInMs: options
|
|
175
|
+
resumeFrom: options?.resumeFrom,
|
|
176
|
+
intervalInMs: options?.updateIntervalInMs
|
|
206
177
|
});
|
|
207
178
|
await poller.poll();
|
|
208
179
|
return poller;
|
|
@@ -234,14 +205,19 @@ export class BackupsImpl {
|
|
|
234
205
|
return this.client.sendOperationRequest(args, spec);
|
|
235
206
|
};
|
|
236
207
|
const sendOperation = async (args, spec) => {
|
|
237
|
-
var _a;
|
|
238
208
|
let currentRawResponse = undefined;
|
|
239
|
-
const providedCallback =
|
|
209
|
+
const providedCallback = args.options?.onResponse;
|
|
240
210
|
const callback = (rawResponse, flatResponse) => {
|
|
241
211
|
currentRawResponse = rawResponse;
|
|
242
|
-
providedCallback
|
|
212
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
213
|
+
};
|
|
214
|
+
const updatedArgs = {
|
|
215
|
+
...args,
|
|
216
|
+
options: {
|
|
217
|
+
...args.options,
|
|
218
|
+
onResponse: callback
|
|
219
|
+
}
|
|
243
220
|
};
|
|
244
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
245
221
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
246
222
|
return {
|
|
247
223
|
flatResponse,
|
|
@@ -262,8 +238,8 @@ export class BackupsImpl {
|
|
|
262
238
|
options
|
|
263
239
|
}, cloneOperationSpec);
|
|
264
240
|
const poller = new LroEngine(lro, {
|
|
265
|
-
resumeFrom: options
|
|
266
|
-
intervalInMs: options
|
|
241
|
+
resumeFrom: options?.resumeFrom,
|
|
242
|
+
intervalInMs: options?.updateIntervalInMs
|
|
267
243
|
});
|
|
268
244
|
await poller.poll();
|
|
269
245
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backups.js","sourceRoot":"","sources":["../../../src/operations/backups.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,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI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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 { Backups } 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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Backup,\n BackupsListByManagerNextOptionalParams,\n BackupsListByManagerOptionalParams,\n BackupsListByManagerResponse,\n BackupsListByDeviceNextOptionalParams,\n BackupsListByDeviceOptionalParams,\n BackupsListByDeviceResponse,\n BackupsDeleteOptionalParams,\n CloneRequest,\n BackupsCloneOptionalParams,\n BackupsListByManagerNextResponse,\n BackupsListByDeviceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Backups operations. */\nexport class BackupsImpl implements Backups {\n private readonly client: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class Backups class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimpleManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all the backups in a manager.\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?: BackupsListByManagerOptionalParams\n ): PagedAsyncIterableIterator<Backup> {\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?: BackupsListByManagerOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Backup[]> {\n let result: BackupsListByManagerResponse;\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?: BackupsListByManagerOptionalParams\n ): AsyncIterableIterator<Backup> {\n for await (const page of this.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all the backups in a device. Can be used to get the backups for failover also.\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?: BackupsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<Backup> {\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?: BackupsListByDeviceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Backup[]> {\n let result: BackupsListByDeviceResponse;\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?: BackupsListByDeviceOptionalParams\n ): AsyncIterableIterator<Backup> {\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 * Retrieves all the backups in a manager.\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?: BackupsListByManagerOptionalParams\n ): Promise<BackupsListByManagerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, options },\n listByManagerOperationSpec\n );\n }\n\n /**\n * Retrieves all the backups in a device. Can be used to get the backups for failover also.\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?: BackupsListByDeviceOptionalParams\n ): Promise<BackupsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Deletes the backup.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDelete(\n deviceName: string,\n backupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsDeleteOptionalParams\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, backupName, resourceGroupName, managerName, options },\n deleteOperationSpec\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 * Deletes the backup.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n deviceName: string,\n backupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n backupName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Clones the given backup element to a new disk or share with given details.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param elementName The backup element name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param cloneRequest The clone request.\n * @param options The options parameters.\n */\n async beginClone(\n deviceName: string,\n backupName: string,\n elementName: string,\n resourceGroupName: string,\n managerName: string,\n cloneRequest: CloneRequest,\n options?: BackupsCloneOptionalParams\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 {\n deviceName,\n backupName,\n elementName,\n resourceGroupName,\n managerName,\n cloneRequest,\n options\n },\n cloneOperationSpec\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 * Clones the given backup element to a new disk or share with given details.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param elementName The backup element name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param cloneRequest The clone request.\n * @param options The options parameters.\n */\n async beginCloneAndWait(\n deviceName: string,\n backupName: string,\n elementName: string,\n resourceGroupName: string,\n managerName: string,\n cloneRequest: CloneRequest,\n options?: BackupsCloneOptionalParams\n ): Promise<void> {\n const poller = await this.beginClone(\n deviceName,\n backupName,\n elementName,\n resourceGroupName,\n managerName,\n cloneRequest,\n options\n );\n return poller.pollUntilDone();\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?: BackupsListByManagerNextOptionalParams\n ): Promise<BackupsListByManagerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, nextLink, options },\n listByManagerNextOperationSpec\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?: BackupsListByDeviceNextOptionalParams\n ): Promise<BackupsListByDeviceNextResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, nextLink, options },\n listByDeviceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByManagerOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/backups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\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 listByDeviceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.forFailover\n ],\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 deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups/{backupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\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.backupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cloneOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups/{backupName}/elements/{elementName}/clone\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.cloneRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupName,\n Parameters.elementName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByManagerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.nextLink\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.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.nextLink,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"backups.js","sourceRoot":"","sources":["../../../src/operations/backups.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,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK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AAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,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,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;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 { Backups } 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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Backup,\n BackupsListByManagerNextOptionalParams,\n BackupsListByManagerOptionalParams,\n BackupsListByManagerResponse,\n BackupsListByDeviceNextOptionalParams,\n BackupsListByDeviceOptionalParams,\n BackupsListByDeviceResponse,\n BackupsDeleteOptionalParams,\n CloneRequest,\n BackupsCloneOptionalParams,\n BackupsListByManagerNextResponse,\n BackupsListByDeviceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Backups operations. */\nexport class BackupsImpl implements Backups {\n private readonly client: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class Backups class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimpleManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all the backups in a manager.\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?: BackupsListByManagerOptionalParams\n ): PagedAsyncIterableIterator<Backup> {\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?: BackupsListByManagerOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Backup[]> {\n let result: BackupsListByManagerResponse;\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?: BackupsListByManagerOptionalParams\n ): AsyncIterableIterator<Backup> {\n for await (const page of this.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all the backups in a device. Can be used to get the backups for failover also.\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?: BackupsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<Backup> {\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?: BackupsListByDeviceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Backup[]> {\n let result: BackupsListByDeviceResponse;\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?: BackupsListByDeviceOptionalParams\n ): AsyncIterableIterator<Backup> {\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 * Retrieves all the backups in a manager.\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?: BackupsListByManagerOptionalParams\n ): Promise<BackupsListByManagerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, options },\n listByManagerOperationSpec\n );\n }\n\n /**\n * Retrieves all the backups in a device. Can be used to get the backups for failover also.\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?: BackupsListByDeviceOptionalParams\n ): Promise<BackupsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Deletes the backup.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDelete(\n deviceName: string,\n backupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsDeleteOptionalParams\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, backupName, resourceGroupName, managerName, options },\n deleteOperationSpec\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 * Deletes the backup.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n deviceName: string,\n backupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n backupName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Clones the given backup element to a new disk or share with given details.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param elementName The backup element name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param cloneRequest The clone request.\n * @param options The options parameters.\n */\n async beginClone(\n deviceName: string,\n backupName: string,\n elementName: string,\n resourceGroupName: string,\n managerName: string,\n cloneRequest: CloneRequest,\n options?: BackupsCloneOptionalParams\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 {\n deviceName,\n backupName,\n elementName,\n resourceGroupName,\n managerName,\n cloneRequest,\n options\n },\n cloneOperationSpec\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 * Clones the given backup element to a new disk or share with given details.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param elementName The backup element name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param cloneRequest The clone request.\n * @param options The options parameters.\n */\n async beginCloneAndWait(\n deviceName: string,\n backupName: string,\n elementName: string,\n resourceGroupName: string,\n managerName: string,\n cloneRequest: CloneRequest,\n options?: BackupsCloneOptionalParams\n ): Promise<void> {\n const poller = await this.beginClone(\n deviceName,\n backupName,\n elementName,\n resourceGroupName,\n managerName,\n cloneRequest,\n options\n );\n return poller.pollUntilDone();\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?: BackupsListByManagerNextOptionalParams\n ): Promise<BackupsListByManagerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, nextLink, options },\n listByManagerNextOperationSpec\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?: BackupsListByDeviceNextOptionalParams\n ): Promise<BackupsListByDeviceNextResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, nextLink, options },\n listByDeviceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByManagerOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/backups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\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 listByDeviceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.forFailover\n ],\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 deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups/{backupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\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.backupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cloneOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups/{backupName}/elements/{elementName}/clone\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.cloneRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupName,\n Parameters.elementName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByManagerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.nextLink\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.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.nextLink,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|