@azure/arm-networkcloud 1.2.0-alpha.20250718.1 → 1.2.0-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 (195) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +648 -314
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/networkCloud.js +33 -5
  6. package/dist/browser/networkCloud.js.map +1 -1
  7. package/dist/browser/operations/agentPools.js +56 -58
  8. package/dist/browser/operations/agentPools.js.map +1 -1
  9. package/dist/browser/operations/bareMetalMachineKeySets.js +56 -58
  10. package/dist/browser/operations/bareMetalMachineKeySets.js.map +1 -1
  11. package/dist/browser/operations/bareMetalMachines.js +188 -157
  12. package/dist/browser/operations/bareMetalMachines.js.map +1 -1
  13. package/dist/browser/operations/bmcKeySets.js +56 -58
  14. package/dist/browser/operations/bmcKeySets.js.map +1 -1
  15. package/dist/browser/operations/cloudServicesNetworks.js +78 -97
  16. package/dist/browser/operations/cloudServicesNetworks.js.map +1 -1
  17. package/dist/browser/operations/clusterManagers.js +67 -91
  18. package/dist/browser/operations/clusterManagers.js.map +1 -1
  19. package/dist/browser/operations/clusters.js +122 -121
  20. package/dist/browser/operations/clusters.js.map +1 -1
  21. package/dist/browser/operations/consoles.js +56 -58
  22. package/dist/browser/operations/consoles.js.map +1 -1
  23. package/dist/browser/operations/kubernetesClusterFeatures.js +56 -58
  24. package/dist/browser/operations/kubernetesClusterFeatures.js.map +1 -1
  25. package/dist/browser/operations/kubernetesClusters.js +89 -103
  26. package/dist/browser/operations/kubernetesClusters.js.map +1 -1
  27. package/dist/browser/operations/l2Networks.js +67 -91
  28. package/dist/browser/operations/l2Networks.js.map +1 -1
  29. package/dist/browser/operations/l3Networks.js +67 -91
  30. package/dist/browser/operations/l3Networks.js.map +1 -1
  31. package/dist/browser/operations/metricsConfigurations.js +56 -58
  32. package/dist/browser/operations/metricsConfigurations.js.map +1 -1
  33. package/dist/browser/operations/operations.js +23 -40
  34. package/dist/browser/operations/operations.js.map +1 -1
  35. package/dist/browser/operations/rackSkus.js +23 -40
  36. package/dist/browser/operations/rackSkus.js.map +1 -1
  37. package/dist/browser/operations/racks.js +78 -97
  38. package/dist/browser/operations/racks.js.map +1 -1
  39. package/dist/browser/operations/storageAppliances.js +100 -109
  40. package/dist/browser/operations/storageAppliances.js.map +1 -1
  41. package/dist/browser/operations/trunkedNetworks.js +67 -91
  42. package/dist/browser/operations/trunkedNetworks.js.map +1 -1
  43. package/dist/browser/operations/virtualMachines.js +122 -121
  44. package/dist/browser/operations/virtualMachines.js.map +1 -1
  45. package/dist/browser/operations/volumes.js +67 -91
  46. package/dist/browser/operations/volumes.js.map +1 -1
  47. package/dist/browser/pagingHelper.js +2 -4
  48. package/dist/browser/pagingHelper.js.map +1 -1
  49. package/dist/commonjs/lroImpl.js +7 -3
  50. package/dist/commonjs/lroImpl.js.map +1 -1
  51. package/dist/commonjs/models/mappers.js +648 -314
  52. package/dist/commonjs/models/mappers.js.map +1 -1
  53. package/dist/commonjs/networkCloud.js +33 -5
  54. package/dist/commonjs/networkCloud.js.map +1 -1
  55. package/dist/commonjs/operations/agentPools.js +56 -57
  56. package/dist/commonjs/operations/agentPools.js.map +1 -1
  57. package/dist/commonjs/operations/bareMetalMachineKeySets.js +56 -57
  58. package/dist/commonjs/operations/bareMetalMachineKeySets.js.map +1 -1
  59. package/dist/commonjs/operations/bareMetalMachines.js +188 -156
  60. package/dist/commonjs/operations/bareMetalMachines.js.map +1 -1
  61. package/dist/commonjs/operations/bmcKeySets.js +56 -57
  62. package/dist/commonjs/operations/bmcKeySets.js.map +1 -1
  63. package/dist/commonjs/operations/cloudServicesNetworks.js +78 -96
  64. package/dist/commonjs/operations/cloudServicesNetworks.js.map +1 -1
  65. package/dist/commonjs/operations/clusterManagers.js +67 -90
  66. package/dist/commonjs/operations/clusterManagers.js.map +1 -1
  67. package/dist/commonjs/operations/clusters.js +122 -120
  68. package/dist/commonjs/operations/clusters.js.map +1 -1
  69. package/dist/commonjs/operations/consoles.js +56 -57
  70. package/dist/commonjs/operations/consoles.js.map +1 -1
  71. package/dist/commonjs/operations/kubernetesClusterFeatures.js +56 -57
  72. package/dist/commonjs/operations/kubernetesClusterFeatures.js.map +1 -1
  73. package/dist/commonjs/operations/kubernetesClusters.js +89 -102
  74. package/dist/commonjs/operations/kubernetesClusters.js.map +1 -1
  75. package/dist/commonjs/operations/l2Networks.js +67 -90
  76. package/dist/commonjs/operations/l2Networks.js.map +1 -1
  77. package/dist/commonjs/operations/l3Networks.js +67 -90
  78. package/dist/commonjs/operations/l3Networks.js.map +1 -1
  79. package/dist/commonjs/operations/metricsConfigurations.js +56 -57
  80. package/dist/commonjs/operations/metricsConfigurations.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/rackSkus.js +23 -39
  84. package/dist/commonjs/operations/rackSkus.js.map +1 -1
  85. package/dist/commonjs/operations/racks.js +78 -96
  86. package/dist/commonjs/operations/racks.js.map +1 -1
  87. package/dist/commonjs/operations/storageAppliances.js +100 -108
  88. package/dist/commonjs/operations/storageAppliances.js.map +1 -1
  89. package/dist/commonjs/operations/trunkedNetworks.js +67 -90
  90. package/dist/commonjs/operations/trunkedNetworks.js.map +1 -1
  91. package/dist/commonjs/operations/virtualMachines.js +122 -120
  92. package/dist/commonjs/operations/virtualMachines.js.map +1 -1
  93. package/dist/commonjs/operations/volumes.js +67 -90
  94. package/dist/commonjs/operations/volumes.js.map +1 -1
  95. package/dist/commonjs/pagingHelper.js +2 -4
  96. package/dist/commonjs/pagingHelper.js.map +1 -1
  97. package/dist/commonjs/tsdoc-metadata.json +11 -11
  98. package/dist/esm/lroImpl.js +7 -3
  99. package/dist/esm/lroImpl.js.map +1 -1
  100. package/dist/esm/models/mappers.js +648 -314
  101. package/dist/esm/models/mappers.js.map +1 -1
  102. package/dist/esm/networkCloud.js +33 -5
  103. package/dist/esm/networkCloud.js.map +1 -1
  104. package/dist/esm/operations/agentPools.js +56 -58
  105. package/dist/esm/operations/agentPools.js.map +1 -1
  106. package/dist/esm/operations/bareMetalMachineKeySets.js +56 -58
  107. package/dist/esm/operations/bareMetalMachineKeySets.js.map +1 -1
  108. package/dist/esm/operations/bareMetalMachines.js +188 -157
  109. package/dist/esm/operations/bareMetalMachines.js.map +1 -1
  110. package/dist/esm/operations/bmcKeySets.js +56 -58
  111. package/dist/esm/operations/bmcKeySets.js.map +1 -1
  112. package/dist/esm/operations/cloudServicesNetworks.js +78 -97
  113. package/dist/esm/operations/cloudServicesNetworks.js.map +1 -1
  114. package/dist/esm/operations/clusterManagers.js +67 -91
  115. package/dist/esm/operations/clusterManagers.js.map +1 -1
  116. package/dist/esm/operations/clusters.js +122 -121
  117. package/dist/esm/operations/clusters.js.map +1 -1
  118. package/dist/esm/operations/consoles.js +56 -58
  119. package/dist/esm/operations/consoles.js.map +1 -1
  120. package/dist/esm/operations/kubernetesClusterFeatures.js +56 -58
  121. package/dist/esm/operations/kubernetesClusterFeatures.js.map +1 -1
  122. package/dist/esm/operations/kubernetesClusters.js +89 -103
  123. package/dist/esm/operations/kubernetesClusters.js.map +1 -1
  124. package/dist/esm/operations/l2Networks.js +67 -91
  125. package/dist/esm/operations/l2Networks.js.map +1 -1
  126. package/dist/esm/operations/l3Networks.js +67 -91
  127. package/dist/esm/operations/l3Networks.js.map +1 -1
  128. package/dist/esm/operations/metricsConfigurations.js +56 -58
  129. package/dist/esm/operations/metricsConfigurations.js.map +1 -1
  130. package/dist/esm/operations/operations.js +23 -40
  131. package/dist/esm/operations/operations.js.map +1 -1
  132. package/dist/esm/operations/rackSkus.js +23 -40
  133. package/dist/esm/operations/rackSkus.js.map +1 -1
  134. package/dist/esm/operations/racks.js +78 -97
  135. package/dist/esm/operations/racks.js.map +1 -1
  136. package/dist/esm/operations/storageAppliances.js +100 -109
  137. package/dist/esm/operations/storageAppliances.js.map +1 -1
  138. package/dist/esm/operations/trunkedNetworks.js +67 -91
  139. package/dist/esm/operations/trunkedNetworks.js.map +1 -1
  140. package/dist/esm/operations/virtualMachines.js +122 -121
  141. package/dist/esm/operations/virtualMachines.js.map +1 -1
  142. package/dist/esm/operations/volumes.js +67 -91
  143. package/dist/esm/operations/volumes.js.map +1 -1
  144. package/dist/esm/pagingHelper.js +2 -4
  145. package/dist/esm/pagingHelper.js.map +1 -1
  146. package/dist/react-native/lroImpl.js +7 -3
  147. package/dist/react-native/lroImpl.js.map +1 -1
  148. package/dist/react-native/models/mappers.js +648 -314
  149. package/dist/react-native/models/mappers.js.map +1 -1
  150. package/dist/react-native/networkCloud.js +33 -5
  151. package/dist/react-native/networkCloud.js.map +1 -1
  152. package/dist/react-native/operations/agentPools.js +56 -58
  153. package/dist/react-native/operations/agentPools.js.map +1 -1
  154. package/dist/react-native/operations/bareMetalMachineKeySets.js +56 -58
  155. package/dist/react-native/operations/bareMetalMachineKeySets.js.map +1 -1
  156. package/dist/react-native/operations/bareMetalMachines.js +188 -157
  157. package/dist/react-native/operations/bareMetalMachines.js.map +1 -1
  158. package/dist/react-native/operations/bmcKeySets.js +56 -58
  159. package/dist/react-native/operations/bmcKeySets.js.map +1 -1
  160. package/dist/react-native/operations/cloudServicesNetworks.js +78 -97
  161. package/dist/react-native/operations/cloudServicesNetworks.js.map +1 -1
  162. package/dist/react-native/operations/clusterManagers.js +67 -91
  163. package/dist/react-native/operations/clusterManagers.js.map +1 -1
  164. package/dist/react-native/operations/clusters.js +122 -121
  165. package/dist/react-native/operations/clusters.js.map +1 -1
  166. package/dist/react-native/operations/consoles.js +56 -58
  167. package/dist/react-native/operations/consoles.js.map +1 -1
  168. package/dist/react-native/operations/kubernetesClusterFeatures.js +56 -58
  169. package/dist/react-native/operations/kubernetesClusterFeatures.js.map +1 -1
  170. package/dist/react-native/operations/kubernetesClusters.js +89 -103
  171. package/dist/react-native/operations/kubernetesClusters.js.map +1 -1
  172. package/dist/react-native/operations/l2Networks.js +67 -91
  173. package/dist/react-native/operations/l2Networks.js.map +1 -1
  174. package/dist/react-native/operations/l3Networks.js +67 -91
  175. package/dist/react-native/operations/l3Networks.js.map +1 -1
  176. package/dist/react-native/operations/metricsConfigurations.js +56 -58
  177. package/dist/react-native/operations/metricsConfigurations.js.map +1 -1
  178. package/dist/react-native/operations/operations.js +23 -40
  179. package/dist/react-native/operations/operations.js.map +1 -1
  180. package/dist/react-native/operations/rackSkus.js +23 -40
  181. package/dist/react-native/operations/rackSkus.js.map +1 -1
  182. package/dist/react-native/operations/racks.js +78 -97
  183. package/dist/react-native/operations/racks.js.map +1 -1
  184. package/dist/react-native/operations/storageAppliances.js +100 -109
  185. package/dist/react-native/operations/storageAppliances.js.map +1 -1
  186. package/dist/react-native/operations/trunkedNetworks.js +67 -91
  187. package/dist/react-native/operations/trunkedNetworks.js.map +1 -1
  188. package/dist/react-native/operations/virtualMachines.js +122 -121
  189. package/dist/react-native/operations/virtualMachines.js.map +1 -1
  190. package/dist/react-native/operations/volumes.js +67 -91
  191. package/dist/react-native/operations/volumes.js.map +1 -1
  192. package/dist/react-native/pagingHelper.js +2 -4
  193. package/dist/react-native/pagingHelper.js.map +1 -1
  194. package/package.json +2 -2
  195. package/review/arm-networkcloud-node.api.md +4516 -4516
@@ -1 +1 @@
1
- {"version":3,"file":"consoles.js","sourceRoot":"","sources":["../../../src/operations/consoles.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,oBAAoB,CACzB,iBAAyB,EACzB,kBAA0B,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U,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Consoles } 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 { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Console,\n ConsolesListByVirtualMachineNextOptionalParams,\n ConsolesListByVirtualMachineOptionalParams,\n ConsolesListByVirtualMachineResponse,\n ConsolesGetOptionalParams,\n ConsolesGetResponse,\n ConsolesCreateOrUpdateOptionalParams,\n ConsolesCreateOrUpdateResponse,\n ConsolesDeleteOptionalParams,\n ConsolesDeleteResponse,\n ConsolesUpdateOptionalParams,\n ConsolesUpdateResponse,\n ConsolesListByVirtualMachineNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Consoles operations. */\nexport class ConsolesImpl implements Consoles {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class Consoles class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of consoles for the provided virtual machine.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param options The options parameters.\n */\n public listByVirtualMachine(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): PagedAsyncIterableIterator<Console> {\n const iter = this.listByVirtualMachinePagingAll(\n resourceGroupName,\n virtualMachineName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByVirtualMachinePagingPage(\n resourceGroupName,\n virtualMachineName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByVirtualMachinePagingPage(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Console[]> {\n let result: ConsolesListByVirtualMachineResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByVirtualMachine(\n resourceGroupName,\n virtualMachineName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByVirtualMachineNext(\n resourceGroupName,\n virtualMachineName,\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 *listByVirtualMachinePagingAll(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): AsyncIterableIterator<Console> {\n for await (const page of this.listByVirtualMachinePagingPage(\n resourceGroupName,\n virtualMachineName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of consoles for the provided virtual machine.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param options The options parameters.\n */\n private _listByVirtualMachine(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): Promise<ConsolesListByVirtualMachineResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, options },\n listByVirtualMachineOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesGetOptionalParams,\n ): Promise<ConsolesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, consoleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new virtual machine console or update the properties of the existing virtual machine\n * console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param consoleParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n consoleParameters: Console,\n options?: ConsolesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesCreateOrUpdateResponse>,\n ConsolesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n virtualMachineName,\n consoleName,\n consoleParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesCreateOrUpdateResponse,\n OperationState<ConsolesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new virtual machine console or update the properties of the existing virtual machine\n * console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param consoleParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n consoleParameters: Console,\n options?: ConsolesCreateOrUpdateOptionalParams,\n ): Promise<ConsolesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n consoleParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesDeleteResponse>,\n ConsolesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, virtualMachineName, consoleName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesDeleteResponse,\n OperationState<ConsolesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesDeleteOptionalParams,\n ): Promise<ConsolesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch the properties of the provided virtual machine console, or update the tags associated with the\n * virtual machine console. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesUpdateResponse>,\n ConsolesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, virtualMachineName, consoleName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesUpdateResponse,\n OperationState<ConsolesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch the properties of the provided virtual machine console, or update the tags associated with the\n * virtual machine console. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesUpdateOptionalParams,\n ): Promise<ConsolesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByVirtualMachineNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param nextLink The nextLink from the previous successful call to the ListByVirtualMachine method.\n * @param options The options parameters.\n */\n private _listByVirtualMachineNext(\n resourceGroupName: string,\n virtualMachineName: string,\n nextLink: string,\n options?: ConsolesListByVirtualMachineNextOptionalParams,\n ): Promise<ConsolesListByVirtualMachineNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, nextLink, options },\n listByVirtualMachineNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByVirtualMachineOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConsoleList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n 201: {\n bodyMapper: Mappers.Console,\n },\n 202: {\n bodyMapper: Mappers.Console,\n },\n 204: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.consoleParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n 201: {\n bodyMapper: Mappers.Console,\n },\n 202: {\n bodyMapper: Mappers.Console,\n },\n 204: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.consoleUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConsoleList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"consoles.js","sourceRoot":"","sources":["../../../src/operations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AK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Consoles } 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 { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Console,\n ConsolesListByVirtualMachineNextOptionalParams,\n ConsolesListByVirtualMachineOptionalParams,\n ConsolesListByVirtualMachineResponse,\n ConsolesGetOptionalParams,\n ConsolesGetResponse,\n ConsolesCreateOrUpdateOptionalParams,\n ConsolesCreateOrUpdateResponse,\n ConsolesDeleteOptionalParams,\n ConsolesDeleteResponse,\n ConsolesUpdateOptionalParams,\n ConsolesUpdateResponse,\n ConsolesListByVirtualMachineNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Consoles operations. */\nexport class ConsolesImpl implements Consoles {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class Consoles class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of consoles for the provided virtual machine.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param options The options parameters.\n */\n public listByVirtualMachine(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): PagedAsyncIterableIterator<Console> {\n const iter = this.listByVirtualMachinePagingAll(\n resourceGroupName,\n virtualMachineName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByVirtualMachinePagingPage(\n resourceGroupName,\n virtualMachineName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByVirtualMachinePagingPage(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Console[]> {\n let result: ConsolesListByVirtualMachineResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByVirtualMachine(\n resourceGroupName,\n virtualMachineName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByVirtualMachineNext(\n resourceGroupName,\n virtualMachineName,\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 *listByVirtualMachinePagingAll(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): AsyncIterableIterator<Console> {\n for await (const page of this.listByVirtualMachinePagingPage(\n resourceGroupName,\n virtualMachineName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of consoles for the provided virtual machine.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param options The options parameters.\n */\n private _listByVirtualMachine(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): Promise<ConsolesListByVirtualMachineResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, options },\n listByVirtualMachineOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesGetOptionalParams,\n ): Promise<ConsolesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, consoleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new virtual machine console or update the properties of the existing virtual machine\n * console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param consoleParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n consoleParameters: Console,\n options?: ConsolesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesCreateOrUpdateResponse>,\n ConsolesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n virtualMachineName,\n consoleName,\n consoleParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesCreateOrUpdateResponse,\n OperationState<ConsolesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new virtual machine console or update the properties of the existing virtual machine\n * console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param consoleParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n consoleParameters: Console,\n options?: ConsolesCreateOrUpdateOptionalParams,\n ): Promise<ConsolesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n consoleParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesDeleteResponse>,\n ConsolesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, virtualMachineName, consoleName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesDeleteResponse,\n OperationState<ConsolesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesDeleteOptionalParams,\n ): Promise<ConsolesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch the properties of the provided virtual machine console, or update the tags associated with the\n * virtual machine console. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesUpdateResponse>,\n ConsolesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, virtualMachineName, consoleName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesUpdateResponse,\n OperationState<ConsolesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch the properties of the provided virtual machine console, or update the tags associated with the\n * virtual machine console. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesUpdateOptionalParams,\n ): Promise<ConsolesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByVirtualMachineNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param nextLink The nextLink from the previous successful call to the ListByVirtualMachine method.\n * @param options The options parameters.\n */\n private _listByVirtualMachineNext(\n resourceGroupName: string,\n virtualMachineName: string,\n nextLink: string,\n options?: ConsolesListByVirtualMachineNextOptionalParams,\n ): Promise<ConsolesListByVirtualMachineNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, nextLink, options },\n listByVirtualMachineNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByVirtualMachineOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConsoleList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n 201: {\n bodyMapper: Mappers.Console,\n },\n 202: {\n bodyMapper: Mappers.Console,\n },\n 204: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.consoleParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n 201: {\n bodyMapper: Mappers.Console,\n },\n 202: {\n bodyMapper: Mappers.Console,\n },\n 204: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.consoleUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConsoleList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\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 KubernetesClusterFeatures operations. */
20
20
  class KubernetesClusterFeaturesImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class KubernetesClusterFeatures class.
23
24
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class KubernetesClusterFeaturesImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listByKubernetesClusterPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._listByKubernetesCluster(resourceGroupName, kubernetesClusterName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listByKubernetesClusterNext(resourceGroupName, kubernetesClusterName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._listByKubernetesCluster(resourceGroupName, kubernetesClusterName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listByKubernetesClusterNext(resourceGroupName, kubernetesClusterName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listByKubernetesClusterPagingAll(resourceGroupName, kubernetesClusterName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listByKubernetesClusterPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listByKubernetesClusterPagingAll(resourceGroupName, kubernetesClusterName, options) {
71
+ for await (const page of this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Get a list of features for the provided Kubernetes cluster.
@@ -121,14 +105,19 @@ class KubernetesClusterFeaturesImpl {
121
105
  return this.client.sendOperationRequest(args, spec);
122
106
  };
123
107
  const sendOperationFn = async (args, spec) => {
124
- var _a;
125
108
  let currentRawResponse = undefined;
126
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
109
+ const providedCallback = args.options?.onResponse;
127
110
  const callback = (rawResponse, flatResponse) => {
128
111
  currentRawResponse = rawResponse;
129
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
112
+ providedCallback?.(rawResponse, flatResponse);
113
+ };
114
+ const updatedArgs = {
115
+ ...args,
116
+ options: {
117
+ ...args.options,
118
+ onResponse: callback,
119
+ },
130
120
  };
131
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
132
121
  const flatResponse = await directSendOperation(updatedArgs, spec);
133
122
  return {
134
123
  flatResponse,
@@ -151,8 +140,8 @@ class KubernetesClusterFeaturesImpl {
151
140
  spec: createOrUpdateOperationSpec,
152
141
  });
153
142
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
154
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
155
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
143
+ restoreFrom: options?.resumeFrom,
144
+ intervalInMs: options?.updateIntervalInMs,
156
145
  resourceLocationConfig: "azure-async-operation",
157
146
  });
158
147
  await poller.poll();
@@ -183,14 +172,19 @@ class KubernetesClusterFeaturesImpl {
183
172
  return this.client.sendOperationRequest(args, spec);
184
173
  };
185
174
  const sendOperationFn = async (args, spec) => {
186
- var _a;
187
175
  let currentRawResponse = undefined;
188
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
176
+ const providedCallback = args.options?.onResponse;
189
177
  const callback = (rawResponse, flatResponse) => {
190
178
  currentRawResponse = rawResponse;
191
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
179
+ providedCallback?.(rawResponse, flatResponse);
180
+ };
181
+ const updatedArgs = {
182
+ ...args,
183
+ options: {
184
+ ...args.options,
185
+ onResponse: callback,
186
+ },
192
187
  };
193
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
194
188
  const flatResponse = await directSendOperation(updatedArgs, spec);
195
189
  return {
196
190
  flatResponse,
@@ -207,8 +201,8 @@ class KubernetesClusterFeaturesImpl {
207
201
  spec: deleteOperationSpec,
208
202
  });
209
203
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
210
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
211
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
204
+ restoreFrom: options?.resumeFrom,
205
+ intervalInMs: options?.updateIntervalInMs,
212
206
  resourceLocationConfig: "location",
213
207
  });
214
208
  await poller.poll();
@@ -237,14 +231,19 @@ class KubernetesClusterFeaturesImpl {
237
231
  return this.client.sendOperationRequest(args, spec);
238
232
  };
239
233
  const sendOperationFn = async (args, spec) => {
240
- var _a;
241
234
  let currentRawResponse = undefined;
242
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
235
+ const providedCallback = args.options?.onResponse;
243
236
  const callback = (rawResponse, flatResponse) => {
244
237
  currentRawResponse = rawResponse;
245
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
238
+ providedCallback?.(rawResponse, flatResponse);
239
+ };
240
+ const updatedArgs = {
241
+ ...args,
242
+ options: {
243
+ ...args.options,
244
+ onResponse: callback,
245
+ },
246
246
  };
247
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
248
247
  const flatResponse = await directSendOperation(updatedArgs, spec);
249
248
  return {
250
249
  flatResponse,
@@ -261,8 +260,8 @@ class KubernetesClusterFeaturesImpl {
261
260
  spec: updateOperationSpec,
262
261
  });
263
262
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
264
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
265
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
263
+ restoreFrom: options?.resumeFrom,
264
+ intervalInMs: options?.updateIntervalInMs,
266
265
  resourceLocationConfig: "azure-async-operation",
267
266
  });
268
267
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"kubernetesClusterFeatures.js","sourceRoot":"","sources":["../../../src/operations/kubernetesClusterFeatures.ts"],"names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,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,wCAAwC;IAChE,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;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 { KubernetesClusterFeatures } 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 { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n KubernetesClusterFeature,\n KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams,\n KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n KubernetesClusterFeaturesListByKubernetesClusterResponse,\n KubernetesClusterFeaturesGetOptionalParams,\n KubernetesClusterFeaturesGetResponse,\n KubernetesClusterFeaturesCreateOrUpdateOptionalParams,\n KubernetesClusterFeaturesCreateOrUpdateResponse,\n KubernetesClusterFeaturesDeleteOptionalParams,\n KubernetesClusterFeaturesDeleteResponse,\n KubernetesClusterFeaturesUpdateOptionalParams,\n KubernetesClusterFeaturesUpdateResponse,\n KubernetesClusterFeaturesListByKubernetesClusterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing KubernetesClusterFeatures operations. */\nexport class KubernetesClusterFeaturesImpl\n implements KubernetesClusterFeatures\n{\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class KubernetesClusterFeatures class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of features for the provided Kubernetes cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param options The options parameters.\n */\n public listByKubernetesCluster(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n ): PagedAsyncIterableIterator<KubernetesClusterFeature> {\n const iter = this.listByKubernetesClusterPagingAll(\n resourceGroupName,\n kubernetesClusterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByKubernetesClusterPagingPage(\n resourceGroupName,\n kubernetesClusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByKubernetesClusterPagingPage(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<KubernetesClusterFeature[]> {\n let result: KubernetesClusterFeaturesListByKubernetesClusterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByKubernetesCluster(\n resourceGroupName,\n kubernetesClusterName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByKubernetesClusterNext(\n resourceGroupName,\n kubernetesClusterName,\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 *listByKubernetesClusterPagingAll(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n ): AsyncIterableIterator<KubernetesClusterFeature> {\n for await (const page of this.listByKubernetesClusterPagingPage(\n resourceGroupName,\n kubernetesClusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of features for the provided Kubernetes cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param options The options parameters.\n */\n private _listByKubernetesCluster(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n ): Promise<KubernetesClusterFeaturesListByKubernetesClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, options },\n listByKubernetesClusterOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided the Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesGetOptionalParams,\n ): Promise<KubernetesClusterFeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, featureName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it\n * exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param kubernetesClusterFeatureParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n kubernetesClusterFeatureParameters: KubernetesClusterFeature,\n options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<KubernetesClusterFeaturesCreateOrUpdateResponse>,\n KubernetesClusterFeaturesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<KubernetesClusterFeaturesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n kubernetesClusterName,\n featureName,\n kubernetesClusterFeatureParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n KubernetesClusterFeaturesCreateOrUpdateResponse,\n OperationState<KubernetesClusterFeaturesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it\n * exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param kubernetesClusterFeatureParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n kubernetesClusterFeatureParameters: KubernetesClusterFeature,\n options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams,\n ): Promise<KubernetesClusterFeaturesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n kubernetesClusterName,\n featureName,\n kubernetesClusterFeatureParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<KubernetesClusterFeaturesDeleteResponse>,\n KubernetesClusterFeaturesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<KubernetesClusterFeaturesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, kubernetesClusterName, featureName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n KubernetesClusterFeaturesDeleteResponse,\n OperationState<KubernetesClusterFeaturesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesDeleteOptionalParams,\n ): Promise<KubernetesClusterFeaturesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n kubernetesClusterName,\n featureName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch properties of the provided Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<KubernetesClusterFeaturesUpdateResponse>,\n KubernetesClusterFeaturesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<KubernetesClusterFeaturesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, kubernetesClusterName, featureName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n KubernetesClusterFeaturesUpdateResponse,\n OperationState<KubernetesClusterFeaturesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch properties of the provided Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesUpdateOptionalParams,\n ): Promise<KubernetesClusterFeaturesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n kubernetesClusterName,\n featureName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByKubernetesClusterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the ListByKubernetesCluster\n * method.\n * @param options The options parameters.\n */\n private _listByKubernetesClusterNext(\n resourceGroupName: string,\n kubernetesClusterName: string,\n nextLink: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams,\n ): Promise<KubernetesClusterFeaturesListByKubernetesClusterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, nextLink, options },\n listByKubernetesClusterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByKubernetesClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeatureList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.featureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 201: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 202: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 204: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.kubernetesClusterFeatureParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.featureName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.featureName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 201: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 202: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 204: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.kubernetesClusterFeatureUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.featureName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByKubernetesClusterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeatureList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"kubernetesClusterFeatures.js","sourceRoot":"","sources":["../../../src/operations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AAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;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 { KubernetesClusterFeatures } 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 { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n KubernetesClusterFeature,\n KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams,\n KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n KubernetesClusterFeaturesListByKubernetesClusterResponse,\n KubernetesClusterFeaturesGetOptionalParams,\n KubernetesClusterFeaturesGetResponse,\n KubernetesClusterFeaturesCreateOrUpdateOptionalParams,\n KubernetesClusterFeaturesCreateOrUpdateResponse,\n KubernetesClusterFeaturesDeleteOptionalParams,\n KubernetesClusterFeaturesDeleteResponse,\n KubernetesClusterFeaturesUpdateOptionalParams,\n KubernetesClusterFeaturesUpdateResponse,\n KubernetesClusterFeaturesListByKubernetesClusterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing KubernetesClusterFeatures operations. */\nexport class KubernetesClusterFeaturesImpl\n implements KubernetesClusterFeatures\n{\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class KubernetesClusterFeatures class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of features for the provided Kubernetes cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param options The options parameters.\n */\n public listByKubernetesCluster(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n ): PagedAsyncIterableIterator<KubernetesClusterFeature> {\n const iter = this.listByKubernetesClusterPagingAll(\n resourceGroupName,\n kubernetesClusterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByKubernetesClusterPagingPage(\n resourceGroupName,\n kubernetesClusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByKubernetesClusterPagingPage(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<KubernetesClusterFeature[]> {\n let result: KubernetesClusterFeaturesListByKubernetesClusterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByKubernetesCluster(\n resourceGroupName,\n kubernetesClusterName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByKubernetesClusterNext(\n resourceGroupName,\n kubernetesClusterName,\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 *listByKubernetesClusterPagingAll(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n ): AsyncIterableIterator<KubernetesClusterFeature> {\n for await (const page of this.listByKubernetesClusterPagingPage(\n resourceGroupName,\n kubernetesClusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of features for the provided Kubernetes cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param options The options parameters.\n */\n private _listByKubernetesCluster(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams,\n ): Promise<KubernetesClusterFeaturesListByKubernetesClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, options },\n listByKubernetesClusterOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided the Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesGetOptionalParams,\n ): Promise<KubernetesClusterFeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, featureName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it\n * exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param kubernetesClusterFeatureParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n kubernetesClusterFeatureParameters: KubernetesClusterFeature,\n options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<KubernetesClusterFeaturesCreateOrUpdateResponse>,\n KubernetesClusterFeaturesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<KubernetesClusterFeaturesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n kubernetesClusterName,\n featureName,\n kubernetesClusterFeatureParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n KubernetesClusterFeaturesCreateOrUpdateResponse,\n OperationState<KubernetesClusterFeaturesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it\n * exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param kubernetesClusterFeatureParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n kubernetesClusterFeatureParameters: KubernetesClusterFeature,\n options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams,\n ): Promise<KubernetesClusterFeaturesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n kubernetesClusterName,\n featureName,\n kubernetesClusterFeatureParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<KubernetesClusterFeaturesDeleteResponse>,\n KubernetesClusterFeaturesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<KubernetesClusterFeaturesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, kubernetesClusterName, featureName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n KubernetesClusterFeaturesDeleteResponse,\n OperationState<KubernetesClusterFeaturesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesDeleteOptionalParams,\n ): Promise<KubernetesClusterFeaturesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n kubernetesClusterName,\n featureName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch properties of the provided Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<KubernetesClusterFeaturesUpdateResponse>,\n KubernetesClusterFeaturesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<KubernetesClusterFeaturesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, kubernetesClusterName, featureName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n KubernetesClusterFeaturesUpdateResponse,\n OperationState<KubernetesClusterFeaturesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch properties of the provided Kubernetes cluster feature.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param featureName The name of the feature.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n featureName: string,\n options?: KubernetesClusterFeaturesUpdateOptionalParams,\n ): Promise<KubernetesClusterFeaturesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n kubernetesClusterName,\n featureName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByKubernetesClusterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the ListByKubernetesCluster\n * method.\n * @param options The options parameters.\n */\n private _listByKubernetesClusterNext(\n resourceGroupName: string,\n kubernetesClusterName: string,\n nextLink: string,\n options?: KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams,\n ): Promise<KubernetesClusterFeaturesListByKubernetesClusterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, nextLink, options },\n listByKubernetesClusterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByKubernetesClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeatureList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.featureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 201: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 202: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 204: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.kubernetesClusterFeatureParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.featureName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.featureName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 201: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 202: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n 204: {\n bodyMapper: Mappers.KubernetesClusterFeature,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.kubernetesClusterFeatureUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.featureName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByKubernetesClusterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KubernetesClusterFeatureList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}