@azure/arm-kubernetesconfiguration-privatelinkscopes 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 (250) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +115 -0
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/dist/browser/index.js +13 -0
  7. package/dist/browser/index.js.map +1 -0
  8. package/dist/browser/lroImpl.d.ts +11 -0
  9. package/dist/browser/lroImpl.d.ts.map +1 -0
  10. package/dist/browser/lroImpl.js +21 -0
  11. package/dist/browser/lroImpl.js.map +1 -0
  12. package/dist/browser/models/index.d.ts +376 -0
  13. package/dist/browser/models/index.d.ts.map +1 -0
  14. package/dist/browser/models/index.js +66 -0
  15. package/dist/browser/models/index.js.map +1 -0
  16. package/dist/browser/models/mappers.d.ts +18 -0
  17. package/dist/browser/models/mappers.d.ts.map +1 -0
  18. package/dist/browser/models/mappers.js +444 -0
  19. package/dist/browser/models/mappers.js.map +1 -0
  20. package/dist/browser/models/parameters.d.ts +15 -0
  21. package/dist/browser/models/parameters.d.ts.map +1 -0
  22. package/dist/browser/models/parameters.js +133 -0
  23. package/dist/browser/models/parameters.js.map +1 -0
  24. package/dist/browser/operations/index.d.ts +4 -0
  25. package/dist/browser/operations/index.d.ts.map +1 -0
  26. package/dist/browser/operations/index.js +11 -0
  27. package/dist/browser/operations/index.js.map +1 -0
  28. package/dist/browser/operations/privateEndpointConnections.d.ts +59 -0
  29. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  30. package/dist/browser/operations/privateEndpointConnections.js +216 -0
  31. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  32. package/dist/browser/operations/privateLinkResources.d.ts +28 -0
  33. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
  34. package/dist/browser/operations/privateLinkResources.js +85 -0
  35. package/dist/browser/operations/privateLinkResources.js.map +1 -0
  36. package/dist/browser/operations/privateLinkScopes.d.ts +85 -0
  37. package/dist/browser/operations/privateLinkScopes.d.ts.map +1 -0
  38. package/dist/browser/operations/privateLinkScopes.js +386 -0
  39. package/dist/browser/operations/privateLinkScopes.js.map +1 -0
  40. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  41. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/index.js +11 -0
  43. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  44. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts +51 -0
  45. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  46. package/dist/browser/operationsInterfaces/privateEndpointConnections.js +9 -0
  47. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  48. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts +20 -0
  49. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  50. package/dist/browser/operationsInterfaces/privateLinkResources.js +9 -0
  51. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
  52. package/dist/browser/operationsInterfaces/privateLinkScopes.d.ts +49 -0
  53. package/dist/browser/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
  54. package/dist/browser/operationsInterfaces/privateLinkScopes.js +9 -0
  55. package/dist/browser/operationsInterfaces/privateLinkScopes.js.map +1 -0
  56. package/dist/browser/package.json +3 -0
  57. package/dist/browser/pagingHelper.d.ts +13 -0
  58. package/dist/browser/pagingHelper.d.ts.map +1 -0
  59. package/dist/browser/pagingHelper.js +32 -0
  60. package/dist/browser/pagingHelper.js.map +1 -0
  61. package/dist/browser/privateLinkScopesClient.d.ts +22 -0
  62. package/dist/browser/privateLinkScopesClient.d.ts.map +1 -0
  63. package/dist/browser/privateLinkScopesClient.js +99 -0
  64. package/dist/browser/privateLinkScopesClient.js.map +1 -0
  65. package/dist/commonjs/index.d.ts +5 -0
  66. package/dist/commonjs/index.d.ts.map +1 -0
  67. package/dist/commonjs/index.js +19 -0
  68. package/dist/commonjs/index.js.map +1 -0
  69. package/dist/commonjs/lroImpl.d.ts +11 -0
  70. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  71. package/dist/commonjs/lroImpl.js +24 -0
  72. package/dist/commonjs/lroImpl.js.map +1 -0
  73. package/dist/commonjs/models/index.d.ts +376 -0
  74. package/dist/commonjs/models/index.d.ts.map +1 -0
  75. package/dist/commonjs/models/index.js +69 -0
  76. package/dist/commonjs/models/index.js.map +1 -0
  77. package/dist/commonjs/models/mappers.d.ts +18 -0
  78. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  79. package/dist/commonjs/models/mappers.js +447 -0
  80. package/dist/commonjs/models/mappers.js.map +1 -0
  81. package/dist/commonjs/models/parameters.d.ts +15 -0
  82. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  83. package/dist/commonjs/models/parameters.js +136 -0
  84. package/dist/commonjs/models/parameters.js.map +1 -0
  85. package/dist/commonjs/operations/index.d.ts +4 -0
  86. package/dist/commonjs/operations/index.d.ts.map +1 -0
  87. package/dist/commonjs/operations/index.js +14 -0
  88. package/dist/commonjs/operations/index.js.map +1 -0
  89. package/dist/commonjs/operations/privateEndpointConnections.d.ts +59 -0
  90. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  91. package/dist/commonjs/operations/privateEndpointConnections.js +221 -0
  92. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  93. package/dist/commonjs/operations/privateLinkResources.d.ts +28 -0
  94. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
  95. package/dist/commonjs/operations/privateLinkResources.js +90 -0
  96. package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
  97. package/dist/commonjs/operations/privateLinkScopes.d.ts +85 -0
  98. package/dist/commonjs/operations/privateLinkScopes.d.ts.map +1 -0
  99. package/dist/commonjs/operations/privateLinkScopes.js +390 -0
  100. package/dist/commonjs/operations/privateLinkScopes.js.map +1 -0
  101. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  102. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  103. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  104. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  105. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +51 -0
  106. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  107. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  108. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  109. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +20 -0
  110. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  111. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
  112. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
  113. package/dist/commonjs/operationsInterfaces/privateLinkScopes.d.ts +49 -0
  114. package/dist/commonjs/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
  115. package/dist/commonjs/operationsInterfaces/privateLinkScopes.js +10 -0
  116. package/dist/commonjs/operationsInterfaces/privateLinkScopes.js.map +1 -0
  117. package/dist/commonjs/package.json +3 -0
  118. package/dist/commonjs/pagingHelper.d.ts +13 -0
  119. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  120. package/dist/commonjs/pagingHelper.js +36 -0
  121. package/dist/commonjs/pagingHelper.js.map +1 -0
  122. package/dist/commonjs/privateLinkScopesClient.d.ts +22 -0
  123. package/dist/commonjs/privateLinkScopesClient.d.ts.map +1 -0
  124. package/dist/commonjs/privateLinkScopesClient.js +104 -0
  125. package/dist/commonjs/privateLinkScopesClient.js.map +1 -0
  126. package/dist/commonjs/tsdoc-metadata.json +11 -0
  127. package/dist/esm/index.d.ts +5 -0
  128. package/dist/esm/index.d.ts.map +1 -0
  129. package/dist/esm/index.js +13 -0
  130. package/dist/esm/index.js.map +1 -0
  131. package/dist/esm/lroImpl.d.ts +11 -0
  132. package/dist/esm/lroImpl.d.ts.map +1 -0
  133. package/dist/esm/lroImpl.js +21 -0
  134. package/dist/esm/lroImpl.js.map +1 -0
  135. package/dist/esm/models/index.d.ts +376 -0
  136. package/dist/esm/models/index.d.ts.map +1 -0
  137. package/dist/esm/models/index.js +66 -0
  138. package/dist/esm/models/index.js.map +1 -0
  139. package/dist/esm/models/mappers.d.ts +18 -0
  140. package/dist/esm/models/mappers.d.ts.map +1 -0
  141. package/dist/esm/models/mappers.js +444 -0
  142. package/dist/esm/models/mappers.js.map +1 -0
  143. package/dist/esm/models/parameters.d.ts +15 -0
  144. package/dist/esm/models/parameters.d.ts.map +1 -0
  145. package/dist/esm/models/parameters.js +133 -0
  146. package/dist/esm/models/parameters.js.map +1 -0
  147. package/dist/esm/operations/index.d.ts +4 -0
  148. package/dist/esm/operations/index.d.ts.map +1 -0
  149. package/dist/esm/operations/index.js +11 -0
  150. package/dist/esm/operations/index.js.map +1 -0
  151. package/dist/esm/operations/privateEndpointConnections.d.ts +59 -0
  152. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  153. package/dist/esm/operations/privateEndpointConnections.js +216 -0
  154. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  155. package/dist/esm/operations/privateLinkResources.d.ts +28 -0
  156. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
  157. package/dist/esm/operations/privateLinkResources.js +85 -0
  158. package/dist/esm/operations/privateLinkResources.js.map +1 -0
  159. package/dist/esm/operations/privateLinkScopes.d.ts +85 -0
  160. package/dist/esm/operations/privateLinkScopes.d.ts.map +1 -0
  161. package/dist/esm/operations/privateLinkScopes.js +386 -0
  162. package/dist/esm/operations/privateLinkScopes.js.map +1 -0
  163. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  164. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  165. package/dist/esm/operationsInterfaces/index.js +11 -0
  166. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  167. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +51 -0
  168. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  169. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  170. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  171. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +20 -0
  172. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  173. package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
  174. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  175. package/dist/esm/operationsInterfaces/privateLinkScopes.d.ts +49 -0
  176. package/dist/esm/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
  177. package/dist/esm/operationsInterfaces/privateLinkScopes.js +9 -0
  178. package/dist/esm/operationsInterfaces/privateLinkScopes.js.map +1 -0
  179. package/dist/esm/package.json +3 -0
  180. package/dist/esm/pagingHelper.d.ts +13 -0
  181. package/dist/esm/pagingHelper.d.ts.map +1 -0
  182. package/dist/esm/pagingHelper.js +32 -0
  183. package/dist/esm/pagingHelper.js.map +1 -0
  184. package/dist/esm/privateLinkScopesClient.d.ts +22 -0
  185. package/dist/esm/privateLinkScopesClient.d.ts.map +1 -0
  186. package/dist/esm/privateLinkScopesClient.js +99 -0
  187. package/dist/esm/privateLinkScopesClient.js.map +1 -0
  188. package/dist/react-native/index.d.ts +5 -0
  189. package/dist/react-native/index.d.ts.map +1 -0
  190. package/dist/react-native/index.js +13 -0
  191. package/dist/react-native/index.js.map +1 -0
  192. package/dist/react-native/lroImpl.d.ts +11 -0
  193. package/dist/react-native/lroImpl.d.ts.map +1 -0
  194. package/dist/react-native/lroImpl.js +21 -0
  195. package/dist/react-native/lroImpl.js.map +1 -0
  196. package/dist/react-native/models/index.d.ts +376 -0
  197. package/dist/react-native/models/index.d.ts.map +1 -0
  198. package/dist/react-native/models/index.js +66 -0
  199. package/dist/react-native/models/index.js.map +1 -0
  200. package/dist/react-native/models/mappers.d.ts +18 -0
  201. package/dist/react-native/models/mappers.d.ts.map +1 -0
  202. package/dist/react-native/models/mappers.js +444 -0
  203. package/dist/react-native/models/mappers.js.map +1 -0
  204. package/dist/react-native/models/parameters.d.ts +15 -0
  205. package/dist/react-native/models/parameters.d.ts.map +1 -0
  206. package/dist/react-native/models/parameters.js +133 -0
  207. package/dist/react-native/models/parameters.js.map +1 -0
  208. package/dist/react-native/operations/index.d.ts +4 -0
  209. package/dist/react-native/operations/index.d.ts.map +1 -0
  210. package/dist/react-native/operations/index.js +11 -0
  211. package/dist/react-native/operations/index.js.map +1 -0
  212. package/dist/react-native/operations/privateEndpointConnections.d.ts +59 -0
  213. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  214. package/dist/react-native/operations/privateEndpointConnections.js +216 -0
  215. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  216. package/dist/react-native/operations/privateLinkResources.d.ts +28 -0
  217. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
  218. package/dist/react-native/operations/privateLinkResources.js +85 -0
  219. package/dist/react-native/operations/privateLinkResources.js.map +1 -0
  220. package/dist/react-native/operations/privateLinkScopes.d.ts +85 -0
  221. package/dist/react-native/operations/privateLinkScopes.d.ts.map +1 -0
  222. package/dist/react-native/operations/privateLinkScopes.js +386 -0
  223. package/dist/react-native/operations/privateLinkScopes.js.map +1 -0
  224. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  225. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  226. package/dist/react-native/operationsInterfaces/index.js +11 -0
  227. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  228. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +51 -0
  229. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  230. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  231. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  232. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +20 -0
  233. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  234. package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
  235. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
  236. package/dist/react-native/operationsInterfaces/privateLinkScopes.d.ts +49 -0
  237. package/dist/react-native/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
  238. package/dist/react-native/operationsInterfaces/privateLinkScopes.js +9 -0
  239. package/dist/react-native/operationsInterfaces/privateLinkScopes.js.map +1 -0
  240. package/dist/react-native/package.json +3 -0
  241. package/dist/react-native/pagingHelper.d.ts +13 -0
  242. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  243. package/dist/react-native/pagingHelper.js +32 -0
  244. package/dist/react-native/pagingHelper.js.map +1 -0
  245. package/dist/react-native/privateLinkScopesClient.d.ts +22 -0
  246. package/dist/react-native/privateLinkScopesClient.d.ts.map +1 -0
  247. package/dist/react-native/privateLinkScopesClient.js +99 -0
  248. package/dist/react-native/privateLinkScopesClient.js.map +1 -0
  249. package/package.json +133 -0
  250. package/review/arm-kubernetesconfiguration-privatelinkscopes.api.md +324 -0
@@ -0,0 +1,20 @@
1
+ import { PrivateLinkResourcesListByPrivateLinkScopeOptionalParams, PrivateLinkResourcesListByPrivateLinkScopeResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models/index.js";
2
+ /** Interface representing a PrivateLinkResources. */
3
+ export interface PrivateLinkResources {
4
+ /**
5
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
6
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
8
+ * @param options The options parameters.
9
+ */
10
+ listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: PrivateLinkResourcesListByPrivateLinkScopeOptionalParams): Promise<PrivateLinkResourcesListByPrivateLinkScopeResponse>;
11
+ /**
12
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
13
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
14
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
15
+ * @param groupName The name of the private link resource.
16
+ * @param options The options parameters.
17
+ */
18
+ get(resourceGroupName: string, scopeName: string, groupName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
19
+ }
20
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,wDAAwD,EACxD,kDAAkD,EAClD,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,wDAAwD,GACjE,OAAO,CAAC,kDAAkD,CAAC,CAAC;IAC/D;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"}
@@ -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=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateLinkResources.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 {\n PrivateLinkResourcesListByPrivateLinkScopeOptionalParams,\n PrivateLinkResourcesListByPrivateLinkScopeResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a PrivateLinkResources. */\nexport interface PrivateLinkResources {\n /**\n * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param options The options parameters.\n */\n listByPrivateLinkScope(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkResourcesListByPrivateLinkScopeOptionalParams,\n ): Promise<PrivateLinkResourcesListByPrivateLinkScopeResponse>;\n /**\n * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param groupName The name of the private link resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n scopeName: string,\n groupName: string,\n options?: PrivateLinkResourcesGetOptionalParams,\n ): Promise<PrivateLinkResourcesGetResponse>;\n}\n"]}
@@ -0,0 +1,49 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { KubernetesConfigurationPrivateLinkScope, PrivateLinkScopesListOptionalParams, PrivateLinkScopesListByResourceGroupOptionalParams, PrivateLinkScopesDeleteOptionalParams, PrivateLinkScopesGetOptionalParams, PrivateLinkScopesGetResponse, PrivateLinkScopesCreateOrUpdateOptionalParams, PrivateLinkScopesCreateOrUpdateResponse, TagsResource, PrivateLinkScopesUpdateTagsOptionalParams, PrivateLinkScopesUpdateTagsResponse } from "../models/index.js";
3
+ /** Interface representing a PrivateLinkScopes. */
4
+ export interface PrivateLinkScopes {
5
+ /**
6
+ * Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: PrivateLinkScopesListOptionalParams): PagedAsyncIterableIterator<KubernetesConfigurationPrivateLinkScope>;
10
+ /**
11
+ * Gets a list of Azure Arc PrivateLinkScopes within a resource group.
12
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13
+ * @param options The options parameters.
14
+ */
15
+ listByResourceGroup(resourceGroupName: string, options?: PrivateLinkScopesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<KubernetesConfigurationPrivateLinkScope>;
16
+ /**
17
+ * Deletes a Azure Arc PrivateLinkScope.
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
20
+ * @param options The options parameters.
21
+ */
22
+ delete(resourceGroupName: string, scopeName: string, options?: PrivateLinkScopesDeleteOptionalParams): Promise<void>;
23
+ /**
24
+ * Returns a Azure Arc PrivateLinkScope.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
27
+ * @param options The options parameters.
28
+ */
29
+ get(resourceGroupName: string, scopeName: string, options?: PrivateLinkScopesGetOptionalParams): Promise<PrivateLinkScopesGetResponse>;
30
+ /**
31
+ * Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for
32
+ * InstrumentationKey nor AppId in the Put operation.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
35
+ * @param parameters Properties that need to be specified to create or update a Azure Arc for Servers
36
+ * and Clusters PrivateLinkScope.
37
+ * @param options The options parameters.
38
+ */
39
+ createOrUpdate(resourceGroupName: string, scopeName: string, parameters: KubernetesConfigurationPrivateLinkScope, options?: PrivateLinkScopesCreateOrUpdateOptionalParams): Promise<PrivateLinkScopesCreateOrUpdateResponse>;
40
+ /**
41
+ * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
42
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
43
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
44
+ * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.
45
+ * @param options The options parameters.
46
+ */
47
+ updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: TagsResource, options?: PrivateLinkScopesUpdateTagsOptionalParams): Promise<PrivateLinkScopesUpdateTagsResponse>;
48
+ }
49
+ //# sourceMappingURL=privateLinkScopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkScopes.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateLinkScopes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,uCAAuC,EACvC,mCAAmC,EACnC,kDAAkD,EAClD,qCAAqC,EACrC,kCAAkC,EAClC,4BAA4B,EAC5B,6CAA6C,EAC7C,uCAAuC,EACvC,YAAY,EACZ,yCAAyC,EACzC,mCAAmC,EACpC,MAAM,oBAAoB,CAAC;AAG5B,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,uCAAuC,CAAC,CAAC;IACvE;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,0BAA0B,CAAC,uCAAuC,CAAC,CAAC;IACvE;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACzC;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,uCAAuC,EACnD,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC,CAAC;IACpD;;;;;;OAMG;IACH,UAAU,CACR,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,oBAAoB,EAAE,YAAY,EAClC,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;CACjD"}
@@ -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=privateLinkScopes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkScopes.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateLinkScopes.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 {\n KubernetesConfigurationPrivateLinkScope,\n PrivateLinkScopesListOptionalParams,\n PrivateLinkScopesListByResourceGroupOptionalParams,\n PrivateLinkScopesDeleteOptionalParams,\n PrivateLinkScopesGetOptionalParams,\n PrivateLinkScopesGetResponse,\n PrivateLinkScopesCreateOrUpdateOptionalParams,\n PrivateLinkScopesCreateOrUpdateResponse,\n TagsResource,\n PrivateLinkScopesUpdateTagsOptionalParams,\n PrivateLinkScopesUpdateTagsResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a PrivateLinkScopes. */\nexport interface PrivateLinkScopes {\n /**\n * Gets a list of all Azure Arc PrivateLinkScopes within a subscription.\n * @param options The options parameters.\n */\n list(\n options?: PrivateLinkScopesListOptionalParams,\n ): PagedAsyncIterableIterator<KubernetesConfigurationPrivateLinkScope>;\n /**\n * Gets a list of Azure Arc PrivateLinkScopes within 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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<KubernetesConfigurationPrivateLinkScope>;\n /**\n * Deletes a Azure Arc PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopesDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Returns a Azure Arc PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopesGetOptionalParams,\n ): Promise<PrivateLinkScopesGetResponse>;\n /**\n * Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for\n * InstrumentationKey nor AppId in the Put operation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param parameters Properties that need to be specified to create or update a Azure Arc for Servers\n * and Clusters PrivateLinkScope.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n scopeName: string,\n parameters: KubernetesConfigurationPrivateLinkScope,\n options?: PrivateLinkScopesCreateOrUpdateOptionalParams,\n ): Promise<PrivateLinkScopesCreateOrUpdateResponse>;\n /**\n * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n scopeName: string,\n privateLinkScopeTags: TagsResource,\n options?: PrivateLinkScopesUpdateTagsOptionalParams,\n ): Promise<PrivateLinkScopesUpdateTagsResponse>;\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,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -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,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 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(\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"]}
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { PrivateLinkScopes, PrivateLinkResources, PrivateEndpointConnections } from "./operationsInterfaces/index.js";
4
+ import { PrivateLinkScopesClientOptionalParams } from "./models/index.js";
5
+ export declare class PrivateLinkScopesClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the PrivateLinkScopesClient 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?: PrivateLinkScopesClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ privateLinkScopes: PrivateLinkScopes;
19
+ privateLinkResources: PrivateLinkResources;
20
+ privateEndpointConnections: PrivateEndpointConnections;
21
+ }
22
+ //# sourceMappingURL=privateLinkScopesClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkScopesClient.d.ts","sourceRoot":"","sources":["../../src/privateLinkScopesClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,qCAAqC,EAAE,MAAM,mBAAmB,CAAC;AAE1E,qBAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,qCAAqC;IA+EjD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,0BAA0B,EAAE,0BAA0B,CAAC;CACxD"}
@@ -0,0 +1,99 @@
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 { PrivateLinkScopesImpl, PrivateLinkResourcesImpl, PrivateEndpointConnectionsImpl, } from "./operations/index.js";
11
+ export class PrivateLinkScopesClient extends coreClient.ServiceClient {
12
+ /**
13
+ * Initializes a new instance of the PrivateLinkScopesClient 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-privatelinkscopes/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 ===
46
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
47
+ }
48
+ if (!options ||
49
+ !options.pipeline ||
50
+ options.pipeline.getOrderedPolicies().length == 0 ||
51
+ !bearerTokenAuthenticationPolicyFound) {
52
+ this.pipeline.removePolicy({
53
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
54
+ });
55
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
+ credential: credentials,
57
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
58
+ challengeCallbacks: {
59
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
60
+ },
61
+ }));
62
+ }
63
+ // Parameter assignments
64
+ this.subscriptionId = subscriptionId;
65
+ // Assigning values to Constant parameters
66
+ this.$host = options.$host || "https://management.azure.com";
67
+ this.apiVersion = options.apiVersion || "2024-11-01-preview";
68
+ this.privateLinkScopes = new PrivateLinkScopesImpl(this);
69
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
70
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
71
+ this.addCustomApiVersionPolicy(options.apiVersion);
72
+ }
73
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
74
+ addCustomApiVersionPolicy(apiVersion) {
75
+ if (!apiVersion) {
76
+ return;
77
+ }
78
+ const apiVersionPolicy = {
79
+ name: "CustomApiVersionPolicy",
80
+ async sendRequest(request, next) {
81
+ const param = request.url.split("?");
82
+ if (param.length > 1) {
83
+ const newParams = param[1].split("&").map((item) => {
84
+ if (item.indexOf("api-version") > -1) {
85
+ return "api-version=" + apiVersion;
86
+ }
87
+ else {
88
+ return item;
89
+ }
90
+ });
91
+ request.url = param[0] + "?" + newParams.join("&");
92
+ }
93
+ return next(request);
94
+ },
95
+ };
96
+ this.pipeline.addPolicy(apiVersionPolicy);
97
+ }
98
+ }
99
+ //# sourceMappingURL=privateLinkScopesClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkScopesClient.js","sourceRoot":"","sources":["../../src/privateLinkScopesClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA0C;YACtD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,qEAAqE,CAAC;QAC7F,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EACN,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,GACxE,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,IAAI,oCAAoC,GAAY,KAAK,CAAC;QAC1D,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1E,MAAM,gBAAgB,GACpB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;YACxC,oCAAoC,GAAG,gBAAgB,CAAC,IAAI,CAC1D,CAAC,cAAc,EAAE,EAAE,CACjB,cAAc,CAAC,IAAI;gBACnB,gBAAgB,CAAC,mCAAmC,CACvD,CAAC;QACJ,CAAC;QACD,IACE,CAAC,OAAO;YACR,CAAC,OAAO,CAAC,QAAQ;YACjB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC;YACjD,CAAC,oCAAoC,EACrC,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;gBACzB,IAAI,EAAE,gBAAgB,CAAC,mCAAmC;aAC3D,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrB,gBAAgB,CAAC,+BAA+B,CAAC;gBAC/C,UAAU,EAAE,WAAW;gBACvB,MAAM,EACJ,MAAA,mBAAmB,CAAC,gBAAgB,mCACpC,GAAG,mBAAmB,CAAC,QAAQ,WAAW;gBAC5C,kBAAkB,EAAE;oBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;iBAC9C;aACF,CAAC,CACH,CAAC;QACJ,CAAC;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAKF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateLinkScopesImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n} from \"./operations/index.js\";\nimport {\n PrivateLinkScopes,\n PrivateLinkResources,\n PrivateEndpointConnections,\n} from \"./operationsInterfaces/index.js\";\nimport { PrivateLinkScopesClientOptionalParams } from \"./models/index.js\";\n\nexport class PrivateLinkScopesClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the PrivateLinkScopesClient 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?: PrivateLinkScopesClientOptionalParams,\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: PrivateLinkScopesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-kubernetesconfiguration-privatelinkscopes/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:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-11-01-preview\";\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n privateLinkScopes: PrivateLinkScopes;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { PrivateLinkScopesClient } from "./privateLinkScopesClient.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,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.PrivateLinkScopesClient = exports.getContinuationToken = void 0;
11
+ const tslib_1 = require("tslib");
12
+ /// <reference lib="esnext.asynciterable" />
13
+ var pagingHelper_js_1 = require("./pagingHelper.js");
14
+ Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
15
+ tslib_1.__exportStar(require("./models/index.js"), exports);
16
+ var privateLinkScopesClient_js_1 = require("./privateLinkScopesClient.js");
17
+ Object.defineProperty(exports, "PrivateLinkScopesClient", { enumerable: true, get: function () { return privateLinkScopesClient_js_1.PrivateLinkScopesClient; } });
18
+ tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
19
+ //# 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,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,0EAAgD","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 { PrivateLinkScopesClient } from \"./privateLinkScopesClient.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,CAmB1B"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.createLroSpec = createLroSpec;
11
+ const tslib_1 = require("tslib");
12
+ function createLroSpec(inputs) {
13
+ const { args, spec, sendOperationFn } = inputs;
14
+ return {
15
+ requestMethod: spec.httpMethod,
16
+ requestPath: spec.path,
17
+ sendInitialRequest: () => sendOperationFn(args, spec),
18
+ sendPollRequest: (path, options) => {
19
+ const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
20
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
21
+ },
22
+ };
23
+ }
24
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,sCA2BC;;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { 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: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\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"]}