@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 { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing Jobs operations. */
|
|
15
14
|
export class JobsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class Jobs class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class JobsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByDeviceNext(deviceName, resourceGroupName, managerName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
66
|
+
for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Retrieves all the jobs in a manager.
|
|
@@ -100,52 +83,35 @@ export class JobsImpl {
|
|
|
100
83
|
return this;
|
|
101
84
|
},
|
|
102
85
|
byPage: (settings) => {
|
|
103
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
104
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
88
|
}
|
|
106
89
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
107
90
|
}
|
|
108
91
|
};
|
|
109
92
|
}
|
|
110
|
-
listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
});
|
|
93
|
+
async *listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listByManager(resourceGroupName, managerName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByManagerNext(resourceGroupName, managerName, continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
129
110
|
}
|
|
130
|
-
listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
for (var _d = true, _e = __asyncValues(this.listByManagerPagingPage(resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
135
|
-
_c = _f.value;
|
|
136
|
-
_d = false;
|
|
137
|
-
const page = _c;
|
|
138
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
142
|
-
finally {
|
|
143
|
-
try {
|
|
144
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
145
|
-
}
|
|
146
|
-
finally { if (e_2) throw e_2.error; }
|
|
147
|
-
}
|
|
148
|
-
});
|
|
111
|
+
async *listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
112
|
+
for await (const page of this.listByManagerPagingPage(resourceGroupName, managerName, options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
149
115
|
}
|
|
150
116
|
/**
|
|
151
117
|
* Retrieves all the jobs in a device.
|
|
@@ -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;AAgBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,UAAkB,EAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAwC;QAExC,MAAM,IAAI,GAAG,IAAI,CAAC,qBAA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["/*\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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport {\n Job,\n JobsListByDeviceNextOptionalParams,\n JobsListByDeviceOptionalParams,\n JobsListByDeviceResponse,\n JobsListByManagerNextOptionalParams,\n JobsListByManagerOptionalParams,\n JobsListByManagerResponse,\n JobsGetOptionalParams,\n JobsGetResponse,\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: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class Jobs 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 jobs in a device.\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 * Retrieves all the jobs 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?: 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 * Retrieves all the jobs in a device.\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 * Returns the properties 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 * Retrieves all the jobs 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?: 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 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 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 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.jobName\n ],\n headerParameters: [Parameters.accept],\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 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 listByDeviceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\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};\nconst listByManagerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\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};\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,U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Ae,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;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,OAAO;SAC5B;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;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;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","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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport {\n Job,\n JobsListByDeviceNextOptionalParams,\n JobsListByDeviceOptionalParams,\n JobsListByDeviceResponse,\n JobsListByManagerNextOptionalParams,\n JobsListByManagerOptionalParams,\n JobsListByManagerResponse,\n JobsGetOptionalParams,\n JobsGetResponse,\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: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class Jobs 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 jobs in a device.\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 * Retrieves all the jobs 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?: 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 * Retrieves all the jobs in a device.\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 * Returns the properties 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 * Retrieves all the jobs 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?: 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 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 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 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.jobName\n ],\n headerParameters: [Parameters.accept],\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 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 listByDeviceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\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};\nconst listByManagerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobList\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};\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
|
-
yield yield __await(result.value || []);
|
|
48
|
-
});
|
|
43
|
+
async *listPagingPage(options, _settings) {
|
|
44
|
+
let result;
|
|
45
|
+
result = await this._list(options);
|
|
46
|
+
yield result.value || [];
|
|
49
47
|
}
|
|
50
|
-
listPagingAll(options) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
});
|
|
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
|
-
yield yield __await(result.value || []);
|
|
97
|
-
});
|
|
75
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
76
|
+
let result;
|
|
77
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
78
|
+
yield result.value || [];
|
|
98
79
|
}
|
|
99
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
});
|
|
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
|
* Gets the manager metrics
|
|
@@ -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.listMetricsPagingPage(resourceGroupName, managerName, options, settings);
|
|
139
105
|
}
|
|
140
106
|
};
|
|
141
107
|
}
|
|
142
|
-
listMetricsPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
yield yield __await(result.value || []);
|
|
147
|
-
});
|
|
108
|
+
async *listMetricsPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
109
|
+
let result;
|
|
110
|
+
result = await this._listMetrics(resourceGroupName, managerName, options);
|
|
111
|
+
yield result.value || [];
|
|
148
112
|
}
|
|
149
|
-
listMetricsPagingAll(resourceGroupName, managerName, options) {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
for (var _d = true, _e = __asyncValues(this.listMetricsPagingPage(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
|
-
});
|
|
113
|
+
async *listMetricsPagingAll(resourceGroupName, managerName, options) {
|
|
114
|
+
for await (const page of this.listMetricsPagingPage(resourceGroupName, managerName, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
168
117
|
}
|
|
169
118
|
/**
|
|
170
119
|
* Retrieves metric definition of all metrics aggregated at manager.
|
|
@@ -182,39 +131,22 @@ export class ManagersImpl {
|
|
|
182
131
|
return this;
|
|
183
132
|
},
|
|
184
133
|
byPage: (settings) => {
|
|
185
|
-
if (settings
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
186
135
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
187
136
|
}
|
|
188
137
|
return this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options, settings);
|
|
189
138
|
}
|
|
190
139
|
};
|
|
191
140
|
}
|
|
192
|
-
listMetricDefinitionPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
yield yield __await(result.value || []);
|
|
197
|
-
});
|
|
141
|
+
async *listMetricDefinitionPagingPage(resourceGroupName, managerName, options, _settings) {
|
|
142
|
+
let result;
|
|
143
|
+
result = await this._listMetricDefinition(resourceGroupName, managerName, options);
|
|
144
|
+
yield result.value || [];
|
|
198
145
|
}
|
|
199
|
-
listMetricDefinitionPagingAll(resourceGroupName, managerName, options) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
for (var _d = true, _e = __asyncValues(this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
204
|
-
_c = _f.value;
|
|
205
|
-
_d = false;
|
|
206
|
-
const page = _c;
|
|
207
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
211
|
-
finally {
|
|
212
|
-
try {
|
|
213
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
214
|
-
}
|
|
215
|
-
finally { if (e_4) throw e_4.error; }
|
|
216
|
-
}
|
|
217
|
-
});
|
|
146
|
+
async *listMetricDefinitionPagingAll(resourceGroupName, managerName, options) {
|
|
147
|
+
for await (const page of this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options)) {
|
|
148
|
+
yield* page;
|
|
149
|
+
}
|
|
218
150
|
}
|
|
219
151
|
/**
|
|
220
152
|
* Retrieves all the managers in a subscription.
|