@azure/arm-hybridkubernetes 2.1.1-alpha.20250327.1 → 3.0.0-alpha.20250331.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 (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"]}
package/package.json CHANGED
@@ -3,16 +3,16 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for ConnectedKubernetesClient.",
6
- "version": "2.1.1-alpha.20250327.1",
6
+ "version": "3.0.0-alpha.20250331.1",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
10
10
  "dependencies": {
11
+ "@azure/core-lro": "^2.5.4",
11
12
  "@azure/abort-controller": "^2.1.2",
12
- "@azure/core-auth": "^1.9.0",
13
- "@azure/core-client": "^1.9.2",
14
- "@azure/core-lro": "^2.2.0",
15
13
  "@azure/core-paging": "^1.6.2",
14
+ "@azure/core-client": "^1.9.2",
15
+ "@azure/core-auth": "^1.9.0",
16
16
  "@azure/core-rest-pipeline": "^1.19.0",
17
17
  "tslib": "^2.8.1"
18
18
  },
@@ -29,20 +29,20 @@
29
29
  "module": "./dist/esm/index.js",
30
30
  "types": "./dist/commonjs/index.d.ts",
31
31
  "devDependencies": {
32
- "@azure-tools/test-credential": "^2.0.0",
33
- "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
34
- "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
32
+ "typescript": "~5.7.2",
33
+ "dotenv": "^16.0.0",
35
34
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
36
35
  "@azure/identity": "^4.6.0",
37
36
  "@azure/logger": "^1.1.4",
37
+ "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
38
+ "@azure-tools/test-credential": "^2.0.0",
39
+ "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
38
40
  "@types/node": "^18.0.0",
39
41
  "@vitest/browser": "^3.0.9",
40
42
  "@vitest/coverage-istanbul": "^3.0.9",
41
43
  "playwright": "^1.50.1",
42
- "typescript": "~5.8.2",
43
44
  "vitest": "^3.0.9"
44
45
  },
45
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridkubernetes/arm-hybridkubernetes",
46
46
  "repository": "github:Azure/azure-sdk-for-js",
47
47
  "bugs": {
48
48
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
@@ -51,33 +51,33 @@
51
51
  "dist/",
52
52
  "README.md",
53
53
  "LICENSE",
54
- "review/",
54
+ "review/*",
55
55
  "CHANGELOG.md"
56
56
  ],
57
57
  "scripts": {
58
58
  "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
59
- "build:browser": "echo skipped",
59
+ "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
60
+ "prepack": "npm run build",
61
+ "pack": "npm pack 2>&1",
62
+ "extract-api": "dev-tool run extract-api",
63
+ "lint": "echo skipped",
64
+ "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
60
65
  "build:node": "echo skipped",
61
- "build:samples": "echo skipped.",
66
+ "build:browser": "echo skipped",
62
67
  "build:test": "echo skipped",
63
- "check-format": "echo skipped",
64
- "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
68
+ "build:samples": "echo skipped.",
69
+ "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
65
70
  "execute:samples": "echo skipped",
66
- "extract-api": "dev-tool run extract-api",
67
- "format": "echo skipped",
68
- "integration-test": "npm run integration-test:node && npm run integration-test:browser",
69
- "integration-test:browser": "echo skipped",
70
- "integration-test:node": "dev-tool run test:vitest --esm",
71
- "lint": "echo skipped",
72
- "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
73
- "pack": "npm pack 2>&1",
74
- "prepack": "npm run build",
71
+ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
75
72
  "test": "npm run integration-test",
76
- "test:browser": "echo skipped",
77
73
  "test:node": "echo skipped",
74
+ "test:browser": "echo skipped",
78
75
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
79
- "unit-test:browser": "echo skipped",
80
76
  "unit-test:node": "dev-tool run test:vitest",
77
+ "unit-test:browser": "echo skipped",
78
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
79
+ "integration-test:node": "dev-tool run test:vitest --esm",
80
+ "integration-test:browser": "echo skipped",
81
81
  "update-snippets": "dev-tool run update-snippets"
82
82
  },
83
83
  "sideEffects": false,
@@ -90,14 +90,6 @@
90
90
  ]
91
91
  },
92
92
  "autoPublish": true,
93
- "//sampleConfiguration": {
94
- "productName": "",
95
- "productSlugs": [
96
- "azure"
97
- ],
98
- "disableDocsMs": true,
99
- "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-hybridkubernetes?view=azure-node-preview"
100
- },
101
93
  "type": "module",
102
94
  "tshy": {
103
95
  "project": "./tsconfig.src.json",
@@ -117,6 +109,15 @@
117
109
  },
118
110
  "browser": "./dist/browser/index.js",
119
111
  "react-native": "./dist/react-native/index.js",
112
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridkubernetes/arm-hybridkubernetes",
113
+ "//sampleConfiguration": {
114
+ "productName": "",
115
+ "productSlugs": [
116
+ "azure"
117
+ ],
118
+ "disableDocsMs": true,
119
+ "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-hybridkubernetes?view=azure-node-preview"
120
+ },
120
121
  "exports": {
121
122
  "./package.json": "./package.json",
122
123
  ".": {
@@ -4,41 +4,72 @@
4
4
 
5
5
  ```ts
6
6
 
7
- import * as coreAuth from '@azure/core-auth';
7
+ import type * as coreAuth from '@azure/core-auth';
8
8
  import * as coreClient from '@azure/core-client';
9
- import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
- import { PollerLike } from '@azure/core-lro';
11
- import { PollOperationState } from '@azure/core-lro';
9
+ import type { OperationState } from '@azure/core-lro';
10
+ import type { PagedAsyncIterableIterator } from '@azure/core-paging';
11
+ import type { SimplePollerLike } from '@azure/core-lro';
12
+
13
+ // @public
14
+ export interface AadProfile {
15
+ adminGroupObjectIDs?: string[];
16
+ enableAzureRbac?: boolean;
17
+ tenantID?: string;
18
+ }
19
+
20
+ // @public
21
+ export interface AgentError {
22
+ readonly component?: string;
23
+ readonly message?: string;
24
+ readonly severity?: string;
25
+ readonly time?: Date;
26
+ }
27
+
28
+ // @public
29
+ export interface ArcAgentProfile {
30
+ agentAutoUpgrade?: AutoUpgradeOptions;
31
+ agentErrors?: AgentError[];
32
+ readonly agentState?: string;
33
+ desiredAgentVersion?: string;
34
+ systemComponents?: SystemComponent[];
35
+ }
36
+
37
+ // @public (undocumented)
38
+ export interface ArcAgentryConfigurations {
39
+ feature?: string;
40
+ protectedSettings?: {
41
+ [propertyName: string]: string;
42
+ };
43
+ settings?: {
44
+ [propertyName: string]: string;
45
+ };
46
+ }
12
47
 
13
48
  // @public
14
49
  export type AuthenticationMethod = string;
15
50
 
51
+ // @public
52
+ export type AutoUpgradeOptions = string;
53
+
54
+ // @public
55
+ export type AzureHybridBenefit = string;
56
+
16
57
  // @public
17
58
  export interface ConnectedCluster extends TrackedResource {
18
- agentPublicKeyCertificate: string;
19
- readonly agentVersion?: string;
20
- readonly connectivityStatus?: ConnectivityStatus;
21
- distribution?: string;
22
59
  identity: ConnectedClusterIdentity;
23
- infrastructure?: string;
24
- readonly kubernetesVersion?: string;
25
- readonly lastConnectivityTime?: Date;
26
- readonly managedIdentityCertificateExpirationTime?: Date;
27
- readonly offering?: string;
28
- provisioningState?: ProvisioningState;
60
+ kind?: ConnectedClusterKind;
61
+ properties: ConnectedClusterProperties;
29
62
  readonly systemData?: SystemData;
30
- readonly totalCoreCount?: number;
31
- readonly totalNodeCount?: number;
32
63
  }
33
64
 
34
65
  // @public
35
- export interface ConnectedClusterCreateOptionalParams extends coreClient.OperationOptions {
66
+ export interface ConnectedClusterCreateOrReplaceOptionalParams extends coreClient.OperationOptions {
36
67
  resumeFrom?: string;
37
68
  updateIntervalInMs?: number;
38
69
  }
39
70
 
40
71
  // @public
41
- export type ConnectedClusterCreateResponse = ConnectedCluster;
72
+ export type ConnectedClusterCreateOrReplaceResponse = ConnectedCluster;
42
73
 
43
74
  // @public
44
75
  export interface ConnectedClusterDeleteOptionalParams extends coreClient.OperationOptions {
@@ -60,6 +91,9 @@ export interface ConnectedClusterIdentity {
60
91
  type: ResourceIdentityType;
61
92
  }
62
93
 
94
+ // @public
95
+ export type ConnectedClusterKind = string;
96
+
63
97
  // @public
64
98
  export interface ConnectedClusterList {
65
99
  nextLink?: string;
@@ -103,9 +137,9 @@ export type ConnectedClusterListClusterUserCredentialResponse = CredentialResult
103
137
 
104
138
  // @public
105
139
  export interface ConnectedClusterOperations {
106
- beginCreate(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOptionalParams): Promise<PollerLike<PollOperationState<ConnectedClusterCreateResponse>, ConnectedClusterCreateResponse>>;
107
- beginCreateAndWait(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOptionalParams): Promise<ConnectedClusterCreateResponse>;
108
- beginDelete(resourceGroupName: string, clusterName: string, options?: ConnectedClusterDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
140
+ beginCreateOrReplace(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOrReplaceOptionalParams): Promise<SimplePollerLike<OperationState<ConnectedClusterCreateOrReplaceResponse>, ConnectedClusterCreateOrReplaceResponse>>;
141
+ beginCreateOrReplaceAndWait(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOrReplaceOptionalParams): Promise<ConnectedClusterCreateOrReplaceResponse>;
142
+ beginDelete(resourceGroupName: string, clusterName: string, options?: ConnectedClusterDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
109
143
  beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ConnectedClusterDeleteOptionalParams): Promise<void>;
110
144
  get(resourceGroupName: string, clusterName: string, options?: ConnectedClusterGetOptionalParams): Promise<ConnectedClusterGetResponse>;
111
145
  listByResourceGroup(resourceGroupName: string, options?: ConnectedClusterListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ConnectedCluster>;
@@ -116,12 +150,48 @@ export interface ConnectedClusterOperations {
116
150
 
117
151
  // @public
118
152
  export interface ConnectedClusterPatch {
119
- properties?: Record<string, unknown>;
153
+ properties?: ConnectedClusterPatchProperties;
120
154
  tags?: {
121
155
  [propertyName: string]: string;
122
156
  };
123
157
  }
124
158
 
159
+ // @public
160
+ export interface ConnectedClusterPatchProperties {
161
+ azureHybridBenefit?: AzureHybridBenefit;
162
+ distribution?: string;
163
+ distributionVersion?: string;
164
+ }
165
+
166
+ // @public
167
+ export interface ConnectedClusterProperties {
168
+ aadProfile?: AadProfile;
169
+ agentPublicKeyCertificate: string;
170
+ readonly agentVersion?: string;
171
+ arcAgentProfile?: ArcAgentProfile;
172
+ arcAgentryConfigurations?: ArcAgentryConfigurations[];
173
+ azureHybridBenefit?: AzureHybridBenefit;
174
+ readonly connectivityStatus?: ConnectivityStatus;
175
+ distribution?: string;
176
+ distributionVersion?: string;
177
+ gateway?: Gateway;
178
+ infrastructure?: string;
179
+ readonly kubernetesVersion?: string;
180
+ readonly lastConnectivityTime?: Date;
181
+ readonly managedIdentityCertificateExpirationTime?: Date;
182
+ readonly miscellaneousProperties?: {
183
+ [propertyName: string]: string;
184
+ };
185
+ readonly offering?: string;
186
+ oidcIssuerProfile?: OidcIssuerProfile;
187
+ privateLinkScopeResourceId?: string;
188
+ privateLinkState?: PrivateLinkState;
189
+ provisioningState?: ProvisioningState;
190
+ securityProfile?: SecurityProfile;
191
+ readonly totalCoreCount?: number;
192
+ readonly totalNodeCount?: number;
193
+ }
194
+
125
195
  // @public
126
196
  export interface ConnectedClusterUpdateOptionalParams extends coreClient.OperationOptions {
127
197
  }
@@ -134,6 +204,7 @@ export class ConnectedKubernetesClient extends coreClient.ServiceClient {
134
204
  // (undocumented)
135
205
  $host: string;
136
206
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ConnectedKubernetesClientOptionalParams);
207
+ constructor(credentials: coreAuth.TokenCredential, options?: ConnectedKubernetesClientOptionalParams);
137
208
  // (undocumented)
138
209
  apiVersion: string;
139
210
  // (undocumented)
@@ -141,7 +212,7 @@ export class ConnectedKubernetesClient extends coreClient.ServiceClient {
141
212
  // (undocumented)
142
213
  operations: Operations;
143
214
  // (undocumented)
144
- subscriptionId: string;
215
+ subscriptionId?: string;
145
216
  }
146
217
 
147
218
  // @public
@@ -189,6 +260,12 @@ export interface ErrorResponse {
189
260
  error?: ErrorDetail;
190
261
  }
191
262
 
263
+ // @public (undocumented)
264
+ export interface Gateway {
265
+ enabled?: boolean;
266
+ resourceId?: string;
267
+ }
268
+
192
269
  // @public
193
270
  export function getContinuationToken(page: unknown): string | undefined;
194
271
 
@@ -197,6 +274,8 @@ export interface HybridConnectionConfig {
197
274
  readonly expirationTime?: number;
198
275
  readonly hybridConnectionName?: string;
199
276
  readonly relay?: string;
277
+ readonly relayTid?: string;
278
+ readonly relayType?: string;
200
279
  readonly token?: string;
201
280
  }
202
281
 
@@ -206,8 +285,28 @@ export enum KnownAuthenticationMethod {
206
285
  Token = "Token"
207
286
  }
208
287
 
288
+ // @public
289
+ export enum KnownAutoUpgradeOptions {
290
+ Disabled = "Disabled",
291
+ Enabled = "Enabled"
292
+ }
293
+
294
+ // @public
295
+ export enum KnownAzureHybridBenefit {
296
+ False = "False",
297
+ NotApplicable = "NotApplicable",
298
+ True = "True"
299
+ }
300
+
301
+ // @public
302
+ export enum KnownConnectedClusterKind {
303
+ AWS = "AWS",
304
+ ProvisionedCluster = "ProvisionedCluster"
305
+ }
306
+
209
307
  // @public
210
308
  export enum KnownConnectivityStatus {
309
+ AgentNotInstalled = "AgentNotInstalled",
211
310
  Connected = "Connected",
212
311
  Connecting = "Connecting",
213
312
  Expired = "Expired",
@@ -230,6 +329,12 @@ export enum KnownLastModifiedByType {
230
329
  User = "User"
231
330
  }
232
331
 
332
+ // @public
333
+ export enum KnownPrivateLinkState {
334
+ Disabled = "Disabled",
335
+ Enabled = "Enabled"
336
+ }
337
+
233
338
  // @public
234
339
  export enum KnownProvisioningState {
235
340
  Accepted = "Accepted",
@@ -250,6 +355,13 @@ export interface ListClusterUserCredentialProperties {
250
355
  clientProxy: boolean;
251
356
  }
252
357
 
358
+ // @public
359
+ export interface OidcIssuerProfile {
360
+ enabled?: boolean;
361
+ readonly issuerUrl?: string;
362
+ selfHostedIssuerUrl?: string;
363
+ }
364
+
253
365
  // @public
254
366
  export interface Operation {
255
367
  readonly display?: OperationDisplay;
@@ -289,6 +401,9 @@ export interface OperationsGetOptionalParams extends coreClient.OperationOptions
289
401
  // @public
290
402
  export type OperationsGetResponse = OperationList;
291
403
 
404
+ // @public
405
+ export type PrivateLinkState = string;
406
+
292
407
  // @public
293
408
  export type ProvisioningState = string;
294
409
 
@@ -302,6 +417,24 @@ export interface Resource {
302
417
  // @public
303
418
  export type ResourceIdentityType = "None" | "SystemAssigned";
304
419
 
420
+ // @public
421
+ export interface SecurityProfile {
422
+ workloadIdentity?: SecurityProfileWorkloadIdentity;
423
+ }
424
+
425
+ // @public
426
+ export interface SecurityProfileWorkloadIdentity {
427
+ enabled?: boolean;
428
+ }
429
+
430
+ // @public
431
+ export interface SystemComponent {
432
+ readonly currentVersion?: string;
433
+ majorVersion?: number;
434
+ type?: string;
435
+ userSpecifiedVersion?: string;
436
+ }
437
+
305
438
  // @public
306
439
  export interface SystemData {
307
440
  createdAt?: Date;