@azure/arm-kubernetesconfiguration-extensions 1.0.0-beta.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 (218) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +115 -0
  4. package/dist/browser/extensionsClient.d.ts +21 -0
  5. package/dist/browser/extensionsClient.d.ts.map +1 -0
  6. package/dist/browser/extensionsClient.js +97 -0
  7. package/dist/browser/extensionsClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/dist/browser/index.js +13 -0
  11. package/dist/browser/index.js.map +1 -0
  12. package/dist/browser/lroImpl.d.ts +11 -0
  13. package/dist/browser/lroImpl.d.ts.map +1 -0
  14. package/dist/browser/lroImpl.js +21 -0
  15. package/dist/browser/lroImpl.js.map +1 -0
  16. package/dist/browser/models/index.d.ts +398 -0
  17. package/dist/browser/models/index.d.ts.map +1 -0
  18. package/dist/browser/models/index.js +46 -0
  19. package/dist/browser/models/index.js.map +1 -0
  20. package/dist/browser/models/mappers.d.ts +19 -0
  21. package/dist/browser/models/mappers.d.ts.map +1 -0
  22. package/dist/browser/models/mappers.js +612 -0
  23. package/dist/browser/models/mappers.js.map +1 -0
  24. package/dist/browser/models/parameters.d.ts +17 -0
  25. package/dist/browser/models/parameters.d.ts.map +1 -0
  26. package/dist/browser/models/parameters.js +164 -0
  27. package/dist/browser/models/parameters.js.map +1 -0
  28. package/dist/browser/operations/extensions.d.ts +141 -0
  29. package/dist/browser/operations/extensions.d.ts.map +1 -0
  30. package/dist/browser/operations/extensions.js +536 -0
  31. package/dist/browser/operations/extensions.js.map +1 -0
  32. package/dist/browser/operations/index.d.ts +3 -0
  33. package/dist/browser/operations/index.d.ts.map +1 -0
  34. package/dist/browser/operations/index.js +10 -0
  35. package/dist/browser/operations/index.js.map +1 -0
  36. package/dist/browser/operations/operationStatus.d.ts +26 -0
  37. package/dist/browser/operations/operationStatus.d.ts.map +1 -0
  38. package/dist/browser/operations/operationStatus.js +71 -0
  39. package/dist/browser/operations/operationStatus.js.map +1 -0
  40. package/dist/browser/operationsInterfaces/extensions.d.ts +108 -0
  41. package/dist/browser/operationsInterfaces/extensions.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/extensions.js +9 -0
  43. package/dist/browser/operationsInterfaces/extensions.js.map +1 -0
  44. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  45. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  46. package/dist/browser/operationsInterfaces/index.js +10 -0
  47. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  48. package/dist/browser/operationsInterfaces/operationStatus.d.ts +18 -0
  49. package/dist/browser/operationsInterfaces/operationStatus.d.ts.map +1 -0
  50. package/dist/browser/operationsInterfaces/operationStatus.js +9 -0
  51. package/dist/browser/operationsInterfaces/operationStatus.js.map +1 -0
  52. package/dist/browser/package.json +3 -0
  53. package/dist/browser/pagingHelper.d.ts +13 -0
  54. package/dist/browser/pagingHelper.d.ts.map +1 -0
  55. package/dist/browser/pagingHelper.js +32 -0
  56. package/dist/browser/pagingHelper.js.map +1 -0
  57. package/dist/commonjs/extensionsClient.d.ts +21 -0
  58. package/dist/commonjs/extensionsClient.d.ts.map +1 -0
  59. package/dist/commonjs/extensionsClient.js +102 -0
  60. package/dist/commonjs/extensionsClient.js.map +1 -0
  61. package/dist/commonjs/index.d.ts +5 -0
  62. package/dist/commonjs/index.d.ts.map +1 -0
  63. package/dist/commonjs/index.js +19 -0
  64. package/dist/commonjs/index.js.map +1 -0
  65. package/dist/commonjs/lroImpl.d.ts +11 -0
  66. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  67. package/dist/commonjs/lroImpl.js +24 -0
  68. package/dist/commonjs/lroImpl.js.map +1 -0
  69. package/dist/commonjs/models/index.d.ts +398 -0
  70. package/dist/commonjs/models/index.d.ts.map +1 -0
  71. package/dist/commonjs/models/index.js +49 -0
  72. package/dist/commonjs/models/index.js.map +1 -0
  73. package/dist/commonjs/models/mappers.d.ts +19 -0
  74. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  75. package/dist/commonjs/models/mappers.js +615 -0
  76. package/dist/commonjs/models/mappers.js.map +1 -0
  77. package/dist/commonjs/models/parameters.d.ts +17 -0
  78. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  79. package/dist/commonjs/models/parameters.js +167 -0
  80. package/dist/commonjs/models/parameters.js.map +1 -0
  81. package/dist/commonjs/operations/extensions.d.ts +141 -0
  82. package/dist/commonjs/operations/extensions.d.ts.map +1 -0
  83. package/dist/commonjs/operations/extensions.js +540 -0
  84. package/dist/commonjs/operations/extensions.js.map +1 -0
  85. package/dist/commonjs/operations/index.d.ts +3 -0
  86. package/dist/commonjs/operations/index.d.ts.map +1 -0
  87. package/dist/commonjs/operations/index.js +13 -0
  88. package/dist/commonjs/operations/index.js.map +1 -0
  89. package/dist/commonjs/operations/operationStatus.d.ts +26 -0
  90. package/dist/commonjs/operations/operationStatus.d.ts.map +1 -0
  91. package/dist/commonjs/operations/operationStatus.js +76 -0
  92. package/dist/commonjs/operations/operationStatus.js.map +1 -0
  93. package/dist/commonjs/operationsInterfaces/extensions.d.ts +108 -0
  94. package/dist/commonjs/operationsInterfaces/extensions.d.ts.map +1 -0
  95. package/dist/commonjs/operationsInterfaces/extensions.js +10 -0
  96. package/dist/commonjs/operationsInterfaces/extensions.js.map +1 -0
  97. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  98. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  99. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  100. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  101. package/dist/commonjs/operationsInterfaces/operationStatus.d.ts +18 -0
  102. package/dist/commonjs/operationsInterfaces/operationStatus.d.ts.map +1 -0
  103. package/dist/commonjs/operationsInterfaces/operationStatus.js +10 -0
  104. package/dist/commonjs/operationsInterfaces/operationStatus.js.map +1 -0
  105. package/dist/commonjs/package.json +3 -0
  106. package/dist/commonjs/pagingHelper.d.ts +13 -0
  107. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  108. package/dist/commonjs/pagingHelper.js +36 -0
  109. package/dist/commonjs/pagingHelper.js.map +1 -0
  110. package/dist/commonjs/tsdoc-metadata.json +11 -0
  111. package/dist/esm/extensionsClient.d.ts +21 -0
  112. package/dist/esm/extensionsClient.d.ts.map +1 -0
  113. package/dist/esm/extensionsClient.js +97 -0
  114. package/dist/esm/extensionsClient.js.map +1 -0
  115. package/dist/esm/index.d.ts +5 -0
  116. package/dist/esm/index.d.ts.map +1 -0
  117. package/dist/esm/index.js +13 -0
  118. package/dist/esm/index.js.map +1 -0
  119. package/dist/esm/lroImpl.d.ts +11 -0
  120. package/dist/esm/lroImpl.d.ts.map +1 -0
  121. package/dist/esm/lroImpl.js +21 -0
  122. package/dist/esm/lroImpl.js.map +1 -0
  123. package/dist/esm/models/index.d.ts +398 -0
  124. package/dist/esm/models/index.d.ts.map +1 -0
  125. package/dist/esm/models/index.js +46 -0
  126. package/dist/esm/models/index.js.map +1 -0
  127. package/dist/esm/models/mappers.d.ts +19 -0
  128. package/dist/esm/models/mappers.d.ts.map +1 -0
  129. package/dist/esm/models/mappers.js +612 -0
  130. package/dist/esm/models/mappers.js.map +1 -0
  131. package/dist/esm/models/parameters.d.ts +17 -0
  132. package/dist/esm/models/parameters.d.ts.map +1 -0
  133. package/dist/esm/models/parameters.js +164 -0
  134. package/dist/esm/models/parameters.js.map +1 -0
  135. package/dist/esm/operations/extensions.d.ts +141 -0
  136. package/dist/esm/operations/extensions.d.ts.map +1 -0
  137. package/dist/esm/operations/extensions.js +536 -0
  138. package/dist/esm/operations/extensions.js.map +1 -0
  139. package/dist/esm/operations/index.d.ts +3 -0
  140. package/dist/esm/operations/index.d.ts.map +1 -0
  141. package/dist/esm/operations/index.js +10 -0
  142. package/dist/esm/operations/index.js.map +1 -0
  143. package/dist/esm/operations/operationStatus.d.ts +26 -0
  144. package/dist/esm/operations/operationStatus.d.ts.map +1 -0
  145. package/dist/esm/operations/operationStatus.js +71 -0
  146. package/dist/esm/operations/operationStatus.js.map +1 -0
  147. package/dist/esm/operationsInterfaces/extensions.d.ts +108 -0
  148. package/dist/esm/operationsInterfaces/extensions.d.ts.map +1 -0
  149. package/dist/esm/operationsInterfaces/extensions.js +9 -0
  150. package/dist/esm/operationsInterfaces/extensions.js.map +1 -0
  151. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  152. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  153. package/dist/esm/operationsInterfaces/index.js +10 -0
  154. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  155. package/dist/esm/operationsInterfaces/operationStatus.d.ts +18 -0
  156. package/dist/esm/operationsInterfaces/operationStatus.d.ts.map +1 -0
  157. package/dist/esm/operationsInterfaces/operationStatus.js +9 -0
  158. package/dist/esm/operationsInterfaces/operationStatus.js.map +1 -0
  159. package/dist/esm/package.json +3 -0
  160. package/dist/esm/pagingHelper.d.ts +13 -0
  161. package/dist/esm/pagingHelper.d.ts.map +1 -0
  162. package/dist/esm/pagingHelper.js +32 -0
  163. package/dist/esm/pagingHelper.js.map +1 -0
  164. package/dist/react-native/extensionsClient.d.ts +21 -0
  165. package/dist/react-native/extensionsClient.d.ts.map +1 -0
  166. package/dist/react-native/extensionsClient.js +97 -0
  167. package/dist/react-native/extensionsClient.js.map +1 -0
  168. package/dist/react-native/index.d.ts +5 -0
  169. package/dist/react-native/index.d.ts.map +1 -0
  170. package/dist/react-native/index.js +13 -0
  171. package/dist/react-native/index.js.map +1 -0
  172. package/dist/react-native/lroImpl.d.ts +11 -0
  173. package/dist/react-native/lroImpl.d.ts.map +1 -0
  174. package/dist/react-native/lroImpl.js +21 -0
  175. package/dist/react-native/lroImpl.js.map +1 -0
  176. package/dist/react-native/models/index.d.ts +398 -0
  177. package/dist/react-native/models/index.d.ts.map +1 -0
  178. package/dist/react-native/models/index.js +46 -0
  179. package/dist/react-native/models/index.js.map +1 -0
  180. package/dist/react-native/models/mappers.d.ts +19 -0
  181. package/dist/react-native/models/mappers.d.ts.map +1 -0
  182. package/dist/react-native/models/mappers.js +612 -0
  183. package/dist/react-native/models/mappers.js.map +1 -0
  184. package/dist/react-native/models/parameters.d.ts +17 -0
  185. package/dist/react-native/models/parameters.d.ts.map +1 -0
  186. package/dist/react-native/models/parameters.js +164 -0
  187. package/dist/react-native/models/parameters.js.map +1 -0
  188. package/dist/react-native/operations/extensions.d.ts +141 -0
  189. package/dist/react-native/operations/extensions.d.ts.map +1 -0
  190. package/dist/react-native/operations/extensions.js +536 -0
  191. package/dist/react-native/operations/extensions.js.map +1 -0
  192. package/dist/react-native/operations/index.d.ts +3 -0
  193. package/dist/react-native/operations/index.d.ts.map +1 -0
  194. package/dist/react-native/operations/index.js +10 -0
  195. package/dist/react-native/operations/index.js.map +1 -0
  196. package/dist/react-native/operations/operationStatus.d.ts +26 -0
  197. package/dist/react-native/operations/operationStatus.d.ts.map +1 -0
  198. package/dist/react-native/operations/operationStatus.js +71 -0
  199. package/dist/react-native/operations/operationStatus.js.map +1 -0
  200. package/dist/react-native/operationsInterfaces/extensions.d.ts +108 -0
  201. package/dist/react-native/operationsInterfaces/extensions.d.ts.map +1 -0
  202. package/dist/react-native/operationsInterfaces/extensions.js +9 -0
  203. package/dist/react-native/operationsInterfaces/extensions.js.map +1 -0
  204. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  205. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  206. package/dist/react-native/operationsInterfaces/index.js +10 -0
  207. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  208. package/dist/react-native/operationsInterfaces/operationStatus.d.ts +18 -0
  209. package/dist/react-native/operationsInterfaces/operationStatus.d.ts.map +1 -0
  210. package/dist/react-native/operationsInterfaces/operationStatus.js +9 -0
  211. package/dist/react-native/operationsInterfaces/operationStatus.js.map +1 -0
  212. package/dist/react-native/package.json +3 -0
  213. package/dist/react-native/pagingHelper.d.ts +13 -0
  214. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  215. package/dist/react-native/pagingHelper.js +32 -0
  216. package/dist/react-native/pagingHelper.js.map +1 -0
  217. package/package.json +133 -0
  218. package/review/arm-kubernetesconfiguration-extensions.api.md +294 -0
@@ -0,0 +1,26 @@
1
+ import { OperationStatus } from "../operationsInterfaces/index.js";
2
+ import { ExtensionsClient } from "../extensionsClient.js";
3
+ import { OperationStatusGetOptionalParams, OperationStatusGetResponse } from "../models/index.js";
4
+ /** Class containing OperationStatus operations. */
5
+ export declare class OperationStatusImpl implements OperationStatus {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class OperationStatus class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: ExtensionsClient);
12
+ /**
13
+ * Get Async Operation status
14
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
15
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
16
+ * Microsoft.HybridContainerService.
17
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
18
+ * connectedClusters, provisionedClusters, appliances.
19
+ * @param clusterName The name of the kubernetes cluster.
20
+ * @param extensionName Name of the Extension.
21
+ * @param operationId operation Id
22
+ * @param options The options parameters.
23
+ */
24
+ get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, operationId: string, options?: OperationStatusGetOptionalParams): Promise<OperationStatusGetResponse>;
25
+ }
26
+ //# sourceMappingURL=operationStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationStatus.d.ts","sourceRoot":"","sources":["../../../src/operations/operationStatus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gCAAgC,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAElG,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;;;;;;;;;OAWG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;CAcvC"}
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers.js";
10
+ import * as Parameters from "../models/parameters.js";
11
+ /** Class containing OperationStatus operations. */
12
+ export class OperationStatusImpl {
13
+ /**
14
+ * Initialize a new instance of the class OperationStatus class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Get Async Operation status
22
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
23
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
24
+ * Microsoft.HybridContainerService.
25
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
26
+ * connectedClusters, provisionedClusters, appliances.
27
+ * @param clusterName The name of the kubernetes cluster.
28
+ * @param extensionName Name of the Extension.
29
+ * @param operationId operation Id
30
+ * @param options The options parameters.
31
+ */
32
+ get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName, operationId, options) {
33
+ return this.client.sendOperationRequest({
34
+ resourceGroupName,
35
+ clusterRp,
36
+ clusterResourceName,
37
+ clusterName,
38
+ extensionName,
39
+ operationId,
40
+ options,
41
+ }, getOperationSpec);
42
+ }
43
+ }
44
+ // Operation Specifications
45
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
46
+ const getOperationSpec = {
47
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}/operations/{operationId}",
48
+ httpMethod: "GET",
49
+ responses: {
50
+ 200: {
51
+ bodyMapper: Mappers.OperationStatusResult,
52
+ },
53
+ default: {
54
+ bodyMapper: Mappers.ErrorResponse,
55
+ },
56
+ },
57
+ queryParameters: [Parameters.apiVersion],
58
+ urlParameters: [
59
+ Parameters.$host,
60
+ Parameters.subscriptionId,
61
+ Parameters.resourceGroupName,
62
+ Parameters.clusterRp,
63
+ Parameters.clusterResourceName,
64
+ Parameters.clusterName,
65
+ Parameters.extensionName,
66
+ Parameters.operationId,
67
+ ],
68
+ headerParameters: [Parameters.accept],
69
+ serializer,
70
+ };
71
+ //# sourceMappingURL=operationStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationStatus.js","sourceRoot":"","sources":["../../../src/operations/operationStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAItD,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CACD,iBAAyB,EACzB,SAAiB,EACjB,mBAA2B,EAC3B,WAAmB,EACnB,aAAqB,EACrB,WAAmB,EACnB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,SAAS;YACT,mBAAmB;YACnB,WAAW;YACX,aAAa;YACb,WAAW;YACX,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,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,8NAA8N;IACpO,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { OperationStatus } 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 { ExtensionsClient } from \"../extensionsClient.js\";\nimport { OperationStatusGetOptionalParams, OperationStatusGetResponse } from \"../models/index.js\";\n\n/** Class containing OperationStatus operations. */\nexport class OperationStatusImpl implements OperationStatus {\n private readonly client: ExtensionsClient;\n\n /**\n * Initialize a new instance of the class OperationStatus class.\n * @param client Reference to the service client\n */\n constructor(client: ExtensionsClient) {\n this.client = client;\n }\n\n /**\n * Get Async Operation status\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param operationId operation Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n operationId: string,\n options?: OperationStatusGetOptionalParams,\n ): Promise<OperationStatusGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n extensionName,\n operationId,\n options,\n },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}/operations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.extensionName,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -0,0 +1,108 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
3
+ import { Extension, ExtensionsListOptionalParams, ExtensionsCreateOptionalParams, ExtensionsCreateResponse, ExtensionsGetOptionalParams, ExtensionsGetResponse, ExtensionsDeleteOptionalParams, PatchExtension, ExtensionsUpdateOptionalParams, ExtensionsUpdateResponse } from "../models/index.js";
4
+ /** Interface representing a Extensions. */
5
+ export interface Extensions {
6
+ /**
7
+ * List all Extensions in the cluster.
8
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
10
+ * Microsoft.HybridContainerService.
11
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
12
+ * connectedClusters, provisionedClusters, appliances.
13
+ * @param clusterName The name of the kubernetes cluster.
14
+ * @param options The options parameters.
15
+ */
16
+ list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: ExtensionsListOptionalParams): PagedAsyncIterableIterator<Extension>;
17
+ /**
18
+ * Create a new Kubernetes Cluster Extension.
19
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
20
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
21
+ * Microsoft.HybridContainerService.
22
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
23
+ * connectedClusters, provisionedClusters, appliances.
24
+ * @param clusterName The name of the kubernetes cluster.
25
+ * @param extensionName Name of the Extension.
26
+ * @param extension Properties necessary to Create an Extension.
27
+ * @param options The options parameters.
28
+ */
29
+ beginCreate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise<SimplePollerLike<OperationState<ExtensionsCreateResponse>, ExtensionsCreateResponse>>;
30
+ /**
31
+ * Create a new Kubernetes Cluster Extension.
32
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
34
+ * Microsoft.HybridContainerService.
35
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
36
+ * connectedClusters, provisionedClusters, appliances.
37
+ * @param clusterName The name of the kubernetes cluster.
38
+ * @param extensionName Name of the Extension.
39
+ * @param extension Properties necessary to Create an Extension.
40
+ * @param options The options parameters.
41
+ */
42
+ beginCreateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise<ExtensionsCreateResponse>;
43
+ /**
44
+ * Gets Kubernetes Cluster Extension.
45
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
46
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
47
+ * Microsoft.HybridContainerService.
48
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
49
+ * connectedClusters, provisionedClusters, appliances.
50
+ * @param clusterName The name of the kubernetes cluster.
51
+ * @param extensionName Name of the Extension.
52
+ * @param options The options parameters.
53
+ */
54
+ get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams): Promise<ExtensionsGetResponse>;
55
+ /**
56
+ * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the
57
+ * cluster.
58
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
59
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
60
+ * Microsoft.HybridContainerService.
61
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
62
+ * connectedClusters, provisionedClusters, appliances.
63
+ * @param clusterName The name of the kubernetes cluster.
64
+ * @param extensionName Name of the Extension.
65
+ * @param options The options parameters.
66
+ */
67
+ beginDelete(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
68
+ /**
69
+ * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the
70
+ * cluster.
71
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
72
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
73
+ * Microsoft.HybridContainerService.
74
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
75
+ * connectedClusters, provisionedClusters, appliances.
76
+ * @param clusterName The name of the kubernetes cluster.
77
+ * @param extensionName Name of the Extension.
78
+ * @param options The options parameters.
79
+ */
80
+ beginDeleteAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise<void>;
81
+ /**
82
+ * Patch an existing Kubernetes Cluster Extension.
83
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
84
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
85
+ * Microsoft.HybridContainerService.
86
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
87
+ * connectedClusters, provisionedClusters, appliances.
88
+ * @param clusterName The name of the kubernetes cluster.
89
+ * @param extensionName Name of the Extension.
90
+ * @param patchExtension Properties to Patch in an existing Extension.
91
+ * @param options The options parameters.
92
+ */
93
+ beginUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ExtensionsUpdateResponse>, ExtensionsUpdateResponse>>;
94
+ /**
95
+ * Patch an existing Kubernetes Cluster Extension.
96
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
97
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
98
+ * Microsoft.HybridContainerService.
99
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
100
+ * connectedClusters, provisionedClusters, appliances.
101
+ * @param clusterName The name of the kubernetes cluster.
102
+ * @param extensionName Name of the Extension.
103
+ * @param patchExtension Properties to Patch in an existing Extension.
104
+ * @param options The options parameters.
105
+ */
106
+ beginUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise<ExtensionsUpdateResponse>;
107
+ }
108
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/extensions.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=extensions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/extensions.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 { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n Extension,\n ExtensionsListOptionalParams,\n ExtensionsCreateOptionalParams,\n ExtensionsCreateResponse,\n ExtensionsGetOptionalParams,\n ExtensionsGetResponse,\n ExtensionsDeleteOptionalParams,\n PatchExtension,\n ExtensionsUpdateOptionalParams,\n ExtensionsUpdateResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Extensions. */\nexport interface Extensions {\n /**\n * List all Extensions in the cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: ExtensionsListOptionalParams,\n ): PagedAsyncIterableIterator<Extension>;\n /**\n * Create a new Kubernetes Cluster Extension.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param extension Properties necessary to Create an Extension.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n extension: Extension,\n options?: ExtensionsCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ExtensionsCreateResponse>, ExtensionsCreateResponse>>;\n /**\n * Create a new Kubernetes Cluster Extension.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param extension Properties necessary to Create an Extension.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n extension: Extension,\n options?: ExtensionsCreateOptionalParams,\n ): Promise<ExtensionsCreateResponse>;\n /**\n * Gets Kubernetes Cluster Extension.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n options?: ExtensionsGetOptionalParams,\n ): Promise<ExtensionsGetResponse>;\n /**\n * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the\n * cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n options?: ExtensionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the\n * cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n options?: ExtensionsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Patch an existing Kubernetes Cluster Extension.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param patchExtension Properties to Patch in an existing Extension.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n patchExtension: PatchExtension,\n options?: ExtensionsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ExtensionsUpdateResponse>, ExtensionsUpdateResponse>>;\n /**\n * Patch an existing Kubernetes Cluster Extension.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param patchExtension Properties to Patch in an existing Extension.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n patchExtension: PatchExtension,\n options?: ExtensionsUpdateOptionalParams,\n ): Promise<ExtensionsUpdateResponse>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./extensions.js";
2
+ export * from "./operationStatus.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./extensions.js";
9
+ export * from "./operationStatus.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,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 * from \"./extensions.js\";\nexport * from \"./operationStatus.js\";\n"]}
@@ -0,0 +1,18 @@
1
+ import { OperationStatusGetOptionalParams, OperationStatusGetResponse } from "../models/index.js";
2
+ /** Interface representing a OperationStatus. */
3
+ export interface OperationStatus {
4
+ /**
5
+ * Get Async Operation status
6
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
8
+ * Microsoft.HybridContainerService.
9
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
10
+ * connectedClusters, provisionedClusters, appliances.
11
+ * @param clusterName The name of the kubernetes cluster.
12
+ * @param extensionName Name of the Extension.
13
+ * @param operationId operation Id
14
+ * @param options The options parameters.
15
+ */
16
+ get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, operationId: string, options?: OperationStatusGetOptionalParams): Promise<OperationStatusGetResponse>;
17
+ }
18
+ //# sourceMappingURL=operationStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationStatus.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operationStatus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gCAAgC,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAElG,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;OAWG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=operationStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationStatus.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operationStatus.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 { OperationStatusGetOptionalParams, OperationStatusGetResponse } from \"../models/index.js\";\n\n/** Interface representing a OperationStatus. */\nexport interface OperationStatus {\n /**\n * Get Async Operation status\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param operationId operation Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n operationId: string,\n options?: OperationStatusGetOptionalParams,\n ): Promise<OperationStatusGetResponse>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
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
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +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,CAAC,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAO/F"}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
+ * that point later.
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
+ */
16
+ export function getContinuationToken(page) {
17
+ var _a;
18
+ if (typeof page !== "object" || page === null) {
19
+ return undefined;
20
+ }
21
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
22
+ }
23
+ export function setContinuationToken(page, continuationToken) {
24
+ var _a;
25
+ if (typeof page !== "object" || page === null || !continuationToken) {
26
+ return;
27
+ }
28
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
29
+ pageInfo.continuationToken = continuationToken;
30
+ pageMap.set(page, pageInfo);
31
+ }
32
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +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,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"]}
@@ -0,0 +1,21 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Extensions, OperationStatus } from "./operationsInterfaces/index.js";
4
+ import { ExtensionsClientOptionalParams } from "./models/index.js";
5
+ export declare class ExtensionsClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ subscriptionId: string;
8
+ apiVersion: string;
9
+ /**
10
+ * Initializes a new instance of the ExtensionsClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The ID of the target subscription.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ExtensionsClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ extensions: Extensions;
19
+ operationStatus: OperationStatus;
20
+ }
21
+ //# sourceMappingURL=extensionsClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsClient.d.ts","sourceRoot":"","sources":["../../src/extensionsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAEnE,qBAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,8BAA8B;IA0E1C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IAwBjC,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;CAClC"}
@@ -0,0 +1,97 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { ExtensionsImpl, OperationStatusImpl } from "./operations/index.js";
11
+ export class ExtensionsClient extends coreClient.ServiceClient {
12
+ /**
13
+ * Initializes a new instance of the ExtensionsClient class.
14
+ * @param credentials Subscription credentials which uniquely identify client subscription.
15
+ * @param subscriptionId The ID of the target subscription.
16
+ * @param options The parameter options
17
+ */
18
+ constructor(credentials, subscriptionId, options) {
19
+ var _a, _b, _c;
20
+ if (credentials === undefined) {
21
+ throw new Error("'credentials' cannot be null");
22
+ }
23
+ if (subscriptionId === undefined) {
24
+ throw new Error("'subscriptionId' cannot be null");
25
+ }
26
+ // Initializing default values for options
27
+ if (!options) {
28
+ options = {};
29
+ }
30
+ const defaults = {
31
+ requestContentType: "application/json; charset=utf-8",
32
+ credential: credentials,
33
+ };
34
+ const packageDetails = `azsdk-js-arm-kubernetesconfiguration-extensions/1.0.0-beta.1`;
35
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
+ : `${packageDetails}`;
38
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
39
+ userAgentPrefix,
40
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
41
+ super(optionsWithDefaults);
42
+ let bearerTokenAuthenticationPolicyFound = false;
43
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
44
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
46
+ }
47
+ if (!options ||
48
+ !options.pipeline ||
49
+ options.pipeline.getOrderedPolicies().length == 0 ||
50
+ !bearerTokenAuthenticationPolicyFound) {
51
+ this.pipeline.removePolicy({
52
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
53
+ });
54
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
55
+ credential: credentials,
56
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
57
+ challengeCallbacks: {
58
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
59
+ },
60
+ }));
61
+ }
62
+ // Parameter assignments
63
+ this.subscriptionId = subscriptionId;
64
+ // Assigning values to Constant parameters
65
+ this.$host = options.$host || "https://management.azure.com";
66
+ this.apiVersion = options.apiVersion || "2024-11-01";
67
+ this.extensions = new ExtensionsImpl(this);
68
+ this.operationStatus = new OperationStatusImpl(this);
69
+ this.addCustomApiVersionPolicy(options.apiVersion);
70
+ }
71
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
72
+ addCustomApiVersionPolicy(apiVersion) {
73
+ if (!apiVersion) {
74
+ return;
75
+ }
76
+ const apiVersionPolicy = {
77
+ name: "CustomApiVersionPolicy",
78
+ async sendRequest(request, next) {
79
+ const param = request.url.split("?");
80
+ if (param.length > 1) {
81
+ const newParams = param[1].split("&").map((item) => {
82
+ if (item.indexOf("api-version") > -1) {
83
+ return "api-version=" + apiVersion;
84
+ }
85
+ else {
86
+ return item;
87
+ }
88
+ });
89
+ request.url = param[0] + "?" + newParams.join("&");
90
+ }
91
+ return next(request);
92
+ },
93
+ };
94
+ this.pipeline.addPolicy(apiVersionPolicy);
95
+ }
96
+ }
97
+ //# sourceMappingURL=extensionsClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsClient.js","sourceRoot":"","sources":["../../src/extensionsClient.ts"],"names":[],"mappings":"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","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 { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ExtensionsImpl, OperationStatusImpl } from \"./operations/index.js\";\nimport { Extensions, OperationStatus } from \"./operationsInterfaces/index.js\";\nimport { ExtensionsClientOptionalParams } from \"./models/index.js\";\n\nexport class ExtensionsClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ExtensionsClient 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?: ExtensionsClientOptionalParams,\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: ExtensionsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-kubernetesconfiguration-extensions/1.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-11-01\";\n this.extensions = new ExtensionsImpl(this);\n this.operationStatus = new OperationStatusImpl(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 extensions: Extensions;\n operationStatus: OperationStatus;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { ExtensionsClient } from "./extensionsClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ /// <reference lib="esnext.asynciterable" />
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { ExtensionsClient } from "./extensionsClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,cAAc,iCAAiC,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { ExtensionsClient } from \"./extensionsClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1,11 @@
1
+ import { 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: {
6
+ readonly requestBody?: unknown;
7
+ readonly path?: string;
8
+ readonly httpMethod: string;
9
+ } & Record<string, any>;
10
+ }): LongRunningOperation<T>;
11
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,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"}
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __rest } from "tslib";
9
+ export function createLroSpec(inputs) {
10
+ const { args, spec, sendOperationFn } = inputs;
11
+ return {
12
+ requestMethod: spec.httpMethod,
13
+ requestPath: spec.path,
14
+ sendInitialRequest: () => sendOperationFn(args, spec),
15
+ sendPollRequest: (path, options) => {
16
+ const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
18
+ },
19
+ };
20
+ }
21
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAKH,MAAM,UAAU,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,UAAK,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 { AbortSignalLike } from \"@azure/abort-controller\";\nimport { 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"]}