@azure/arm-maintenance 1.0.0-alpha.20250718.1 → 1.0.0-alpha.20250721.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 (121) hide show
  1. package/dist/browser/maintenanceManagementClient.js +25 -5
  2. package/dist/browser/maintenanceManagementClient.js.map +1 -1
  3. package/dist/browser/models/mappers.js +47 -22
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/applyUpdateForResourceGroup.js +10 -27
  6. package/dist/browser/operations/applyUpdateForResourceGroup.js.map +1 -1
  7. package/dist/browser/operations/applyUpdates.js +10 -27
  8. package/dist/browser/operations/applyUpdates.js.map +1 -1
  9. package/dist/browser/operations/configurationAssignments.js +19 -53
  10. package/dist/browser/operations/configurationAssignments.js.map +1 -1
  11. package/dist/browser/operations/configurationAssignmentsForResourceGroup.js +1 -0
  12. package/dist/browser/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
  13. package/dist/browser/operations/configurationAssignmentsForSubscriptions.js +1 -0
  14. package/dist/browser/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
  15. package/dist/browser/operations/configurationAssignmentsWithinSubscription.js +10 -27
  16. package/dist/browser/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
  17. package/dist/browser/operations/maintenanceConfigurations.js +10 -27
  18. package/dist/browser/operations/maintenanceConfigurations.js.map +1 -1
  19. package/dist/browser/operations/maintenanceConfigurationsForResourceGroup.js +10 -27
  20. package/dist/browser/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -1
  21. package/dist/browser/operations/operations.js +10 -27
  22. package/dist/browser/operations/operations.js.map +1 -1
  23. package/dist/browser/operations/publicMaintenanceConfigurations.js +10 -27
  24. package/dist/browser/operations/publicMaintenanceConfigurations.js.map +1 -1
  25. package/dist/browser/operations/scheduledEvent.js +1 -0
  26. package/dist/browser/operations/scheduledEvent.js.map +1 -1
  27. package/dist/browser/operations/updates.js +19 -53
  28. package/dist/browser/operations/updates.js.map +1 -1
  29. package/dist/browser/pagingHelper.js +2 -4
  30. package/dist/browser/pagingHelper.js.map +1 -1
  31. package/dist/commonjs/maintenanceManagementClient.js +25 -5
  32. package/dist/commonjs/maintenanceManagementClient.js.map +1 -1
  33. package/dist/commonjs/models/mappers.js +47 -22
  34. package/dist/commonjs/models/mappers.js.map +1 -1
  35. package/dist/commonjs/operations/applyUpdateForResourceGroup.js +10 -26
  36. package/dist/commonjs/operations/applyUpdateForResourceGroup.js.map +1 -1
  37. package/dist/commonjs/operations/applyUpdates.js +10 -26
  38. package/dist/commonjs/operations/applyUpdates.js.map +1 -1
  39. package/dist/commonjs/operations/configurationAssignments.js +19 -52
  40. package/dist/commonjs/operations/configurationAssignments.js.map +1 -1
  41. package/dist/commonjs/operations/configurationAssignmentsForResourceGroup.js +1 -0
  42. package/dist/commonjs/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
  43. package/dist/commonjs/operations/configurationAssignmentsForSubscriptions.js +1 -0
  44. package/dist/commonjs/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
  45. package/dist/commonjs/operations/configurationAssignmentsWithinSubscription.js +10 -26
  46. package/dist/commonjs/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
  47. package/dist/commonjs/operations/maintenanceConfigurations.js +10 -26
  48. package/dist/commonjs/operations/maintenanceConfigurations.js.map +1 -1
  49. package/dist/commonjs/operations/maintenanceConfigurationsForResourceGroup.js +10 -26
  50. package/dist/commonjs/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -1
  51. package/dist/commonjs/operations/operations.js +10 -26
  52. package/dist/commonjs/operations/operations.js.map +1 -1
  53. package/dist/commonjs/operations/publicMaintenanceConfigurations.js +10 -26
  54. package/dist/commonjs/operations/publicMaintenanceConfigurations.js.map +1 -1
  55. package/dist/commonjs/operations/scheduledEvent.js +1 -0
  56. package/dist/commonjs/operations/scheduledEvent.js.map +1 -1
  57. package/dist/commonjs/operations/updates.js +19 -52
  58. package/dist/commonjs/operations/updates.js.map +1 -1
  59. package/dist/commonjs/pagingHelper.js +2 -4
  60. package/dist/commonjs/pagingHelper.js.map +1 -1
  61. package/dist/esm/maintenanceManagementClient.js +25 -5
  62. package/dist/esm/maintenanceManagementClient.js.map +1 -1
  63. package/dist/esm/models/mappers.js +47 -22
  64. package/dist/esm/models/mappers.js.map +1 -1
  65. package/dist/esm/operations/applyUpdateForResourceGroup.js +10 -27
  66. package/dist/esm/operations/applyUpdateForResourceGroup.js.map +1 -1
  67. package/dist/esm/operations/applyUpdates.js +10 -27
  68. package/dist/esm/operations/applyUpdates.js.map +1 -1
  69. package/dist/esm/operations/configurationAssignments.js +19 -53
  70. package/dist/esm/operations/configurationAssignments.js.map +1 -1
  71. package/dist/esm/operations/configurationAssignmentsForResourceGroup.js +1 -0
  72. package/dist/esm/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
  73. package/dist/esm/operations/configurationAssignmentsForSubscriptions.js +1 -0
  74. package/dist/esm/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
  75. package/dist/esm/operations/configurationAssignmentsWithinSubscription.js +10 -27
  76. package/dist/esm/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
  77. package/dist/esm/operations/maintenanceConfigurations.js +10 -27
  78. package/dist/esm/operations/maintenanceConfigurations.js.map +1 -1
  79. package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.js +10 -27
  80. package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -1
  81. package/dist/esm/operations/operations.js +10 -27
  82. package/dist/esm/operations/operations.js.map +1 -1
  83. package/dist/esm/operations/publicMaintenanceConfigurations.js +10 -27
  84. package/dist/esm/operations/publicMaintenanceConfigurations.js.map +1 -1
  85. package/dist/esm/operations/scheduledEvent.js +1 -0
  86. package/dist/esm/operations/scheduledEvent.js.map +1 -1
  87. package/dist/esm/operations/updates.js +19 -53
  88. package/dist/esm/operations/updates.js.map +1 -1
  89. package/dist/esm/pagingHelper.js +2 -4
  90. package/dist/esm/pagingHelper.js.map +1 -1
  91. package/dist/react-native/maintenanceManagementClient.js +25 -5
  92. package/dist/react-native/maintenanceManagementClient.js.map +1 -1
  93. package/dist/react-native/models/mappers.js +47 -22
  94. package/dist/react-native/models/mappers.js.map +1 -1
  95. package/dist/react-native/operations/applyUpdateForResourceGroup.js +10 -27
  96. package/dist/react-native/operations/applyUpdateForResourceGroup.js.map +1 -1
  97. package/dist/react-native/operations/applyUpdates.js +10 -27
  98. package/dist/react-native/operations/applyUpdates.js.map +1 -1
  99. package/dist/react-native/operations/configurationAssignments.js +19 -53
  100. package/dist/react-native/operations/configurationAssignments.js.map +1 -1
  101. package/dist/react-native/operations/configurationAssignmentsForResourceGroup.js +1 -0
  102. package/dist/react-native/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
  103. package/dist/react-native/operations/configurationAssignmentsForSubscriptions.js +1 -0
  104. package/dist/react-native/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
  105. package/dist/react-native/operations/configurationAssignmentsWithinSubscription.js +10 -27
  106. package/dist/react-native/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
  107. package/dist/react-native/operations/maintenanceConfigurations.js +10 -27
  108. package/dist/react-native/operations/maintenanceConfigurations.js.map +1 -1
  109. package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.js +10 -27
  110. package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -1
  111. package/dist/react-native/operations/operations.js +10 -27
  112. package/dist/react-native/operations/operations.js.map +1 -1
  113. package/dist/react-native/operations/publicMaintenanceConfigurations.js +10 -27
  114. package/dist/react-native/operations/publicMaintenanceConfigurations.js.map +1 -1
  115. package/dist/react-native/operations/scheduledEvent.js +1 -0
  116. package/dist/react-native/operations/scheduledEvent.js.map +1 -1
  117. package/dist/react-native/operations/updates.js +19 -53
  118. package/dist/react-native/operations/updates.js.map +1 -1
  119. package/dist/react-native/pagingHelper.js +2 -4
  120. package/dist/react-native/pagingHelper.js.map +1 -1
  121. package/package.json +2 -2
@@ -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 Operations operations. */
14
13
  export class OperationsImpl {
14
+ client;
15
15
  /**
16
16
  * Initialize a new instance of the class Operations class.
17
17
  * @param client Reference to the service client
@@ -33,39 +33,22 @@ export class OperationsImpl {
33
33
  return this;
34
34
  },
35
35
  byPage: (settings) => {
36
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
- let result;
46
- result = yield __await(this._list(options));
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
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
52
- var _a, e_1, _b, _c;
53
- try {
54
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
55
- _c = _f.value;
56
- _d = false;
57
- const page = _c;
58
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
- }
60
- }
61
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
- finally {
63
- try {
64
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
65
- }
66
- finally { if (e_1) throw e_1.error; }
67
- }
68
- });
48
+ async *listPagingAll(options) {
49
+ for await (const page of this.listPagingPage(options)) {
50
+ yield* page;
51
+ }
69
52
  }
70
53
  /**
71
54
  * List the available operations supported by the Microsoft.Maintenance resource provider
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC,EACtC,SAAwB;;YAExB,IAAI,MAA8B,CAAC;YACnC,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACnC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,OAAsC;;;;gBAEtC,KAAyB,eAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA,IAAA,+DAAE,CAAC;oBAA/B,cAA4B;oBAA5B,WAA4B;oBAA1C,MAAM,IAAI,KAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;gBACd,CAAC;;;;;;;;;QACH,CAAC;KAAA;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6CAA6C;IACnD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 { Operations } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * List the available operations supported by the Microsoft.Maintenance resource provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List the available operations supported by the Microsoft.Maintenance resource provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Maintenance/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationsListResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAsC,EACtC,SAAwB;QAExB,IAAI,MAA8B,CAAC;QACnC,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,CAAC,aAAa,CAC1B,OAAsC;QAEtC,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;YACtD,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6CAA6C;IACnD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 { Operations } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * List the available operations supported by the Microsoft.Maintenance resource provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List the available operations supported by the Microsoft.Maintenance resource provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Maintenance/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationsListResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\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 PublicMaintenanceConfigurations operations. */
14
13
  export class PublicMaintenanceConfigurationsImpl {
14
+ client;
15
15
  /**
16
16
  * Initialize a new instance of the class PublicMaintenanceConfigurations class.
17
17
  * @param client Reference to the service client
@@ -33,39 +33,22 @@ export class PublicMaintenanceConfigurationsImpl {
33
33
  return this;
34
34
  },
35
35
  byPage: (settings) => {
36
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
- let result;
46
- result = yield __await(this._list(options));
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
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
52
- var _a, e_1, _b, _c;
53
- try {
54
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
55
- _c = _f.value;
56
- _d = false;
57
- const page = _c;
58
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
- }
60
- }
61
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
- finally {
63
- try {
64
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
65
- }
66
- finally { if (e_1) throw e_1.error; }
67
- }
68
- });
48
+ async *listPagingAll(options) {
49
+ for await (const page of this.listPagingPage(options)) {
50
+ yield* page;
51
+ }
69
52
  }
70
53
  /**
71
54
  * Get Public Maintenance Configuration records
@@ -1 +1 @@
1
- {"version":3,"file":"publicMaintenanceConfigurations.js","sourceRoot":"","sources":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D,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;KACxB;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 { PublicMaintenanceConfigurations } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n MaintenanceConfiguration,\n PublicMaintenanceConfigurationsListOptionalParams,\n PublicMaintenanceConfigurationsListResponse,\n PublicMaintenanceConfigurationsGetOptionalParams,\n PublicMaintenanceConfigurationsGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PublicMaintenanceConfigurations operations. */\nexport class PublicMaintenanceConfigurationsImpl\n implements PublicMaintenanceConfigurations\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class PublicMaintenanceConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Public Maintenance Configuration records\n * @param options The options parameters.\n */\n public list(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<MaintenanceConfiguration> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<MaintenanceConfiguration[]> {\n let result: PublicMaintenanceConfigurationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): AsyncIterableIterator<MaintenanceConfiguration> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get Public Maintenance Configuration records\n * @param options The options parameters.\n */\n private _list(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): Promise<PublicMaintenanceConfigurationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get Public Maintenance Configuration record\n * @param resourceName Maintenance Configuration Name\n * @param options The options parameters.\n */\n get(\n resourceName: string,\n options?: PublicMaintenanceConfigurationsGetOptionalParams,\n ): Promise<PublicMaintenanceConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListMaintenanceConfigurationsResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"publicMaintenanceConfigurations.js","sourceRoot":"","sources":["../../../src/operations/publicMaintenanceConfigurations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAG7B,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2D;QAE3D,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAA2D,EAC3D,SAAwB;QAExB,IAAI,MAAmD,CAAC;QACxD,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,KAAK,I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AO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;KACxB;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 { PublicMaintenanceConfigurations } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n MaintenanceConfiguration,\n PublicMaintenanceConfigurationsListOptionalParams,\n PublicMaintenanceConfigurationsListResponse,\n PublicMaintenanceConfigurationsGetOptionalParams,\n PublicMaintenanceConfigurationsGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PublicMaintenanceConfigurations operations. */\nexport class PublicMaintenanceConfigurationsImpl\n implements PublicMaintenanceConfigurations\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class PublicMaintenanceConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Public Maintenance Configuration records\n * @param options The options parameters.\n */\n public list(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<MaintenanceConfiguration> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<MaintenanceConfiguration[]> {\n let result: PublicMaintenanceConfigurationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): AsyncIterableIterator<MaintenanceConfiguration> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get Public Maintenance Configuration records\n * @param options The options parameters.\n */\n private _list(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): Promise<PublicMaintenanceConfigurationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get Public Maintenance Configuration record\n * @param resourceName Maintenance Configuration Name\n * @param options The options parameters.\n */\n get(\n resourceName: string,\n options?: PublicMaintenanceConfigurationsGetOptionalParams,\n ): Promise<PublicMaintenanceConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListMaintenanceConfigurationsResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing ScheduledEvent operations. */
12
12
  export class ScheduledEventImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class ScheduledEvent class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"scheduledEvent.js","sourceRoot":"","sources":["../../../src/operations/scheduledEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,WAAW,CACT,iBAAyB,EACzB,YAAoB,EACpB,YAAoB,EACpB,gBAAwB,EACxB,OAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,YAAY;YACZ,gBAAgB;YAChB,OAAO;SACR,EACD,wBAAwB,CACzB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,6MAA6M;IACnN,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;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 { ScheduledEvent } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n ScheduledEventAcknowledgeOptionalParams,\n ScheduledEventAcknowledgeResponse,\n} from \"../models/index.js\";\n\n/** Class containing ScheduledEvent operations. */\nexport class ScheduledEventImpl implements ScheduledEvent {\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class ScheduledEvent class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Post Scheduled Event Acknowledgement\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceType Resource type\n * @param resourceName Resource Name\n * @param scheduledEventId Scheduled Event Id. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param options The options parameters.\n */\n acknowledge(\n resourceGroupName: string,\n resourceType: string,\n resourceName: string,\n scheduledEventId: string,\n options?: ScheduledEventAcknowledgeOptionalParams,\n ): Promise<ScheduledEventAcknowledgeResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceType,\n resourceName,\n scheduledEventId,\n options,\n },\n acknowledgeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst acknowledgeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents/{scheduledEventId}/acknowledge\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledEventApproveResponse,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.scheduledEventId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"scheduledEvent.js","sourceRoot":"","sources":["../../../src/operations/scheduledEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,WAAW,CACT,iBAAyB,EACzB,YAAoB,EACpB,YAAoB,EACpB,gBAAwB,EACxB,OAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,YAAY;YACZ,gBAAgB;YAChB,OAAO;SACR,EACD,wBAAwB,CACzB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,6MAA6M;IACnN,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;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 { ScheduledEvent } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n ScheduledEventAcknowledgeOptionalParams,\n ScheduledEventAcknowledgeResponse,\n} from \"../models/index.js\";\n\n/** Class containing ScheduledEvent operations. */\nexport class ScheduledEventImpl implements ScheduledEvent {\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class ScheduledEvent class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Post Scheduled Event Acknowledgement\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceType Resource type\n * @param resourceName Resource Name\n * @param scheduledEventId Scheduled Event Id. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param options The options parameters.\n */\n acknowledge(\n resourceGroupName: string,\n resourceType: string,\n resourceName: string,\n scheduledEventId: string,\n options?: ScheduledEventAcknowledgeOptionalParams,\n ): Promise<ScheduledEventAcknowledgeResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceType,\n resourceName,\n scheduledEventId,\n options,\n },\n acknowledgeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst acknowledgeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents/{scheduledEventId}/acknowledge\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledEventApproveResponse,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.scheduledEventId,\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 Updates operations. */
14
13
  export class UpdatesImpl {
14
+ client;
15
15
  /**
16
16
  * Initialize a new instance of the class Updates class.
17
17
  * @param client Reference to the service client
@@ -39,39 +39,22 @@ export class UpdatesImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, settings);
46
46
  },
47
47
  };
48
48
  }
49
- listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, _settings) {
50
- return __asyncGenerator(this, arguments, function* listParentPagingPage_1() {
51
- let result;
52
- result = yield __await(this._listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options));
53
- yield yield __await(result.value || []);
54
- });
49
+ async *listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, _settings) {
50
+ let result;
51
+ result = await this._listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options);
52
+ yield result.value || [];
55
53
  }
56
- listParentPagingAll(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
57
- return __asyncGenerator(this, arguments, function* listParentPagingAll_1() {
58
- var _a, e_1, _b, _c;
59
- try {
60
- for (var _d = true, _e = __asyncValues(this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
61
- _c = _f.value;
62
- _d = false;
63
- const page = _c;
64
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
65
- }
66
- }
67
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
68
- finally {
69
- try {
70
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
71
- }
72
- finally { if (e_1) throw e_1.error; }
73
- }
74
- });
54
+ async *listParentPagingAll(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
55
+ for await (const page of this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)) {
56
+ yield* page;
57
+ }
75
58
  }
76
59
  /**
77
60
  * Get updates to resources.
@@ -91,39 +74,22 @@ export class UpdatesImpl {
91
74
  return this;
92
75
  },
93
76
  byPage: (settings) => {
94
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
77
+ if (settings?.maxPageSize) {
95
78
  throw new Error("maxPageSize is not supported by this operation.");
96
79
  }
97
80
  return this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, settings);
98
81
  },
99
82
  };
100
83
  }
101
- listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, _settings) {
102
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
103
- let result;
104
- result = yield __await(this._list(resourceGroupName, providerName, resourceType, resourceName, options));
105
- yield yield __await(result.value || []);
106
- });
84
+ async *listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, _settings) {
85
+ let result;
86
+ result = await this._list(resourceGroupName, providerName, resourceType, resourceName, options);
87
+ yield result.value || [];
107
88
  }
108
- listPagingAll(resourceGroupName, providerName, resourceType, resourceName, options) {
109
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
110
- var _a, e_2, _b, _c;
111
- try {
112
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
113
- _c = _f.value;
114
- _d = false;
115
- const page = _c;
116
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
117
- }
118
- }
119
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
120
- finally {
121
- try {
122
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
123
- }
124
- finally { if (e_2) throw e_2.error; }
125
- }
126
- });
89
+ async *listPagingAll(resourceGroupName, providerName, resourceType, resourceName, options) {
90
+ for await (const page of this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)) {
91
+ yield* page;
92
+ }
127
93
  }
128
94
  /**
129
95
  * Get updates to resources.
@@ -1 +1 @@
1
- {"version":3,"file":"updates.js","sourceRoot":"","sources":["../../../src/operations/updates.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CACf,iBAAyB,EACzB,YAAoB,EACpB,kBAA0B,EAC1B,kBAA0B,EAC1B,YAAoB,EACpB,YAAoB,EACpB,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,mBAAmB,CACnC,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,oBAAoB,CAC9B,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ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AAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,YAAY;KACxB;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 { Updates } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n Update,\n UpdatesListParentOptionalParams,\n UpdatesListParentResponse,\n UpdatesListOptionalParams,\n UpdatesListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Updates operations. */\nexport class UpdatesImpl implements Updates {\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class Updates class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get updates to resources.\n * @param resourceGroupName Resource group name\n * @param providerName Resource provider name\n * @param resourceParentType Resource parent type\n * @param resourceParentName Resource parent identifier\n * @param resourceType Resource type\n * @param resourceName Resource identifier\n * @param options The options parameters.\n */\n public listParent(\n resourceGroupName: string,\n providerName: string,\n resourceParentType: string,\n resourceParentName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListParentOptionalParams,\n ): PagedAsyncIterableIterator<Update> {\n const iter = this.listParentPagingAll(\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\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.listParentPagingPage(\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listParentPagingPage(\n resourceGroupName: string,\n providerName: string,\n resourceParentType: string,\n resourceParentName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListParentOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Update[]> {\n let result: UpdatesListParentResponse;\n result = await this._listParent(\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listParentPagingAll(\n resourceGroupName: string,\n providerName: string,\n resourceParentType: string,\n resourceParentName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListParentOptionalParams,\n ): AsyncIterableIterator<Update> {\n for await (const page of this.listParentPagingPage(\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get updates to resources.\n * @param resourceGroupName Resource group name\n * @param providerName Resource provider name\n * @param resourceType Resource type\n * @param resourceName Resource identifier\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n providerName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListOptionalParams,\n ): PagedAsyncIterableIterator<Update> {\n const iter = this.listPagingAll(\n resourceGroupName,\n providerName,\n resourceType,\n resourceName,\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.listPagingPage(\n resourceGroupName,\n providerName,\n resourceType,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n providerName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Update[]> {\n let result: UpdatesListResponse;\n result = await this._list(\n resourceGroupName,\n providerName,\n resourceType,\n resourceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n providerName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListOptionalParams,\n ): AsyncIterableIterator<Update> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n providerName,\n resourceType,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get updates to resources.\n * @param resourceGroupName Resource group name\n * @param providerName Resource provider name\n * @param resourceParentType Resource parent type\n * @param resourceParentName Resource parent identifier\n * @param resourceType Resource type\n * @param resourceName Resource identifier\n * @param options The options parameters.\n */\n private _listParent(\n resourceGroupName: string,\n providerName: string,\n resourceParentType: string,\n resourceParentName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListParentOptionalParams,\n ): Promise<UpdatesListParentResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\n options,\n },\n listParentOperationSpec,\n );\n }\n\n /**\n * Get updates to resources.\n * @param resourceGroupName Resource group name\n * @param providerName Resource provider name\n * @param resourceType Resource type\n * @param resourceName Resource identifier\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n providerName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListOptionalParams,\n ): Promise<UpdatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, providerName, resourceType, resourceName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listParentOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUpdatesResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.providerName,\n Parameters.resourceParentType,\n Parameters.resourceParentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUpdatesResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.providerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"updates.js","sourceRoot":"","sources":["../../../src/operations/updates.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,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aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,mKAAmK;IACzK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,YAAY;KACxB;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 { Updates } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n Update,\n UpdatesListParentOptionalParams,\n UpdatesListParentResponse,\n UpdatesListOptionalParams,\n UpdatesListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Updates operations. */\nexport class UpdatesImpl implements Updates {\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class Updates class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get updates to resources.\n * @param resourceGroupName Resource group name\n * @param providerName Resource provider name\n * @param resourceParentType Resource parent type\n * @param resourceParentName Resource parent identifier\n * @param resourceType Resource type\n * @param resourceName Resource identifier\n * @param options The options parameters.\n */\n public listParent(\n resourceGroupName: string,\n providerName: string,\n resourceParentType: string,\n resourceParentName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListParentOptionalParams,\n ): PagedAsyncIterableIterator<Update> {\n const iter = this.listParentPagingAll(\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\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.listParentPagingPage(\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listParentPagingPage(\n resourceGroupName: string,\n providerName: string,\n resourceParentType: string,\n resourceParentName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListParentOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Update[]> {\n let result: UpdatesListParentResponse;\n result = await this._listParent(\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listParentPagingAll(\n resourceGroupName: string,\n providerName: string,\n resourceParentType: string,\n resourceParentName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListParentOptionalParams,\n ): AsyncIterableIterator<Update> {\n for await (const page of this.listParentPagingPage(\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get updates to resources.\n * @param resourceGroupName Resource group name\n * @param providerName Resource provider name\n * @param resourceType Resource type\n * @param resourceName Resource identifier\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n providerName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListOptionalParams,\n ): PagedAsyncIterableIterator<Update> {\n const iter = this.listPagingAll(\n resourceGroupName,\n providerName,\n resourceType,\n resourceName,\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.listPagingPage(\n resourceGroupName,\n providerName,\n resourceType,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n providerName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Update[]> {\n let result: UpdatesListResponse;\n result = await this._list(\n resourceGroupName,\n providerName,\n resourceType,\n resourceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n providerName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListOptionalParams,\n ): AsyncIterableIterator<Update> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n providerName,\n resourceType,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get updates to resources.\n * @param resourceGroupName Resource group name\n * @param providerName Resource provider name\n * @param resourceParentType Resource parent type\n * @param resourceParentName Resource parent identifier\n * @param resourceType Resource type\n * @param resourceName Resource identifier\n * @param options The options parameters.\n */\n private _listParent(\n resourceGroupName: string,\n providerName: string,\n resourceParentType: string,\n resourceParentName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListParentOptionalParams,\n ): Promise<UpdatesListParentResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n providerName,\n resourceParentType,\n resourceParentName,\n resourceType,\n resourceName,\n options,\n },\n listParentOperationSpec,\n );\n }\n\n /**\n * Get updates to resources.\n * @param resourceGroupName Resource group name\n * @param providerName Resource provider name\n * @param resourceType Resource type\n * @param resourceName Resource identifier\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n providerName: string,\n resourceType: string,\n resourceName: string,\n options?: UpdatesListOptionalParams,\n ): Promise<UpdatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, providerName, resourceType, resourceName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listParentOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUpdatesResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.providerName,\n Parameters.resourceParentType,\n Parameters.resourceParentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUpdatesResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.providerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
14
14
  * @returns The continuation token that can be passed into byPage() during future calls.
15
15
  */
16
16
  export function getContinuationToken(page) {
17
- var _a;
18
17
  if (typeof page !== "object" || page === null) {
19
18
  return undefined;
20
19
  }
21
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
20
+ return pageMap.get(page)?.continuationToken;
22
21
  }
23
22
  export function setContinuationToken(page, continuationToken) {
24
- var _a;
25
23
  if (typeof page !== "object" || page === null || !continuationToken) {
26
24
  return;
27
25
  }
28
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
26
+ const pageInfo = pageMap.get(page) ?? {};
29
27
  pageInfo.continuationToken = continuationToken;
30
28
  pageMap.set(page, pageInfo);
31
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for MaintenanceManagementClient.",
6
- "version": "1.0.0-alpha.20250718.1",
6
+ "version": "1.0.0-alpha.20250721.1",
7
7
  "engines": {
8
8
  "node": ">=20.0.0"
9
9
  },
@@ -90,7 +90,7 @@
90
90
  },
91
91
  "type": "module",
92
92
  "tshy": {
93
- "project": "./tsconfig.src.json",
93
+ "project": "../../../tsconfig.src.build.json",
94
94
  "exports": {
95
95
  "./package.json": "./package.json",
96
96
  ".": "./src/index.ts"