@azure/arm-resourcegraph 5.0.0-beta.3 → 5.0.0-beta.4

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 (215) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/LICENSE +4 -4
  3. package/README.md +26 -17
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +4 -4
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/models/index.d.ts +9 -9
  9. package/dist/browser/models/index.d.ts.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/models/mappers.js +14 -6
  12. package/dist/browser/models/mappers.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  14. package/dist/browser/models/parameters.js.map +1 -0
  15. package/dist/browser/operations/index.d.ts +2 -0
  16. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  17. package/{dist-esm/src → dist/browser}/operations/index.js +1 -1
  18. package/dist/browser/operations/index.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  20. package/dist/browser/operations/operations.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/operations.js +12 -27
  22. package/dist/browser/operations/operations.js.map +1 -0
  23. package/dist/browser/operationsInterfaces/index.d.ts +2 -0
  24. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  25. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +1 -1
  26. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  28. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  29. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  30. package/dist/browser/package.json +3 -0
  31. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  32. package/dist/browser/pagingHelper.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/resourceGraphClient.d.ts +2 -2
  34. package/dist/browser/resourceGraphClient.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/resourceGraphClient.js +31 -26
  36. package/dist/browser/resourceGraphClient.js.map +1 -0
  37. package/dist/commonjs/index.d.ts +5 -0
  38. package/dist/commonjs/index.d.ts.map +1 -0
  39. package/dist/commonjs/index.js +19 -0
  40. package/dist/commonjs/index.js.map +1 -0
  41. package/{types/arm-resourcegraph.d.ts → dist/commonjs/models/index.d.ts} +216 -295
  42. package/dist/commonjs/models/index.d.ts.map +1 -0
  43. package/dist/commonjs/models/index.js +10 -0
  44. package/dist/commonjs/models/index.js.map +1 -0
  45. package/dist/commonjs/models/mappers.d.ts +26 -0
  46. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  47. package/dist/commonjs/models/mappers.js +666 -0
  48. package/dist/commonjs/models/mappers.js.map +1 -0
  49. package/dist/commonjs/models/parameters.d.ts +8 -0
  50. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  51. package/dist/commonjs/models/parameters.js +64 -0
  52. package/dist/commonjs/models/parameters.js.map +1 -0
  53. package/dist/commonjs/operations/index.d.ts +2 -0
  54. package/dist/commonjs/operations/index.d.ts.map +1 -0
  55. package/dist/commonjs/operations/index.js +12 -0
  56. package/dist/commonjs/operations/index.js.map +1 -0
  57. package/dist/commonjs/operations/operations.d.ts +26 -0
  58. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  59. package/dist/commonjs/operations/operations.js +84 -0
  60. package/dist/commonjs/operations/operations.js.map +1 -0
  61. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
  62. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  63. package/dist/commonjs/operationsInterfaces/index.js +12 -0
  64. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  65. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  66. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  67. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  68. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  69. package/dist/commonjs/package.json +3 -0
  70. package/dist/commonjs/pagingHelper.d.ts +13 -0
  71. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  72. package/dist/commonjs/pagingHelper.js +34 -0
  73. package/dist/commonjs/pagingHelper.js.map +1 -0
  74. package/dist/commonjs/resourceGraphClient.d.ts +30 -0
  75. package/dist/commonjs/resourceGraphClient.d.ts.map +1 -0
  76. package/dist/commonjs/resourceGraphClient.js +162 -0
  77. package/dist/commonjs/resourceGraphClient.js.map +1 -0
  78. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  79. package/dist/esm/index.d.ts +5 -0
  80. package/dist/esm/index.d.ts.map +1 -0
  81. package/{src/index.ts → dist/esm/index.js} +5 -5
  82. package/dist/esm/index.js.map +1 -0
  83. package/dist/esm/models/index.d.ts +216 -0
  84. package/dist/esm/models/index.d.ts.map +1 -0
  85. package/{src/operations/index.ts → dist/esm/models/index.js} +2 -2
  86. package/dist/esm/models/index.js.map +1 -0
  87. package/dist/esm/models/mappers.d.ts +26 -0
  88. package/dist/esm/models/mappers.d.ts.map +1 -0
  89. package/dist/{index.js → esm/models/mappers.js} +35 -402
  90. package/dist/esm/models/mappers.js.map +1 -0
  91. package/dist/esm/models/parameters.d.ts +8 -0
  92. package/dist/esm/models/parameters.d.ts.map +1 -0
  93. package/dist/esm/models/parameters.js +61 -0
  94. package/dist/esm/models/parameters.js.map +1 -0
  95. package/dist/esm/operations/index.d.ts +2 -0
  96. package/dist/esm/operations/index.d.ts.map +1 -0
  97. package/dist/esm/operations/index.js +9 -0
  98. package/dist/esm/operations/index.js.map +1 -0
  99. package/dist/esm/operations/operations.d.ts +26 -0
  100. package/dist/esm/operations/operations.d.ts.map +1 -0
  101. package/dist/esm/operations/operations.js +79 -0
  102. package/dist/esm/operations/operations.js.map +1 -0
  103. package/dist/esm/operationsInterfaces/index.d.ts +2 -0
  104. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  105. package/dist/esm/operationsInterfaces/index.js +9 -0
  106. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  107. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  108. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  109. package/dist/esm/operationsInterfaces/operations.js +9 -0
  110. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  111. package/dist/esm/package.json +3 -0
  112. package/dist/esm/pagingHelper.d.ts +13 -0
  113. package/dist/esm/pagingHelper.d.ts.map +1 -0
  114. package/dist/esm/pagingHelper.js +30 -0
  115. package/dist/esm/pagingHelper.js.map +1 -0
  116. package/dist/esm/resourceGraphClient.d.ts +30 -0
  117. package/dist/esm/resourceGraphClient.d.ts.map +1 -0
  118. package/dist/esm/resourceGraphClient.js +157 -0
  119. package/dist/esm/resourceGraphClient.js.map +1 -0
  120. package/dist/react-native/index.d.ts +5 -0
  121. package/dist/react-native/index.d.ts.map +1 -0
  122. package/dist/react-native/index.js +13 -0
  123. package/dist/react-native/index.js.map +1 -0
  124. package/dist/react-native/models/index.d.ts +216 -0
  125. package/dist/react-native/models/index.d.ts.map +1 -0
  126. package/{src/operationsInterfaces/index.ts → dist/react-native/models/index.js} +2 -2
  127. package/dist/react-native/models/index.js.map +1 -0
  128. package/dist/react-native/models/mappers.d.ts +26 -0
  129. package/dist/react-native/models/mappers.d.ts.map +1 -0
  130. package/dist/react-native/models/mappers.js +663 -0
  131. package/dist/react-native/models/mappers.js.map +1 -0
  132. package/dist/react-native/models/parameters.d.ts +8 -0
  133. package/dist/react-native/models/parameters.d.ts.map +1 -0
  134. package/dist/react-native/models/parameters.js +61 -0
  135. package/dist/react-native/models/parameters.js.map +1 -0
  136. package/dist/react-native/operations/index.d.ts +2 -0
  137. package/dist/react-native/operations/index.d.ts.map +1 -0
  138. package/dist/react-native/operations/index.js +9 -0
  139. package/dist/react-native/operations/index.js.map +1 -0
  140. package/dist/react-native/operations/operations.d.ts +26 -0
  141. package/dist/react-native/operations/operations.d.ts.map +1 -0
  142. package/dist/react-native/operations/operations.js +79 -0
  143. package/dist/react-native/operations/operations.js.map +1 -0
  144. package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
  145. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  146. package/dist/react-native/operationsInterfaces/index.js +9 -0
  147. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  148. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  149. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  150. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  151. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  152. package/dist/react-native/package.json +3 -0
  153. package/dist/react-native/pagingHelper.d.ts +13 -0
  154. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  155. package/dist/react-native/pagingHelper.js +30 -0
  156. package/dist/react-native/pagingHelper.js.map +1 -0
  157. package/dist/react-native/resourceGraphClient.d.ts +30 -0
  158. package/dist/react-native/resourceGraphClient.d.ts.map +1 -0
  159. package/dist/react-native/resourceGraphClient.js +157 -0
  160. package/dist/react-native/resourceGraphClient.js.map +1 -0
  161. package/package.json +82 -71
  162. package/dist/index.js.map +0 -1
  163. package/dist/index.min.js +0 -1
  164. package/dist/index.min.js.map +0 -1
  165. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  166. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  167. package/dist-esm/samples-dev/operationsListSample.js +0 -42
  168. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  169. package/dist-esm/samples-dev/resourcesHistorySample.d.ts +0 -2
  170. package/dist-esm/samples-dev/resourcesHistorySample.d.ts.map +0 -1
  171. package/dist-esm/samples-dev/resourcesHistorySample.js +0 -63
  172. package/dist-esm/samples-dev/resourcesHistorySample.js.map +0 -1
  173. package/dist-esm/samples-dev/resourcesSample.d.ts +0 -2
  174. package/dist-esm/samples-dev/resourcesSample.d.ts.map +0 -1
  175. package/dist-esm/samples-dev/resourcesSample.js +0 -245
  176. package/dist-esm/samples-dev/resourcesSample.js.map +0 -1
  177. package/dist-esm/src/index.d.ts +0 -6
  178. package/dist-esm/src/index.d.ts.map +0 -1
  179. package/dist-esm/src/index.js.map +0 -1
  180. package/dist-esm/src/models/index.d.ts.map +0 -1
  181. package/dist-esm/src/models/index.js.map +0 -1
  182. package/dist-esm/src/models/mappers.js.map +0 -1
  183. package/dist-esm/src/models/parameters.js.map +0 -1
  184. package/dist-esm/src/operations/index.d.ts +0 -2
  185. package/dist-esm/src/operations/index.js.map +0 -1
  186. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  187. package/dist-esm/src/operations/operations.js.map +0 -1
  188. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
  189. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  190. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  191. package/dist-esm/src/pagingHelper.js.map +0 -1
  192. package/dist-esm/src/resourceGraphClient.d.ts.map +0 -1
  193. package/dist-esm/src/resourceGraphClient.js.map +0 -1
  194. package/dist-esm/test/sampleTest.d.ts +0 -2
  195. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  196. package/dist-esm/test/sampleTest.js +0 -38
  197. package/dist-esm/test/sampleTest.js.map +0 -1
  198. package/rollup.config.js +0 -122
  199. package/src/models/index.ts +0 -261
  200. package/src/models/mappers.ts +0 -684
  201. package/src/models/parameters.ts +0 -75
  202. package/src/operations/operations.ts +0 -103
  203. package/src/operationsInterfaces/operations.ts +0 -22
  204. package/src/pagingHelper.ts +0 -39
  205. package/src/resourceGraphClient.ts +0 -213
  206. package/tsconfig.json +0 -33
  207. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  208. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  209. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  210. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  211. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  212. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  213. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  214. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  215. /package/review/{arm-resourcegraph.api.md → arm-resourcegraph-node.api.md} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,YAAY,GAA+B;IACtD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,cAAc;QACzB,eAAe,EAAE;YACf,aAAa,EAAE;gBACb,cAAc,EAAE,eAAe;gBAC/B,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,gBAAgB,EAAE;gBAChB,cAAc,EAAE,kBAAkB;gBAClC,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,qBAAqB;iBACjC;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,QAAQ;gBACxB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;o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oft 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 QueryRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QueryRequest\",\n modelProperties: {\n subscriptions: {\n serializedName: \"subscriptions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n managementGroups: {\n serializedName: \"managementGroups\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n query: {\n serializedName: \"query\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n options: {\n serializedName: \"options\",\n type: {\n name: \"Composite\",\n className: \"QueryRequestOptions\"\n }\n },\n facets: {\n serializedName: \"facets\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"FacetRequest\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const QueryRequestOptions: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QueryRequestOptions\",\n modelProperties: {\n skipToken: {\n serializedName: \"$skipToken\",\n type: {\n name: \"String\"\n }\n },\n top: {\n constraints: {\n InclusiveMaximum: 1000,\n InclusiveMinimum: 1\n },\n serializedName: \"$top\",\n type: {\n name: \"Number\"\n }\n },\n skip: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"$skip\",\n type: {\n name: \"Number\"\n }\n },\n resultFormat: {\n serializedName: \"resultFormat\",\n type: {\n name: \"Enum\",\n allowedValues: [\"table\", \"objectArray\"]\n }\n },\n allowPartialScopes: {\n defaultValue: false,\n serializedName: \"allowPartialScopes\",\n type: {\n name: \"Boolean\"\n }\n },\n authorizationScopeFilter: {\n defaultValue: \"AtScopeAndBelow\",\n serializedName: \"authorizationScopeFilter\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"AtScopeAndBelow\",\n \"AtScopeAndAbove\",\n \"AtScopeExact\",\n \"AtScopeAboveAndBelow\"\n ]\n }\n }\n }\n }\n};\n\nexport const FacetRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FacetRequest\",\n modelProperties: {\n expression: {\n serializedName: \"expression\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n options: {\n serializedName: \"options\",\n type: {\n name: \"Composite\",\n className: \"FacetRequestOptions\"\n }\n }\n }\n }\n};\n\nexport const FacetRequestOptions: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FacetRequestOptions\",\n modelProperties: {\n sortBy: {\n serializedName: \"sortBy\",\n type: {\n name: \"String\"\n }\n },\n sortOrder: {\n defaultValue: \"desc\",\n serializedName: \"sortOrder\",\n type: {\n name: \"Enum\",\n allowedValues: [\"asc\", \"desc\"]\n }\n },\n filter: {\n serializedName: \"filter\",\n type: {\n name: \"String\"\n }\n },\n top: {\n constraints: {\n InclusiveMaximum: 1000,\n InclusiveMinimum: 1\n },\n serializedName: \"$top\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const QueryResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QueryResponse\",\n modelProperties: {\n totalRecords: {\n serializedName: \"totalRecords\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n count: {\n serializedName: \"count\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n resultTruncated: {\n serializedName: \"resultTruncated\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"true\", \"false\"]\n }\n },\n skipToken: {\n serializedName: \"$skipToken\",\n type: {\n name: \"String\"\n }\n },\n data: {\n serializedName: \"data\",\n required: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n facets: {\n serializedName: \"facets\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Facet\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Facet: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Facet\",\n uberParent: \"Facet\",\n polymorphicDiscriminator: {\n serializedName: \"resultType\",\n clientName: \"resultType\"\n },\n modelProperties: {\n expression: {\n serializedName: \"expression\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n resultType: {\n serializedName: \"resultType\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetails\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetails\",\n additionalProperties: { type: { name: \"Object\" } },\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\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: \"OperationDisplay\"\n }\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\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 ResourcesHistoryRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourcesHistoryRequest\",\n modelProperties: {\n subscriptions: {\n serializedName: \"subscriptions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n query: {\n serializedName: \"query\",\n type: {\n name: \"String\"\n }\n },\n options: {\n serializedName: \"options\",\n type: {\n name: \"Composite\",\n className: \"ResourcesHistoryRequestOptions\"\n }\n },\n managementGroups: {\n serializedName: \"managementGroups\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ResourcesHistoryRequestOptions: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourcesHistoryRequestOptions\",\n modelProperties: {\n interval: {\n serializedName: \"interval\",\n type: {\n name: \"Composite\",\n className: \"DateTimeInterval\"\n }\n },\n top: {\n constraints: {\n InclusiveMaximum: 1000,\n InclusiveMinimum: 1\n },\n serializedName: \"$top\",\n type: {\n name: \"Number\"\n }\n },\n skip: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"$skip\",\n type: {\n name: \"Number\"\n }\n },\n skipToken: {\n serializedName: \"$skipToken\",\n type: {\n name: \"String\"\n }\n },\n resultFormat: {\n serializedName: \"resultFormat\",\n type: {\n name: \"Enum\",\n allowedValues: [\"table\", \"objectArray\"]\n }\n }\n }\n }\n};\n\nexport const DateTimeInterval: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DateTimeInterval\",\n modelProperties: {\n start: {\n serializedName: \"start\",\n required: true,\n type: {\n name: \"DateTime\"\n }\n },\n end: {\n serializedName: \"end\",\n required: true,\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const Table: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Table\",\n modelProperties: {\n columns: {\n serializedName: \"columns\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Column\"\n }\n }\n }\n },\n rows: {\n serializedName: \"rows\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n }\n }\n }\n }\n};\n\nexport const Column: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Column\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"string\",\n \"integer\",\n \"number\",\n \"boolean\",\n \"object\",\n \"datetime\"\n ]\n }\n }\n }\n }\n};\n\nexport const FacetResult: coreClient.CompositeMapper = {\n serializedName: \"FacetResult\",\n type: {\n name: \"Composite\",\n className: \"FacetResult\",\n uberParent: \"Facet\",\n polymorphicDiscriminator: Facet.type.polymorphicDiscriminator,\n modelProperties: {\n ...Facet.type.modelProperties,\n totalRecords: {\n serializedName: \"totalRecords\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n count: {\n serializedName: \"count\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n data: {\n serializedName: \"data\",\n required: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const FacetError: coreClient.CompositeMapper = {\n serializedName: \"FacetError\",\n type: {\n name: \"Composite\",\n className: \"FacetError\",\n uberParent: \"Facet\",\n polymorphicDiscriminator: Facet.type.polymorphicDiscriminator,\n modelProperties: {\n ...Facet.type.modelProperties,\n errors: {\n serializedName: \"errors\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetails\"\n }\n }\n }\n }\n }\n }\n};\n\nexport let discriminators = {\n Facet: Facet,\n \"Facet.FacetResult\": FacetResult,\n \"Facet.FacetError\": FacetError\n};\n"]}
@@ -0,0 +1,8 @@
1
+ import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
2
+ export declare const contentType: OperationParameter;
3
+ export declare const query: OperationParameter;
4
+ export declare const accept: OperationParameter;
5
+ export declare const $host: OperationURLParameter;
6
+ export declare const apiVersion: OperationQueryParameter;
7
+ export declare const request: OperationParameter;
8
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,kBAGrB,CAAC"}
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { QueryRequest as QueryRequestMapper, ResourcesHistoryRequest as ResourcesHistoryRequestMapper } from "../models/mappers.js";
9
+ export const contentType = {
10
+ parameterPath: ["options", "contentType"],
11
+ mapper: {
12
+ defaultValue: "application/json",
13
+ isConstant: true,
14
+ serializedName: "Content-Type",
15
+ type: {
16
+ name: "String"
17
+ }
18
+ }
19
+ };
20
+ export const query = {
21
+ parameterPath: "query",
22
+ mapper: QueryRequestMapper
23
+ };
24
+ export const accept = {
25
+ parameterPath: "accept",
26
+ mapper: {
27
+ defaultValue: "application/json",
28
+ isConstant: true,
29
+ serializedName: "Accept",
30
+ type: {
31
+ name: "String"
32
+ }
33
+ }
34
+ };
35
+ export const $host = {
36
+ parameterPath: "$host",
37
+ mapper: {
38
+ serializedName: "$host",
39
+ required: true,
40
+ type: {
41
+ name: "String"
42
+ }
43
+ },
44
+ skipEncoding: true
45
+ };
46
+ export const apiVersion = {
47
+ parameterPath: "apiVersion",
48
+ mapper: {
49
+ defaultValue: "2021-06-01-preview",
50
+ isConstant: true,
51
+ serializedName: "api-version",
52
+ type: {
53
+ name: "String"
54
+ }
55
+ }
56
+ };
57
+ export const request = {
58
+ parameterPath: "request",
59
+ mapper: ResourcesHistoryRequestMapper
60
+ };
61
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,uBAAuB,IAAI,6BAA6B,EACzD,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAuB;IACvC,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,oBAAoB;QAClC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAuB;IACzC,aAAa,EAAE,SAAS;IACxB,MAAM,EAAE,6BAA6B;CACtC,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n QueryRequest as QueryRequestMapper,\n ResourcesHistoryRequest as ResourcesHistoryRequestMapper\n} from \"../models/mappers.js\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const query: OperationParameter = {\n parameterPath: \"query\",\n mapper: QueryRequestMapper\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-06-01-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const request: OperationParameter = {\n parameterPath: \"request\",\n mapper: ResourcesHistoryRequestMapper\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./operations.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./operations.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,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 * from \"./operations.js\";\n"]}
@@ -0,0 +1,26 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { ResourceGraphClient } from "../resourceGraphClient.js";
4
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: ResourceGraphClient);
13
+ /**
14
+ * Lists all of the available REST API operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists all of the available REST API operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ }
26
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers.js";
10
+ import * as Parameters from "../models/parameters.js";
11
+ /// <reference lib="esnext.asynciterable" />
12
+ /** Class containing Operations operations. */
13
+ export class OperationsImpl {
14
+ client;
15
+ /**
16
+ * Initialize a new instance of the class Operations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists all of the available REST API operations.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: (settings) => {
36
+ if (settings?.maxPageSize) {
37
+ throw new Error("maxPageSize is not supported by this operation.");
38
+ }
39
+ return this.listPagingPage(options, settings);
40
+ }
41
+ };
42
+ }
43
+ async *listPagingPage(options, _settings) {
44
+ let result;
45
+ result = await this._list(options);
46
+ yield result.value || [];
47
+ }
48
+ async *listPagingAll(options) {
49
+ for await (const page of this.listPagingPage(options)) {
50
+ yield* page;
51
+ }
52
+ }
53
+ /**
54
+ * Lists all of the available REST API operations.
55
+ * @param options The options parameters.
56
+ */
57
+ _list(options) {
58
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
59
+ }
60
+ }
61
+ // Operation Specifications
62
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
63
+ const listOperationSpec = {
64
+ path: "/providers/Microsoft.ResourceGraph/operations",
65
+ httpMethod: "GET",
66
+ responses: {
67
+ 200: {
68
+ bodyMapper: Mappers.OperationListResult
69
+ },
70
+ default: {
71
+ bodyMapper: Mappers.ErrorResponse
72
+ }
73
+ },
74
+ queryParameters: [Parameters.apiVersion],
75
+ urlParameters: [Parameters.$host],
76
+ headerParameters: [Parameters.accept],
77
+ serializer
78
+ };
79
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAsC,EACtC,SAAwB;QAExB,IAAI,MAA8B,CAAC;QACnC,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,CAAC,aAAa,CAC1B,OAAsC;QAEtC,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;YACtD,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,+CAA+C;IACrD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ResourceGraphClient } from \"../resourceGraphClient.js\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ResourceGraphClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceGraphClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceGraph/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./operations.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./operations.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,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 * from \"./operations.js\";\n"]}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all of the available REST API operations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all of the available REST API operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
+ * that point later.
13
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
14
+ * @returns The continuation token that can be passed into byPage() during future calls.
15
+ */
16
+ export function getContinuationToken(page) {
17
+ if (typeof page !== "object" || page === null) {
18
+ return undefined;
19
+ }
20
+ return pageMap.get(page)?.continuationToken;
21
+ }
22
+ export function setContinuationToken(page, continuationToken) {
23
+ if (typeof page !== "object" || page === null || !continuationToken) {
24
+ return;
25
+ }
26
+ const pageInfo = pageMap.get(page) ?? {};
27
+ pageInfo.continuationToken = continuationToken;
28
+ pageMap.set(page, pageInfo);
29
+ }
30
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +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,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"]}
@@ -0,0 +1,30 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations } from "./operationsInterfaces/index.js";
4
+ import { ResourceGraphClientOptionalParams, QueryRequest, ResourcesOptionalParams, ResourcesResponse, ResourcesHistoryRequest, ResourcesHistoryOptionalParams, ResourcesHistoryResponse } from "./models/index.js";
5
+ export declare class ResourceGraphClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ /**
9
+ * Initializes a new instance of the ResourceGraphClient class.
10
+ * @param credentials Subscription credentials which uniquely identify client subscription.
11
+ * @param options The parameter options
12
+ */
13
+ constructor(credentials: coreAuth.TokenCredential, options?: ResourceGraphClientOptionalParams);
14
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
15
+ private addCustomApiVersionPolicy;
16
+ /**
17
+ * Queries the resources managed by Azure Resource Manager for scopes specified in the request.
18
+ * @param query Request specifying query and its options.
19
+ * @param options The options parameters.
20
+ */
21
+ resources(query: QueryRequest, options?: ResourcesOptionalParams): Promise<ResourcesResponse>;
22
+ /**
23
+ * List all snapshots of a resource for a given time interval.
24
+ * @param request Request specifying the query and its options.
25
+ * @param options The options parameters.
26
+ */
27
+ resourcesHistory(request: ResourcesHistoryRequest, options?: ResourcesHistoryOptionalParams): Promise<ResourcesHistoryResponse>;
28
+ operations: Operations;
29
+ }
30
+ //# sourceMappingURL=resourceGraphClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceGraphClient.d.ts","sourceRoot":"","sources":["../../src/resourceGraphClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,EACL,iCAAiC,EACjC,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,iCAAiC;IAuE7C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;;OAIG;IACH,SAAS,CACP,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,iBAAiB,CAAC;IAO7B;;;;OAIG;IACH,gBAAgB,CACd,OAAO,EAAE,uBAAuB,EAChC,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,157 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { OperationsImpl } from "./operations/index.js";
11
+ import * as Parameters from "./models/parameters.js";
12
+ import * as Mappers from "./models/mappers.js";
13
+ export class ResourceGraphClient extends coreClient.ServiceClient {
14
+ $host;
15
+ apiVersion;
16
+ /**
17
+ * Initializes a new instance of the ResourceGraphClient class.
18
+ * @param credentials Subscription credentials which uniquely identify client subscription.
19
+ * @param options The parameter options
20
+ */
21
+ constructor(credentials, options) {
22
+ if (credentials === undefined) {
23
+ throw new Error("'credentials' cannot be null");
24
+ }
25
+ // Initializing default values for options
26
+ if (!options) {
27
+ options = {};
28
+ }
29
+ const defaults = {
30
+ requestContentType: "application/json; charset=utf-8",
31
+ credential: credentials
32
+ };
33
+ const packageDetails = `azsdk-js-arm-resourcegraph/5.0.0-beta.4`;
34
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
+ : `${packageDetails}`;
37
+ const optionsWithDefaults = {
38
+ ...defaults,
39
+ ...options,
40
+ userAgentOptions: {
41
+ userAgentPrefix
42
+ },
43
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
44
+ };
45
+ super(optionsWithDefaults);
46
+ let bearerTokenAuthenticationPolicyFound = false;
47
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
48
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
50
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
51
+ }
52
+ if (!options ||
53
+ !options.pipeline ||
54
+ options.pipeline.getOrderedPolicies().length == 0 ||
55
+ !bearerTokenAuthenticationPolicyFound) {
56
+ this.pipeline.removePolicy({
57
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
58
+ });
59
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
60
+ credential: credentials,
61
+ scopes: optionsWithDefaults.credentialScopes ??
62
+ `${optionsWithDefaults.endpoint}/.default`,
63
+ challengeCallbacks: {
64
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
65
+ }
66
+ }));
67
+ }
68
+ // Assigning values to Constant parameters
69
+ this.$host = options.$host || "https://management.azure.com";
70
+ this.apiVersion = options.apiVersion || "2021-06-01-preview";
71
+ this.operations = new OperationsImpl(this);
72
+ this.addCustomApiVersionPolicy(options.apiVersion);
73
+ }
74
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
75
+ addCustomApiVersionPolicy(apiVersion) {
76
+ if (!apiVersion) {
77
+ return;
78
+ }
79
+ const apiVersionPolicy = {
80
+ name: "CustomApiVersionPolicy",
81
+ async sendRequest(request, next) {
82
+ const param = request.url.split("?");
83
+ if (param.length > 1) {
84
+ const newParams = param[1].split("&").map((item) => {
85
+ if (item.indexOf("api-version") > -1) {
86
+ return "api-version=" + apiVersion;
87
+ }
88
+ else {
89
+ return item;
90
+ }
91
+ });
92
+ request.url = param[0] + "?" + newParams.join("&");
93
+ }
94
+ return next(request);
95
+ }
96
+ };
97
+ this.pipeline.addPolicy(apiVersionPolicy);
98
+ }
99
+ /**
100
+ * Queries the resources managed by Azure Resource Manager for scopes specified in the request.
101
+ * @param query Request specifying query and its options.
102
+ * @param options The options parameters.
103
+ */
104
+ resources(query, options) {
105
+ return this.sendOperationRequest({ query, options }, resourcesOperationSpec);
106
+ }
107
+ /**
108
+ * List all snapshots of a resource for a given time interval.
109
+ * @param request Request specifying the query and its options.
110
+ * @param options The options parameters.
111
+ */
112
+ resourcesHistory(request, options) {
113
+ return this.sendOperationRequest({ request, options }, resourcesHistoryOperationSpec);
114
+ }
115
+ operations;
116
+ }
117
+ // Operation Specifications
118
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
119
+ const resourcesOperationSpec = {
120
+ path: "/providers/Microsoft.ResourceGraph/resources",
121
+ httpMethod: "POST",
122
+ responses: {
123
+ 200: {
124
+ bodyMapper: Mappers.QueryResponse
125
+ },
126
+ default: {
127
+ bodyMapper: Mappers.ErrorResponse
128
+ }
129
+ },
130
+ requestBody: Parameters.query,
131
+ queryParameters: [Parameters.apiVersion],
132
+ urlParameters: [Parameters.$host],
133
+ headerParameters: [Parameters.contentType, Parameters.accept],
134
+ mediaType: "json",
135
+ serializer
136
+ };
137
+ const resourcesHistoryOperationSpec = {
138
+ path: "/providers/Microsoft.ResourceGraph/resourcesHistory",
139
+ httpMethod: "POST",
140
+ responses: {
141
+ 200: {
142
+ bodyMapper: {
143
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
144
+ }
145
+ },
146
+ default: {
147
+ bodyMapper: Mappers.ErrorResponse
148
+ }
149
+ },
150
+ requestBody: Parameters.request,
151
+ queryParameters: [Parameters.apiVersion],
152
+ urlParameters: [Parameters.$host],
153
+ headerParameters: [Parameters.contentType, Parameters.accept],
154
+ mediaType: "json",
155
+ serializer
156
+ };
157
+ //# sourceMappingURL=resourceGraphClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceGraphClient.js","sourceRoot":"","sources":["../../src/resourceGraphClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAC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AsB,GAA6B;IACvD,IAAI,EAAE,8CAA8C;IACpD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,qDAAqD;IAC3D,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;aAC/D;SACF;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,OAAO;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 * 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 { OperationsImpl } from \"./operations/index.js\";\nimport { Operations } from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n ResourceGraphClientOptionalParams,\n QueryRequest,\n ResourcesOptionalParams,\n ResourcesResponse,\n ResourcesHistoryRequest,\n ResourcesHistoryOptionalParams,\n ResourcesHistoryResponse\n} from \"./models/index.js\";\n\nexport class ResourceGraphClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ResourceGraphClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: ResourceGraphClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ResourceGraphClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-resourcegraph/5.0.0-beta.4`;\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[] = 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\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-06-01-preview\";\n this.operations = new OperationsImpl(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 /**\n * Queries the resources managed by Azure Resource Manager for scopes specified in the request.\n * @param query Request specifying query and its options.\n * @param options The options parameters.\n */\n resources(\n query: QueryRequest,\n options?: ResourcesOptionalParams\n ): Promise<ResourcesResponse> {\n return this.sendOperationRequest(\n { query, options },\n resourcesOperationSpec\n );\n }\n\n /**\n * List all snapshots of a resource for a given time interval.\n * @param request Request specifying the query and its options.\n * @param options The options parameters.\n */\n resourcesHistory(\n request: ResourcesHistoryRequest,\n options?: ResourcesHistoryOptionalParams\n ): Promise<ResourcesHistoryResponse> {\n return this.sendOperationRequest(\n { request, options },\n resourcesHistoryOperationSpec\n );\n }\n\n operations: Operations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst resourcesOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceGraph/resources\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.query,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst resourcesHistoryOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceGraph/resourcesHistory\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}