@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
@@ -13,6 +13,8 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
13
  const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
14
  const index_js_1 = require("./operations/index.js");
15
15
  class OperationalInsightsManagementClient extends coreClient.ServiceClient {
16
+ $host;
17
+ subscriptionId;
16
18
  /**
17
19
  * Initializes a new instance of the OperationalInsightsManagementClient class.
18
20
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -20,7 +22,6 @@ class OperationalInsightsManagementClient extends coreClient.ServiceClient {
20
22
  * @param options The parameter options
21
23
  */
22
24
  constructor(credentials, subscriptionId, options) {
23
- var _a, _b, _c;
24
25
  if (credentials === undefined) {
25
26
  throw new Error("'credentials' cannot be null");
26
27
  }
@@ -39,12 +40,17 @@ class OperationalInsightsManagementClient extends coreClient.ServiceClient {
39
40
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
40
41
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
41
42
  : `${packageDetails}`;
42
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
43
+ const optionsWithDefaults = {
44
+ ...defaults,
45
+ ...options,
46
+ userAgentOptions: {
43
47
  userAgentPrefix
44
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
48
+ },
49
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
50
+ };
45
51
  super(optionsWithDefaults);
46
52
  let bearerTokenAuthenticationPolicyFound = false;
47
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
53
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
48
54
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
55
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
50
56
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -58,7 +64,8 @@ class OperationalInsightsManagementClient extends coreClient.ServiceClient {
58
64
  });
59
65
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
60
66
  credential: credentials,
61
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
67
+ scopes: optionsWithDefaults.credentialScopes ??
68
+ `${optionsWithDefaults.endpoint}/.default`,
62
69
  challengeCallbacks: {
63
70
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
64
71
  }
@@ -91,6 +98,28 @@ class OperationalInsightsManagementClient extends coreClient.ServiceClient {
91
98
  this.deletedWorkspaces = new index_js_1.DeletedWorkspacesImpl(this);
92
99
  this.tables = new index_js_1.TablesImpl(this);
93
100
  }
101
+ queryPacks;
102
+ queries;
103
+ dataExports;
104
+ dataSources;
105
+ intelligencePacks;
106
+ linkedServices;
107
+ linkedStorageAccounts;
108
+ managementGroups;
109
+ operationStatuses;
110
+ sharedKeysOperations;
111
+ usages;
112
+ storageInsightConfigs;
113
+ savedSearches;
114
+ availableServiceTiers;
115
+ gateways;
116
+ schemaOperations;
117
+ workspacePurge;
118
+ clusters;
119
+ operations;
120
+ workspaces;
121
+ deletedWorkspaces;
122
+ tables;
94
123
  }
95
124
  exports.OperationalInsightsManagementClient = OperationalInsightsManagementClient;
96
125
  //# sourceMappingURL=operationalInsightsManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operationalInsightsManagementClient.js","sourceRoot":"","sources":["../../src/operationalInsightsManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAuB+B;AA2B/B,MAAa,mCAAoC,SAAQ,UAAU,CAAC,aAAa;IAI/E;;;;;OAKG;IACH,YACE,WAAqC,EAC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QACjE,IAAI,CAAC,gBAAgB,GAAG,IAAI,+BAAoB,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,CAAC,iBAAiB,GAAG,IAAI,gCAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,oBAAoB,GAAG,IAAI,mCAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,MAAM,GAAG,IAAI,qBAAU,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,qBAAqB,GAAG,IAAI,oCAAyB,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,aAAa,GAAG,IAAI,4BAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,qBAAqB,GAAG,IAAI,oCAAyB,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,IAAI,uBAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,gBAAgB,GAAG,IAAI,+BAAoB,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,CAAC,cAAc,GAAG,IAAI,6BAAkB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,IAAI,uBAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,yBAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,yBAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,IAAI,gCAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,GAAG,IAAI,qBAAU,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CAwBF;AAlID,kFAkIC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n QueryPacksImpl,\n QueriesImpl,\n DataExportsImpl,\n DataSourcesImpl,\n IntelligencePacksImpl,\n LinkedServicesImpl,\n LinkedStorageAccountsImpl,\n ManagementGroupsImpl,\n OperationStatusesImpl,\n SharedKeysOperationsImpl,\n UsagesImpl,\n StorageInsightConfigsImpl,\n SavedSearchesImpl,\n AvailableServiceTiersImpl,\n GatewaysImpl,\n SchemaOperationsImpl,\n WorkspacePurgeImpl,\n ClustersImpl,\n OperationsImpl,\n WorkspacesImpl,\n DeletedWorkspacesImpl,\n TablesImpl\n} from \"./operations/index.js\";\nimport {\n QueryPacks,\n Queries,\n DataExports,\n DataSources,\n IntelligencePacks,\n LinkedServices,\n LinkedStorageAccounts,\n ManagementGroups,\n OperationStatuses,\n SharedKeysOperations,\n Usages,\n StorageInsightConfigs,\n SavedSearches,\n AvailableServiceTiers,\n Gateways,\n SchemaOperations,\n WorkspacePurge,\n Clusters,\n Operations,\n Workspaces,\n DeletedWorkspaces,\n Tables\n} from \"./operationsInterfaces/index.js\";\nimport { OperationalInsightsManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class OperationalInsightsManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the OperationalInsightsManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: OperationalInsightsManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: OperationalInsightsManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-operationalinsights/9.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.queryPacks = new QueryPacksImpl(this);\n this.queries = new QueriesImpl(this);\n this.dataExports = new DataExportsImpl(this);\n this.dataSources = new DataSourcesImpl(this);\n this.intelligencePacks = new IntelligencePacksImpl(this);\n this.linkedServices = new LinkedServicesImpl(this);\n this.linkedStorageAccounts = new LinkedStorageAccountsImpl(this);\n this.managementGroups = new ManagementGroupsImpl(this);\n this.operationStatuses = new OperationStatusesImpl(this);\n this.sharedKeysOperations = new SharedKeysOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.storageInsightConfigs = new StorageInsightConfigsImpl(this);\n this.savedSearches = new SavedSearchesImpl(this);\n this.availableServiceTiers = new AvailableServiceTiersImpl(this);\n this.gateways = new GatewaysImpl(this);\n this.schemaOperations = new SchemaOperationsImpl(this);\n this.workspacePurge = new WorkspacePurgeImpl(this);\n this.clusters = new ClustersImpl(this);\n this.operations = new OperationsImpl(this);\n this.workspaces = new WorkspacesImpl(this);\n this.deletedWorkspaces = new DeletedWorkspacesImpl(this);\n this.tables = new TablesImpl(this);\n }\n\n queryPacks: QueryPacks;\n queries: Queries;\n dataExports: DataExports;\n dataSources: DataSources;\n intelligencePacks: IntelligencePacks;\n linkedServices: LinkedServices;\n linkedStorageAccounts: LinkedStorageAccounts;\n managementGroups: ManagementGroups;\n operationStatuses: OperationStatuses;\n sharedKeysOperations: SharedKeysOperations;\n usages: Usages;\n storageInsightConfigs: StorageInsightConfigs;\n savedSearches: SavedSearches;\n availableServiceTiers: AvailableServiceTiers;\n gateways: Gateways;\n schemaOperations: SchemaOperations;\n workspacePurge: WorkspacePurge;\n clusters: Clusters;\n operations: Operations;\n workspaces: Workspaces;\n deletedWorkspaces: DeletedWorkspaces;\n tables: Tables;\n}\n"]}
1
+ {"version":3,"file":"operationalInsightsManagementClient.js","sourceRoot":"","sources":["../../src/operationalInsightsManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAuB+B;AA2B/B,MAAa,mCAAoC,SAAQ,UAAU,CAAC,aAAa;IAC/E,KAAK,CAAS;IACd,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA2D;QAE3D,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAA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Aa;IACvB,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,MAAM,CAAS;CAChB;AAlID,kFAkIC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n QueryPacksImpl,\n QueriesImpl,\n DataExportsImpl,\n DataSourcesImpl,\n IntelligencePacksImpl,\n LinkedServicesImpl,\n LinkedStorageAccountsImpl,\n ManagementGroupsImpl,\n OperationStatusesImpl,\n SharedKeysOperationsImpl,\n UsagesImpl,\n StorageInsightConfigsImpl,\n SavedSearchesImpl,\n AvailableServiceTiersImpl,\n GatewaysImpl,\n SchemaOperationsImpl,\n WorkspacePurgeImpl,\n ClustersImpl,\n OperationsImpl,\n WorkspacesImpl,\n DeletedWorkspacesImpl,\n TablesImpl\n} from \"./operations/index.js\";\nimport {\n QueryPacks,\n Queries,\n DataExports,\n DataSources,\n IntelligencePacks,\n LinkedServices,\n LinkedStorageAccounts,\n ManagementGroups,\n OperationStatuses,\n SharedKeysOperations,\n Usages,\n StorageInsightConfigs,\n SavedSearches,\n AvailableServiceTiers,\n Gateways,\n SchemaOperations,\n WorkspacePurge,\n Clusters,\n Operations,\n Workspaces,\n DeletedWorkspaces,\n Tables\n} from \"./operationsInterfaces/index.js\";\nimport { OperationalInsightsManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class OperationalInsightsManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the OperationalInsightsManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: OperationalInsightsManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: OperationalInsightsManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-operationalinsights/9.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.queryPacks = new QueryPacksImpl(this);\n this.queries = new QueriesImpl(this);\n this.dataExports = new DataExportsImpl(this);\n this.dataSources = new DataSourcesImpl(this);\n this.intelligencePacks = new IntelligencePacksImpl(this);\n this.linkedServices = new LinkedServicesImpl(this);\n this.linkedStorageAccounts = new LinkedStorageAccountsImpl(this);\n this.managementGroups = new ManagementGroupsImpl(this);\n this.operationStatuses = new OperationStatusesImpl(this);\n this.sharedKeysOperations = new SharedKeysOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.storageInsightConfigs = new StorageInsightConfigsImpl(this);\n this.savedSearches = new SavedSearchesImpl(this);\n this.availableServiceTiers = new AvailableServiceTiersImpl(this);\n this.gateways = new GatewaysImpl(this);\n this.schemaOperations = new SchemaOperationsImpl(this);\n this.workspacePurge = new WorkspacePurgeImpl(this);\n this.clusters = new ClustersImpl(this);\n this.operations = new OperationsImpl(this);\n this.workspaces = new WorkspacesImpl(this);\n this.deletedWorkspaces = new DeletedWorkspacesImpl(this);\n this.tables = new TablesImpl(this);\n }\n\n queryPacks: QueryPacks;\n queries: Queries;\n dataExports: DataExports;\n dataSources: DataSources;\n intelligencePacks: IntelligencePacks;\n linkedServices: LinkedServices;\n linkedStorageAccounts: LinkedStorageAccounts;\n managementGroups: ManagementGroups;\n operationStatuses: OperationStatuses;\n sharedKeysOperations: SharedKeysOperations;\n usages: Usages;\n storageInsightConfigs: StorageInsightConfigs;\n savedSearches: SavedSearches;\n availableServiceTiers: AvailableServiceTiers;\n gateways: Gateways;\n schemaOperations: SchemaOperations;\n workspacePurge: WorkspacePurge;\n clusters: Clusters;\n operations: Operations;\n workspaces: Workspaces;\n deletedWorkspaces: DeletedWorkspaces;\n tables: Tables;\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 AvailableServiceTiers operations. */
16
16
  class AvailableServiceTiersImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class AvailableServiceTiers class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"availableServiceTiers.js","sourceRoot":"","sources":["../../../src/operations/availableServiceTiers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,yDAAyD;AACzD,MAAa,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,eAAe,CACb,iBAAyB,EACzB,aAAqB,EACrB,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,4BAA4B,CAC7B,CAAC;IACJ,CAAC;CACF;AA3BD,8DA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EACF,6JAA6J;IAC/J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,sBAAsB,EAAE;qBAC/D;iBACF;aACF;SACF;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 { AvailableServiceTiers } 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 AvailableServiceTiersListByWorkspaceOptionalParams,\n AvailableServiceTiersListByWorkspaceResponse\n} from \"../models/index.js\";\n\n/** Class containing AvailableServiceTiers operations. */\nexport class AvailableServiceTiersImpl implements AvailableServiceTiers {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class AvailableServiceTiers class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the available service tiers for 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 listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: AvailableServiceTiersListByWorkspaceOptionalParams\n ): Promise<AvailableServiceTiersListByWorkspaceResponse> {\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 listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"AvailableServiceTier\" }\n }\n }\n }\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":"availableServiceTiers.js","sourceRoot":"","sources":["../../../src/operations/availableServiceTiers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,yDAAyD;AACzD,MAAa,yBAAyB;IACnB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,eAAe,CACb,iBAAyB,EACzB,aAAqB,EACrB,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,4BAA4B,CAC7B,CAAC;IACJ,CAAC;CACF;AA3BD,8DA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EACF,6JAA6J;IAC/J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,sBAAsB,EAAE;qBAC/D;iBACF;aACF;SACF;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 { AvailableServiceTiers } 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 AvailableServiceTiersListByWorkspaceOptionalParams,\n AvailableServiceTiersListByWorkspaceResponse\n} from \"../models/index.js\";\n\n/** Class containing AvailableServiceTiers operations. */\nexport class AvailableServiceTiersImpl implements AvailableServiceTiers {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class AvailableServiceTiers class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the available service tiers for 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 listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: AvailableServiceTiersListByWorkspaceOptionalParams\n ): Promise<AvailableServiceTiersListByWorkspaceResponse> {\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 listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"AvailableServiceTier\" }\n }\n }\n }\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"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing Clusters operations. */
20
20
  class ClustersImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class Clusters class.
23
24
  * @param client Reference to the service client
@@ -40,52 +41,35 @@ class ClustersImpl {
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.listByResourceGroupPagingPage(resourceGroupName, options, settings);
47
48
  }
48
49
  };
49
50
  }
50
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
51
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
52
- let result;
53
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
- if (!continuationToken) {
55
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
56
- let page = result.value || [];
57
- continuationToken = result.nextLink;
58
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
- yield yield tslib_1.__await(page);
60
- }
61
- while (continuationToken) {
62
- result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
63
- continuationToken = result.nextLink;
64
- let page = result.value || [];
65
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
- yield yield tslib_1.__await(page);
67
- }
68
- });
51
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
52
+ let result;
53
+ let continuationToken = settings?.continuationToken;
54
+ if (!continuationToken) {
55
+ result = await this._listByResourceGroup(resourceGroupName, options);
56
+ let page = result.value || [];
57
+ continuationToken = result.nextLink;
58
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
+ yield page;
60
+ }
61
+ while (continuationToken) {
62
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
63
+ continuationToken = result.nextLink;
64
+ let page = result.value || [];
65
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
+ yield page;
67
+ }
69
68
  }
70
- listByResourceGroupPagingAll(resourceGroupName, options) {
71
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
72
- var _a, e_1, _b, _c;
73
- try {
74
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
75
- _c = _f.value;
76
- _d = false;
77
- const page = _c;
78
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
79
- }
80
- }
81
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
- finally {
83
- try {
84
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
85
- }
86
- finally { if (e_1) throw e_1.error; }
87
- }
88
- });
69
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
70
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
71
+ yield* page;
72
+ }
89
73
  }
90
74
  /**
91
75
  * Gets the Log Analytics clusters in a subscription.
@@ -101,52 +85,35 @@ class ClustersImpl {
101
85
  return this;
102
86
  },
103
87
  byPage: (settings) => {
104
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
88
+ if (settings?.maxPageSize) {
105
89
  throw new Error("maxPageSize is not supported by this operation.");
106
90
  }
107
91
  return this.listPagingPage(options, settings);
108
92
  }
109
93
  };
110
94
  }
111
- listPagingPage(options, settings) {
112
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
113
- let result;
114
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
- if (!continuationToken) {
116
- result = yield tslib_1.__await(this._list(options));
117
- let page = result.value || [];
118
- continuationToken = result.nextLink;
119
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
- yield yield tslib_1.__await(page);
121
- }
122
- while (continuationToken) {
123
- result = yield tslib_1.__await(this._listNext(continuationToken, options));
124
- continuationToken = result.nextLink;
125
- let page = result.value || [];
126
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
- yield yield tslib_1.__await(page);
128
- }
129
- });
95
+ async *listPagingPage(options, settings) {
96
+ let result;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._list(options);
100
+ let page = result.value || [];
101
+ continuationToken = result.nextLink;
102
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
103
+ yield page;
104
+ }
105
+ while (continuationToken) {
106
+ result = await this._listNext(continuationToken, options);
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
+ yield page;
111
+ }
130
112
  }
131
- listPagingAll(options) {
132
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
133
- var _a, e_2, _b, _c;
134
- try {
135
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
136
- _c = _f.value;
137
- _d = false;
138
- const page = _c;
139
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
140
- }
141
- }
142
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
- finally {
144
- try {
145
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
146
- }
147
- finally { if (e_2) throw e_2.error; }
148
- }
149
- });
113
+ async *listPagingAll(options) {
114
+ for await (const page of this.listPagingPage(options)) {
115
+ yield* page;
116
+ }
150
117
  }
151
118
  /**
152
119
  * Gets Log Analytics clusters in a resource group.
@@ -175,14 +142,19 @@ class ClustersImpl {
175
142
  return this.client.sendOperationRequest(args, spec);
176
143
  };
177
144
  const sendOperation = async (args, spec) => {
178
- var _a;
179
145
  let currentRawResponse = undefined;
180
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
146
+ const providedCallback = args.options?.onResponse;
181
147
  const callback = (rawResponse, flatResponse) => {
182
148
  currentRawResponse = rawResponse;
183
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
149
+ providedCallback?.(rawResponse, flatResponse);
150
+ };
151
+ const updatedArgs = {
152
+ ...args,
153
+ options: {
154
+ ...args.options,
155
+ onResponse: callback
156
+ }
184
157
  };
185
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
186
158
  const flatResponse = await directSendOperation(updatedArgs, spec);
187
159
  return {
188
160
  flatResponse,
@@ -195,8 +167,8 @@ class ClustersImpl {
195
167
  };
196
168
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOrUpdateOperationSpec);
197
169
  const poller = new core_lro_1.LroEngine(lro, {
198
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
199
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
170
+ resumeFrom: options?.resumeFrom,
171
+ intervalInMs: options?.updateIntervalInMs
200
172
  });
201
173
  await poller.poll();
202
174
  return poller;
@@ -223,14 +195,19 @@ class ClustersImpl {
223
195
  return this.client.sendOperationRequest(args, spec);
224
196
  };
225
197
  const sendOperation = async (args, spec) => {
226
- var _a;
227
198
  let currentRawResponse = undefined;
228
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
199
+ const providedCallback = args.options?.onResponse;
229
200
  const callback = (rawResponse, flatResponse) => {
230
201
  currentRawResponse = rawResponse;
231
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
202
+ providedCallback?.(rawResponse, flatResponse);
203
+ };
204
+ const updatedArgs = {
205
+ ...args,
206
+ options: {
207
+ ...args.options,
208
+ onResponse: callback
209
+ }
232
210
  };
233
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
234
211
  const flatResponse = await directSendOperation(updatedArgs, spec);
235
212
  return {
236
213
  flatResponse,
@@ -243,8 +220,8 @@ class ClustersImpl {
243
220
  };
244
221
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec);
245
222
  const poller = new core_lro_1.LroEngine(lro, {
246
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
247
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
223
+ resumeFrom: options?.resumeFrom,
224
+ intervalInMs: options?.updateIntervalInMs
248
225
  });
249
226
  await poller.poll();
250
227
  return poller;
@@ -280,14 +257,19 @@ class ClustersImpl {
280
257
  return this.client.sendOperationRequest(args, spec);
281
258
  };
282
259
  const sendOperation = async (args, spec) => {
283
- var _a;
284
260
  let currentRawResponse = undefined;
285
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
261
+ const providedCallback = args.options?.onResponse;
286
262
  const callback = (rawResponse, flatResponse) => {
287
263
  currentRawResponse = rawResponse;
288
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
264
+ providedCallback?.(rawResponse, flatResponse);
265
+ };
266
+ const updatedArgs = {
267
+ ...args,
268
+ options: {
269
+ ...args.options,
270
+ onResponse: callback
271
+ }
289
272
  };
290
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
291
273
  const flatResponse = await directSendOperation(updatedArgs, spec);
292
274
  return {
293
275
  flatResponse,
@@ -300,8 +282,8 @@ class ClustersImpl {
300
282
  };
301
283
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateOperationSpec);
302
284
  const poller = new core_lro_1.LroEngine(lro, {
303
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
304
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
285
+ resumeFrom: options?.resumeFrom,
286
+ intervalInMs: options?.updateIntervalInMs
305
287
  });
306
288
  await poller.poll();
307
289
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"clusters.js","sourceRoot":"","sources":["../../../src/operations/clusters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAqBxC,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,OAAmD,EACnD,QAAuB;;YAEvB,IAAI,MAA2C,CAAC;YAChD,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,C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AAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;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 { Clusters } 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 Cluster,\n ClustersListByResourceGroupNextOptionalParams,\n ClustersListByResourceGroupOptionalParams,\n ClustersListByResourceGroupResponse,\n ClustersListNextOptionalParams,\n ClustersListOptionalParams,\n ClustersListResponse,\n ClustersCreateOrUpdateOptionalParams,\n ClustersCreateOrUpdateResponse,\n ClustersDeleteOptionalParams,\n ClustersGetOptionalParams,\n ClustersGetResponse,\n ClusterPatch,\n ClustersUpdateOptionalParams,\n ClustersUpdateResponse,\n ClustersListByResourceGroupNextResponse,\n ClustersListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Clusters operations. */\nexport class ClustersImpl implements Clusters {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Clusters class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets Log Analytics clusters in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Cluster[]> {\n let result: ClustersListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the Log Analytics clusters in a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ClustersListOptionalParams\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ClustersListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Cluster[]> {\n let result: ClustersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ClustersListOptionalParams\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets Log Analytics clusters in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams\n ): Promise<ClustersListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets the Log Analytics clusters in a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ClustersListOptionalParams\n ): Promise<ClustersListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Create or update a Log Analytics cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Log Analytics cluster.\n * @param parameters The parameters required to create or update a Log Analytics cluster.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: ClustersCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ClustersCreateOrUpdateResponse>,\n ClustersCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ClustersCreateOrUpdateResponse> => {\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, clusterName, parameters, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a Log Analytics cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Log Analytics cluster.\n * @param parameters The parameters required to create or update a Log Analytics cluster.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: ClustersCreateOrUpdateOptionalParams\n ): Promise<ClustersCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a cluster instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams\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, clusterName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a cluster instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a Log Analytics cluster instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersGetOptionalParams\n ): Promise<ClustersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates a Log Analytics cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param parameters The parameters required to patch a Log Analytics cluster.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterPatch,\n options?: ClustersUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ClustersUpdateResponse>,\n ClustersUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ClustersUpdateResponse> => {\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, clusterName, parameters, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a Log Analytics cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param parameters The parameters required to patch a Log Analytics cluster.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterPatch,\n options?: ClustersUpdateOptionalParams\n ): Promise<ClustersUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ClustersListByResourceGroupNextOptionalParams\n ): Promise<ClustersListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ClustersListNextOptionalParams\n ): Promise<ClustersListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster\n },\n 201: {\n bodyMapper: Mappers.Cluster\n },\n 202: {\n bodyMapper: Mappers.Cluster\n },\n 204: {\n bodyMapper: Mappers.Cluster\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster\n },\n 201: {\n bodyMapper: Mappers.Cluster\n },\n 202: {\n bodyMapper: Mappers.Cluster\n },\n 204: {\n bodyMapper: Mappers.Cluster\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"clusters.js","sourceRoot":"","sources":["../../../src/operations/clusters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D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CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;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 { Clusters } 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 Cluster,\n ClustersListByResourceGroupNextOptionalParams,\n ClustersListByResourceGroupOptionalParams,\n ClustersListByResourceGroupResponse,\n ClustersListNextOptionalParams,\n ClustersListOptionalParams,\n ClustersListResponse,\n ClustersCreateOrUpdateOptionalParams,\n ClustersCreateOrUpdateResponse,\n ClustersDeleteOptionalParams,\n ClustersGetOptionalParams,\n ClustersGetResponse,\n ClusterPatch,\n ClustersUpdateOptionalParams,\n ClustersUpdateResponse,\n ClustersListByResourceGroupNextResponse,\n ClustersListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Clusters operations. */\nexport class ClustersImpl implements Clusters {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Clusters class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets Log Analytics clusters in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Cluster[]> {\n let result: ClustersListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the Log Analytics clusters in a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ClustersListOptionalParams\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ClustersListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Cluster[]> {\n let result: ClustersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ClustersListOptionalParams\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets Log Analytics clusters in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams\n ): Promise<ClustersListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets the Log Analytics clusters in a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ClustersListOptionalParams\n ): Promise<ClustersListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Create or update a Log Analytics cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Log Analytics cluster.\n * @param parameters The parameters required to create or update a Log Analytics cluster.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: ClustersCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ClustersCreateOrUpdateResponse>,\n ClustersCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ClustersCreateOrUpdateResponse> => {\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, clusterName, parameters, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a Log Analytics cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Log Analytics cluster.\n * @param parameters The parameters required to create or update a Log Analytics cluster.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: ClustersCreateOrUpdateOptionalParams\n ): Promise<ClustersCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a cluster instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams\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, clusterName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a cluster instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a Log Analytics cluster instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersGetOptionalParams\n ): Promise<ClustersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates a Log Analytics cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param parameters The parameters required to patch a Log Analytics cluster.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterPatch,\n options?: ClustersUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ClustersUpdateResponse>,\n ClustersUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ClustersUpdateResponse> => {\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, clusterName, parameters, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a Log Analytics cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName Name of the Log Analytics Cluster.\n * @param parameters The parameters required to patch a Log Analytics cluster.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterPatch,\n options?: ClustersUpdateOptionalParams\n ): Promise<ClustersUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ClustersListByResourceGroupNextOptionalParams\n ): Promise<ClustersListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ClustersListNextOptionalParams\n ): Promise<ClustersListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster\n },\n 201: {\n bodyMapper: Mappers.Cluster\n },\n 202: {\n bodyMapper: Mappers.Cluster\n },\n 204: {\n bodyMapper: Mappers.Cluster\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster\n },\n 201: {\n bodyMapper: Mappers.Cluster\n },\n 202: {\n bodyMapper: Mappers.Cluster\n },\n 204: {\n bodyMapper: Mappers.Cluster\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}