@azure/arm-resourcegraph 4.0.0 → 5.0.0-beta.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 (150) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +70 -70
  4. package/dist/index.js +933 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/accessAPropertiesField.d.ts +2 -0
  9. package/dist-esm/samples-dev/accessAPropertiesField.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accessAPropertiesField.js +32 -0
  11. package/dist-esm/samples-dev/accessAPropertiesField.js.map +1 -0
  12. package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts +2 -0
  13. package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/basicManagementGroupQuery.js +32 -0
  15. package/dist-esm/samples-dev/basicManagementGroupQuery.js.map +1 -0
  16. package/dist-esm/samples-dev/basicQuery.d.ts +2 -0
  17. package/dist-esm/samples-dev/basicQuery.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/basicQuery.js +32 -0
  19. package/dist-esm/samples-dev/basicQuery.js.map +1 -0
  20. package/dist-esm/samples-dev/basicTenantQuery.d.ts +2 -0
  21. package/dist-esm/samples-dev/basicTenantQuery.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/basicTenantQuery.js +31 -0
  23. package/dist-esm/samples-dev/basicTenantQuery.js.map +1 -0
  24. package/dist-esm/samples-dev/complexQuery.d.ts +2 -0
  25. package/dist-esm/samples-dev/complexQuery.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/complexQuery.js +32 -0
  27. package/dist-esm/samples-dev/complexQuery.js.map +1 -0
  28. package/dist-esm/samples-dev/filterResources.d.ts +2 -0
  29. package/dist-esm/samples-dev/filterResources.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/filterResources.js +32 -0
  31. package/dist-esm/samples-dev/filterResources.js.map +1 -0
  32. package/dist-esm/samples-dev/firstPageQuery.d.ts +2 -0
  33. package/dist-esm/samples-dev/firstPageQuery.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/firstPageQuery.js +33 -0
  35. package/dist-esm/samples-dev/firstPageQuery.js.map +1 -0
  36. package/dist-esm/samples-dev/nextPageQuery.d.ts +2 -0
  37. package/dist-esm/samples-dev/nextPageQuery.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/nextPageQuery.js +35 -0
  39. package/dist-esm/samples-dev/nextPageQuery.js.map +1 -0
  40. package/dist-esm/samples-dev/operationsList.d.ts +2 -0
  41. package/dist-esm/samples-dev/operationsList.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/operationsList.js +42 -0
  43. package/dist-esm/samples-dev/operationsList.js.map +1 -0
  44. package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts +2 -0
  45. package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/queryWithAFacetRequest.js +51 -0
  47. package/dist-esm/samples-dev/queryWithAFacetRequest.js.map +1 -0
  48. package/dist-esm/samples-dev/randomPageQuery.d.ts +2 -0
  49. package/dist-esm/samples-dev/randomPageQuery.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/randomPageQuery.js +33 -0
  51. package/dist-esm/samples-dev/randomPageQuery.js.map +1 -0
  52. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts +2 -0
  53. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js +38 -0
  55. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js.map +1 -0
  56. package/dist-esm/samples-dev/resourceHistoryQuery.d.ts +2 -0
  57. package/dist-esm/samples-dev/resourceHistoryQuery.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/resourceHistoryQuery.js +38 -0
  59. package/dist-esm/samples-dev/resourceHistoryQuery.js.map +1 -0
  60. package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts +2 -0
  61. package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/summarizeResourcesByLocation.js +32 -0
  63. package/dist-esm/samples-dev/summarizeResourcesByLocation.js.map +1 -0
  64. package/dist-esm/src/index.d.ts +5 -0
  65. package/dist-esm/src/index.d.ts.map +1 -0
  66. package/dist-esm/src/index.js +12 -0
  67. package/dist-esm/src/index.js.map +1 -0
  68. package/dist-esm/src/models/index.d.ts +216 -0
  69. package/dist-esm/src/models/index.d.ts.map +1 -0
  70. package/{src/models/operationsMappers.ts → dist-esm/src/models/index.js} +2 -10
  71. package/dist-esm/src/models/index.js.map +1 -0
  72. package/dist-esm/src/models/mappers.d.ts +26 -0
  73. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  74. package/{esm → dist-esm/src}/models/mappers.js +353 -267
  75. package/dist-esm/src/models/mappers.js.map +1 -0
  76. package/dist-esm/src/models/parameters.d.ts +8 -0
  77. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  78. package/dist-esm/src/models/parameters.js +61 -0
  79. package/dist-esm/src/models/parameters.js.map +1 -0
  80. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  81. package/dist-esm/src/operations/index.d.ts.map +1 -0
  82. package/{esm → dist-esm/src}/operations/index.js +1 -2
  83. package/dist-esm/src/operations/index.js.map +1 -0
  84. package/dist-esm/src/operations/operations.d.ts +26 -0
  85. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  86. package/dist-esm/src/operations/operations.js +90 -0
  87. package/dist-esm/src/operations/operations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  89. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  90. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/index.js} +2 -2
  91. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/src/resourceGraphClient.d.ts +28 -0
  97. package/dist-esm/src/resourceGraphClient.d.ts.map +1 -0
  98. package/dist-esm/src/resourceGraphClient.js +103 -0
  99. package/dist-esm/src/resourceGraphClient.js.map +1 -0
  100. package/dist-esm/test/sampleTest.d.ts +2 -0
  101. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  102. package/dist-esm/test/sampleTest.js +40 -0
  103. package/dist-esm/test/sampleTest.js.map +1 -0
  104. package/package.json +75 -32
  105. package/review/arm-resourcegraph.api.md +214 -0
  106. package/rollup.config.js +181 -30
  107. package/src/index.ts +12 -0
  108. package/src/models/index.ts +192 -341
  109. package/src/models/mappers.ts +353 -265
  110. package/src/models/parameters.ts +53 -9
  111. package/src/operations/index.ts +1 -2
  112. package/src/operations/operations.ts +64 -39
  113. package/{esm/models/index.js → src/operationsInterfaces/index.ts} +2 -1
  114. package/src/operationsInterfaces/operations.ts +22 -0
  115. package/src/resourceGraphClient.ts +111 -59
  116. package/tsconfig.json +5 -4
  117. package/types/arm-resourcegraph.d.ts +284 -0
  118. package/types/tsdoc-metadata.json +11 -0
  119. package/dist/arm-resourcegraph.js +0 -860
  120. package/dist/arm-resourcegraph.js.map +0 -1
  121. package/dist/arm-resourcegraph.min.js +0 -1
  122. package/dist/arm-resourcegraph.min.js.map +0 -1
  123. package/esm/models/index.d.ts +0 -375
  124. package/esm/models/index.d.ts.map +0 -1
  125. package/esm/models/index.js.map +0 -1
  126. package/esm/models/mappers.d.ts +0 -25
  127. package/esm/models/mappers.d.ts.map +0 -1
  128. package/esm/models/mappers.js.map +0 -1
  129. package/esm/models/operationsMappers.d.ts +0 -2
  130. package/esm/models/operationsMappers.d.ts.map +0 -1
  131. package/esm/models/operationsMappers.js.map +0 -1
  132. package/esm/models/parameters.d.ts +0 -4
  133. package/esm/models/parameters.d.ts.map +0 -1
  134. package/esm/models/parameters.js +0 -29
  135. package/esm/models/parameters.js.map +0 -1
  136. package/esm/operations/index.d.ts.map +0 -1
  137. package/esm/operations/index.js.map +0 -1
  138. package/esm/operations/operations.d.ts +0 -28
  139. package/esm/operations/operations.d.ts.map +0 -1
  140. package/esm/operations/operations.js +0 -50
  141. package/esm/operations/operations.js.map +0 -1
  142. package/esm/resourceGraphClient.d.ts +0 -35
  143. package/esm/resourceGraphClient.d.ts.map +0 -1
  144. package/esm/resourceGraphClient.js +0 -63
  145. package/esm/resourceGraphClient.js.map +0 -1
  146. package/esm/resourceGraphClientContext.d.ts +0 -14
  147. package/esm/resourceGraphClientContext.d.ts.map +0 -1
  148. package/esm/resourceGraphClientContext.js +0 -50
  149. package/esm/resourceGraphClientContext.js.map +0 -1
  150. package/src/resourceGraphClientContext.ts +0 -55
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/operations.ts","../src/resourceGraphClient.ts"],"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 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","/*\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\";\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","/*\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 { Operations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ResourceGraphClient } from \"../resourceGraphClient\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models\";\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: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let 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","/*\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 coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl } from \"./operations\";\nimport { Operations } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n ResourceGraphClientOptionalParams,\n QueryRequest,\n ResourcesOptionalParams,\n ResourcesResponse,\n ResourcesHistoryRequest,\n ResourcesHistoryOptionalParams,\n ResourcesHistoryResponse\n} from \"./models\";\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.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\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 }\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"],"names":["QueryRequestMapper","ResourcesHistoryRequestMapper","__asyncValues","__asyncDelegator","coreClient.createSerializer","Mappers.OperationListResult","Mappers.ErrorResponse","Parameters.apiVersion","Parameters.$host","Parameters.accept","coreClient.ServiceClient","serializer","Mappers.QueryResponse","Parameters.query","Parameters.contentType","Parameters.request"],"mappings":";;;;;;;AAAA;;;;;;;AAUO,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,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AAe,EAAE,CAACR,UAAqB,CAAC;IACxC,aAAa,EAAE,CAACC,KAAgB,CAAC;IACjC,gBAAgB,EAAE,CAACM,WAAsB,EAAEL,MAAiB,CAAC;IAC7D,SAAS,EAAE,MAAM;gBACjBE,YAAU;CACX,CAAC;;;;"}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");const QueryRequest={type:{name:"Composite",className:"QueryRequest",modelProperties:{subscriptions:{serializedName:"subscriptions",type:{name:"Sequence",element:{type:{name:"String"}}}},managementGroups:{serializedName:"managementGroups",type:{name:"Sequence",element:{type:{name:"String"}}}},query:{serializedName:"query",required:!0,type:{name:"String"}},options:{serializedName:"options",type:{name:"Composite",className:"QueryRequestOptions"}},facets:{serializedName:"facets",type:{name:"Sequence",element:{type:{name:"Composite",className:"FacetRequest"}}}}}}},QueryRequestOptions={type:{name:"Composite",className:"QueryRequestOptions",modelProperties:{skipToken:{serializedName:"$skipToken",type:{name:"String"}},top:{constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},serializedName:"$top",type:{name:"Number"}},skip:{constraints:{InclusiveMinimum:0},serializedName:"$skip",type:{name:"Number"}},resultFormat:{serializedName:"resultFormat",type:{name:"Enum",allowedValues:["table","objectArray"]}},allowPartialScopes:{defaultValue:!1,serializedName:"allowPartialScopes",type:{name:"Boolean"}},authorizationScopeFilter:{defaultValue:"AtScopeAndBelow",serializedName:"authorizationScopeFilter",type:{name:"Enum",allowedValues:["AtScopeAndBelow","AtScopeAndAbove","AtScopeExact","AtScopeAboveAndBelow"]}}}}},FacetRequest={type:{name:"Composite",className:"FacetRequest",modelProperties:{expression:{serializedName:"expression",required:!0,type:{name:"String"}},options:{serializedName:"options",type:{name:"Composite",className:"FacetRequestOptions"}}}}},FacetRequestOptions={type:{name:"Composite",className:"FacetRequestOptions",modelProperties:{sortBy:{serializedName:"sortBy",type:{name:"String"}},sortOrder:{defaultValue:"desc",serializedName:"sortOrder",type:{name:"Enum",allowedValues:["asc","desc"]}},filter:{serializedName:"filter",type:{name:"String"}},top:{constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},serializedName:"$top",type:{name:"Number"}}}}},QueryResponse={type:{name:"Composite",className:"QueryResponse",modelProperties:{totalRecords:{serializedName:"totalRecords",required:!0,type:{name:"Number"}},count:{serializedName:"count",required:!0,type:{name:"Number"}},resultTruncated:{serializedName:"resultTruncated",required:!0,type:{name:"Enum",allowedValues:["true","false"]}},skipToken:{serializedName:"$skipToken",type:{name:"String"}},data:{serializedName:"data",required:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}},facets:{serializedName:"facets",type:{name:"Sequence",element:{type:{name:"Composite",className:"Facet"}}}}}}},Facet={type:{name:"Composite",className:"Facet",uberParent:"Facet",polymorphicDiscriminator:{serializedName:"resultType",clientName:"resultType"},modelProperties:{expression:{serializedName:"expression",required:!0,type:{name:"String"}},resultType:{serializedName:"resultType",required:!0,type:{name:"String"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorModel"}}}}},ErrorModel={type:{name:"Composite",className:"ErrorModel",modelProperties:{code:{serializedName:"code",required:!0,type:{name:"String"}},message:{serializedName:"message",required:!0,type:{name:"String"}},details:{serializedName:"details",type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorDetails"}}}}}}},ErrorDetails={type:{name:"Composite",className:"ErrorDetails",additionalProperties:{type:{name:"Object"}},modelProperties:{code:{serializedName:"code",required:!0,type:{name:"String"}},message:{serializedName:"message",required:!0,type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",type:{name:"String"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},ResourcesHistoryRequest={type:{name:"Composite",className:"ResourcesHistoryRequest",modelProperties:{subscriptions:{serializedName:"subscriptions",type:{name:"Sequence",element:{type:{name:"String"}}}},query:{serializedName:"query",type:{name:"String"}},options:{serializedName:"options",type:{name:"Composite",className:"ResourcesHistoryRequestOptions"}},managementGroups:{serializedName:"managementGroups",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ResourcesHistoryRequestOptions={type:{name:"Composite",className:"ResourcesHistoryRequestOptions",modelProperties:{interval:{serializedName:"interval",type:{name:"Composite",className:"DateTimeInterval"}},top:{constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},serializedName:"$top",type:{name:"Number"}},skip:{constraints:{InclusiveMinimum:0},serializedName:"$skip",type:{name:"Number"}},skipToken:{serializedName:"$skipToken",type:{name:"String"}},resultFormat:{serializedName:"resultFormat",type:{name:"Enum",allowedValues:["table","objectArray"]}}}}},DateTimeInterval={type:{name:"Composite",className:"DateTimeInterval",modelProperties:{start:{serializedName:"start",required:!0,type:{name:"DateTime"}},end:{serializedName:"end",required:!0,type:{name:"DateTime"}}}}},Table={type:{name:"Composite",className:"Table",modelProperties:{columns:{serializedName:"columns",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Column"}}}},rows:{serializedName:"rows",required:!0,type:{name:"Sequence",element:{type:{name:"Sequence",element:{type:{name:"Dictionary",value:{type:{name:"any"}}}}}}}}}}},Column={type:{name:"Composite",className:"Column",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"Enum",allowedValues:["string","integer","number","boolean","object","datetime"]}}}}},FacetResult={serializedName:"FacetResult",type:{name:"Composite",className:"FacetResult",uberParent:"Facet",polymorphicDiscriminator:Facet.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},Facet.type.modelProperties),{totalRecords:{serializedName:"totalRecords",required:!0,type:{name:"Number"}},count:{serializedName:"count",required:!0,type:{name:"Number"}},data:{serializedName:"data",required:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}}})}},FacetError={serializedName:"FacetError",type:{name:"Composite",className:"FacetError",uberParent:"Facet",polymorphicDiscriminator:Facet.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},Facet.type.modelProperties),{errors:{serializedName:"errors",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorDetails"}}}}})}};let discriminators={Facet:Facet,"Facet.FacetResult":FacetResult,"Facet.FacetError":FacetError};var Mappers=Object.freeze({__proto__:null,QueryRequest:QueryRequest,QueryRequestOptions:QueryRequestOptions,FacetRequest:FacetRequest,FacetRequestOptions:FacetRequestOptions,QueryResponse:QueryResponse,Facet:Facet,ErrorResponse:ErrorResponse,ErrorModel:ErrorModel,ErrorDetails:ErrorDetails,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,ResourcesHistoryRequest:ResourcesHistoryRequest,ResourcesHistoryRequestOptions:ResourcesHistoryRequestOptions,DateTimeInterval:DateTimeInterval,Table:Table,Column:Column,FacetResult:FacetResult,FacetError:FacetError,discriminators:discriminators});const contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},query={parameterPath:"query",mapper:QueryRequest},accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-06-01-preview",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},request={parameterPath:"request",mapper:ResourcesHistoryRequest};class OperationsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[])})}listPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,a=tslib.__asyncValues(this.listPagingPage(i));!(r=yield tslib.__await(a.next())).done;){var s=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.ResourceGraph/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer};class ResourceGraphClient extends coreClient.ServiceClient{constructor(e,t){if(void 0===e)throw new Error("'credentials' cannot be null");var r={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-resourcegraph/5.0.0-beta.1",e=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+e:e;t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},r),t),{userAgentOptions:{userAgentPrefix:e},baseUri:t.endpoint||"https://management.azure.com"})),this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2021-06-01-preview",this.operations=new OperationsImpl(this)}resources(e,t){return this.sendOperationRequest({query:e,options:t},resourcesOperationSpec)}resourcesHistory(e,t){return this.sendOperationRequest({request:e,options:t},resourcesHistoryOperationSpec)}}const serializer$1=coreClient.createSerializer(Mappers,!1),resourcesOperationSpec={path:"/providers/Microsoft.ResourceGraph/resources",httpMethod:"POST",responses:{200:{bodyMapper:QueryResponse},default:{bodyMapper:ErrorResponse}},requestBody:query,queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$1},resourcesHistoryOperationSpec={path:"/providers/Microsoft.ResourceGraph/resourcesHistory",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Dictionary",value:{type:{name:"any"}}}}},default:{bodyMapper:ErrorResponse}},requestBody:request,queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$1};exports.ResourceGraphClient=ResourceGraphClient;
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/operations.ts","../src/resourceGraphClient.ts"],"names":["QueryRequest","type","name","className","modelProperties","subscriptions","serializedName","element","managementGroups","query","required","options","facets","QueryRequestOptions","skipToken","top","constraints","InclusiveMaximum","InclusiveMinimum","skip","resultFormat","allowedValues","allowPartialScopes","defaultValue","authorizationScopeFilter","FacetRequest","expression","FacetRequestOptions","sortBy","sortOrder","filter","QueryResponse","totalRecords","count","resultTruncated","data","value","Facet","uberParent","polymorphicDiscriminator","clientName","resultType","ErrorResponse","error","ErrorModel","code","message","details","ErrorDetails","additionalProperties","OperationListResult","Operation","display","origin","OperationDisplay","provider","resource","operation","description","ResourcesHistoryRequest","ResourcesHistoryRequestOptions","interval","DateTimeInterval","start","end","Table","columns","rows","Column","FacetResult","Object","assign","FacetError","errors","let","discriminators","Facet.FacetResult","Facet.FacetError","contentType","parameterPath","mapper","isConstant","QueryRequestMapper","accept","$host","skipEncoding","apiVersion","request","ResourcesHistoryRequestMapper","OperationsImpl","constructor","client","this","list","iter","listPagingAll","next","Symbol","asyncIterator","byPage","listPagingPage","result","tslib","__await","_list","_c","_b","__asyncValues","done","page","__asyncDelegator","sendOperationRequest","listOperationSpec","serializer","coreClient.createSerializer","Mappers","path","httpMethod","responses","200","bodyMapper","Mappers.OperationListResult","default","Mappers.ErrorResponse","queryParameters","Parameters.apiVersion","urlParameters","Parameters.$host","headerParameters","Parameters.accept","ResourceGraphClient","coreClient.ServiceClient","credentials","undefined","Error","defaults","requestContentType","credential","packageDetails","userAgentPrefix","userAgentOptions","credentialScopes","super","baseUri","endpoint","operations","resources","resourcesOperationSpec","resourcesHistory","resourcesHistoryOperationSpec","Mappers.QueryResponse","requestBody","Parameters.query","Parameters.contentType","mediaType","Parameters.request"],"mappings":"wIAUO,MAAMA,aAA2C,CACtDC,KAAM,CACJC,KAAM,YACNC,UAAW,eACXC,gBAAiB,CACfC,cAAe,CACbC,eAAgB,gBAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,aAKdM,iBAAkB,CAChBF,eAAgB,mBAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,aAKdO,MAAO,CACLH,eAAgB,QAChBI,UAAU,EACVT,KAAM,CACJC,KAAM,WAGVS,QAAS,CACPL,eAAgB,UAChBL,KAAM,CACJC,KAAM,YACNC,UAAW,wBAGfS,OAAQ,CACNN,eAAgB,SAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,YACNC,UAAW,sBASZU,oBAAkD,CAC7DZ,KAAM,CACJC,KAAM,YACNC,UAAW,sBACXC,gBAAiB,CACfU,UAAW,CACTR,eAAgB,aAChBL,KAAM,CACJC,KAAM,WAGVa,IAAK,CACHC,YAAa,CACXC,iBAAkB,IAClBC,iBAAkB,GAEpBZ,eAAgB,OAChBL,KAAM,CACJC,KAAM,WAGViB,KAAM,CACJH,YAAa,CACXE,iBAAkB,GAEpBZ,eAAgB,QAChBL,KAAM,CACJC,KAAM,WAGVkB,aAAc,CACZd,eAAgB,eAChBL,KAAM,CACJC,KAAM,OACNmB,cAAe,CAAC,QAAS,iBAG7BC,mBAAoB,CAClBC,cAAc,EACdjB,eAAgB,qBAChBL,KAAM,CACJC,KAAM,YAGVsB,yBAA0B,CACxBD,aAAc,kBACdjB,eAAgB,2BAChBL,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AAKmB,qBACV,CAAExB,QAAAA,EAAS5E,QAAAA,GACX0I,gCAON,MAAMpC,aAAaC,WAAAA,iBAA4BC,SAAqB,GAE9DgC,uBAAmD,CACvD/B,KAAM,+CACNC,WAAY,OACZC,UAAW,CACTC,IAAK,CACHC,WAAY8B,eAEd5B,QAAS,CACPF,WAAYG,gBAGhB4B,YAAaC,MACb5B,gBAAiB,CAACC,YAClBC,cAAe,CAACC,OAChBC,iBAAkB,CAACyB,YAAwBxB,QAC3CyB,UAAW,O,WACXzC,cAEIoC,8BAA0D,CAC9DjC,KAAM,sDACNC,WAAY,OACZC,UAAW,CACTC,IAAK,CACHC,WAAY,CACVvH,KAAM,CAAEC,KAAM,aAAckC,MAAO,CAAEnC,KAAM,CAAEC,KAAM,WAGvDwH,QAAS,CACPF,WAAYG,gBAGhB4B,YAAaI,QACb/B,gBAAiB,CAACC,YAClBC,cAAe,CAACC,OAChBC,iBAAkB,CAACyB,YAAwBxB,QAC3CyB,UAAW,O,WACXzC,c"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=accessAPropertiesField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessAPropertiesField.d.ts","sourceRoot":"","sources":["../../samples-dev/accessAPropertiesField.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
+ *
14
+ * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesPropertiesQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function accessAPropertiesField() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ query: "Resources | where type =~ 'Microsoft.Compute/virtualMachines' | summarize count() by tostring(properties.storageProfile.osDisk.osType)",
23
+ subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
24
+ };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ResourceGraphClient(credential);
27
+ const result = yield client.resources(query);
28
+ console.log(result);
29
+ });
30
+ }
31
+ accessAPropertiesField().catch(console.error);
32
+ //# sourceMappingURL=accessAPropertiesField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessAPropertiesField.js","sourceRoot":"","sources":["../../samples-dev/accessAPropertiesField.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,KAAK,GAAiB;YAC1B,KAAK,EACH,wIAAwI;YAC1I,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=basicManagementGroupQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicManagementGroupQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/basicManagementGroupQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
+ *
14
+ * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesMgBasicQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function basicManagementGroupQuery() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ managementGroups: ["e927f598-c1d4-4f72-8541-95d83a6a4ac8", "ProductionMG"],
23
+ query: "Resources | project id, name, type, location, tags | limit 3"
24
+ };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ResourceGraphClient(credential);
27
+ const result = yield client.resources(query);
28
+ console.log(result);
29
+ });
30
+ }
31
+ basicManagementGroupQuery().catch(console.error);
32
+ //# sourceMappingURL=basicManagementGroupQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicManagementGroupQuery.js","sourceRoot":"","sources":["../../samples-dev/basicManagementGroupQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,yBAAyB;;QACtC,MAAM,KAAK,GAAiB;YAC1B,gBAAgB,EAAE,CAAC,sCAAsC,EAAE,cAAc,CAAC;YAC1E,KAAK,EAAE,8DAA8D;SACtE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=basicQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/basicQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
+ *
14
+ * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesBasicQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function basicQuery() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ query: "Resources | project id, name, type, location, tags | limit 3",
23
+ subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
24
+ };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ResourceGraphClient(credential);
27
+ const result = yield client.resources(query);
28
+ console.log(result);
29
+ });
30
+ }
31
+ basicQuery().catch(console.error);
32
+ //# sourceMappingURL=basicQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicQuery.js","sourceRoot":"","sources":["../../samples-dev/basicQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,UAAU;;QACvB,MAAM,KAAK,GAAiB;YAC1B,KAAK,EAAE,8DAA8D;YACrE,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,UAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=basicTenantQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicTenantQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/basicTenantQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
+ *
14
+ * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesTenantBasicQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function basicTenantQuery() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ query: "Resources | project id, name, type, location, tags | limit 3"
23
+ };
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new ResourceGraphClient(credential);
26
+ const result = yield client.resources(query);
27
+ console.log(result);
28
+ });
29
+ }
30
+ basicTenantQuery().catch(console.error);
31
+ //# sourceMappingURL=basicTenantQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicTenantQuery.js","sourceRoot":"","sources":["../../samples-dev/basicTenantQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,gBAAgB;;QAC7B,MAAM,KAAK,GAAiB;YAC1B,KAAK,EAAE,8DAA8D;SACtE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=complexQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complexQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/complexQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
+ *
14
+ * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesComplexQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function complexQuery() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ query: "Resources | project id, name, type, location | where type =~ 'Microsoft.Compute/virtualMachines' | summarize count() by location | top 3 by count_",
23
+ subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
24
+ };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ResourceGraphClient(credential);
27
+ const result = yield client.resources(query);
28
+ console.log(result);
29
+ });
30
+ }
31
+ complexQuery().catch(console.error);
32
+ //# sourceMappingURL=complexQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complexQuery.js","sourceRoot":"","sources":["../../samples-dev/complexQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,YAAY;;QACzB,MAAM,KAAK,GAAiB;YAC1B,KAAK,EACH,oJAAoJ;YACtJ,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=filterResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterResources.d.ts","sourceRoot":"","sources":["../../samples-dev/filterResources.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
+ *
14
+ * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesFilterQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function filterResources() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ query: "Resources | project id, name, type, location | where type =~ 'Microsoft.Compute/virtualMachines' | limit 3",
23
+ subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
24
+ };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ResourceGraphClient(credential);
27
+ const result = yield client.resources(query);
28
+ console.log(result);
29
+ });
30
+ }
31
+ filterResources().catch(console.error);
32
+ //# sourceMappingURL=filterResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterResources.js","sourceRoot":"","sources":["../../samples-dev/filterResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,eAAe;;QAC5B,MAAM,KAAK,GAAiB;YAC1B,KAAK,EACH,4GAA4G;YAC9G,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=firstPageQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firstPageQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/firstPageQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
+ *
14
+ * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesFirstPageQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function firstPageQuery() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ options: { skip: 0, top: 3 },
23
+ query: "Resources | where name contains 'test' | project id, name, type, location",
24
+ subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
25
+ };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new ResourceGraphClient(credential);
28
+ const result = yield client.resources(query);
29
+ console.log(result);
30
+ });
31
+ }
32
+ firstPageQuery().catch(console.error);
33
+ //# sourceMappingURL=firstPageQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firstPageQuery.js","sourceRoot":"","sources":["../../samples-dev/firstPageQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,cAAc;;QAC3B,MAAM,KAAK,GAAiB;YAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE;YAC5B,KAAK,EACH,2EAA2E;YAC7E,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=nextPageQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nextPageQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/nextPageQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
+ *
14
+ * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesNextPageQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function nextPageQuery() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ options: {
23
+ skipToken: "eyAibm8iOiAibHVjayIsICJidXQiOiAibmljZSIsICJ0cnkiOiAiISIgfQ=="
24
+ },
25
+ query: "Resources | where name contains 'test' | project id, name, type, location",
26
+ subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
27
+ };
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new ResourceGraphClient(credential);
30
+ const result = yield client.resources(query);
31
+ console.log(result);
32
+ });
33
+ }
34
+ nextPageQuery().catch(console.error);
35
+ //# sourceMappingURL=nextPageQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nextPageQuery.js","sourceRoot":"","sources":["../../samples-dev/nextPageQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,aAAa;;QAC1B,MAAM,KAAK,GAAiB;YAC1B,OAAO,EAAE;gBACP,SAAS,EAAE,8DAA8D;aAC1E;YACD,KAAK,EACH,2EAA2E;YAC7E,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsList.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsList.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Lists all of the available REST API operations.
13
+ *
14
+ * @summary Lists all of the available REST API operations.
15
+ * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/OperationsList.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function operationsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const credential = new DefaultAzureCredential();
23
+ const client = new ResourceGraphClient(credential);
24
+ const resArray = new Array();
25
+ try {
26
+ for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
27
+ let item = _c.value;
28
+ resArray.push(item);
29
+ }
30
+ }
31
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
32
+ finally {
33
+ try {
34
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
35
+ }
36
+ finally { if (e_1) throw e_1.error; }
37
+ }
38
+ console.log(resArray);
39
+ });
40
+ }
41
+ operationsList().catch(console.error);
42
+ //# sourceMappingURL=operationsList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsList.js","sourceRoot":"","sources":["../../samples-dev/operationsList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,cAAc;;;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=queryWithAFacetRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryWithAFacetRequest.d.ts","sourceRoot":"","sources":["../../samples-dev/queryWithAFacetRequest.ts"],"names":[],"mappings":""}