@azure/arm-operationalinsights 9.0.1-alpha.20250718.1 → 9.0.1-alpha.20250730.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/browser/lroImpl.js +11 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +255 -120
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operationalInsightsManagementClient.js +34 -5
  6. package/dist/browser/operationalInsightsManagementClient.js.map +1 -1
  7. package/dist/browser/operations/availableServiceTiers.js +1 -0
  8. package/dist/browser/operations/availableServiceTiers.js.map +1 -1
  9. package/dist/browser/operations/clusters.js +78 -97
  10. package/dist/browser/operations/clusters.js.map +1 -1
  11. package/dist/browser/operations/dataExports.js +10 -27
  12. package/dist/browser/operations/dataExports.js.map +1 -1
  13. package/dist/browser/operations/dataSources.js +23 -40
  14. package/dist/browser/operations/dataSources.js.map +1 -1
  15. package/dist/browser/operations/deletedWorkspaces.js +19 -53
  16. package/dist/browser/operations/deletedWorkspaces.js.map +1 -1
  17. package/dist/browser/operations/gateways.js +1 -0
  18. package/dist/browser/operations/gateways.js.map +1 -1
  19. package/dist/browser/operations/intelligencePacks.js +1 -0
  20. package/dist/browser/operations/intelligencePacks.js.map +1 -1
  21. package/dist/browser/operations/linkedServices.js +32 -39
  22. package/dist/browser/operations/linkedServices.js.map +1 -1
  23. package/dist/browser/operations/linkedStorageAccounts.js +10 -27
  24. package/dist/browser/operations/linkedStorageAccounts.js.map +1 -1
  25. package/dist/browser/operations/managementGroups.js +10 -27
  26. package/dist/browser/operations/managementGroups.js.map +1 -1
  27. package/dist/browser/operations/operationStatuses.js +1 -0
  28. package/dist/browser/operations/operationStatuses.js.map +1 -1
  29. package/dist/browser/operations/operations.js +23 -40
  30. package/dist/browser/operations/operations.js.map +1 -1
  31. package/dist/browser/operations/queries.js +45 -79
  32. package/dist/browser/operations/queries.js.map +1 -1
  33. package/dist/browser/operations/queryPacks.js +45 -79
  34. package/dist/browser/operations/queryPacks.js.map +1 -1
  35. package/dist/browser/operations/savedSearches.js +1 -0
  36. package/dist/browser/operations/savedSearches.js.map +1 -1
  37. package/dist/browser/operations/schemaOperations.js +1 -0
  38. package/dist/browser/operations/schemaOperations.js.map +1 -1
  39. package/dist/browser/operations/sharedKeysOperations.js +1 -0
  40. package/dist/browser/operations/sharedKeysOperations.js.map +1 -1
  41. package/dist/browser/operations/storageInsightConfigs.js +23 -40
  42. package/dist/browser/operations/storageInsightConfigs.js.map +1 -1
  43. package/dist/browser/operations/tables.js +43 -45
  44. package/dist/browser/operations/tables.js.map +1 -1
  45. package/dist/browser/operations/usages.js +10 -27
  46. package/dist/browser/operations/usages.js.map +1 -1
  47. package/dist/browser/operations/workspacePurge.js +1 -0
  48. package/dist/browser/operations/workspacePurge.js.map +1 -1
  49. package/dist/browser/operations/workspaces.js +41 -65
  50. package/dist/browser/operations/workspaces.js.map +1 -1
  51. package/dist/browser/pagingHelper.js +2 -4
  52. package/dist/browser/pagingHelper.js.map +1 -1
  53. package/dist/commonjs/lroImpl.js +11 -3
  54. package/dist/commonjs/lroImpl.js.map +1 -1
  55. package/dist/commonjs/models/mappers.js +255 -120
  56. package/dist/commonjs/models/mappers.js.map +1 -1
  57. package/dist/commonjs/operationalInsightsManagementClient.js +34 -5
  58. package/dist/commonjs/operationalInsightsManagementClient.js.map +1 -1
  59. package/dist/commonjs/operations/availableServiceTiers.js +1 -0
  60. package/dist/commonjs/operations/availableServiceTiers.js.map +1 -1
  61. package/dist/commonjs/operations/clusters.js +78 -96
  62. package/dist/commonjs/operations/clusters.js.map +1 -1
  63. package/dist/commonjs/operations/dataExports.js +10 -26
  64. package/dist/commonjs/operations/dataExports.js.map +1 -1
  65. package/dist/commonjs/operations/dataSources.js +23 -39
  66. package/dist/commonjs/operations/dataSources.js.map +1 -1
  67. package/dist/commonjs/operations/deletedWorkspaces.js +19 -52
  68. package/dist/commonjs/operations/deletedWorkspaces.js.map +1 -1
  69. package/dist/commonjs/operations/gateways.js +1 -0
  70. package/dist/commonjs/operations/gateways.js.map +1 -1
  71. package/dist/commonjs/operations/intelligencePacks.js +1 -0
  72. package/dist/commonjs/operations/intelligencePacks.js.map +1 -1
  73. package/dist/commonjs/operations/linkedServices.js +32 -38
  74. package/dist/commonjs/operations/linkedServices.js.map +1 -1
  75. package/dist/commonjs/operations/linkedStorageAccounts.js +10 -26
  76. package/dist/commonjs/operations/linkedStorageAccounts.js.map +1 -1
  77. package/dist/commonjs/operations/managementGroups.js +10 -26
  78. package/dist/commonjs/operations/managementGroups.js.map +1 -1
  79. package/dist/commonjs/operations/operationStatuses.js +1 -0
  80. package/dist/commonjs/operations/operationStatuses.js.map +1 -1
  81. package/dist/commonjs/operations/operations.js +23 -39
  82. package/dist/commonjs/operations/operations.js.map +1 -1
  83. package/dist/commonjs/operations/queries.js +45 -78
  84. package/dist/commonjs/operations/queries.js.map +1 -1
  85. package/dist/commonjs/operations/queryPacks.js +45 -78
  86. package/dist/commonjs/operations/queryPacks.js.map +1 -1
  87. package/dist/commonjs/operations/savedSearches.js +1 -0
  88. package/dist/commonjs/operations/savedSearches.js.map +1 -1
  89. package/dist/commonjs/operations/schemaOperations.js +1 -0
  90. package/dist/commonjs/operations/schemaOperations.js.map +1 -1
  91. package/dist/commonjs/operations/sharedKeysOperations.js +1 -0
  92. package/dist/commonjs/operations/sharedKeysOperations.js.map +1 -1
  93. package/dist/commonjs/operations/storageInsightConfigs.js +23 -39
  94. package/dist/commonjs/operations/storageInsightConfigs.js.map +1 -1
  95. package/dist/commonjs/operations/tables.js +43 -44
  96. package/dist/commonjs/operations/tables.js.map +1 -1
  97. package/dist/commonjs/operations/usages.js +10 -26
  98. package/dist/commonjs/operations/usages.js.map +1 -1
  99. package/dist/commonjs/operations/workspacePurge.js +1 -0
  100. package/dist/commonjs/operations/workspacePurge.js.map +1 -1
  101. package/dist/commonjs/operations/workspaces.js +41 -64
  102. package/dist/commonjs/operations/workspaces.js.map +1 -1
  103. package/dist/commonjs/pagingHelper.js +2 -4
  104. package/dist/commonjs/pagingHelper.js.map +1 -1
  105. package/dist/commonjs/tsdoc-metadata.json +11 -11
  106. package/dist/esm/lroImpl.js +11 -3
  107. package/dist/esm/lroImpl.js.map +1 -1
  108. package/dist/esm/models/mappers.js +255 -120
  109. package/dist/esm/models/mappers.js.map +1 -1
  110. package/dist/esm/operationalInsightsManagementClient.js +34 -5
  111. package/dist/esm/operationalInsightsManagementClient.js.map +1 -1
  112. package/dist/esm/operations/availableServiceTiers.js +1 -0
  113. package/dist/esm/operations/availableServiceTiers.js.map +1 -1
  114. package/dist/esm/operations/clusters.js +78 -97
  115. package/dist/esm/operations/clusters.js.map +1 -1
  116. package/dist/esm/operations/dataExports.js +10 -27
  117. package/dist/esm/operations/dataExports.js.map +1 -1
  118. package/dist/esm/operations/dataSources.js +23 -40
  119. package/dist/esm/operations/dataSources.js.map +1 -1
  120. package/dist/esm/operations/deletedWorkspaces.js +19 -53
  121. package/dist/esm/operations/deletedWorkspaces.js.map +1 -1
  122. package/dist/esm/operations/gateways.js +1 -0
  123. package/dist/esm/operations/gateways.js.map +1 -1
  124. package/dist/esm/operations/intelligencePacks.js +1 -0
  125. package/dist/esm/operations/intelligencePacks.js.map +1 -1
  126. package/dist/esm/operations/linkedServices.js +32 -39
  127. package/dist/esm/operations/linkedServices.js.map +1 -1
  128. package/dist/esm/operations/linkedStorageAccounts.js +10 -27
  129. package/dist/esm/operations/linkedStorageAccounts.js.map +1 -1
  130. package/dist/esm/operations/managementGroups.js +10 -27
  131. package/dist/esm/operations/managementGroups.js.map +1 -1
  132. package/dist/esm/operations/operationStatuses.js +1 -0
  133. package/dist/esm/operations/operationStatuses.js.map +1 -1
  134. package/dist/esm/operations/operations.js +23 -40
  135. package/dist/esm/operations/operations.js.map +1 -1
  136. package/dist/esm/operations/queries.js +45 -79
  137. package/dist/esm/operations/queries.js.map +1 -1
  138. package/dist/esm/operations/queryPacks.js +45 -79
  139. package/dist/esm/operations/queryPacks.js.map +1 -1
  140. package/dist/esm/operations/savedSearches.js +1 -0
  141. package/dist/esm/operations/savedSearches.js.map +1 -1
  142. package/dist/esm/operations/schemaOperations.js +1 -0
  143. package/dist/esm/operations/schemaOperations.js.map +1 -1
  144. package/dist/esm/operations/sharedKeysOperations.js +1 -0
  145. package/dist/esm/operations/sharedKeysOperations.js.map +1 -1
  146. package/dist/esm/operations/storageInsightConfigs.js +23 -40
  147. package/dist/esm/operations/storageInsightConfigs.js.map +1 -1
  148. package/dist/esm/operations/tables.js +43 -45
  149. package/dist/esm/operations/tables.js.map +1 -1
  150. package/dist/esm/operations/usages.js +10 -27
  151. package/dist/esm/operations/usages.js.map +1 -1
  152. package/dist/esm/operations/workspacePurge.js +1 -0
  153. package/dist/esm/operations/workspacePurge.js.map +1 -1
  154. package/dist/esm/operations/workspaces.js +41 -65
  155. package/dist/esm/operations/workspaces.js.map +1 -1
  156. package/dist/esm/pagingHelper.js +2 -4
  157. package/dist/esm/pagingHelper.js.map +1 -1
  158. package/dist/react-native/lroImpl.js +11 -3
  159. package/dist/react-native/lroImpl.js.map +1 -1
  160. package/dist/react-native/models/mappers.js +255 -120
  161. package/dist/react-native/models/mappers.js.map +1 -1
  162. package/dist/react-native/operationalInsightsManagementClient.js +34 -5
  163. package/dist/react-native/operationalInsightsManagementClient.js.map +1 -1
  164. package/dist/react-native/operations/availableServiceTiers.js +1 -0
  165. package/dist/react-native/operations/availableServiceTiers.js.map +1 -1
  166. package/dist/react-native/operations/clusters.js +78 -97
  167. package/dist/react-native/operations/clusters.js.map +1 -1
  168. package/dist/react-native/operations/dataExports.js +10 -27
  169. package/dist/react-native/operations/dataExports.js.map +1 -1
  170. package/dist/react-native/operations/dataSources.js +23 -40
  171. package/dist/react-native/operations/dataSources.js.map +1 -1
  172. package/dist/react-native/operations/deletedWorkspaces.js +19 -53
  173. package/dist/react-native/operations/deletedWorkspaces.js.map +1 -1
  174. package/dist/react-native/operations/gateways.js +1 -0
  175. package/dist/react-native/operations/gateways.js.map +1 -1
  176. package/dist/react-native/operations/intelligencePacks.js +1 -0
  177. package/dist/react-native/operations/intelligencePacks.js.map +1 -1
  178. package/dist/react-native/operations/linkedServices.js +32 -39
  179. package/dist/react-native/operations/linkedServices.js.map +1 -1
  180. package/dist/react-native/operations/linkedStorageAccounts.js +10 -27
  181. package/dist/react-native/operations/linkedStorageAccounts.js.map +1 -1
  182. package/dist/react-native/operations/managementGroups.js +10 -27
  183. package/dist/react-native/operations/managementGroups.js.map +1 -1
  184. package/dist/react-native/operations/operationStatuses.js +1 -0
  185. package/dist/react-native/operations/operationStatuses.js.map +1 -1
  186. package/dist/react-native/operations/operations.js +23 -40
  187. package/dist/react-native/operations/operations.js.map +1 -1
  188. package/dist/react-native/operations/queries.js +45 -79
  189. package/dist/react-native/operations/queries.js.map +1 -1
  190. package/dist/react-native/operations/queryPacks.js +45 -79
  191. package/dist/react-native/operations/queryPacks.js.map +1 -1
  192. package/dist/react-native/operations/savedSearches.js +1 -0
  193. package/dist/react-native/operations/savedSearches.js.map +1 -1
  194. package/dist/react-native/operations/schemaOperations.js +1 -0
  195. package/dist/react-native/operations/schemaOperations.js.map +1 -1
  196. package/dist/react-native/operations/sharedKeysOperations.js +1 -0
  197. package/dist/react-native/operations/sharedKeysOperations.js.map +1 -1
  198. package/dist/react-native/operations/storageInsightConfigs.js +23 -40
  199. package/dist/react-native/operations/storageInsightConfigs.js.map +1 -1
  200. package/dist/react-native/operations/tables.js +43 -45
  201. package/dist/react-native/operations/tables.js.map +1 -1
  202. package/dist/react-native/operations/usages.js +10 -27
  203. package/dist/react-native/operations/usages.js.map +1 -1
  204. package/dist/react-native/operations/workspacePurge.js +1 -0
  205. package/dist/react-native/operations/workspacePurge.js.map +1 -1
  206. package/dist/react-native/operations/workspaces.js +41 -65
  207. package/dist/react-native/operations/workspaces.js.map +1 -1
  208. package/dist/react-native/pagingHelper.js +2 -4
  209. package/dist/react-native/pagingHelper.js.map +1 -1
  210. package/package.json +2 -2
  211. package/review/arm-operationalinsights-node.api.md +1758 -1758
@@ -1 +1 @@
1
- {"version":3,"file":"savedSearches.js","sourceRoot":"","sources":["../../../src/operations/savedSearches.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,iDAAiD;AACjD,MAAa,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,aAAqB,EACrB,aAAqB,EACrB,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,EAC5D,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAyB,EACzB,aAAqB,EACrB,aAAqB,EACrB,UAAuB,EACvB,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,EACxE,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,aAAqB,EACrB,aAAqB,EACrB,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,EAC5D,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,eAAe,CACb,iBAAyB,EACzB,aAAqB,EACrB,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,4BAA4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b,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EACF,qJAAqJ;IACvJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SavedSearches } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n SavedSearchesDeleteOptionalParams,\n SavedSearch,\n SavedSearchesCreateOrUpdateOptionalParams,\n SavedSearchesCreateOrUpdateResponse,\n SavedSearchesGetOptionalParams,\n SavedSearchesGetResponse,\n SavedSearchesListByWorkspaceOptionalParams,\n SavedSearchesListByWorkspaceResponse\n} from \"../models/index.js\";\n\n/** Class containing SavedSearches operations. */\nexport class SavedSearchesImpl implements SavedSearches {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class SavedSearches class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Deletes the specified saved search in a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param savedSearchId The id of the saved search.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n savedSearchId: string,\n options?: SavedSearchesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, savedSearchId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates or updates a saved search for a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param savedSearchId The id of the saved search.\n * @param parameters The parameters required to save a search.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n savedSearchId: string,\n parameters: SavedSearch,\n options?: SavedSearchesCreateOrUpdateOptionalParams\n ): Promise<SavedSearchesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, savedSearchId, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets the specified saved search for a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param savedSearchId The id of the saved search.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n savedSearchId: string,\n options?: SavedSearchesGetOptionalParams\n ): Promise<SavedSearchesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, savedSearchId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets the saved searches for a given Log Analytics Workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: SavedSearchesListByWorkspaceOptionalParams\n ): Promise<SavedSearchesListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.savedSearchId\n ],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SavedSearch\n }\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.savedSearchId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SavedSearch\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.savedSearchId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SavedSearchesListResult\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"savedSearches.js","sourceRoot":"","sources":["../../../src/operations/savedSearches.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,iDAAiD;AACjD,MAAa,iBAAiB;IACX,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,aAAqB,EACrB,aAAqB,EACrB,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,EAC5D,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAyB,EACzB,aAAqB,EACrB,aAAqB,EACrB,UAAuB,EACvB,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,EACxE,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,aAAqB,EACrB,aAAqB,EACrB,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,EAC5D,gBAAgB,CACjB,C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,IAAI,EACF,qKAAqK;IACvK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EACF,qJAAqJ;IACvJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SavedSearches } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n SavedSearchesDeleteOptionalParams,\n SavedSearch,\n SavedSearchesCreateOrUpdateOptionalParams,\n SavedSearchesCreateOrUpdateResponse,\n SavedSearchesGetOptionalParams,\n SavedSearchesGetResponse,\n SavedSearchesListByWorkspaceOptionalParams,\n SavedSearchesListByWorkspaceResponse\n} from \"../models/index.js\";\n\n/** Class containing SavedSearches operations. */\nexport class SavedSearchesImpl implements SavedSearches {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class SavedSearches class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Deletes the specified saved search in a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param savedSearchId The id of the saved search.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n savedSearchId: string,\n options?: SavedSearchesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, savedSearchId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates or updates a saved search for a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param savedSearchId The id of the saved search.\n * @param parameters The parameters required to save a search.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n savedSearchId: string,\n parameters: SavedSearch,\n options?: SavedSearchesCreateOrUpdateOptionalParams\n ): Promise<SavedSearchesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, savedSearchId, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets the specified saved search for a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param savedSearchId The id of the saved search.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n savedSearchId: string,\n options?: SavedSearchesGetOptionalParams\n ): Promise<SavedSearchesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, savedSearchId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets the saved searches for a given Log Analytics Workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: SavedSearchesListByWorkspaceOptionalParams\n ): Promise<SavedSearchesListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.savedSearchId\n ],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SavedSearch\n }\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.savedSearchId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SavedSearch\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.savedSearchId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SavedSearchesListResult\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing SchemaOperations operations. */
16
16
  class SchemaOperationsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class SchemaOperations class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"schemaOperations.js","sourceRoot":"","sources":["../../../src/operations/schemaOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,oDAAoD;AACpD,MAAa,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,aAAqB,EACrB,OAAiC;QAEjC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3BD,oDA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,8IAA8I;IAChJ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SchemaOperations } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport { SchemaGetOptionalParams, SchemaGetResponse } from \"../models/index.js\";\n\n/** Class containing SchemaOperations operations. */\nexport class SchemaOperationsImpl implements SchemaOperations {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class SchemaOperations class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the schema for a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n options?: SchemaGetOptionalParams\n ): Promise<SchemaGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/schema\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchGetSchemaResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"schemaOperations.js","sourceRoot":"","sources":["../../../src/operations/schemaOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,oDAAoD;AACpD,MAAa,oBAAoB;IACd,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,aAAqB,EACrB,OAAiC;QAEjC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3BD,oDA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,8IAA8I;IAChJ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SchemaOperations } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport { SchemaGetOptionalParams, SchemaGetResponse } from \"../models/index.js\";\n\n/** Class containing SchemaOperations operations. */\nexport class SchemaOperationsImpl implements SchemaOperations {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class SchemaOperations class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the schema for a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n options?: SchemaGetOptionalParams\n ): Promise<SchemaGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/schema\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchGetSchemaResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing SharedKeysOperations operations. */
16
16
  class SharedKeysOperationsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class SharedKeysOperations class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"sharedKeysOperations.js","sourceRoot":"","sources":["../../../src/operations/sharedKeysOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,aAAqB,EACrB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CACR,iBAAyB,EACzB,aAAqB,EACrB,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AA7CD,4DA6CC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,kJAAkJ;IACpJ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EACF,2JAA2J;IAC7J,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SharedKeysOperations } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n SharedKeysGetSharedKeysOptionalParams,\n SharedKeysGetSharedKeysResponse,\n SharedKeysRegenerateOptionalParams,\n SharedKeysRegenerateResponse\n} from \"../models/index.js\";\n\n/** Class containing SharedKeysOperations operations. */\nexport class SharedKeysOperationsImpl implements SharedKeysOperations {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class SharedKeysOperations class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the shared keys for a workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n getSharedKeys(\n resourceGroupName: string,\n workspaceName: string,\n options?: SharedKeysGetSharedKeysOptionalParams\n ): Promise<SharedKeysGetSharedKeysResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n getSharedKeysOperationSpec\n );\n }\n\n /**\n * Regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft\n * Operational Insights agents to the workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n regenerate(\n resourceGroupName: string,\n workspaceName: string,\n options?: SharedKeysRegenerateOptionalParams\n ): Promise<SharedKeysRegenerateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n regenerateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getSharedKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/sharedKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedKeys\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst regenerateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedKeys\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"sharedKeysOperations.js","sourceRoot":"","sources":["../../../src/operations/sharedKeysOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,aAAqB,EACrB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CACR,iBAAyB,EACzB,aAAqB,EACrB,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AA7CD,4DA6CC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,kJAAkJ;IACpJ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EACF,2JAA2J;IAC7J,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SharedKeysOperations } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n SharedKeysGetSharedKeysOptionalParams,\n SharedKeysGetSharedKeysResponse,\n SharedKeysRegenerateOptionalParams,\n SharedKeysRegenerateResponse\n} from \"../models/index.js\";\n\n/** Class containing SharedKeysOperations operations. */\nexport class SharedKeysOperationsImpl implements SharedKeysOperations {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class SharedKeysOperations class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the shared keys for a workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n getSharedKeys(\n resourceGroupName: string,\n workspaceName: string,\n options?: SharedKeysGetSharedKeysOptionalParams\n ): Promise<SharedKeysGetSharedKeysResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n getSharedKeysOperationSpec\n );\n }\n\n /**\n * Regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft\n * Operational Insights agents to the workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n regenerate(\n resourceGroupName: string,\n workspaceName: string,\n options?: SharedKeysRegenerateOptionalParams\n ): Promise<SharedKeysRegenerateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n regenerateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getSharedKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/sharedKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedKeys\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst regenerateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedKeys\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing StorageInsightConfigs operations. */
18
18
  class StorageInsightConfigsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class StorageInsightConfigs class.
21
22
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class StorageInsightConfigsImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
46
47
  }
47
48
  };
48
49
  }
49
- listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
55
- let page = result.value || [];
56
- continuationToken = result.odataNextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
62
- continuationToken = result.odataNextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listByWorkspace(resourceGroupName, workspaceName, options);
55
+ let page = result.value || [];
56
+ continuationToken = result.odataNextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options);
62
+ continuationToken = result.odataNextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
69
+ for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * Create or update a storage insight.
@@ -1 +1 @@
1
- {"version":3,"file":"storageInsightConfigs.js","sourceRoot":"","sources":["../../../src/operations/storageInsightConfigs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAa,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA4D;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,wB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AE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { StorageInsightConfigs } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n StorageInsight,\n StorageInsightConfigsListByWorkspaceNextOptionalParams,\n StorageInsightConfigsListByWorkspaceOptionalParams,\n StorageInsightConfigsListByWorkspaceResponse,\n StorageInsightConfigsCreateOrUpdateOptionalParams,\n StorageInsightConfigsCreateOrUpdateResponse,\n StorageInsightConfigsGetOptionalParams,\n StorageInsightConfigsGetResponse,\n StorageInsightConfigsDeleteOptionalParams,\n StorageInsightConfigsListByWorkspaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageInsightConfigs operations. */\nexport class StorageInsightConfigsImpl implements StorageInsightConfigs {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class StorageInsightConfigs class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the storage insight instances within a workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: StorageInsightConfigsListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<StorageInsight> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: StorageInsightConfigsListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<StorageInsight[]> {\n let result: StorageInsightConfigsListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.odataNextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.odataNextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: StorageInsightConfigsListByWorkspaceOptionalParams\n ): AsyncIterableIterator<StorageInsight> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create or update a storage insight.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param storageInsightName Name of the storageInsightsConfigs resource\n * @param parameters The parameters required to create or update a storage insight.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n storageInsightName: string,\n parameters: StorageInsight,\n options?: StorageInsightConfigsCreateOrUpdateOptionalParams\n ): Promise<StorageInsightConfigsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n storageInsightName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets a storage insight instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param storageInsightName Name of the storageInsightsConfigs resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n storageInsightName: string,\n options?: StorageInsightConfigsGetOptionalParams\n ): Promise<StorageInsightConfigsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, storageInsightName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a storageInsightsConfigs resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param storageInsightName Name of the storageInsightsConfigs resource\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n storageInsightName: string,\n options?: StorageInsightConfigsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, storageInsightName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists the storage insight instances within a workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: StorageInsightConfigsListByWorkspaceOptionalParams\n ): Promise<StorageInsightConfigsListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private _listByWorkspaceNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: StorageInsightConfigsListByWorkspaceNextOptionalParams\n ): Promise<StorageInsightConfigsListByWorkspaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listByWorkspaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageInsight\n },\n 201: {\n bodyMapper: Mappers.StorageInsight\n }\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.storageInsightName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageInsight\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.storageInsightName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.storageInsightName\n ],\n serializer\n};\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageInsightListResult\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageInsightListResult\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"storageInsightConfigs.js","sourceRoot":"","sources":["../../../src/operations/storageInsightConfigs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAa,yBAAyB;IACnB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA4D;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF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AM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { StorageInsightConfigs } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n StorageInsight,\n StorageInsightConfigsListByWorkspaceNextOptionalParams,\n StorageInsightConfigsListByWorkspaceOptionalParams,\n StorageInsightConfigsListByWorkspaceResponse,\n StorageInsightConfigsCreateOrUpdateOptionalParams,\n StorageInsightConfigsCreateOrUpdateResponse,\n StorageInsightConfigsGetOptionalParams,\n StorageInsightConfigsGetResponse,\n StorageInsightConfigsDeleteOptionalParams,\n StorageInsightConfigsListByWorkspaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageInsightConfigs operations. */\nexport class StorageInsightConfigsImpl implements StorageInsightConfigs {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class StorageInsightConfigs class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the storage insight instances within a workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: StorageInsightConfigsListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<StorageInsight> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: StorageInsightConfigsListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<StorageInsight[]> {\n let result: StorageInsightConfigsListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.odataNextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.odataNextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: StorageInsightConfigsListByWorkspaceOptionalParams\n ): AsyncIterableIterator<StorageInsight> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create or update a storage insight.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param storageInsightName Name of the storageInsightsConfigs resource\n * @param parameters The parameters required to create or update a storage insight.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n storageInsightName: string,\n parameters: StorageInsight,\n options?: StorageInsightConfigsCreateOrUpdateOptionalParams\n ): Promise<StorageInsightConfigsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n storageInsightName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets a storage insight instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param storageInsightName Name of the storageInsightsConfigs resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n storageInsightName: string,\n options?: StorageInsightConfigsGetOptionalParams\n ): Promise<StorageInsightConfigsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, storageInsightName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a storageInsightsConfigs resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param storageInsightName Name of the storageInsightsConfigs resource\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n storageInsightName: string,\n options?: StorageInsightConfigsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, storageInsightName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists the storage insight instances within a workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: StorageInsightConfigsListByWorkspaceOptionalParams\n ): Promise<StorageInsightConfigsListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private _listByWorkspaceNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: StorageInsightConfigsListByWorkspaceNextOptionalParams\n ): Promise<StorageInsightConfigsListByWorkspaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listByWorkspaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageInsight\n },\n 201: {\n bodyMapper: Mappers.StorageInsight\n }\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.storageInsightName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageInsight\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.storageInsightName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.storageInsightName\n ],\n serializer\n};\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageInsightListResult\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageInsightListResult\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
17
17
  /// <reference lib="esnext.asynciterable" />
18
18
  /** Class containing Tables operations. */
19
19
  class TablesImpl {
20
+ client;
20
21
  /**
21
22
  * Initialize a new instance of the class Tables class.
22
23
  * @param client Reference to the service client
@@ -40,39 +41,22 @@ class TablesImpl {
40
41
  return this;
41
42
  },
42
43
  byPage: (settings) => {
43
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
44
+ if (settings?.maxPageSize) {
44
45
  throw new Error("maxPageSize is not supported by this operation.");
45
46
  }
46
47
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
47
48
  }
48
49
  };
49
50
  }
50
- listByWorkspacePagingPage(resourceGroupName, workspaceName, options, _settings) {
51
- return tslib_1.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
52
- let result;
53
- result = yield tslib_1.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
54
- yield yield tslib_1.__await(result.value || []);
55
- });
51
+ async *listByWorkspacePagingPage(resourceGroupName, workspaceName, options, _settings) {
52
+ let result;
53
+ result = await this._listByWorkspace(resourceGroupName, workspaceName, options);
54
+ yield result.value || [];
56
55
  }
57
- listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
58
- return tslib_1.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
59
- var _a, e_1, _b, _c;
60
- try {
61
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
62
- _c = _f.value;
63
- _d = false;
64
- const page = _c;
65
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
66
- }
67
- }
68
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
69
- finally {
70
- try {
71
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
72
- }
73
- finally { if (e_1) throw e_1.error; }
74
- }
75
- });
56
+ async *listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
57
+ for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)) {
58
+ yield* page;
59
+ }
76
60
  }
77
61
  /**
78
62
  * Gets all the tables for the specified Log Analytics workspace.
@@ -96,14 +80,19 @@ class TablesImpl {
96
80
  return this.client.sendOperationRequest(args, spec);
97
81
  };
98
82
  const sendOperation = async (args, spec) => {
99
- var _a;
100
83
  let currentRawResponse = undefined;
101
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
84
+ const providedCallback = args.options?.onResponse;
102
85
  const callback = (rawResponse, flatResponse) => {
103
86
  currentRawResponse = rawResponse;
104
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
87
+ providedCallback?.(rawResponse, flatResponse);
88
+ };
89
+ const updatedArgs = {
90
+ ...args,
91
+ options: {
92
+ ...args.options,
93
+ onResponse: callback
94
+ }
105
95
  };
106
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
107
96
  const flatResponse = await directSendOperation(updatedArgs, spec);
108
97
  return {
109
98
  flatResponse,
@@ -116,8 +105,8 @@ class TablesImpl {
116
105
  };
117
106
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, workspaceName, tableName, parameters, options }, createOrUpdateOperationSpec);
118
107
  const poller = new core_lro_1.LroEngine(lro, {
119
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
120
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
108
+ resumeFrom: options?.resumeFrom,
109
+ intervalInMs: options?.updateIntervalInMs,
121
110
  lroResourceLocationConfig: "azure-async-operation"
122
111
  });
123
112
  await poller.poll();
@@ -148,14 +137,19 @@ class TablesImpl {
148
137
  return this.client.sendOperationRequest(args, spec);
149
138
  };
150
139
  const sendOperation = async (args, spec) => {
151
- var _a;
152
140
  let currentRawResponse = undefined;
153
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
141
+ const providedCallback = args.options?.onResponse;
154
142
  const callback = (rawResponse, flatResponse) => {
155
143
  currentRawResponse = rawResponse;
156
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
144
+ providedCallback?.(rawResponse, flatResponse);
145
+ };
146
+ const updatedArgs = {
147
+ ...args,
148
+ options: {
149
+ ...args.options,
150
+ onResponse: callback
151
+ }
157
152
  };
158
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
159
153
  const flatResponse = await directSendOperation(updatedArgs, spec);
160
154
  return {
161
155
  flatResponse,
@@ -168,8 +162,8 @@ class TablesImpl {
168
162
  };
169
163
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, workspaceName, tableName, parameters, options }, updateOperationSpec);
170
164
  const poller = new core_lro_1.LroEngine(lro, {
171
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
172
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
165
+ resumeFrom: options?.resumeFrom,
166
+ intervalInMs: options?.updateIntervalInMs,
173
167
  lroResourceLocationConfig: "azure-async-operation"
174
168
  });
175
169
  await poller.poll();
@@ -209,14 +203,19 @@ class TablesImpl {
209
203
  return this.client.sendOperationRequest(args, spec);
210
204
  };
211
205
  const sendOperation = async (args, spec) => {
212
- var _a;
213
206
  let currentRawResponse = undefined;
214
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
207
+ const providedCallback = args.options?.onResponse;
215
208
  const callback = (rawResponse, flatResponse) => {
216
209
  currentRawResponse = rawResponse;
217
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
210
+ providedCallback?.(rawResponse, flatResponse);
211
+ };
212
+ const updatedArgs = {
213
+ ...args,
214
+ options: {
215
+ ...args.options,
216
+ onResponse: callback
217
+ }
218
218
  };
219
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
220
219
  const flatResponse = await directSendOperation(updatedArgs, spec);
221
220
  return {
222
221
  flatResponse,
@@ -229,8 +228,8 @@ class TablesImpl {
229
228
  };
230
229
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, workspaceName, tableName, options }, deleteOperationSpec);
231
230
  const poller = new core_lro_1.LroEngine(lro, {
232
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
233
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
231
+ resumeFrom: options?.resumeFrom,
232
+ intervalInMs: options?.updateIntervalInMs,
234
233
  lroResourceLocationConfig: "azure-async-operation"
235
234
  });
236
235
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"tables.js","sourceRoot":"","sources":["../../../src/operations/tables.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAgBxC,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;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GAA6B;IAC1D,IAAI,EACF,uKAAuK;IACzK,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Tables } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Table,\n TablesListByWorkspaceOptionalParams,\n TablesListByWorkspaceResponse,\n TablesCreateOrUpdateOptionalParams,\n TablesCreateOrUpdateResponse,\n TablesUpdateOptionalParams,\n TablesUpdateResponse,\n TablesGetOptionalParams,\n TablesGetResponse,\n TablesDeleteOptionalParams,\n TablesMigrateOptionalParams,\n TablesCancelSearchOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Tables operations. */\nexport class TablesImpl implements Tables {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Tables class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the tables for the specified Log Analytics workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: TablesListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<Table> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: TablesListByWorkspaceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Table[]> {\n let result: TablesListByWorkspaceResponse;\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: TablesListByWorkspaceOptionalParams\n ): AsyncIterableIterator<Table> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the tables for the specified Log Analytics workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: TablesListByWorkspaceOptionalParams\n ): Promise<TablesListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * Update or Create a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param parameters The parameters required to update table properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n parameters: Table,\n options?: TablesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<TablesCreateOrUpdateResponse>,\n TablesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<TablesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, workspaceName, tableName, parameters, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update or Create a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param parameters The parameters required to update table properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n parameters: Table,\n options?: TablesCreateOrUpdateOptionalParams\n ): Promise<TablesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n workspaceName,\n tableName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param parameters The parameters required to update table properties.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n parameters: Table,\n options?: TablesUpdateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<TablesUpdateResponse>, TablesUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<TablesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, workspaceName, tableName, parameters, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param parameters The parameters required to update table properties.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n parameters: Table,\n options?: TablesUpdateOptionalParams\n ): Promise<TablesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n workspaceName,\n tableName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesGetOptionalParams\n ): Promise<TablesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, tableName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, workspaceName, tableName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n workspaceName,\n tableName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to\n * support of Data Collection Rule-based Custom Logs.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n migrate(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesMigrateOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, tableName, options },\n migrateOperationSpec\n );\n }\n\n /**\n * Cancel a log analytics workspace search results table query run.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n cancelSearch(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesCancelSearchOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, tableName, options },\n cancelSearchOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TablesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table\n },\n 201: {\n bodyMapper: Mappers.Table\n },\n 202: {\n bodyMapper: Mappers.Table\n },\n 204: {\n bodyMapper: Mappers.Table\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table\n },\n 201: {\n bodyMapper: Mappers.Table\n },\n 202: {\n bodyMapper: Mappers.Table\n },\n 204: {\n bodyMapper: Mappers.Table\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst migrateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelSearchOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/cancelSearch\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"tables.js","sourceRoot":"","sources":["../../../src/operations/tables.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAgBxC,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IACJ,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,yBAAyB,CACnC,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,C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AC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,uKAAuK;IACzK,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Tables } 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 { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Table,\n TablesListByWorkspaceOptionalParams,\n TablesListByWorkspaceResponse,\n TablesCreateOrUpdateOptionalParams,\n TablesCreateOrUpdateResponse,\n TablesUpdateOptionalParams,\n TablesUpdateResponse,\n TablesGetOptionalParams,\n TablesGetResponse,\n TablesDeleteOptionalParams,\n TablesMigrateOptionalParams,\n TablesCancelSearchOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Tables operations. */\nexport class TablesImpl implements Tables {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Tables class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the tables for the specified Log Analytics workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: TablesListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<Table> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: TablesListByWorkspaceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Table[]> {\n let result: TablesListByWorkspaceResponse;\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: TablesListByWorkspaceOptionalParams\n ): AsyncIterableIterator<Table> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the tables for the specified Log Analytics workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: TablesListByWorkspaceOptionalParams\n ): Promise<TablesListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * Update or Create a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param parameters The parameters required to update table properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n parameters: Table,\n options?: TablesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<TablesCreateOrUpdateResponse>,\n TablesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<TablesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, workspaceName, tableName, parameters, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update or Create a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param parameters The parameters required to update table properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n parameters: Table,\n options?: TablesCreateOrUpdateOptionalParams\n ): Promise<TablesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n workspaceName,\n tableName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param parameters The parameters required to update table properties.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n parameters: Table,\n options?: TablesUpdateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<TablesUpdateResponse>, TablesUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<TablesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, workspaceName, tableName, parameters, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param parameters The parameters required to update table properties.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n parameters: Table,\n options?: TablesUpdateOptionalParams\n ): Promise<TablesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n workspaceName,\n tableName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesGetOptionalParams\n ): Promise<TablesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, tableName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, workspaceName, tableName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Log Analytics workspace table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n workspaceName,\n tableName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to\n * support of Data Collection Rule-based Custom Logs.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n migrate(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesMigrateOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, tableName, options },\n migrateOperationSpec\n );\n }\n\n /**\n * Cancel a log analytics workspace search results table query run.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param tableName The name of the table.\n * @param options The options parameters.\n */\n cancelSearch(\n resourceGroupName: string,\n workspaceName: string,\n tableName: string,\n options?: TablesCancelSearchOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, tableName, options },\n cancelSearchOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TablesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table\n },\n 201: {\n bodyMapper: Mappers.Table\n },\n 202: {\n bodyMapper: Mappers.Table\n },\n 204: {\n bodyMapper: Mappers.Table\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table\n },\n 201: {\n bodyMapper: Mappers.Table\n },\n 202: {\n bodyMapper: Mappers.Table\n },\n 204: {\n bodyMapper: Mappers.Table\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst migrateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelSearchOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/cancelSearch\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.tableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}