@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.
Files changed (154) hide show
  1. package/dist/browser/lroImpl.js +11 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +361 -169
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/accessControlRecords.js +32 -39
  6. package/dist/browser/operations/accessControlRecords.js.map +1 -1
  7. package/dist/browser/operations/alerts.js +23 -40
  8. package/dist/browser/operations/alerts.js.map +1 -1
  9. package/dist/browser/operations/availableProviderOperationsOperations.js +23 -40
  10. package/dist/browser/operations/availableProviderOperationsOperations.js.map +1 -1
  11. package/dist/browser/operations/backupScheduleGroups.js +32 -39
  12. package/dist/browser/operations/backupScheduleGroups.js.map +1 -1
  13. package/dist/browser/operations/backups.js +67 -91
  14. package/dist/browser/operations/backups.js.map +1 -1
  15. package/dist/browser/operations/chapSettingsOperations.js +32 -39
  16. package/dist/browser/operations/chapSettingsOperations.js.map +1 -1
  17. package/dist/browser/operations/devices.js +136 -159
  18. package/dist/browser/operations/devices.js.map +1 -1
  19. package/dist/browser/operations/fileServers.js +70 -123
  20. package/dist/browser/operations/fileServers.js.map +1 -1
  21. package/dist/browser/operations/fileShares.js +59 -117
  22. package/dist/browser/operations/fileShares.js.map +1 -1
  23. package/dist/browser/operations/iscsiDisks.js +59 -117
  24. package/dist/browser/operations/iscsiDisks.js.map +1 -1
  25. package/dist/browser/operations/iscsiServers.js +70 -123
  26. package/dist/browser/operations/iscsiServers.js.map +1 -1
  27. package/dist/browser/operations/jobs.js +45 -79
  28. package/dist/browser/operations/jobs.js.map +1 -1
  29. package/dist/browser/operations/managers.js +37 -105
  30. package/dist/browser/operations/managers.js.map +1 -1
  31. package/dist/browser/operations/storageAccountCredentials.js +32 -39
  32. package/dist/browser/operations/storageAccountCredentials.js.map +1 -1
  33. package/dist/browser/operations/storageDomains.js +32 -39
  34. package/dist/browser/operations/storageDomains.js.map +1 -1
  35. package/dist/browser/pagingHelper.js +2 -4
  36. package/dist/browser/pagingHelper.js.map +1 -1
  37. package/dist/browser/storSimpleManagementClient.js +28 -5
  38. package/dist/browser/storSimpleManagementClient.js.map +1 -1
  39. package/dist/commonjs/lroImpl.js +11 -3
  40. package/dist/commonjs/lroImpl.js.map +1 -1
  41. package/dist/commonjs/models/mappers.js +361 -169
  42. package/dist/commonjs/models/mappers.js.map +1 -1
  43. package/dist/commonjs/operations/accessControlRecords.js +32 -38
  44. package/dist/commonjs/operations/accessControlRecords.js.map +1 -1
  45. package/dist/commonjs/operations/alerts.js +23 -39
  46. package/dist/commonjs/operations/alerts.js.map +1 -1
  47. package/dist/commonjs/operations/availableProviderOperationsOperations.js +23 -39
  48. package/dist/commonjs/operations/availableProviderOperationsOperations.js.map +1 -1
  49. package/dist/commonjs/operations/backupScheduleGroups.js +32 -38
  50. package/dist/commonjs/operations/backupScheduleGroups.js.map +1 -1
  51. package/dist/commonjs/operations/backups.js +67 -90
  52. package/dist/commonjs/operations/backups.js.map +1 -1
  53. package/dist/commonjs/operations/chapSettingsOperations.js +32 -38
  54. package/dist/commonjs/operations/chapSettingsOperations.js.map +1 -1
  55. package/dist/commonjs/operations/devices.js +136 -158
  56. package/dist/commonjs/operations/devices.js.map +1 -1
  57. package/dist/commonjs/operations/fileServers.js +70 -122
  58. package/dist/commonjs/operations/fileServers.js.map +1 -1
  59. package/dist/commonjs/operations/fileShares.js +59 -116
  60. package/dist/commonjs/operations/fileShares.js.map +1 -1
  61. package/dist/commonjs/operations/iscsiDisks.js +59 -116
  62. package/dist/commonjs/operations/iscsiDisks.js.map +1 -1
  63. package/dist/commonjs/operations/iscsiServers.js +70 -122
  64. package/dist/commonjs/operations/iscsiServers.js.map +1 -1
  65. package/dist/commonjs/operations/jobs.js +45 -78
  66. package/dist/commonjs/operations/jobs.js.map +1 -1
  67. package/dist/commonjs/operations/managers.js +37 -104
  68. package/dist/commonjs/operations/managers.js.map +1 -1
  69. package/dist/commonjs/operations/storageAccountCredentials.js +32 -38
  70. package/dist/commonjs/operations/storageAccountCredentials.js.map +1 -1
  71. package/dist/commonjs/operations/storageDomains.js +32 -38
  72. package/dist/commonjs/operations/storageDomains.js.map +1 -1
  73. package/dist/commonjs/pagingHelper.js +2 -4
  74. package/dist/commonjs/pagingHelper.js.map +1 -1
  75. package/dist/commonjs/storSimpleManagementClient.js +28 -5
  76. package/dist/commonjs/storSimpleManagementClient.js.map +1 -1
  77. package/dist/commonjs/tsdoc-metadata.json +1 -1
  78. package/dist/esm/lroImpl.js +11 -3
  79. package/dist/esm/lroImpl.js.map +1 -1
  80. package/dist/esm/models/mappers.js +361 -169
  81. package/dist/esm/models/mappers.js.map +1 -1
  82. package/dist/esm/operations/accessControlRecords.js +32 -39
  83. package/dist/esm/operations/accessControlRecords.js.map +1 -1
  84. package/dist/esm/operations/alerts.js +23 -40
  85. package/dist/esm/operations/alerts.js.map +1 -1
  86. package/dist/esm/operations/availableProviderOperationsOperations.js +23 -40
  87. package/dist/esm/operations/availableProviderOperationsOperations.js.map +1 -1
  88. package/dist/esm/operations/backupScheduleGroups.js +32 -39
  89. package/dist/esm/operations/backupScheduleGroups.js.map +1 -1
  90. package/dist/esm/operations/backups.js +67 -91
  91. package/dist/esm/operations/backups.js.map +1 -1
  92. package/dist/esm/operations/chapSettingsOperations.js +32 -39
  93. package/dist/esm/operations/chapSettingsOperations.js.map +1 -1
  94. package/dist/esm/operations/devices.js +136 -159
  95. package/dist/esm/operations/devices.js.map +1 -1
  96. package/dist/esm/operations/fileServers.js +70 -123
  97. package/dist/esm/operations/fileServers.js.map +1 -1
  98. package/dist/esm/operations/fileShares.js +59 -117
  99. package/dist/esm/operations/fileShares.js.map +1 -1
  100. package/dist/esm/operations/iscsiDisks.js +59 -117
  101. package/dist/esm/operations/iscsiDisks.js.map +1 -1
  102. package/dist/esm/operations/iscsiServers.js +70 -123
  103. package/dist/esm/operations/iscsiServers.js.map +1 -1
  104. package/dist/esm/operations/jobs.js +45 -79
  105. package/dist/esm/operations/jobs.js.map +1 -1
  106. package/dist/esm/operations/managers.js +37 -105
  107. package/dist/esm/operations/managers.js.map +1 -1
  108. package/dist/esm/operations/storageAccountCredentials.js +32 -39
  109. package/dist/esm/operations/storageAccountCredentials.js.map +1 -1
  110. package/dist/esm/operations/storageDomains.js +32 -39
  111. package/dist/esm/operations/storageDomains.js.map +1 -1
  112. package/dist/esm/pagingHelper.js +2 -4
  113. package/dist/esm/pagingHelper.js.map +1 -1
  114. package/dist/esm/storSimpleManagementClient.js +28 -5
  115. package/dist/esm/storSimpleManagementClient.js.map +1 -1
  116. package/dist/react-native/lroImpl.js +11 -3
  117. package/dist/react-native/lroImpl.js.map +1 -1
  118. package/dist/react-native/models/mappers.js +361 -169
  119. package/dist/react-native/models/mappers.js.map +1 -1
  120. package/dist/react-native/operations/accessControlRecords.js +32 -39
  121. package/dist/react-native/operations/accessControlRecords.js.map +1 -1
  122. package/dist/react-native/operations/alerts.js +23 -40
  123. package/dist/react-native/operations/alerts.js.map +1 -1
  124. package/dist/react-native/operations/availableProviderOperationsOperations.js +23 -40
  125. package/dist/react-native/operations/availableProviderOperationsOperations.js.map +1 -1
  126. package/dist/react-native/operations/backupScheduleGroups.js +32 -39
  127. package/dist/react-native/operations/backupScheduleGroups.js.map +1 -1
  128. package/dist/react-native/operations/backups.js +67 -91
  129. package/dist/react-native/operations/backups.js.map +1 -1
  130. package/dist/react-native/operations/chapSettingsOperations.js +32 -39
  131. package/dist/react-native/operations/chapSettingsOperations.js.map +1 -1
  132. package/dist/react-native/operations/devices.js +136 -159
  133. package/dist/react-native/operations/devices.js.map +1 -1
  134. package/dist/react-native/operations/fileServers.js +70 -123
  135. package/dist/react-native/operations/fileServers.js.map +1 -1
  136. package/dist/react-native/operations/fileShares.js +59 -117
  137. package/dist/react-native/operations/fileShares.js.map +1 -1
  138. package/dist/react-native/operations/iscsiDisks.js +59 -117
  139. package/dist/react-native/operations/iscsiDisks.js.map +1 -1
  140. package/dist/react-native/operations/iscsiServers.js +70 -123
  141. package/dist/react-native/operations/iscsiServers.js.map +1 -1
  142. package/dist/react-native/operations/jobs.js +45 -79
  143. package/dist/react-native/operations/jobs.js.map +1 -1
  144. package/dist/react-native/operations/managers.js +37 -105
  145. package/dist/react-native/operations/managers.js.map +1 -1
  146. package/dist/react-native/operations/storageAccountCredentials.js +32 -39
  147. package/dist/react-native/operations/storageAccountCredentials.js.map +1 -1
  148. package/dist/react-native/operations/storageDomains.js +32 -39
  149. package/dist/react-native/operations/storageDomains.js.map +1 -1
  150. package/dist/react-native/pagingHelper.js +2 -4
  151. package/dist/react-native/pagingHelper.js.map +1 -1
  152. package/dist/react-native/storSimpleManagementClient.js +28 -5
  153. package/dist/react-native/storSimpleManagementClient.js.map +1 -1
  154. package/package.json +2 -2
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Jobs operations. */
18
18
  class JobsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Jobs class.
21
22
  * @param client Reference to the service client
@@ -40,52 +41,35 @@ class JobsImpl {
40
41
  return this;
41
42
  },
42
43
  byPage: (settings) => {
43
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
44
+ if (settings?.maxPageSize) {
44
45
  throw new Error("maxPageSize is not supported by this operation.");
45
46
  }
46
47
  return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
47
48
  }
48
49
  };
49
50
  }
50
- listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
51
- return tslib_1.__asyncGenerator(this, arguments, function* listByDevicePagingPage_1() {
52
- let result;
53
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
- if (!continuationToken) {
55
- result = yield tslib_1.__await(this._listByDevice(deviceName, resourceGroupName, managerName, options));
56
- let page = result.value || [];
57
- continuationToken = result.nextLink;
58
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
- yield yield tslib_1.__await(page);
60
- }
61
- while (continuationToken) {
62
- result = yield tslib_1.__await(this._listByDeviceNext(deviceName, resourceGroupName, managerName, continuationToken, options));
63
- continuationToken = result.nextLink;
64
- let page = result.value || [];
65
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
- yield yield tslib_1.__await(page);
67
- }
68
- });
51
+ async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
52
+ let result;
53
+ let continuationToken = settings?.continuationToken;
54
+ if (!continuationToken) {
55
+ result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
56
+ let page = result.value || [];
57
+ continuationToken = result.nextLink;
58
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
+ yield page;
60
+ }
61
+ while (continuationToken) {
62
+ result = await this._listByDeviceNext(deviceName, resourceGroupName, managerName, continuationToken, options);
63
+ continuationToken = result.nextLink;
64
+ let page = result.value || [];
65
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
+ yield page;
67
+ }
69
68
  }
70
- listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
71
- return tslib_1.__asyncGenerator(this, arguments, function* listByDevicePagingAll_1() {
72
- var _a, e_1, _b, _c;
73
- try {
74
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
75
- _c = _f.value;
76
- _d = false;
77
- const page = _c;
78
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
79
- }
80
- }
81
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
- finally {
83
- try {
84
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
85
- }
86
- finally { if (e_1) throw e_1.error; }
87
- }
88
- });
69
+ async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
70
+ for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
71
+ yield* page;
72
+ }
89
73
  }
90
74
  /**
91
75
  * Retrieves all the jobs in a manager.
@@ -103,52 +87,35 @@ class JobsImpl {
103
87
  return this;
104
88
  },
105
89
  byPage: (settings) => {
106
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
90
+ if (settings?.maxPageSize) {
107
91
  throw new Error("maxPageSize is not supported by this operation.");
108
92
  }
109
93
  return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
110
94
  }
111
95
  };
112
96
  }
113
- listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
114
- return tslib_1.__asyncGenerator(this, arguments, function* listByManagerPagingPage_1() {
115
- let result;
116
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
117
- if (!continuationToken) {
118
- result = yield tslib_1.__await(this._listByManager(resourceGroupName, managerName, options));
119
- let page = result.value || [];
120
- continuationToken = result.nextLink;
121
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
122
- yield yield tslib_1.__await(page);
123
- }
124
- while (continuationToken) {
125
- result = yield tslib_1.__await(this._listByManagerNext(resourceGroupName, managerName, continuationToken, options));
126
- continuationToken = result.nextLink;
127
- let page = result.value || [];
128
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
129
- yield yield tslib_1.__await(page);
130
- }
131
- });
97
+ async *listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
98
+ let result;
99
+ let continuationToken = settings?.continuationToken;
100
+ if (!continuationToken) {
101
+ result = await this._listByManager(resourceGroupName, managerName, options);
102
+ let page = result.value || [];
103
+ continuationToken = result.nextLink;
104
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
105
+ yield page;
106
+ }
107
+ while (continuationToken) {
108
+ result = await this._listByManagerNext(resourceGroupName, managerName, continuationToken, options);
109
+ continuationToken = result.nextLink;
110
+ let page = result.value || [];
111
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
112
+ yield page;
113
+ }
132
114
  }
133
- listByManagerPagingAll(resourceGroupName, managerName, options) {
134
- return tslib_1.__asyncGenerator(this, arguments, function* listByManagerPagingAll_1() {
135
- var _a, e_2, _b, _c;
136
- try {
137
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByManagerPagingPage(resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
138
- _c = _f.value;
139
- _d = false;
140
- const page = _c;
141
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
142
- }
143
- }
144
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
145
- finally {
146
- try {
147
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
148
- }
149
- finally { if (e_2) throw e_2.error; }
150
- }
151
- });
115
+ async *listByManagerPagingAll(resourceGroupName, managerName, options) {
116
+ for await (const page of this.listByManagerPagingPage(resourceGroupName, managerName, options)) {
117
+ yield* page;
118
+ }
152
119
  }
153
120
  /**
154
121
  * 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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,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,qBAAqB,CACrC,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;g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ensed 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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,QAAQ;IACF,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,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zB,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"]}
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Managers operations. */
17
17
  class ManagersImpl {
18
+ client;
18
19
  /**
19
20
  * Initialize a new instance of the class Managers class.
20
21
  * @param client Reference to the service client
@@ -36,39 +37,22 @@ class ManagersImpl {
36
37
  return this;
37
38
  },
38
39
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
40
41
  throw new Error("maxPageSize is not supported by this operation.");
41
42
  }
42
43
  return this.listPagingPage(options, settings);
43
44
  }
44
45
  };
45
46
  }
46
- listPagingPage(options, _settings) {
47
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- result = yield tslib_1.__await(this._list(options));
50
- yield yield tslib_1.__await(result.value || []);
51
- });
47
+ async *listPagingPage(options, _settings) {
48
+ let result;
49
+ result = await this._list(options);
50
+ yield result.value || [];
52
51
  }
53
- listPagingAll(options) {
54
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
55
- var _a, e_1, _b, _c;
56
- try {
57
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
58
- _c = _f.value;
59
- _d = false;
60
- const page = _c;
61
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
62
- }
63
- }
64
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
- finally {
66
- try {
67
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
68
- }
69
- finally { if (e_1) throw e_1.error; }
70
- }
71
- });
52
+ async *listPagingAll(options) {
53
+ for await (const page of this.listPagingPage(options)) {
54
+ yield* page;
55
+ }
72
56
  }
73
57
  /**
74
58
  * Retrieves all the managers in a resource group.
@@ -85,39 +69,22 @@ class ManagersImpl {
85
69
  return this;
86
70
  },
87
71
  byPage: (settings) => {
88
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
72
+ if (settings?.maxPageSize) {
89
73
  throw new Error("maxPageSize is not supported by this operation.");
90
74
  }
91
75
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
92
76
  }
93
77
  };
94
78
  }
95
- listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
96
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
97
- let result;
98
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
99
- yield yield tslib_1.__await(result.value || []);
100
- });
79
+ async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
80
+ let result;
81
+ result = await this._listByResourceGroup(resourceGroupName, options);
82
+ yield result.value || [];
101
83
  }
102
- listByResourceGroupPagingAll(resourceGroupName, options) {
103
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
104
- var _a, e_2, _b, _c;
105
- try {
106
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
107
- _c = _f.value;
108
- _d = false;
109
- const page = _c;
110
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
111
- }
112
- }
113
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
114
- finally {
115
- try {
116
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
117
- }
118
- finally { if (e_2) throw e_2.error; }
119
- }
120
- });
84
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
85
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
86
+ yield* page;
87
+ }
121
88
  }
122
89
  /**
123
90
  * Gets the manager metrics
@@ -135,39 +102,22 @@ class ManagersImpl {
135
102
  return this;
136
103
  },
137
104
  byPage: (settings) => {
138
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
105
+ if (settings?.maxPageSize) {
139
106
  throw new Error("maxPageSize is not supported by this operation.");
140
107
  }
141
108
  return this.listMetricsPagingPage(resourceGroupName, managerName, options, settings);
142
109
  }
143
110
  };
144
111
  }
145
- listMetricsPagingPage(resourceGroupName, managerName, options, _settings) {
146
- return tslib_1.__asyncGenerator(this, arguments, function* listMetricsPagingPage_1() {
147
- let result;
148
- result = yield tslib_1.__await(this._listMetrics(resourceGroupName, managerName, options));
149
- yield yield tslib_1.__await(result.value || []);
150
- });
112
+ async *listMetricsPagingPage(resourceGroupName, managerName, options, _settings) {
113
+ let result;
114
+ result = await this._listMetrics(resourceGroupName, managerName, options);
115
+ yield result.value || [];
151
116
  }
152
- listMetricsPagingAll(resourceGroupName, managerName, options) {
153
- return tslib_1.__asyncGenerator(this, arguments, function* listMetricsPagingAll_1() {
154
- var _a, e_3, _b, _c;
155
- try {
156
- for (var _d = true, _e = tslib_1.__asyncValues(this.listMetricsPagingPage(resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
157
- _c = _f.value;
158
- _d = false;
159
- const page = _c;
160
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
161
- }
162
- }
163
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
164
- finally {
165
- try {
166
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
167
- }
168
- finally { if (e_3) throw e_3.error; }
169
- }
170
- });
117
+ async *listMetricsPagingAll(resourceGroupName, managerName, options) {
118
+ for await (const page of this.listMetricsPagingPage(resourceGroupName, managerName, options)) {
119
+ yield* page;
120
+ }
171
121
  }
172
122
  /**
173
123
  * Retrieves metric definition of all metrics aggregated at manager.
@@ -185,39 +135,22 @@ class ManagersImpl {
185
135
  return this;
186
136
  },
187
137
  byPage: (settings) => {
188
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
138
+ if (settings?.maxPageSize) {
189
139
  throw new Error("maxPageSize is not supported by this operation.");
190
140
  }
191
141
  return this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options, settings);
192
142
  }
193
143
  };
194
144
  }
195
- listMetricDefinitionPagingPage(resourceGroupName, managerName, options, _settings) {
196
- return tslib_1.__asyncGenerator(this, arguments, function* listMetricDefinitionPagingPage_1() {
197
- let result;
198
- result = yield tslib_1.__await(this._listMetricDefinition(resourceGroupName, managerName, options));
199
- yield yield tslib_1.__await(result.value || []);
200
- });
145
+ async *listMetricDefinitionPagingPage(resourceGroupName, managerName, options, _settings) {
146
+ let result;
147
+ result = await this._listMetricDefinition(resourceGroupName, managerName, options);
148
+ yield result.value || [];
201
149
  }
202
- listMetricDefinitionPagingAll(resourceGroupName, managerName, options) {
203
- return tslib_1.__asyncGenerator(this, arguments, function* listMetricDefinitionPagingAll_1() {
204
- var _a, e_4, _b, _c;
205
- try {
206
- for (var _d = true, _e = tslib_1.__asyncValues(this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
207
- _c = _f.value;
208
- _d = false;
209
- const page = _c;
210
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
211
- }
212
- }
213
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
214
- finally {
215
- try {
216
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
217
- }
218
- finally { if (e_4) throw e_4.error; }
219
- }
220
- });
150
+ async *listMetricDefinitionPagingAll(resourceGroupName, managerName, options) {
151
+ for await (const page of this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options)) {
152
+ yield* page;
153
+ }
221
154
  }
222
155
  /**
223
156
  * Retrieves all the managers in a subscription.