@azure/arm-hybridkubernetes 2.1.1-alpha.20250327.1 → 3.0.0-alpha.20250328.3

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 (157) hide show
  1. package/CHANGELOG.md +52 -8
  2. package/LICENSE +1 -1
  3. package/README.md +6 -7
  4. package/dist/browser/connectedKubernetesClient.d.ts +5 -4
  5. package/dist/browser/connectedKubernetesClient.d.ts.map +1 -1
  6. package/dist/browser/connectedKubernetesClient.js +16 -19
  7. package/dist/browser/connectedKubernetesClient.js.map +1 -1
  8. package/dist/browser/lroImpl.d.ts +7 -12
  9. package/dist/browser/lroImpl.d.ts.map +1 -1
  10. package/dist/browser/lroImpl.js +11 -15
  11. package/dist/browser/lroImpl.js.map +1 -1
  12. package/dist/browser/models/index.d.ts +282 -57
  13. package/dist/browser/models/index.d.ts.map +1 -1
  14. package/dist/browser/models/index.js +36 -0
  15. package/dist/browser/models/index.js.map +1 -1
  16. package/dist/browser/models/mappers.d.ts +12 -1
  17. package/dist/browser/models/mappers.d.ts.map +1 -1
  18. package/dist/browser/models/mappers.js +631 -221
  19. package/dist/browser/models/mappers.js.map +1 -1
  20. package/dist/browser/models/parameters.d.ts +1 -1
  21. package/dist/browser/models/parameters.d.ts.map +1 -1
  22. package/dist/browser/models/parameters.js +31 -31
  23. package/dist/browser/models/parameters.js.map +1 -1
  24. package/dist/browser/operations/connectedClusterOperations.d.ts +12 -12
  25. package/dist/browser/operations/connectedClusterOperations.d.ts.map +1 -1
  26. package/dist/browser/operations/connectedClusterOperations.js +80 -82
  27. package/dist/browser/operations/connectedClusterOperations.js.map +1 -1
  28. package/dist/browser/operations/operations.d.ts +4 -4
  29. package/dist/browser/operations/operations.d.ts.map +1 -1
  30. package/dist/browser/operations/operations.js +9 -10
  31. package/dist/browser/operations/operations.js.map +1 -1
  32. package/dist/browser/operationsInterfaces/connectedClusterOperations.d.ts +10 -10
  33. package/dist/browser/operationsInterfaces/connectedClusterOperations.d.ts.map +1 -1
  34. package/dist/browser/operationsInterfaces/connectedClusterOperations.js.map +1 -1
  35. package/dist/browser/operationsInterfaces/operations.d.ts +2 -2
  36. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  37. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  38. package/dist/browser/pagingHelper.d.ts +4 -4
  39. package/dist/browser/pagingHelper.d.ts.map +1 -1
  40. package/dist/browser/pagingHelper.js +4 -4
  41. package/dist/browser/pagingHelper.js.map +1 -1
  42. package/dist/commonjs/connectedKubernetesClient.d.ts +5 -4
  43. package/dist/commonjs/connectedKubernetesClient.d.ts.map +1 -1
  44. package/dist/commonjs/connectedKubernetesClient.js +16 -19
  45. package/dist/commonjs/connectedKubernetesClient.js.map +1 -1
  46. package/dist/commonjs/lroImpl.d.ts +7 -12
  47. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  48. package/dist/commonjs/lroImpl.js +12 -17
  49. package/dist/commonjs/lroImpl.js.map +1 -1
  50. package/dist/commonjs/models/index.d.ts +282 -57
  51. package/dist/commonjs/models/index.d.ts.map +1 -1
  52. package/dist/commonjs/models/index.js +37 -1
  53. package/dist/commonjs/models/index.js.map +1 -1
  54. package/dist/commonjs/models/mappers.d.ts +12 -1
  55. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  56. package/dist/commonjs/models/mappers.js +632 -222
  57. package/dist/commonjs/models/mappers.js.map +1 -1
  58. package/dist/commonjs/models/parameters.d.ts +1 -1
  59. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  60. package/dist/commonjs/models/parameters.js +30 -30
  61. package/dist/commonjs/models/parameters.js.map +1 -1
  62. package/dist/commonjs/operations/connectedClusterOperations.d.ts +12 -12
  63. package/dist/commonjs/operations/connectedClusterOperations.d.ts.map +1 -1
  64. package/dist/commonjs/operations/connectedClusterOperations.js +78 -80
  65. package/dist/commonjs/operations/connectedClusterOperations.js.map +1 -1
  66. package/dist/commonjs/operations/operations.d.ts +4 -4
  67. package/dist/commonjs/operations/operations.d.ts.map +1 -1
  68. package/dist/commonjs/operations/operations.js +9 -10
  69. package/dist/commonjs/operations/operations.js.map +1 -1
  70. package/dist/commonjs/operationsInterfaces/connectedClusterOperations.d.ts +10 -10
  71. package/dist/commonjs/operationsInterfaces/connectedClusterOperations.d.ts.map +1 -1
  72. package/dist/commonjs/operationsInterfaces/connectedClusterOperations.js.map +1 -1
  73. package/dist/commonjs/operationsInterfaces/operations.d.ts +2 -2
  74. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  75. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  76. package/dist/commonjs/pagingHelper.d.ts +4 -4
  77. package/dist/commonjs/pagingHelper.d.ts.map +1 -1
  78. package/dist/commonjs/pagingHelper.js +4 -4
  79. package/dist/commonjs/pagingHelper.js.map +1 -1
  80. package/dist/esm/connectedKubernetesClient.d.ts +5 -4
  81. package/dist/esm/connectedKubernetesClient.d.ts.map +1 -1
  82. package/dist/esm/connectedKubernetesClient.js +16 -19
  83. package/dist/esm/connectedKubernetesClient.js.map +1 -1
  84. package/dist/esm/lroImpl.d.ts +7 -12
  85. package/dist/esm/lroImpl.d.ts.map +1 -1
  86. package/dist/esm/lroImpl.js +11 -15
  87. package/dist/esm/lroImpl.js.map +1 -1
  88. package/dist/esm/models/index.d.ts +282 -57
  89. package/dist/esm/models/index.d.ts.map +1 -1
  90. package/dist/esm/models/index.js +36 -0
  91. package/dist/esm/models/index.js.map +1 -1
  92. package/dist/esm/models/mappers.d.ts +12 -1
  93. package/dist/esm/models/mappers.d.ts.map +1 -1
  94. package/dist/esm/models/mappers.js +631 -221
  95. package/dist/esm/models/mappers.js.map +1 -1
  96. package/dist/esm/models/parameters.d.ts +1 -1
  97. package/dist/esm/models/parameters.d.ts.map +1 -1
  98. package/dist/esm/models/parameters.js +31 -31
  99. package/dist/esm/models/parameters.js.map +1 -1
  100. package/dist/esm/operations/connectedClusterOperations.d.ts +12 -12
  101. package/dist/esm/operations/connectedClusterOperations.d.ts.map +1 -1
  102. package/dist/esm/operations/connectedClusterOperations.js +80 -82
  103. package/dist/esm/operations/connectedClusterOperations.js.map +1 -1
  104. package/dist/esm/operations/operations.d.ts +4 -4
  105. package/dist/esm/operations/operations.d.ts.map +1 -1
  106. package/dist/esm/operations/operations.js +9 -10
  107. package/dist/esm/operations/operations.js.map +1 -1
  108. package/dist/esm/operationsInterfaces/connectedClusterOperations.d.ts +10 -10
  109. package/dist/esm/operationsInterfaces/connectedClusterOperations.d.ts.map +1 -1
  110. package/dist/esm/operationsInterfaces/connectedClusterOperations.js.map +1 -1
  111. package/dist/esm/operationsInterfaces/operations.d.ts +2 -2
  112. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  113. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  114. package/dist/esm/pagingHelper.d.ts +4 -4
  115. package/dist/esm/pagingHelper.d.ts.map +1 -1
  116. package/dist/esm/pagingHelper.js +4 -4
  117. package/dist/esm/pagingHelper.js.map +1 -1
  118. package/dist/react-native/connectedKubernetesClient.d.ts +5 -4
  119. package/dist/react-native/connectedKubernetesClient.d.ts.map +1 -1
  120. package/dist/react-native/connectedKubernetesClient.js +16 -19
  121. package/dist/react-native/connectedKubernetesClient.js.map +1 -1
  122. package/dist/react-native/lroImpl.d.ts +7 -12
  123. package/dist/react-native/lroImpl.d.ts.map +1 -1
  124. package/dist/react-native/lroImpl.js +11 -15
  125. package/dist/react-native/lroImpl.js.map +1 -1
  126. package/dist/react-native/models/index.d.ts +282 -57
  127. package/dist/react-native/models/index.d.ts.map +1 -1
  128. package/dist/react-native/models/index.js +36 -0
  129. package/dist/react-native/models/index.js.map +1 -1
  130. package/dist/react-native/models/mappers.d.ts +12 -1
  131. package/dist/react-native/models/mappers.d.ts.map +1 -1
  132. package/dist/react-native/models/mappers.js +631 -221
  133. package/dist/react-native/models/mappers.js.map +1 -1
  134. package/dist/react-native/models/parameters.d.ts +1 -1
  135. package/dist/react-native/models/parameters.d.ts.map +1 -1
  136. package/dist/react-native/models/parameters.js +31 -31
  137. package/dist/react-native/models/parameters.js.map +1 -1
  138. package/dist/react-native/operations/connectedClusterOperations.d.ts +12 -12
  139. package/dist/react-native/operations/connectedClusterOperations.d.ts.map +1 -1
  140. package/dist/react-native/operations/connectedClusterOperations.js +80 -82
  141. package/dist/react-native/operations/connectedClusterOperations.js.map +1 -1
  142. package/dist/react-native/operations/operations.d.ts +4 -4
  143. package/dist/react-native/operations/operations.d.ts.map +1 -1
  144. package/dist/react-native/operations/operations.js +9 -10
  145. package/dist/react-native/operations/operations.js.map +1 -1
  146. package/dist/react-native/operationsInterfaces/connectedClusterOperations.d.ts +10 -10
  147. package/dist/react-native/operationsInterfaces/connectedClusterOperations.d.ts.map +1 -1
  148. package/dist/react-native/operationsInterfaces/connectedClusterOperations.js.map +1 -1
  149. package/dist/react-native/operationsInterfaces/operations.d.ts +2 -2
  150. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  151. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  152. package/dist/react-native/pagingHelper.d.ts +4 -4
  153. package/dist/react-native/pagingHelper.d.ts.map +1 -1
  154. package/dist/react-native/pagingHelper.js +4 -4
  155. package/dist/react-native/pagingHelper.js.map +1 -1
  156. package/package.json +34 -33
  157. package/review/arm-hybridkubernetes.api.md +156 -23
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,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MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ConnectedKubernetesClient } from \"../connectedKubernetesClient.js\";\nimport {\n Operation,\n OperationsGetNextOptionalParams,\n OperationsGetOptionalParams,\n OperationsGetResponse,\n OperationsGetNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ConnectedKubernetesClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ConnectedKubernetesClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available API operations for Connected Cluster resource.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsGetOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.getPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getPagingPage(options, settings);\n }\n };\n }\n\n private async *getPagingPage(\n options?: OperationsGetOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsGetResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._get(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getPagingAll(\n options?: OperationsGetOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.getPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available API operations for Connected Cluster resource.\n * @param options The options parameters.\n */\n private _get(\n options?: OperationsGetOptionalParams\n ): Promise<OperationsGetResponse> {\n return this.client.sendOperationRequest({ options }, getOperationSpec);\n }\n\n /**\n * GetNext\n * @param nextLink The nextLink from the previous successful call to the Get method.\n * @param options The options parameters.\n */\n private _getNext(\n nextLink: string,\n options?: OperationsGetNextOptionalParams\n ): Promise<OperationsGetNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Kubernetes/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,OAAqC;QAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACxC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC/C,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,aAAa,CAC1B,OAAqC,EACrC,QAAuB;;YAEvB,IAAI,MAA6B,CAAC;YAClC,IAAI,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AEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,oBAAoB,CAAC,CAAC;IACvF,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,4CAA4C;IAClD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { ConnectedKubernetesClient } from \"../connectedKubernetesClient.js\";\nimport type {\n Operation,\n OperationsGetNextOptionalParams,\n OperationsGetOptionalParams,\n OperationsGetResponse,\n OperationsGetNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ConnectedKubernetesClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ConnectedKubernetesClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available API operations for Connected Cluster resource.\n * @param options The options parameters.\n */\n public list(options?: OperationsGetOptionalParams): PagedAsyncIterableIterator<Operation> {\n const iter = this.getPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getPagingPage(options, settings);\n },\n };\n }\n\n private async *getPagingPage(\n options?: OperationsGetOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsGetResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._get(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getPagingAll(\n options?: OperationsGetOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.getPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available API operations for Connected Cluster resource.\n * @param options The options parameters.\n */\n private _get(options?: OperationsGetOptionalParams): Promise<OperationsGetResponse> {\n return this.client.sendOperationRequest({ options }, getOperationSpec);\n }\n\n /**\n * GetNext\n * @param nextLink The nextLink from the previous successful call to the Get method.\n * @param options The options parameters.\n */\n private _getNext(\n nextLink: string,\n options?: OperationsGetNextOptionalParams,\n ): Promise<OperationsGetNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, getNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Kubernetes/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1,6 +1,6 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { PollerLike, PollOperationState } from "@azure/core-lro";
3
- import { ConnectedCluster, ConnectedClusterListByResourceGroupOptionalParams, ConnectedClusterListBySubscriptionOptionalParams, ConnectedClusterCreateOptionalParams, ConnectedClusterCreateResponse, ConnectedClusterPatch, ConnectedClusterUpdateOptionalParams, ConnectedClusterUpdateResponse, ConnectedClusterGetOptionalParams, ConnectedClusterGetResponse, ConnectedClusterDeleteOptionalParams, ListClusterUserCredentialProperties, ConnectedClusterListClusterUserCredentialOptionalParams, ConnectedClusterListClusterUserCredentialResponse } from "../models/index.js";
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { SimplePollerLike, OperationState } from "@azure/core-lro";
3
+ import type { ConnectedCluster, ConnectedClusterListByResourceGroupOptionalParams, ConnectedClusterListBySubscriptionOptionalParams, ConnectedClusterCreateOrReplaceOptionalParams, ConnectedClusterCreateOrReplaceResponse, ConnectedClusterPatch, ConnectedClusterUpdateOptionalParams, ConnectedClusterUpdateResponse, ConnectedClusterGetOptionalParams, ConnectedClusterGetResponse, ConnectedClusterDeleteOptionalParams, ListClusterUserCredentialProperties, ConnectedClusterListClusterUserCredentialOptionalParams, ConnectedClusterListClusterUserCredentialResponse } from "../models/index.js";
4
4
  /** Interface representing a ConnectedClusterOperations. */
5
5
  export interface ConnectedClusterOperations {
6
6
  /**
@@ -15,23 +15,23 @@ export interface ConnectedClusterOperations {
15
15
  */
16
16
  listBySubscription(options?: ConnectedClusterListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ConnectedCluster>;
17
17
  /**
18
- * API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager
19
- * (ARM).
18
+ * API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource
19
+ * in Azure Resource Manager (ARM).
20
20
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
21
21
  * @param clusterName The name of the Kubernetes cluster on which get is called.
22
22
  * @param connectedCluster Parameters supplied to Create a Connected Cluster.
23
23
  * @param options The options parameters.
24
24
  */
25
- beginCreate(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOptionalParams): Promise<PollerLike<PollOperationState<ConnectedClusterCreateResponse>, ConnectedClusterCreateResponse>>;
25
+ beginCreateOrReplace(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOrReplaceOptionalParams): Promise<SimplePollerLike<OperationState<ConnectedClusterCreateOrReplaceResponse>, ConnectedClusterCreateOrReplaceResponse>>;
26
26
  /**
27
- * API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager
28
- * (ARM).
27
+ * API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource
28
+ * in Azure Resource Manager (ARM).
29
29
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
30
30
  * @param clusterName The name of the Kubernetes cluster on which get is called.
31
31
  * @param connectedCluster Parameters supplied to Create a Connected Cluster.
32
32
  * @param options The options parameters.
33
33
  */
34
- beginCreateAndWait(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOptionalParams): Promise<ConnectedClusterCreateResponse>;
34
+ beginCreateOrReplaceAndWait(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOrReplaceOptionalParams): Promise<ConnectedClusterCreateOrReplaceResponse>;
35
35
  /**
36
36
  * API to update certain properties of the connected cluster resource
37
37
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -54,7 +54,7 @@ export interface ConnectedClusterOperations {
54
54
  * @param clusterName The name of the Kubernetes cluster on which get is called.
55
55
  * @param options The options parameters.
56
56
  */
57
- beginDelete(resourceGroupName: string, clusterName: string, options?: ConnectedClusterDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
57
+ beginDelete(resourceGroupName: string, clusterName: string, options?: ConnectedClusterDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
58
58
  /**
59
59
  * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).
60
60
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1 +1 @@
1
- {"version":3,"file":"connectedClusterOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/connectedClusterOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,gBAAgB,EAChB,iDAAiD,EACjD,gDAAgD,EAChD,oCAAoC,EACpC,8BAA8B,EAC9B,qBAAqB,EACrB,oCAAoC,EACpC,8BAA8B,EAC9B,iCAAiC,EACjC,2BAA2B,EAC3B,oCAAoC,EACpC,mCAAmC,EACnC,u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CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,yBAAyB,CACvB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,mCAAmC,EAC/C,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC,CAAC;CAC/D"}
1
+ {"version":3,"file":"connectedClusterOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/connectedClusterOperations.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EACV,gBAAgB,EAChB,iDAAiD,EACjD,gDAAgD,EAChD,6CAA6C,EAC7C,uCAAuC,EACvC,qBAAqB,EACrB,oCAAoC,EACpC,8BAA8B,EAC9B,iCAAiC,EACjC,2BAA2B,EAC3B,oCAAoC,EACpC,mCAAmC,EACnC,uDAAuD,EACvD,iDAAiD,EAClD,MAAM,oBAAoB,CAAC;AAG5B,2DAA2D;AAC3D,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;IAChD;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,gDAAgD,GACzD,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;IAChD;;;;;;;OAOG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,g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":"","sources":["../../../src/operationsInterfaces/connectedClusterOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n ConnectedCluster,\n ConnectedClusterListByResourceGroupOptionalParams,\n ConnectedClusterListBySubscriptionOptionalParams,\n ConnectedClusterCreateOptionalParams,\n ConnectedClusterCreateResponse,\n ConnectedClusterPatch,\n ConnectedClusterUpdateOptionalParams,\n ConnectedClusterUpdateResponse,\n ConnectedClusterGetOptionalParams,\n ConnectedClusterGetResponse,\n ConnectedClusterDeleteOptionalParams,\n ListClusterUserCredentialProperties,\n ConnectedClusterListClusterUserCredentialOptionalParams,\n ConnectedClusterListClusterUserCredentialResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a ConnectedClusterOperations. */\nexport interface ConnectedClusterOperations {\n /**\n * API to enumerate registered connected K8s clusters under a Resource Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ConnectedCluster>;\n /**\n * API to enumerate registered connected K8s clusters under a Subscription\n * @param options The options parameters.\n */\n listBySubscription(\n options?: ConnectedClusterListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ConnectedCluster>;\n /**\n * API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager\n * (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedCluster Parameters supplied to Create a Connected Cluster.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n clusterName: string,\n connectedCluster: ConnectedCluster,\n options?: ConnectedClusterCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ConnectedClusterCreateResponse>,\n ConnectedClusterCreateResponse\n >\n >;\n /**\n * API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager\n * (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedCluster Parameters supplied to Create a Connected Cluster.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n clusterName: string,\n connectedCluster: ConnectedCluster,\n options?: ConnectedClusterCreateOptionalParams\n ): Promise<ConnectedClusterCreateResponse>;\n /**\n * API to update certain properties of the connected cluster resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedClusterPatch Parameters supplied to update Connected Cluster.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n clusterName: string,\n connectedClusterPatch: ConnectedClusterPatch,\n options?: ConnectedClusterUpdateOptionalParams\n ): Promise<ConnectedClusterUpdateResponse>;\n /**\n * Returns the properties of the specified connected cluster, including name, identity, properties, and\n * additional cluster details.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterGetOptionalParams\n ): Promise<ConnectedClusterGetResponse>;\n /**\n * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>>;\n /**\n * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterDeleteOptionalParams\n ): Promise<void>;\n /**\n * Gets cluster user credentials of the connected cluster with a specified resource group and name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param properties ListClusterUserCredential properties\n * @param options The options parameters.\n */\n listClusterUserCredential(\n resourceGroupName: string,\n clusterName: string,\n properties: ListClusterUserCredentialProperties,\n options?: ConnectedClusterListClusterUserCredentialOptionalParams\n ): Promise<ConnectedClusterListClusterUserCredentialResponse>;\n}\n"]}
1
+ {"version":3,"file":"connectedClusterOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/connectedClusterOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport type {\n ConnectedCluster,\n ConnectedClusterListByResourceGroupOptionalParams,\n ConnectedClusterListBySubscriptionOptionalParams,\n ConnectedClusterCreateOrReplaceOptionalParams,\n ConnectedClusterCreateOrReplaceResponse,\n ConnectedClusterPatch,\n ConnectedClusterUpdateOptionalParams,\n ConnectedClusterUpdateResponse,\n ConnectedClusterGetOptionalParams,\n ConnectedClusterGetResponse,\n ConnectedClusterDeleteOptionalParams,\n ListClusterUserCredentialProperties,\n ConnectedClusterListClusterUserCredentialOptionalParams,\n ConnectedClusterListClusterUserCredentialResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a ConnectedClusterOperations. */\nexport interface ConnectedClusterOperations {\n /**\n * API to enumerate registered connected K8s clusters under a Resource Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<ConnectedCluster>;\n /**\n * API to enumerate registered connected K8s clusters under a Subscription\n * @param options The options parameters.\n */\n listBySubscription(\n options?: ConnectedClusterListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<ConnectedCluster>;\n /**\n * API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource\n * in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedCluster Parameters supplied to Create a Connected Cluster.\n * @param options The options parameters.\n */\n beginCreateOrReplace(\n resourceGroupName: string,\n clusterName: string,\n connectedCluster: ConnectedCluster,\n options?: ConnectedClusterCreateOrReplaceOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConnectedClusterCreateOrReplaceResponse>,\n ConnectedClusterCreateOrReplaceResponse\n >\n >;\n /**\n * API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource\n * in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedCluster Parameters supplied to Create a Connected Cluster.\n * @param options The options parameters.\n */\n beginCreateOrReplaceAndWait(\n resourceGroupName: string,\n clusterName: string,\n connectedCluster: ConnectedCluster,\n options?: ConnectedClusterCreateOrReplaceOptionalParams,\n ): Promise<ConnectedClusterCreateOrReplaceResponse>;\n /**\n * API to update certain properties of the connected cluster resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedClusterPatch Parameters supplied to update Connected Cluster.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n clusterName: string,\n connectedClusterPatch: ConnectedClusterPatch,\n options?: ConnectedClusterUpdateOptionalParams,\n ): Promise<ConnectedClusterUpdateResponse>;\n /**\n * Returns the properties of the specified connected cluster, including name, identity, properties, and\n * additional cluster details.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterGetOptionalParams,\n ): Promise<ConnectedClusterGetResponse>;\n /**\n * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Gets cluster user credentials of the connected cluster with a specified resource group and name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param properties ListClusterUserCredential properties\n * @param options The options parameters.\n */\n listClusterUserCredential(\n resourceGroupName: string,\n clusterName: string,\n properties: ListClusterUserCredentialProperties,\n options?: ConnectedClusterListClusterUserCredentialOptionalParams,\n ): Promise<ConnectedClusterListClusterUserCredentialResponse>;\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Operation, OperationsGetOptionalParams } from "../models/index.js";
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { Operation, OperationsGetOptionalParams } from "../models/index.js";
3
3
  /** Interface representing a Operations. */
4
4
  export interface Operations {
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAG5E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAGjF,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAAC;CACpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsGetOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all of the available API operations for Connected Cluster resource.\n * @param options The options parameters.\n */\n list(\n options?: OperationsGetOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { Operation, OperationsGetOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all of the available API operations for Connected Cluster resource.\n * @param options The options parameters.\n */\n list(options?: OperationsGetOptionalParams): PagedAsyncIterableIterator<Operation>;\n}\n"]}
@@ -2,11 +2,11 @@ export interface PageInfo {
2
2
  continuationToken?: string;
3
3
  }
4
4
  /**
5
- * Given a result page from a pageable operation, returns a
6
- * continuation token that can be used to begin paging from
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
7
  * that point later.
8
- * @param page A result object from calling .byPage() on a paged operation.
9
- * @returns The continuation token that can be passed into byPage().
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
10
  */
11
11
  export declare function getContinuationToken(page: unknown): string | undefined;
12
12
  export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAO/F"}
@@ -7,11 +7,11 @@
7
7
  */
8
8
  const pageMap = new WeakMap();
9
9
  /**
10
- * Given a result page from a pageable operation, returns a
11
- * continuation token that can be used to begin paging from
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
12
  * that point later.
13
- * @param page A result object from calling .byPage() on a paged operation.
14
- * @returns The continuation token that can be passed into byPage().
13
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
14
+ * @returns The continuation token that can be passed into byPage() during future calls.
15
15
  */
16
16
  export function getContinuationToken(page) {
17
17
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;;IACvF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(page: unknown, continuationToken: string | undefined): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -1,11 +1,11 @@
1
1
  import * as coreClient from "@azure/core-client";
2
- import * as coreAuth from "@azure/core-auth";
3
- import { ConnectedClusterOperations, Operations } from "./operationsInterfaces/index.js";
4
- import { ConnectedKubernetesClientOptionalParams } from "./models/index.js";
2
+ import type * as coreAuth from "@azure/core-auth";
3
+ import type { ConnectedClusterOperations, Operations } from "./operationsInterfaces/index.js";
4
+ import type { ConnectedKubernetesClientOptionalParams } from "./models/index.js";
5
5
  export declare class ConnectedKubernetesClient extends coreClient.ServiceClient {
6
6
  $host: string;
7
7
  apiVersion: string;
8
- subscriptionId: string;
8
+ subscriptionId?: string;
9
9
  /**
10
10
  * Initializes a new instance of the ConnectedKubernetesClient class.
11
11
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -13,6 +13,7 @@ export declare class ConnectedKubernetesClient extends coreClient.ServiceClient
13
13
  * @param options The parameter options
14
14
  */
15
15
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ConnectedKubernetesClientOptionalParams);
16
+ constructor(credentials: coreAuth.TokenCredential, options?: ConnectedKubernetesClientOptionalParams);
16
17
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
18
  private addCustomApiVersionPolicy;
18
19
  connectedClusterOperations: ConnectedClusterOperations;
@@ -1 +1 @@
1
- {"version":3,"file":"connectedKubernetesClient.d.ts","sourceRoot":"","sources":["../../src/connectedKubernetesClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,mBAAmB,CAAC;AAE5E,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC;IA6EnD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"connectedKubernetesClient.d.ts","sourceRoot":"","sources":["../../src/connectedKubernetesClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAE,0BAA0B,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mBAAmB,CAAC;AAEjF,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC;gBAGjD,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,uCAAuC;IAoFnD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IAwBjC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -13,19 +13,17 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
13
  const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
14
  const index_js_1 = require("./operations/index.js");
15
15
  class ConnectedKubernetesClient extends coreClient.ServiceClient {
16
- /**
17
- * Initializes a new instance of the ConnectedKubernetesClient class.
18
- * @param credentials Subscription credentials which uniquely identify client subscription.
19
- * @param subscriptionId The ID of the target subscription.
20
- * @param options The parameter options
21
- */
22
- constructor(credentials, subscriptionId, options) {
16
+ constructor(credentials, subscriptionIdOrOptions, options) {
23
17
  var _a, _b, _c;
24
18
  if (credentials === undefined) {
25
19
  throw new Error("'credentials' cannot be null");
26
20
  }
27
- if (subscriptionId === undefined) {
28
- throw new Error("'subscriptionId' cannot be null");
21
+ let subscriptionId;
22
+ if (typeof subscriptionIdOrOptions === "string") {
23
+ subscriptionId = subscriptionIdOrOptions;
24
+ }
25
+ else if (typeof subscriptionIdOrOptions === "object") {
26
+ options = subscriptionIdOrOptions;
29
27
  }
30
28
  // Initializing default values for options
31
29
  if (!options) {
@@ -33,42 +31,41 @@ class ConnectedKubernetesClient extends coreClient.ServiceClient {
33
31
  }
34
32
  const defaults = {
35
33
  requestContentType: "application/json; charset=utf-8",
36
- credential: credentials
34
+ credential: credentials,
37
35
  };
38
- const packageDetails = `azsdk-js-arm-hybridkubernetes/2.1.1`;
36
+ const packageDetails = `azsdk-js-arm-hybridkubernetes/3.0.0-beta.1`;
39
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
40
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
41
39
  : `${packageDetails}`;
42
40
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
43
- userAgentPrefix
41
+ userAgentPrefix,
44
42
  }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
45
43
  super(optionsWithDefaults);
46
44
  let bearerTokenAuthenticationPolicyFound = false;
47
45
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
48
46
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
50
- coreRestPipeline.bearerTokenAuthenticationPolicyName);
47
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
51
48
  }
52
49
  if (!options ||
53
50
  !options.pipeline ||
54
51
  options.pipeline.getOrderedPolicies().length == 0 ||
55
52
  !bearerTokenAuthenticationPolicyFound) {
56
53
  this.pipeline.removePolicy({
57
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
54
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
58
55
  });
59
56
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
60
57
  credential: credentials,
61
58
  scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
62
59
  challengeCallbacks: {
63
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
64
- }
60
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
61
+ },
65
62
  }));
66
63
  }
67
64
  // Parameter assignments
68
65
  this.subscriptionId = subscriptionId;
69
66
  // Assigning values to Constant parameters
70
67
  this.$host = options.$host || "https://management.azure.com";
71
- this.apiVersion = options.apiVersion || "2021-10-01";
68
+ this.apiVersion = options.apiVersion || "2024-12-01-preview";
72
69
  this.connectedClusterOperations = new index_js_1.ConnectedClusterOperationsImpl(this);
73
70
  this.operations = new index_js_1.OperationsImpl(this);
74
71
  this.addCustomApiVersionPolicy(options.apiVersion);
@@ -94,7 +91,7 @@ class ConnectedKubernetesClient extends coreClient.ServiceClient {
94
91
  request.url = param[0] + "?" + newParams.join("&");
95
92
  }
96
93
  return next(request);
97
- }
94
+ },
98
95
  };
99
96
  this.pipeline.addPolicy(apiVersionPolicy);
100
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"connectedKubernetesClient.js","sourceRoot":"","sources":["../../src/connectedKubernetesClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAAuF;AAIvF,MAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IAKrE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAiD;;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAA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,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF;AAzHD,8DAyHC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ConnectedClusterOperationsImpl, OperationsImpl } from \"./operations/index.js\";\nimport { ConnectedClusterOperations, Operations } from \"./operationsInterfaces/index.js\";\nimport { ConnectedKubernetesClientOptionalParams } from \"./models/index.js\";\n\nexport class ConnectedKubernetesClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ConnectedKubernetesClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ConnectedKubernetesClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ConnectedKubernetesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-hybridkubernetes/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-10-01\";\n this.connectedClusterOperations = new ConnectedClusterOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n connectedClusterOperations: ConnectedClusterOperations;\n operations: Operations;\n}\n"]}
1
+ {"version":3,"file":"connectedKubernetesClient.js","sourceRoot":"","sources":["../../src/connectedKubernetesClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAG9D,oDAAuF;AAIvF,MAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IAoBrE,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,I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E;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF;AAjID,8DAiIC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport { ConnectedClusterOperationsImpl, OperationsImpl } from \"./operations/index.js\";\nimport type { ConnectedClusterOperations, Operations } from \"./operationsInterfaces/index.js\";\nimport type { ConnectedKubernetesClientOptionalParams } from \"./models/index.js\";\n\nexport class ConnectedKubernetesClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the ConnectedKubernetesClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ConnectedKubernetesClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: ConnectedKubernetesClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: ConnectedKubernetesClientOptionalParams | string,\n options?: ConnectedKubernetesClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ConnectedKubernetesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-hybridkubernetes/3.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-12-01-preview\";\n this.connectedClusterOperations = new ConnectedClusterOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n connectedClusterOperations: ConnectedClusterOperations;\n operations: Operations;\n}\n"]}
@@ -1,16 +1,11 @@
1
- import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
- export declare class LroImpl<T> implements LongRunningOperation<T> {
3
- private sendOperationFn;
4
- private args;
5
- private spec;
6
- requestPath: string;
7
- requestMethod: string;
8
- constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
1
+ import type { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare function createLroSpec<T>(inputs: {
3
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
4
+ args: Record<string, unknown>;
5
+ spec: {
9
6
  readonly requestBody?: unknown;
10
7
  readonly path?: string;
11
8
  readonly httpMethod: string;
12
- } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
- sendInitialRequest(): Promise<LroResponse<T>>;
14
- sendPollRequest(path: string): Promise<LroResponse<T>>;
15
- }
9
+ } & Record<string, any>;
10
+ }): LongRunningOperation<T>;
16
11
  //# sourceMappingURL=lroImpl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEzE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAgB1B"}
@@ -7,23 +7,18 @@
7
7
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.LroImpl = void 0;
10
+ exports.createLroSpec = createLroSpec;
11
11
  const tslib_1 = require("tslib");
12
- class LroImpl {
13
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
14
- this.sendOperationFn = sendOperationFn;
15
- this.args = args;
16
- this.spec = spec;
17
- this.requestPath = requestPath;
18
- this.requestMethod = requestMethod;
19
- }
20
- async sendInitialRequest() {
21
- return this.sendOperationFn(this.args, this.spec);
22
- }
23
- async sendPollRequest(path) {
24
- const _a = this.spec, { requestBody } = _a, restSpec = tslib_1.__rest(_a, ["requestBody"]);
25
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
26
- }
12
+ function createLroSpec(inputs) {
13
+ const { args, spec, sendOperationFn } = inputs;
14
+ return {
15
+ requestMethod: spec.httpMethod,
16
+ requestPath: spec.path,
17
+ sendInitialRequest: () => sendOperationFn(args, spec),
18
+ sendPollRequest: (path, options) => {
19
+ const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
20
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
21
+ },
22
+ };
27
23
  }
28
- exports.LroImpl = LroImpl;
29
24
  //# sourceMappingURL=lroImpl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,MAAa,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,sBAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF;AAvBD,0BAuBC","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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,sCAwBC;;AAxBD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}