@azure/arm-maintenance 1.0.0-alpha.20250619.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 (123) 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/commonjs/tsdoc-metadata.json +11 -11
  62. package/dist/esm/maintenanceManagementClient.js +25 -5
  63. package/dist/esm/maintenanceManagementClient.js.map +1 -1
  64. package/dist/esm/models/mappers.js +47 -22
  65. package/dist/esm/models/mappers.js.map +1 -1
  66. package/dist/esm/operations/applyUpdateForResourceGroup.js +10 -27
  67. package/dist/esm/operations/applyUpdateForResourceGroup.js.map +1 -1
  68. package/dist/esm/operations/applyUpdates.js +10 -27
  69. package/dist/esm/operations/applyUpdates.js.map +1 -1
  70. package/dist/esm/operations/configurationAssignments.js +19 -53
  71. package/dist/esm/operations/configurationAssignments.js.map +1 -1
  72. package/dist/esm/operations/configurationAssignmentsForResourceGroup.js +1 -0
  73. package/dist/esm/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
  74. package/dist/esm/operations/configurationAssignmentsForSubscriptions.js +1 -0
  75. package/dist/esm/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
  76. package/dist/esm/operations/configurationAssignmentsWithinSubscription.js +10 -27
  77. package/dist/esm/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
  78. package/dist/esm/operations/maintenanceConfigurations.js +10 -27
  79. package/dist/esm/operations/maintenanceConfigurations.js.map +1 -1
  80. package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.js +10 -27
  81. package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -1
  82. package/dist/esm/operations/operations.js +10 -27
  83. package/dist/esm/operations/operations.js.map +1 -1
  84. package/dist/esm/operations/publicMaintenanceConfigurations.js +10 -27
  85. package/dist/esm/operations/publicMaintenanceConfigurations.js.map +1 -1
  86. package/dist/esm/operations/scheduledEvent.js +1 -0
  87. package/dist/esm/operations/scheduledEvent.js.map +1 -1
  88. package/dist/esm/operations/updates.js +19 -53
  89. package/dist/esm/operations/updates.js.map +1 -1
  90. package/dist/esm/pagingHelper.js +2 -4
  91. package/dist/esm/pagingHelper.js.map +1 -1
  92. package/dist/react-native/maintenanceManagementClient.js +25 -5
  93. package/dist/react-native/maintenanceManagementClient.js.map +1 -1
  94. package/dist/react-native/models/mappers.js +47 -22
  95. package/dist/react-native/models/mappers.js.map +1 -1
  96. package/dist/react-native/operations/applyUpdateForResourceGroup.js +10 -27
  97. package/dist/react-native/operations/applyUpdateForResourceGroup.js.map +1 -1
  98. package/dist/react-native/operations/applyUpdates.js +10 -27
  99. package/dist/react-native/operations/applyUpdates.js.map +1 -1
  100. package/dist/react-native/operations/configurationAssignments.js +19 -53
  101. package/dist/react-native/operations/configurationAssignments.js.map +1 -1
  102. package/dist/react-native/operations/configurationAssignmentsForResourceGroup.js +1 -0
  103. package/dist/react-native/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
  104. package/dist/react-native/operations/configurationAssignmentsForSubscriptions.js +1 -0
  105. package/dist/react-native/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
  106. package/dist/react-native/operations/configurationAssignmentsWithinSubscription.js +10 -27
  107. package/dist/react-native/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
  108. package/dist/react-native/operations/maintenanceConfigurations.js +10 -27
  109. package/dist/react-native/operations/maintenanceConfigurations.js.map +1 -1
  110. package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.js +10 -27
  111. package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -1
  112. package/dist/react-native/operations/operations.js +10 -27
  113. package/dist/react-native/operations/operations.js.map +1 -1
  114. package/dist/react-native/operations/publicMaintenanceConfigurations.js +10 -27
  115. package/dist/react-native/operations/publicMaintenanceConfigurations.js.map +1 -1
  116. package/dist/react-native/operations/scheduledEvent.js +1 -0
  117. package/dist/react-native/operations/scheduledEvent.js.map +1 -1
  118. package/dist/react-native/operations/updates.js +19 -53
  119. package/dist/react-native/operations/updates.js.map +1 -1
  120. package/dist/react-native/pagingHelper.js +2 -4
  121. package/dist/react-native/pagingHelper.js.map +1 -1
  122. package/package.json +2 -2
  123. /package/review/{arm-maintenance.api.md → arm-maintenance-node.api.md} +0 -0
@@ -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,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U,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"]}
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;;;;;;;;;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AC;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;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"]}
@@ -13,6 +13,9 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
13
  const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
14
  const index_js_1 = require("./operations/index.js");
15
15
  class MaintenanceManagementClient extends coreClient.ServiceClient {
16
+ $host;
17
+ subscriptionId;
18
+ apiVersion;
16
19
  /**
17
20
  * Initializes a new instance of the MaintenanceManagementClient class.
18
21
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -20,7 +23,6 @@ class MaintenanceManagementClient extends coreClient.ServiceClient {
20
23
  * @param options The parameter options
21
24
  */
22
25
  constructor(credentials, subscriptionId, options) {
23
- var _a, _b, _c;
24
26
  if (credentials === undefined) {
25
27
  throw new Error("'credentials' cannot be null");
26
28
  }
@@ -39,12 +41,17 @@ class MaintenanceManagementClient extends coreClient.ServiceClient {
39
41
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
40
42
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
41
43
  : `${packageDetails}`;
42
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
44
+ const optionsWithDefaults = {
45
+ ...defaults,
46
+ ...options,
47
+ userAgentOptions: {
43
48
  userAgentPrefix,
44
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
49
+ },
50
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
51
+ };
45
52
  super(optionsWithDefaults);
46
53
  let bearerTokenAuthenticationPolicyFound = false;
47
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
54
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
48
55
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
56
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
50
57
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -58,7 +65,8 @@ class MaintenanceManagementClient extends coreClient.ServiceClient {
58
65
  });
59
66
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
60
67
  credential: credentials,
61
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
68
+ scopes: optionsWithDefaults.credentialScopes ??
69
+ `${optionsWithDefaults.endpoint}/.default`,
62
70
  challengeCallbacks: {
63
71
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
64
72
  },
@@ -113,6 +121,18 @@ class MaintenanceManagementClient extends coreClient.ServiceClient {
113
121
  };
114
122
  this.pipeline.addPolicy(apiVersionPolicy);
115
123
  }
124
+ scheduledEvent;
125
+ publicMaintenanceConfigurations;
126
+ applyUpdates;
127
+ configurationAssignments;
128
+ maintenanceConfigurations;
129
+ maintenanceConfigurationsForResourceGroup;
130
+ applyUpdateForResourceGroup;
131
+ configurationAssignmentsWithinSubscription;
132
+ configurationAssignmentsForSubscriptions;
133
+ configurationAssignmentsForResourceGroup;
134
+ operations;
135
+ updates;
116
136
  }
117
137
  exports.MaintenanceManagementClient = MaintenanceManagementClient;
118
138
  //# sourceMappingURL=maintenanceManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"maintenanceManagementClient.js","sourceRoot":"","sources":["../../src/maintenanceManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAa+B;AAiB/B,MAAa,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IAKvE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAmD;;QAEnD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA8C;YAC1D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,uCAAuC,CAAC;QAC/D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAg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G,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAcF;AArJD,kEAqJC","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ScheduledEventImpl,\n PublicMaintenanceConfigurationsImpl,\n ApplyUpdatesImpl,\n ConfigurationAssignmentsImpl,\n MaintenanceConfigurationsImpl,\n MaintenanceConfigurationsForResourceGroupImpl,\n ApplyUpdateForResourceGroupImpl,\n ConfigurationAssignmentsWithinSubscriptionImpl,\n ConfigurationAssignmentsForSubscriptionsImpl,\n ConfigurationAssignmentsForResourceGroupImpl,\n OperationsImpl,\n UpdatesImpl,\n} from \"./operations/index.js\";\nimport {\n ScheduledEvent,\n PublicMaintenanceConfigurations,\n ApplyUpdates,\n ConfigurationAssignments,\n MaintenanceConfigurations,\n MaintenanceConfigurationsForResourceGroup,\n ApplyUpdateForResourceGroup,\n ConfigurationAssignmentsWithinSubscription,\n ConfigurationAssignmentsForSubscriptions,\n ConfigurationAssignmentsForResourceGroup,\n Operations,\n Updates,\n} from \"./operationsInterfaces/index.js\";\nimport { MaintenanceManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class MaintenanceManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the MaintenanceManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MaintenanceManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MaintenanceManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-maintenance/1.0.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-10-01-preview\";\n this.scheduledEvent = new ScheduledEventImpl(this);\n this.publicMaintenanceConfigurations =\n new PublicMaintenanceConfigurationsImpl(this);\n this.applyUpdates = new ApplyUpdatesImpl(this);\n this.configurationAssignments = new ConfigurationAssignmentsImpl(this);\n this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);\n this.maintenanceConfigurationsForResourceGroup =\n new MaintenanceConfigurationsForResourceGroupImpl(this);\n this.applyUpdateForResourceGroup = new ApplyUpdateForResourceGroupImpl(\n this,\n );\n this.configurationAssignmentsWithinSubscription =\n new ConfigurationAssignmentsWithinSubscriptionImpl(this);\n this.configurationAssignmentsForSubscriptions =\n new ConfigurationAssignmentsForSubscriptionsImpl(this);\n this.configurationAssignmentsForResourceGroup =\n new ConfigurationAssignmentsForResourceGroupImpl(this);\n this.operations = new OperationsImpl(this);\n this.updates = new UpdatesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n scheduledEvent: ScheduledEvent;\n publicMaintenanceConfigurations: PublicMaintenanceConfigurations;\n applyUpdates: ApplyUpdates;\n configurationAssignments: ConfigurationAssignments;\n maintenanceConfigurations: MaintenanceConfigurations;\n maintenanceConfigurationsForResourceGroup: MaintenanceConfigurationsForResourceGroup;\n applyUpdateForResourceGroup: ApplyUpdateForResourceGroup;\n configurationAssignmentsWithinSubscription: ConfigurationAssignmentsWithinSubscription;\n configurationAssignmentsForSubscriptions: ConfigurationAssignmentsForSubscriptions;\n configurationAssignmentsForResourceGroup: ConfigurationAssignmentsForResourceGroup;\n operations: Operations;\n updates: Updates;\n}\n"]}
1
+ {"version":3,"file":"maintenanceManagementClient.js","sourceRoot":"","sources":["../../src/maintenanceManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAa+B;AAiB/B,MAAa,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IACvE,KAAK,CAAS;IACd,cAAc,CAAS;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C,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,cAAc,CAAiB;IAC/B,+BAA+B,CAAkC;IACjE,YAAY,CAAe;IAC3B,wBAAwB,CAA2B;IACnD,yBAAyB,CAA4B;IACrD,yCAAyC,CAA4C;IACrF,2BAA2B,CAA8B;IACzD,0CAA0C,CAA6C;IACvF,wCAAwC,CAA2C;IACnF,wCAAwC,CAA2C;IACnF,UAAU,CAAa;IACvB,OAAO,CAAU;CAClB;AArJD,kEAqJC","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ScheduledEventImpl,\n PublicMaintenanceConfigurationsImpl,\n ApplyUpdatesImpl,\n ConfigurationAssignmentsImpl,\n MaintenanceConfigurationsImpl,\n MaintenanceConfigurationsForResourceGroupImpl,\n ApplyUpdateForResourceGroupImpl,\n ConfigurationAssignmentsWithinSubscriptionImpl,\n ConfigurationAssignmentsForSubscriptionsImpl,\n ConfigurationAssignmentsForResourceGroupImpl,\n OperationsImpl,\n UpdatesImpl,\n} from \"./operations/index.js\";\nimport {\n ScheduledEvent,\n PublicMaintenanceConfigurations,\n ApplyUpdates,\n ConfigurationAssignments,\n MaintenanceConfigurations,\n MaintenanceConfigurationsForResourceGroup,\n ApplyUpdateForResourceGroup,\n ConfigurationAssignmentsWithinSubscription,\n ConfigurationAssignmentsForSubscriptions,\n ConfigurationAssignmentsForResourceGroup,\n Operations,\n Updates,\n} from \"./operationsInterfaces/index.js\";\nimport { MaintenanceManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class MaintenanceManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the MaintenanceManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MaintenanceManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MaintenanceManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-maintenance/1.0.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-10-01-preview\";\n this.scheduledEvent = new ScheduledEventImpl(this);\n this.publicMaintenanceConfigurations =\n new PublicMaintenanceConfigurationsImpl(this);\n this.applyUpdates = new ApplyUpdatesImpl(this);\n this.configurationAssignments = new ConfigurationAssignmentsImpl(this);\n this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);\n this.maintenanceConfigurationsForResourceGroup =\n new MaintenanceConfigurationsForResourceGroupImpl(this);\n this.applyUpdateForResourceGroup = new ApplyUpdateForResourceGroupImpl(\n this,\n );\n this.configurationAssignmentsWithinSubscription =\n new ConfigurationAssignmentsWithinSubscriptionImpl(this);\n this.configurationAssignmentsForSubscriptions =\n new ConfigurationAssignmentsForSubscriptionsImpl(this);\n this.configurationAssignmentsForResourceGroup =\n new ConfigurationAssignmentsForResourceGroupImpl(this);\n this.operations = new OperationsImpl(this);\n this.updates = new UpdatesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n scheduledEvent: ScheduledEvent;\n publicMaintenanceConfigurations: PublicMaintenanceConfigurations;\n applyUpdates: ApplyUpdates;\n configurationAssignments: ConfigurationAssignments;\n maintenanceConfigurations: MaintenanceConfigurations;\n maintenanceConfigurationsForResourceGroup: MaintenanceConfigurationsForResourceGroup;\n applyUpdateForResourceGroup: ApplyUpdateForResourceGroup;\n configurationAssignmentsWithinSubscription: ConfigurationAssignmentsWithinSubscription;\n configurationAssignmentsForSubscriptions: ConfigurationAssignmentsForSubscriptions;\n configurationAssignmentsForResourceGroup: ConfigurationAssignmentsForResourceGroup;\n operations: Operations;\n updates: Updates;\n}\n"]}
@@ -557,120 +557,145 @@ exports.MaintenanceConfiguration = {
557
557
  type: {
558
558
  name: "Composite",
559
559
  className: "MaintenanceConfiguration",
560
- modelProperties: Object.assign(Object.assign({}, exports.Resource.type.modelProperties), { location: {
560
+ modelProperties: {
561
+ ...exports.Resource.type.modelProperties,
562
+ location: {
561
563
  serializedName: "location",
562
564
  type: {
563
565
  name: "String",
564
566
  },
565
- }, tags: {
567
+ },
568
+ tags: {
566
569
  serializedName: "tags",
567
570
  type: {
568
571
  name: "Dictionary",
569
572
  value: { type: { name: "String" } },
570
573
  },
571
- }, namespace: {
574
+ },
575
+ namespace: {
572
576
  serializedName: "properties.namespace",
573
577
  type: {
574
578
  name: "String",
575
579
  },
576
- }, extensionProperties: {
580
+ },
581
+ extensionProperties: {
577
582
  serializedName: "properties.extensionProperties",
578
583
  type: {
579
584
  name: "Dictionary",
580
585
  value: { type: { name: "String" } },
581
586
  },
582
- }, maintenanceScope: {
587
+ },
588
+ maintenanceScope: {
583
589
  serializedName: "properties.maintenanceScope",
584
590
  type: {
585
591
  name: "String",
586
592
  },
587
- }, visibility: {
593
+ },
594
+ visibility: {
588
595
  serializedName: "properties.visibility",
589
596
  type: {
590
597
  name: "String",
591
598
  },
592
- }, installPatches: {
599
+ },
600
+ installPatches: {
593
601
  serializedName: "properties.installPatches",
594
602
  type: {
595
603
  name: "Composite",
596
604
  className: "InputPatchConfiguration",
597
605
  },
598
- }, startDateTime: {
606
+ },
607
+ startDateTime: {
599
608
  serializedName: "properties.maintenanceWindow.startDateTime",
600
609
  type: {
601
610
  name: "String",
602
611
  },
603
- }, expirationDateTime: {
612
+ },
613
+ expirationDateTime: {
604
614
  serializedName: "properties.maintenanceWindow.expirationDateTime",
605
615
  type: {
606
616
  name: "String",
607
617
  },
608
- }, duration: {
618
+ },
619
+ duration: {
609
620
  serializedName: "properties.maintenanceWindow.duration",
610
621
  type: {
611
622
  name: "String",
612
623
  },
613
- }, timeZone: {
624
+ },
625
+ timeZone: {
614
626
  serializedName: "properties.maintenanceWindow.timeZone",
615
627
  type: {
616
628
  name: "String",
617
629
  },
618
- }, recurEvery: {
630
+ },
631
+ recurEvery: {
619
632
  serializedName: "properties.maintenanceWindow.recurEvery",
620
633
  type: {
621
634
  name: "String",
622
635
  },
623
- } }),
636
+ },
637
+ },
624
638
  },
625
639
  };
626
640
  exports.ApplyUpdate = {
627
641
  type: {
628
642
  name: "Composite",
629
643
  className: "ApplyUpdate",
630
- modelProperties: Object.assign(Object.assign({}, exports.Resource.type.modelProperties), { status: {
644
+ modelProperties: {
645
+ ...exports.Resource.type.modelProperties,
646
+ status: {
631
647
  serializedName: "properties.status",
632
648
  type: {
633
649
  name: "String",
634
650
  },
635
- }, resourceId: {
651
+ },
652
+ resourceId: {
636
653
  serializedName: "properties.resourceId",
637
654
  type: {
638
655
  name: "String",
639
656
  },
640
- }, lastUpdateTime: {
657
+ },
658
+ lastUpdateTime: {
641
659
  serializedName: "properties.lastUpdateTime",
642
660
  type: {
643
661
  name: "DateTime",
644
662
  },
645
- } }),
663
+ },
664
+ },
646
665
  },
647
666
  };
648
667
  exports.ConfigurationAssignment = {
649
668
  type: {
650
669
  name: "Composite",
651
670
  className: "ConfigurationAssignment",
652
- modelProperties: Object.assign(Object.assign({}, exports.Resource.type.modelProperties), { location: {
671
+ modelProperties: {
672
+ ...exports.Resource.type.modelProperties,
673
+ location: {
653
674
  serializedName: "location",
654
675
  type: {
655
676
  name: "String",
656
677
  },
657
- }, maintenanceConfigurationId: {
678
+ },
679
+ maintenanceConfigurationId: {
658
680
  serializedName: "properties.maintenanceConfigurationId",
659
681
  type: {
660
682
  name: "String",
661
683
  },
662
- }, resourceId: {
684
+ },
685
+ resourceId: {
663
686
  serializedName: "properties.resourceId",
664
687
  type: {
665
688
  name: "String",
666
689
  },
667
- }, filter: {
690
+ },
691
+ filter: {
668
692
  serializedName: "properties.filter",
669
693
  type: {
670
694
  name: "Composite",
671
695
  className: "ConfigurationAssignmentFilterProperties",
672
696
  },
673
- } }),
697
+ },
698
+ },
674
699
  },
675
700
  };
676
701
  //# sourceMappingURL=mappers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,6BAA6B,GAA+B;IACvE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,+BAA+B;QAC1C,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,cAAc;iBAC1B;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA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uCAAuC;gBACvD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,UAAU,EAAE;gBACV,cAAc,EAAE,uBAAuB;gBACvC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,MAAM,EAAE;gBACN,cAAc,EAAE,mBAAmB;gBACnC,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,yCAAyC;iBACrD;aACF,GACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const ScheduledEventApproveResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ScheduledEventApproveResponse\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const MaintenanceError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MaintenanceError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetails\",\n },\n },\n },\n },\n};\n\nexport const ErrorDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetails\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ListMaintenanceConfigurationsResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ListMaintenanceConfigurationsResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MaintenanceConfiguration\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const InputPatchConfiguration: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InputPatchConfiguration\",\n modelProperties: {\n rebootSetting: {\n defaultValue: \"IfRequired\",\n serializedName: \"rebootSetting\",\n type: {\n name: \"String\",\n },\n },\n windowsParameters: {\n serializedName: \"windowsParameters\",\n type: {\n name: \"Composite\",\n className: \"InputWindowsParameters\",\n },\n },\n linuxParameters: {\n serializedName: \"linuxParameters\",\n type: {\n name: \"Composite\",\n className: \"InputLinuxParameters\",\n },\n },\n },\n },\n};\n\nexport const InputWindowsParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InputWindowsParameters\",\n modelProperties: {\n kbNumbersToExclude: {\n serializedName: \"kbNumbersToExclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n kbNumbersToInclude: {\n serializedName: \"kbNumbersToInclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n classificationsToInclude: {\n serializedName: \"classificationsToInclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n excludeKbsRequiringReboot: {\n serializedName: \"excludeKbsRequiringReboot\",\n type: {\n name: \"Boolean\",\n },\n },\n },\n },\n};\n\nexport const InputLinuxParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InputLinuxParameters\",\n modelProperties: {\n packageNameMasksToExclude: {\n serializedName: \"packageNameMasksToExclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n packageNameMasksToInclude: {\n serializedName: \"packageNameMasksToInclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n classificationsToInclude: {\n serializedName: \"classificationsToInclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n },\n },\n },\n },\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\",\n },\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\",\n },\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\",\n },\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ConfigurationAssignmentFilterProperties: coreClient.CompositeMapper =\n {\n type: {\n name: \"Composite\",\n className: \"ConfigurationAssignmentFilterProperties\",\n modelProperties: {\n resourceTypes: {\n serializedName: \"resourceTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n resourceGroups: {\n serializedName: \"resourceGroups\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n osTypes: {\n serializedName: \"osTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n locations: {\n serializedName: \"locations\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n tagSettings: {\n serializedName: \"tagSettings\",\n type: {\n name: \"Composite\",\n className: \"TagSettingsProperties\",\n },\n },\n },\n },\n };\n\nexport const TagSettingsProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TagSettingsProperties\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Sequence\", element: { type: { name: \"String\" } } },\n },\n },\n },\n filterOperator: {\n serializedName: \"filterOperator\",\n type: {\n name: \"Enum\",\n allowedValues: [\"All\", \"Any\"],\n },\n },\n },\n },\n};\n\nexport const ListConfigurationAssignmentsResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ListConfigurationAssignmentsResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ConfigurationAssignment\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ListApplyUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ListApplyUpdate\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplyUpdate\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const OperationsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationInfo\",\n },\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\",\n },\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } },\n },\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"Boolean\",\n },\n },\n },\n },\n};\n\nexport const OperationInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationInfo\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\",\n },\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ListUpdatesResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ListUpdatesResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Update\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const Update: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Update\",\n modelProperties: {\n maintenanceScope: {\n serializedName: \"maintenanceScope\",\n type: {\n name: \"String\",\n },\n },\n impactType: {\n serializedName: \"impactType\",\n type: {\n name: \"String\",\n },\n },\n status: {\n serializedName: \"status\",\n type: {\n name: \"String\",\n },\n },\n impactDurationInSec: {\n serializedName: \"impactDurationInSec\",\n type: {\n name: \"Number\",\n },\n },\n notBefore: {\n serializedName: \"notBefore\",\n type: {\n name: \"DateTime\",\n },\n },\n resourceId: {\n serializedName: \"properties.resourceId\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const MaintenanceConfiguration: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MaintenanceConfiguration\",\n modelProperties: {\n ...Resource.type.modelProperties,\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n namespace: {\n serializedName: \"properties.namespace\",\n type: {\n name: \"String\",\n },\n },\n extensionProperties: {\n serializedName: \"properties.extensionProperties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n maintenanceScope: {\n serializedName: \"properties.maintenanceScope\",\n type: {\n name: \"String\",\n },\n },\n visibility: {\n serializedName: \"properties.visibility\",\n type: {\n name: \"String\",\n },\n },\n installPatches: {\n serializedName: \"properties.installPatches\",\n type: {\n name: \"Composite\",\n className: \"InputPatchConfiguration\",\n },\n },\n startDateTime: {\n serializedName: \"properties.maintenanceWindow.startDateTime\",\n type: {\n name: \"String\",\n },\n },\n expirationDateTime: {\n serializedName: \"properties.maintenanceWindow.expirationDateTime\",\n type: {\n name: \"String\",\n },\n },\n duration: {\n serializedName: \"properties.maintenanceWindow.duration\",\n type: {\n name: \"String\",\n },\n },\n timeZone: {\n serializedName: \"properties.maintenanceWindow.timeZone\",\n type: {\n name: \"String\",\n },\n },\n recurEvery: {\n serializedName: \"properties.maintenanceWindow.recurEvery\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ApplyUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplyUpdate\",\n modelProperties: {\n ...Resource.type.modelProperties,\n status: {\n serializedName: \"properties.status\",\n type: {\n name: \"String\",\n },\n },\n resourceId: {\n serializedName: \"properties.resourceId\",\n type: {\n name: \"String\",\n },\n },\n lastUpdateTime: {\n serializedName: \"properties.lastUpdateTime\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ConfigurationAssignment: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigurationAssignment\",\n modelProperties: {\n ...Resource.type.modelProperties,\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n maintenanceConfigurationId: {\n serializedName: \"properties.maintenanceConfigurationId\",\n type: {\n name: \"String\",\n },\n },\n resourceId: {\n serializedName: \"properties.resourceId\",\n type: {\n name: \"String\",\n },\n },\n filter: {\n serializedName: \"properties.filter\",\n type: {\n name: \"Composite\",\n className: \"ConfigurationAssignmentFilterProperties\",\n },\n },\n },\n },\n};\n"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,6BAA6B,GAA+B;IACvE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,+BAA+B;QAC1C,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,cAAc;iBAC1B;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,YAAY,GAA+B;IACtD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,cAAc;QACzB,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,mCAAmC,GAA+B;IAC7E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qCAAqC;QAChD,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,0BAA0B;yBACtC;qBACF;iBACF;aACF;SACF;KAC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eAAe;YAChC,MAAM,EAAE;gBACN,cAAc,EAAE,mBAAmB;gBACnC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,uBAAuB;gBACvC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,cAAc,EAAE;gBACd,cAAc,EAAE,2BAA2B;gBAC3C,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,uBAAuB,GAA+B;IACjE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,yBAAyB;QACpC,eAAe,EAAE;YACf,GAAG,gBAAQ,CAAC,IAAI,CAAC,eAAe;YAChC,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,0BAA0B,EAAE;gBAC1B,cAAc,EAAE,uCAAuC;gBACvD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,uBAAuB;gBACvC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,mBAAmB;gBACnC,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,yCAAyC;iBACrD;aACF;SACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const ScheduledEventApproveResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ScheduledEventApproveResponse\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const MaintenanceError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MaintenanceError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetails\",\n },\n },\n },\n },\n};\n\nexport const ErrorDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetails\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ListMaintenanceConfigurationsResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ListMaintenanceConfigurationsResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MaintenanceConfiguration\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const InputPatchConfiguration: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InputPatchConfiguration\",\n modelProperties: {\n rebootSetting: {\n defaultValue: \"IfRequired\",\n serializedName: \"rebootSetting\",\n type: {\n name: \"String\",\n },\n },\n windowsParameters: {\n serializedName: \"windowsParameters\",\n type: {\n name: \"Composite\",\n className: \"InputWindowsParameters\",\n },\n },\n linuxParameters: {\n serializedName: \"linuxParameters\",\n type: {\n name: \"Composite\",\n className: \"InputLinuxParameters\",\n },\n },\n },\n },\n};\n\nexport const InputWindowsParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InputWindowsParameters\",\n modelProperties: {\n kbNumbersToExclude: {\n serializedName: \"kbNumbersToExclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n kbNumbersToInclude: {\n serializedName: \"kbNumbersToInclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n classificationsToInclude: {\n serializedName: \"classificationsToInclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n excludeKbsRequiringReboot: {\n serializedName: \"excludeKbsRequiringReboot\",\n type: {\n name: \"Boolean\",\n },\n },\n },\n },\n};\n\nexport const InputLinuxParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InputLinuxParameters\",\n modelProperties: {\n packageNameMasksToExclude: {\n serializedName: \"packageNameMasksToExclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n packageNameMasksToInclude: {\n serializedName: \"packageNameMasksToInclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n classificationsToInclude: {\n serializedName: \"classificationsToInclude\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n },\n },\n },\n },\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\",\n },\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\",\n },\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\",\n },\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ConfigurationAssignmentFilterProperties: coreClient.CompositeMapper =\n {\n type: {\n name: \"Composite\",\n className: \"ConfigurationAssignmentFilterProperties\",\n modelProperties: {\n resourceTypes: {\n serializedName: \"resourceTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n resourceGroups: {\n serializedName: \"resourceGroups\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n osTypes: {\n serializedName: \"osTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n locations: {\n serializedName: \"locations\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n tagSettings: {\n serializedName: \"tagSettings\",\n type: {\n name: \"Composite\",\n className: \"TagSettingsProperties\",\n },\n },\n },\n },\n };\n\nexport const TagSettingsProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TagSettingsProperties\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Sequence\", element: { type: { name: \"String\" } } },\n },\n },\n },\n filterOperator: {\n serializedName: \"filterOperator\",\n type: {\n name: \"Enum\",\n allowedValues: [\"All\", \"Any\"],\n },\n },\n },\n },\n};\n\nexport const ListConfigurationAssignmentsResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ListConfigurationAssignmentsResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ConfigurationAssignment\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ListApplyUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ListApplyUpdate\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplyUpdate\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const OperationsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationInfo\",\n },\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\",\n },\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } },\n },\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"Boolean\",\n },\n },\n },\n },\n};\n\nexport const OperationInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationInfo\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\",\n },\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ListUpdatesResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ListUpdatesResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Update\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const Update: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Update\",\n modelProperties: {\n maintenanceScope: {\n serializedName: \"maintenanceScope\",\n type: {\n name: \"String\",\n },\n },\n impactType: {\n serializedName: \"impactType\",\n type: {\n name: \"String\",\n },\n },\n status: {\n serializedName: \"status\",\n type: {\n name: \"String\",\n },\n },\n impactDurationInSec: {\n serializedName: \"impactDurationInSec\",\n type: {\n name: \"Number\",\n },\n },\n notBefore: {\n serializedName: \"notBefore\",\n type: {\n name: \"DateTime\",\n },\n },\n resourceId: {\n serializedName: \"properties.resourceId\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const MaintenanceConfiguration: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MaintenanceConfiguration\",\n modelProperties: {\n ...Resource.type.modelProperties,\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n namespace: {\n serializedName: \"properties.namespace\",\n type: {\n name: \"String\",\n },\n },\n extensionProperties: {\n serializedName: \"properties.extensionProperties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n maintenanceScope: {\n serializedName: \"properties.maintenanceScope\",\n type: {\n name: \"String\",\n },\n },\n visibility: {\n serializedName: \"properties.visibility\",\n type: {\n name: \"String\",\n },\n },\n installPatches: {\n serializedName: \"properties.installPatches\",\n type: {\n name: \"Composite\",\n className: \"InputPatchConfiguration\",\n },\n },\n startDateTime: {\n serializedName: \"properties.maintenanceWindow.startDateTime\",\n type: {\n name: \"String\",\n },\n },\n expirationDateTime: {\n serializedName: \"properties.maintenanceWindow.expirationDateTime\",\n type: {\n name: \"String\",\n },\n },\n duration: {\n serializedName: \"properties.maintenanceWindow.duration\",\n type: {\n name: \"String\",\n },\n },\n timeZone: {\n serializedName: \"properties.maintenanceWindow.timeZone\",\n type: {\n name: \"String\",\n },\n },\n recurEvery: {\n serializedName: \"properties.maintenanceWindow.recurEvery\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ApplyUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplyUpdate\",\n modelProperties: {\n ...Resource.type.modelProperties,\n status: {\n serializedName: \"properties.status\",\n type: {\n name: \"String\",\n },\n },\n resourceId: {\n serializedName: \"properties.resourceId\",\n type: {\n name: \"String\",\n },\n },\n lastUpdateTime: {\n serializedName: \"properties.lastUpdateTime\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ConfigurationAssignment: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigurationAssignment\",\n modelProperties: {\n ...Resource.type.modelProperties,\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n maintenanceConfigurationId: {\n serializedName: \"properties.maintenanceConfigurationId\",\n type: {\n name: \"String\",\n },\n },\n resourceId: {\n serializedName: \"properties.resourceId\",\n type: {\n name: \"String\",\n },\n },\n filter: {\n serializedName: \"properties.filter\",\n type: {\n name: \"Composite\",\n className: \"ConfigurationAssignmentFilterProperties\",\n },\n },\n },\n },\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 ApplyUpdateForResourceGroup operations. */
17
17
  class ApplyUpdateForResourceGroupImpl {
18
+ client;
18
19
  /**
19
20
  * Initialize a new instance of the class ApplyUpdateForResourceGroup class.
20
21
  * @param client Reference to the service client
@@ -37,39 +38,22 @@ class ApplyUpdateForResourceGroupImpl {
37
38
  return this;
38
39
  },
39
40
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
41
42
  throw new Error("maxPageSize is not supported by this operation.");
42
43
  }
43
44
  return this.listPagingPage(resourceGroupName, options, settings);
44
45
  },
45
46
  };
46
47
  }
47
- listPagingPage(resourceGroupName, options, _settings) {
48
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- result = yield tslib_1.__await(this._list(resourceGroupName, options));
51
- yield yield tslib_1.__await(result.value || []);
52
- });
48
+ async *listPagingPage(resourceGroupName, options, _settings) {
49
+ let result;
50
+ result = await this._list(resourceGroupName, options);
51
+ yield result.value || [];
53
52
  }
54
- listPagingAll(resourceGroupName, options) {
55
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
56
- var _a, e_1, _b, _c;
57
- try {
58
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
59
- _c = _f.value;
60
- _d = false;
61
- const page = _c;
62
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
63
- }
64
- }
65
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
- finally {
67
- try {
68
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
69
- }
70
- finally { if (e_1) throw e_1.error; }
71
- }
72
- });
53
+ async *listPagingAll(resourceGroupName, options) {
54
+ for await (const page of this.listPagingPage(resourceGroupName, options)) {
55
+ yield* page;
56
+ }
73
57
  }
74
58
  /**
75
59
  * Get Configuration records within a subscription and resource group
@@ -1 +1 @@
1
- {"version":3,"file":"applyUpdateForResourceGroup.js","sourceRoot":"","sources":["../../../src/operations/applyUpdateForResourceGroup.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAK1C;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,iBAAyB,EACzB,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI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AAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iHAAiH;IACvH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;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,kBAAkB;KAC9B;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 { ApplyUpdateForResourceGroup } 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 ApplyUpdate,\n ApplyUpdateForResourceGroupListOptionalParams,\n ApplyUpdateForResourceGroupListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplyUpdateForResourceGroup operations. */\nexport class ApplyUpdateForResourceGroupImpl\n implements ApplyUpdateForResourceGroup\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class ApplyUpdateForResourceGroup class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Configuration records within a subscription and resource group\n * @param resourceGroupName Resource Group Name\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: ApplyUpdateForResourceGroupListOptionalParams,\n ): PagedAsyncIterableIterator<ApplyUpdate> {\n const iter = this.listPagingAll(resourceGroupName, 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(resourceGroupName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: ApplyUpdateForResourceGroupListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ApplyUpdate[]> {\n let result: ApplyUpdateForResourceGroupListResponse;\n result = await this._list(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n options?: ApplyUpdateForResourceGroupListOptionalParams,\n ): AsyncIterableIterator<ApplyUpdate> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Get Configuration records within a subscription and resource group\n * @param resourceGroupName Resource Group Name\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: ApplyUpdateForResourceGroupListOptionalParams,\n ): Promise<ApplyUpdateForResourceGroupListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/applyUpdates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplyUpdate,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"applyUpdateForResourceGroup.js","sourceRoot":"","sources":["../../../src/operations/applyUpdateForResourceGroup.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAGzB,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,iBAAyB,EACzB,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5D,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,iBAAiB,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACnE,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,OAAuD,EACvD,SAAwB;QAExB,IAAI,MAA+C,CAAC;QACpD,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACtD,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,CAAC,aAAa,CAC1B,iBAAyB,EACzB,OAAuD;QAEvD,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,CAAC,EAAE,CAAC;YACzE,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,KAAK,CACX,iBAAyB,EACzB,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAC9B,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AAxED,0EAwEC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iHAAiH;IACvH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;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,kBAAkB;KAC9B;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 { ApplyUpdateForResourceGroup } 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 ApplyUpdate,\n ApplyUpdateForResourceGroupListOptionalParams,\n ApplyUpdateForResourceGroupListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplyUpdateForResourceGroup operations. */\nexport class ApplyUpdateForResourceGroupImpl\n implements ApplyUpdateForResourceGroup\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class ApplyUpdateForResourceGroup class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Configuration records within a subscription and resource group\n * @param resourceGroupName Resource Group Name\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: ApplyUpdateForResourceGroupListOptionalParams,\n ): PagedAsyncIterableIterator<ApplyUpdate> {\n const iter = this.listPagingAll(resourceGroupName, 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(resourceGroupName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: ApplyUpdateForResourceGroupListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ApplyUpdate[]> {\n let result: ApplyUpdateForResourceGroupListResponse;\n result = await this._list(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n options?: ApplyUpdateForResourceGroupListOptionalParams,\n ): AsyncIterableIterator<ApplyUpdate> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Get Configuration records within a subscription and resource group\n * @param resourceGroupName Resource Group Name\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: ApplyUpdateForResourceGroupListOptionalParams,\n ): Promise<ApplyUpdateForResourceGroupListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/applyUpdates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplyUpdate,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}