@azure/arm-hybridcompute 2.1.1 → 3.0.0

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 (247) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -85
  4. package/dist/index.js +3565 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/approveOrRejectAPrivateEndpointConnectionWithAGivenName.d.ts +2 -0
  9. package/dist-esm/samples-dev/approveOrRejectAPrivateEndpointConnectionWithAGivenName.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/approveOrRejectAPrivateEndpointConnectionWithAGivenName.js +40 -0
  11. package/dist-esm/samples-dev/approveOrRejectAPrivateEndpointConnectionWithAGivenName.js.map +1 -0
  12. package/dist-esm/samples-dev/createOrUpdateAMachineExtension.d.ts +2 -0
  13. package/dist-esm/samples-dev/createOrUpdateAMachineExtension.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/createOrUpdateAMachineExtension.js +42 -0
  15. package/dist-esm/samples-dev/createOrUpdateAMachineExtension.js.map +1 -0
  16. package/dist-esm/samples-dev/deleteAMachine.d.ts +2 -0
  17. package/dist-esm/samples-dev/deleteAMachine.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/deleteAMachine.js +31 -0
  19. package/dist-esm/samples-dev/deleteAMachine.js.map +1 -0
  20. package/dist-esm/samples-dev/deleteAMachineExtension.d.ts +2 -0
  21. package/dist-esm/samples-dev/deleteAMachineExtension.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/deleteAMachineExtension.js +32 -0
  23. package/dist-esm/samples-dev/deleteAMachineExtension.js.map +1 -0
  24. package/dist-esm/samples-dev/deletesAPrivateEndpointConnectionWithAGivenName.d.ts +2 -0
  25. package/dist-esm/samples-dev/deletesAPrivateEndpointConnectionWithAGivenName.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/deletesAPrivateEndpointConnectionWithAGivenName.js +32 -0
  27. package/dist-esm/samples-dev/deletesAPrivateEndpointConnectionWithAGivenName.js.map +1 -0
  28. package/dist-esm/samples-dev/getAllMachineExtensions.d.ts +2 -0
  29. package/dist-esm/samples-dev/getAllMachineExtensions.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/getAllMachineExtensions.js +45 -0
  31. package/dist-esm/samples-dev/getAllMachineExtensions.js.map +1 -0
  32. package/dist-esm/samples-dev/getMachine.d.ts +2 -0
  33. package/dist-esm/samples-dev/getMachine.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/getMachine.js +31 -0
  35. package/dist-esm/samples-dev/getMachine.js.map +1 -0
  36. package/dist-esm/samples-dev/getMachineExtension.d.ts +2 -0
  37. package/dist-esm/samples-dev/getMachineExtension.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/getMachineExtension.js +32 -0
  39. package/dist-esm/samples-dev/getMachineExtension.js.map +1 -0
  40. package/dist-esm/samples-dev/getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope.d.ts +2 -0
  41. package/dist-esm/samples-dev/getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope.js +45 -0
  43. package/dist-esm/samples-dev/getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope.js.map +1 -0
  44. package/dist-esm/samples-dev/getsPrivateEndpointConnection.d.ts +2 -0
  45. package/dist-esm/samples-dev/getsPrivateEndpointConnection.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/getsPrivateEndpointConnection.js +32 -0
  47. package/dist-esm/samples-dev/getsPrivateEndpointConnection.js.map +1 -0
  48. package/dist-esm/samples-dev/listMachinesByResourceGroup.d.ts +2 -0
  49. package/dist-esm/samples-dev/listMachinesByResourceGroup.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/listMachinesByResourceGroup.js +43 -0
  51. package/dist-esm/samples-dev/listMachinesByResourceGroup.js.map +1 -0
  52. package/dist-esm/samples-dev/privateLinkScopeCreate.d.ts +2 -0
  53. package/dist-esm/samples-dev/privateLinkScopeCreate.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/privateLinkScopeCreate.js +32 -0
  55. package/dist-esm/samples-dev/privateLinkScopeCreate.js.map +1 -0
  56. package/dist-esm/samples-dev/privateLinkScopeGet.d.ts +2 -0
  57. package/dist-esm/samples-dev/privateLinkScopeGet.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/privateLinkScopeGet.js +31 -0
  59. package/dist-esm/samples-dev/privateLinkScopeGet.js.map +1 -0
  60. package/dist-esm/samples-dev/privateLinkScopeListByResourceGroup.d.ts +2 -0
  61. package/dist-esm/samples-dev/privateLinkScopeListByResourceGroup.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/privateLinkScopeListByResourceGroup.js +44 -0
  63. package/dist-esm/samples-dev/privateLinkScopeListByResourceGroup.js.map +1 -0
  64. package/dist-esm/samples-dev/privateLinkScopeUpdate.d.ts +2 -0
  65. package/dist-esm/samples-dev/privateLinkScopeUpdate.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/privateLinkScopeUpdate.js +35 -0
  67. package/dist-esm/samples-dev/privateLinkScopeUpdate.js.map +1 -0
  68. package/dist-esm/samples-dev/privateLinkScopeUpdateTagsOnly.d.ts +2 -0
  69. package/dist-esm/samples-dev/privateLinkScopeUpdateTagsOnly.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/privateLinkScopeUpdateTagsOnly.js +34 -0
  71. package/dist-esm/samples-dev/privateLinkScopeUpdateTagsOnly.js.map +1 -0
  72. package/dist-esm/samples-dev/privateLinkScopesDelete.d.ts +2 -0
  73. package/dist-esm/samples-dev/privateLinkScopesDelete.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/privateLinkScopesDelete.js +31 -0
  75. package/dist-esm/samples-dev/privateLinkScopesDelete.js.map +1 -0
  76. package/dist-esm/samples-dev/privateLinkScopesListJson.d.ts +2 -0
  77. package/dist-esm/samples-dev/privateLinkScopesListJson.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/privateLinkScopesListJson.js +43 -0
  79. package/dist-esm/samples-dev/privateLinkScopesListJson.js.map +1 -0
  80. package/dist-esm/samples-dev/upgradeMachineExtensions.d.ts +2 -0
  81. package/dist-esm/samples-dev/upgradeMachineExtensions.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/upgradeMachineExtensions.js +37 -0
  83. package/dist-esm/samples-dev/upgradeMachineExtensions.js.map +1 -0
  84. package/dist-esm/src/hybridComputeManagementClient.d.ts +40 -0
  85. package/dist-esm/src/hybridComputeManagementClient.d.ts.map +1 -0
  86. package/dist-esm/src/hybridComputeManagementClient.js +138 -0
  87. package/dist-esm/src/hybridComputeManagementClient.js.map +1 -0
  88. package/dist-esm/src/index.d.ts +5 -0
  89. package/dist-esm/src/index.d.ts.map +1 -0
  90. package/dist-esm/src/index.js +12 -0
  91. package/dist-esm/src/index.js.map +1 -0
  92. package/dist-esm/src/lroImpl.d.ts +16 -0
  93. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  94. package/dist-esm/src/lroImpl.js +29 -0
  95. package/dist-esm/src/lroImpl.js.map +1 -0
  96. package/dist-esm/src/models/index.d.ts +875 -0
  97. package/dist-esm/src/models/index.d.ts.map +1 -0
  98. package/dist-esm/src/models/index.js +43 -0
  99. package/dist-esm/src/models/index.js.map +1 -0
  100. package/dist-esm/src/models/mappers.d.ts +45 -0
  101. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  102. package/{esm → dist-esm/src}/models/mappers.js +829 -555
  103. package/dist-esm/src/models/mappers.js.map +1 -0
  104. package/dist-esm/src/models/parameters.d.ts +25 -0
  105. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  106. package/dist-esm/src/models/parameters.js +219 -0
  107. package/dist-esm/src/models/parameters.js.map +1 -0
  108. package/dist-esm/src/operations/index.d.ts +7 -0
  109. package/dist-esm/src/operations/index.d.ts.map +1 -0
  110. package/dist-esm/src/operations/index.js +14 -0
  111. package/dist-esm/src/operations/index.js.map +1 -0
  112. package/dist-esm/src/operations/machineExtensions.d.ts +99 -0
  113. package/dist-esm/src/operations/machineExtensions.d.ts.map +1 -0
  114. package/dist-esm/src/operations/machineExtensions.js +429 -0
  115. package/dist-esm/src/operations/machineExtensions.js.map +1 -0
  116. package/dist-esm/src/operations/machines.d.ts +71 -0
  117. package/dist-esm/src/operations/machines.d.ts.map +1 -0
  118. package/dist-esm/src/operations/machines.js +294 -0
  119. package/dist-esm/src/operations/machines.js.map +1 -0
  120. package/dist-esm/src/operations/operations.d.ts +26 -0
  121. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  122. package/dist-esm/src/operations/operations.js +90 -0
  123. package/dist-esm/src/operations/operations.js.map +1 -0
  124. package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
  125. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  126. package/dist-esm/src/operations/privateEndpointConnections.js +337 -0
  127. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  128. package/dist-esm/src/operations/privateLinkResources.d.ts +46 -0
  129. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  130. package/dist-esm/src/operations/privateLinkResources.js +169 -0
  131. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  132. package/dist-esm/src/operations/privateLinkScopes.d.ts +108 -0
  133. package/dist-esm/src/operations/privateLinkScopes.d.ts.map +1 -0
  134. package/dist-esm/src/operations/privateLinkScopes.js +466 -0
  135. package/dist-esm/src/operations/privateLinkScopes.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  137. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  139. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/machineExtensions.d.ts +74 -0
  141. package/dist-esm/src/operationsInterfaces/machineExtensions.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/machineExtensions.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/machineExtensions.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/machines.d.ts +33 -0
  145. package/dist-esm/src/operationsInterfaces/machines.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/machines.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/machines.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  149. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  153. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  157. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/privateLinkScopes.d.ts +72 -0
  161. package/dist-esm/src/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/privateLinkScopes.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/privateLinkScopes.js.map +1 -0
  164. package/dist-esm/test/sampleTest.d.ts +2 -0
  165. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  166. package/dist-esm/test/sampleTest.js +40 -0
  167. package/dist-esm/test/sampleTest.js.map +1 -0
  168. package/package.json +80 -33
  169. package/review/arm-hybridcompute.api.md +708 -0
  170. package/rollup.config.js +181 -30
  171. package/src/hybridComputeManagementClient.ts +204 -37
  172. package/src/index.ts +12 -0
  173. package/src/lroImpl.ts +34 -0
  174. package/src/models/index.ts +744 -786
  175. package/src/models/mappers.ts +836 -576
  176. package/src/models/parameters.ts +192 -33
  177. package/src/operations/index.ts +6 -5
  178. package/src/operations/machineExtensions.ts +484 -275
  179. package/src/operations/machines.ts +240 -225
  180. package/src/operations/operations.ts +66 -42
  181. package/src/operations/privateEndpointConnections.ts +483 -0
  182. package/src/operations/privateLinkResources.ts +233 -0
  183. package/src/operations/privateLinkScopes.ts +599 -0
  184. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +7 -6
  185. package/src/operationsInterfaces/machineExtensions.ts +147 -0
  186. package/src/operationsInterfaces/machines.ts +62 -0
  187. package/src/operationsInterfaces/operations.ts +22 -0
  188. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  189. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  190. package/src/operationsInterfaces/privateLinkScopes.ts +132 -0
  191. package/tsconfig.json +5 -4
  192. package/types/arm-hybridcompute.d.ts +1280 -0
  193. package/types/tsdoc-metadata.json +11 -0
  194. package/dist/arm-hybridcompute.js +0 -1971
  195. package/dist/arm-hybridcompute.js.map +0 -1
  196. package/dist/arm-hybridcompute.min.js +0 -1
  197. package/dist/arm-hybridcompute.min.js.map +0 -1
  198. package/esm/hybridComputeManagementClient.d.ts +0 -27
  199. package/esm/hybridComputeManagementClient.d.ts.map +0 -1
  200. package/esm/hybridComputeManagementClient.js +0 -41
  201. package/esm/hybridComputeManagementClient.js.map +0 -1
  202. package/esm/hybridComputeManagementClientContext.d.ts +0 -23
  203. package/esm/hybridComputeManagementClientContext.d.ts.map +0 -1
  204. package/esm/hybridComputeManagementClientContext.js +0 -62
  205. package/esm/hybridComputeManagementClientContext.js.map +0 -1
  206. package/esm/models/index.d.ts +0 -971
  207. package/esm/models/index.d.ts.map +0 -1
  208. package/esm/models/index.js +0 -8
  209. package/esm/models/index.js.map +0 -1
  210. package/esm/models/machineExtensionsMappers.d.ts +0 -2
  211. package/esm/models/machineExtensionsMappers.d.ts.map +0 -1
  212. package/esm/models/machineExtensionsMappers.js +0 -9
  213. package/esm/models/machineExtensionsMappers.js.map +0 -1
  214. package/esm/models/machinesMappers.d.ts +0 -2
  215. package/esm/models/machinesMappers.d.ts.map +0 -1
  216. package/esm/models/machinesMappers.js +0 -9
  217. package/esm/models/machinesMappers.js.map +0 -1
  218. package/esm/models/mappers.d.ts +0 -32
  219. package/esm/models/mappers.d.ts.map +0 -1
  220. package/esm/models/mappers.js.map +0 -1
  221. package/esm/models/operationsMappers.d.ts +0 -2
  222. package/esm/models/operationsMappers.d.ts.map +0 -1
  223. package/esm/models/operationsMappers.js +0 -9
  224. package/esm/models/operationsMappers.js.map +0 -1
  225. package/esm/models/parameters.d.ts +0 -10
  226. package/esm/models/parameters.d.ts.map +0 -1
  227. package/esm/models/parameters.js +0 -93
  228. package/esm/models/parameters.js.map +0 -1
  229. package/esm/operations/index.d.ts +0 -4
  230. package/esm/operations/index.d.ts.map +0 -1
  231. package/esm/operations/index.js.map +0 -1
  232. package/esm/operations/machineExtensions.d.ts +0 -135
  233. package/esm/operations/machineExtensions.d.ts.map +0 -1
  234. package/esm/operations/machineExtensions.js +0 -294
  235. package/esm/operations/machineExtensions.js.map +0 -1
  236. package/esm/operations/machines.d.ts +0 -128
  237. package/esm/operations/machines.d.ts.map +0 -1
  238. package/esm/operations/machines.js +0 -197
  239. package/esm/operations/machines.js.map +0 -1
  240. package/esm/operations/operations.d.ts +0 -28
  241. package/esm/operations/operations.d.ts.map +0 -1
  242. package/esm/operations/operations.js +0 -51
  243. package/esm/operations/operations.js.map +0 -1
  244. package/src/hybridComputeManagementClientContext.ts +0 -69
  245. package/src/models/machineExtensionsMappers.ts +0 -31
  246. package/src/models/machinesMappers.ts +0 -28
  247. package/src/models/operationsMappers.ts +0 -14
@@ -0,0 +1,337 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing PrivateEndpointConnections operations. */
16
+ export class PrivateEndpointConnectionsImpl {
17
+ /**
18
+ * Initialize a new instance of the class PrivateEndpointConnections class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Gets all private endpoint connections on a private link scope.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
28
+ * @param options The options parameters.
29
+ */
30
+ listByPrivateLinkScope(resourceGroupName, scopeName, options) {
31
+ const iter = this.listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options);
41
+ }
42
+ };
43
+ }
44
+ listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
46
+ let result = yield __await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listByPrivateLinkScopeNext(resourceGroupName, scopeName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options) {
57
+ return __asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Gets a private endpoint connection.
76
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
78
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
79
+ * @param options The options parameters.
80
+ */
81
+ get(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
82
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, privateEndpointConnectionName, options }, getOperationSpec);
83
+ }
84
+ /**
85
+ * Approve or reject a private endpoint connection with a given name.
86
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
87
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
88
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
89
+ * @param parameters A private endpoint connection
90
+ * @param options The options parameters.
91
+ */
92
+ beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
95
+ return this.client.sendOperationRequest(args, spec);
96
+ });
97
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
98
+ var _a;
99
+ let currentRawResponse = undefined;
100
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
101
+ const callback = (rawResponse, flatResponse) => {
102
+ currentRawResponse = rawResponse;
103
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
104
+ };
105
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
106
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
107
+ return {
108
+ flatResponse,
109
+ rawResponse: {
110
+ statusCode: currentRawResponse.status,
111
+ body: currentRawResponse.parsedBody,
112
+ headers: currentRawResponse.headers.toJSON()
113
+ }
114
+ };
115
+ });
116
+ const lro = new LroImpl(sendOperation, {
117
+ resourceGroupName,
118
+ scopeName,
119
+ privateEndpointConnectionName,
120
+ parameters,
121
+ options
122
+ }, createOrUpdateOperationSpec);
123
+ return new LroEngine(lro, {
124
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
125
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
126
+ });
127
+ });
128
+ }
129
+ /**
130
+ * Approve or reject a private endpoint connection with a given name.
131
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
132
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
133
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
134
+ * @param parameters A private endpoint connection
135
+ * @param options The options parameters.
136
+ */
137
+ beginCreateOrUpdateAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options);
140
+ return poller.pollUntilDone();
141
+ });
142
+ }
143
+ /**
144
+ * Deletes a private endpoint connection with a given name.
145
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
146
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
147
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
148
+ * @param options The options parameters.
149
+ */
150
+ beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
153
+ return this.client.sendOperationRequest(args, spec);
154
+ });
155
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
156
+ var _a;
157
+ let currentRawResponse = undefined;
158
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
159
+ const callback = (rawResponse, flatResponse) => {
160
+ currentRawResponse = rawResponse;
161
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
162
+ };
163
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
164
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
165
+ return {
166
+ flatResponse,
167
+ rawResponse: {
168
+ statusCode: currentRawResponse.status,
169
+ body: currentRawResponse.parsedBody,
170
+ headers: currentRawResponse.headers.toJSON()
171
+ }
172
+ };
173
+ });
174
+ const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, privateEndpointConnectionName, options }, deleteOperationSpec);
175
+ return new LroEngine(lro, {
176
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
177
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
178
+ });
179
+ });
180
+ }
181
+ /**
182
+ * Deletes a private endpoint connection with a given name.
183
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
184
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
185
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
186
+ * @param options The options parameters.
187
+ */
188
+ beginDeleteAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ const poller = yield this.beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options);
191
+ return poller.pollUntilDone();
192
+ });
193
+ }
194
+ /**
195
+ * Gets all private endpoint connections on a private link scope.
196
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
197
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
198
+ * @param options The options parameters.
199
+ */
200
+ _listByPrivateLinkScope(resourceGroupName, scopeName, options) {
201
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec);
202
+ }
203
+ /**
204
+ * ListByPrivateLinkScopeNext
205
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
206
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
207
+ * @param nextLink The nextLink from the previous successful call to the ListByPrivateLinkScope method.
208
+ * @param options The options parameters.
209
+ */
210
+ _listByPrivateLinkScopeNext(resourceGroupName, scopeName, nextLink, options) {
211
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, nextLink, options }, listByPrivateLinkScopeNextOperationSpec);
212
+ }
213
+ }
214
+ // Operation Specifications
215
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
216
+ const getOperationSpec = {
217
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
218
+ httpMethod: "GET",
219
+ responses: {
220
+ 200: {
221
+ bodyMapper: Mappers.PrivateEndpointConnection
222
+ },
223
+ default: {
224
+ bodyMapper: Mappers.ErrorResponse
225
+ }
226
+ },
227
+ queryParameters: [Parameters.apiVersion],
228
+ urlParameters: [
229
+ Parameters.$host,
230
+ Parameters.subscriptionId,
231
+ Parameters.resourceGroupName,
232
+ Parameters.scopeName,
233
+ Parameters.privateEndpointConnectionName
234
+ ],
235
+ headerParameters: [Parameters.accept],
236
+ serializer
237
+ };
238
+ const createOrUpdateOperationSpec = {
239
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
240
+ httpMethod: "PUT",
241
+ responses: {
242
+ 200: {
243
+ bodyMapper: Mappers.PrivateEndpointConnection
244
+ },
245
+ 201: {
246
+ bodyMapper: Mappers.PrivateEndpointConnection
247
+ },
248
+ 202: {
249
+ bodyMapper: Mappers.PrivateEndpointConnection
250
+ },
251
+ 204: {
252
+ bodyMapper: Mappers.PrivateEndpointConnection
253
+ },
254
+ default: {
255
+ bodyMapper: Mappers.ErrorResponse
256
+ }
257
+ },
258
+ requestBody: Parameters.parameters1,
259
+ queryParameters: [Parameters.apiVersion],
260
+ urlParameters: [
261
+ Parameters.$host,
262
+ Parameters.subscriptionId,
263
+ Parameters.resourceGroupName,
264
+ Parameters.scopeName,
265
+ Parameters.privateEndpointConnectionName
266
+ ],
267
+ headerParameters: [Parameters.accept, Parameters.contentType],
268
+ mediaType: "json",
269
+ serializer
270
+ };
271
+ const deleteOperationSpec = {
272
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
273
+ httpMethod: "DELETE",
274
+ responses: {
275
+ 200: {},
276
+ 201: {},
277
+ 202: {},
278
+ 204: {},
279
+ default: {
280
+ bodyMapper: Mappers.ErrorResponse
281
+ }
282
+ },
283
+ queryParameters: [Parameters.apiVersion],
284
+ urlParameters: [
285
+ Parameters.$host,
286
+ Parameters.subscriptionId,
287
+ Parameters.resourceGroupName,
288
+ Parameters.scopeName,
289
+ Parameters.privateEndpointConnectionName
290
+ ],
291
+ headerParameters: [Parameters.accept],
292
+ serializer
293
+ };
294
+ const listByPrivateLinkScopeOperationSpec = {
295
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections",
296
+ httpMethod: "GET",
297
+ responses: {
298
+ 200: {
299
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
300
+ },
301
+ default: {
302
+ bodyMapper: Mappers.ErrorResponse
303
+ }
304
+ },
305
+ queryParameters: [Parameters.apiVersion],
306
+ urlParameters: [
307
+ Parameters.$host,
308
+ Parameters.subscriptionId,
309
+ Parameters.resourceGroupName,
310
+ Parameters.scopeName
311
+ ],
312
+ headerParameters: [Parameters.accept],
313
+ serializer
314
+ };
315
+ const listByPrivateLinkScopeNextOperationSpec = {
316
+ path: "{nextLink}",
317
+ httpMethod: "GET",
318
+ responses: {
319
+ 200: {
320
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
321
+ },
322
+ default: {
323
+ bodyMapper: Mappers.ErrorResponse
324
+ }
325
+ },
326
+ queryParameters: [Parameters.apiVersion],
327
+ urlParameters: [
328
+ Parameters.$host,
329
+ Parameters.subscriptionId,
330
+ Parameters.resourceGroupName,
331
+ Parameters.nextLink,
332
+ Parameters.scopeName
333
+ ],
334
+ headerParameters: [Parameters.accept],
335
+ serializer
336
+ };
337
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAcrC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,SAAiB,EACjB,OAAwE;QAExE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,iBAAiB,EACjB,SAAS,EACT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iB;QAC5B,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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,QAAQ;QACnB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateLinkResources } from "../operationsInterfaces";
3
+ import { HybridComputeManagementClient } from "../hybridComputeManagementClient";
4
+ import { PrivateLinkResource, PrivateLinkResourcesListByPrivateLinkScopeOptionalParams, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models";
5
+ /** Class containing PrivateLinkResources operations. */
6
+ export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class PrivateLinkResources class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: HybridComputeManagementClient);
13
+ /**
14
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
17
+ * @param options The options parameters.
18
+ */
19
+ listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: PrivateLinkResourcesListByPrivateLinkScopeOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
20
+ private listByPrivateLinkScopePagingPage;
21
+ private listByPrivateLinkScopePagingAll;
22
+ /**
23
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
26
+ * @param options The options parameters.
27
+ */
28
+ private _listByPrivateLinkScope;
29
+ /**
30
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
31
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
33
+ * @param groupName The name of the private link resource.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName: string, scopeName: string, groupName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
37
+ /**
38
+ * ListByPrivateLinkScopeNext
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
41
+ * @param nextLink The nextLink from the previous successful call to the ListByPrivateLinkScope method.
42
+ * @param options The options parameters.
43
+ */
44
+ private _listByPrivateLinkScopeNext;
45
+ }
46
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACL,mBAAmB,EAEnB,wDAAwD,EAExD,qCAAqC,EACrC,+BAA+B,EAEhC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;;;OAKG;IACI,sBAAsB,CAC3B,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,wDAAwD,GACjE,0BAA0B,CAAC,mBAAmB,CAAC;YAuBnC,gCAAgC;YAwBhC,+BAA+B;IAc9C;;;;;OAKG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;;;;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;IAO3C;;;;;;OAMG;IACH,OAAO,CAAC,2BAA2B;CAWpC"}
@@ -0,0 +1,169 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing PrivateLinkResources operations. */
14
+ export class PrivateLinkResourcesImpl {
15
+ /**
16
+ * Initialize a new instance of the class PrivateLinkResources class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
26
+ * @param options The options parameters.
27
+ */
28
+ listByPrivateLinkScope(resourceGroupName, scopeName, options) {
29
+ const iter = this.listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options);
39
+ }
40
+ };
41
+ }
42
+ listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options) {
43
+ return __asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
44
+ let result = yield __await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listByPrivateLinkScopeNext(resourceGroupName, scopeName, continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options) {
55
+ return __asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
74
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
75
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
76
+ * @param options The options parameters.
77
+ */
78
+ _listByPrivateLinkScope(resourceGroupName, scopeName, options) {
79
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec);
80
+ }
81
+ /**
82
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
83
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
84
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
85
+ * @param groupName The name of the private link resource.
86
+ * @param options The options parameters.
87
+ */
88
+ get(resourceGroupName, scopeName, groupName, options) {
89
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, groupName, options }, getOperationSpec);
90
+ }
91
+ /**
92
+ * ListByPrivateLinkScopeNext
93
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
94
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
95
+ * @param nextLink The nextLink from the previous successful call to the ListByPrivateLinkScope method.
96
+ * @param options The options parameters.
97
+ */
98
+ _listByPrivateLinkScopeNext(resourceGroupName, scopeName, nextLink, options) {
99
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, nextLink, options }, listByPrivateLinkScopeNextOperationSpec);
100
+ }
101
+ }
102
+ // Operation Specifications
103
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
104
+ const listByPrivateLinkScopeOperationSpec = {
105
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources",
106
+ httpMethod: "GET",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.PrivateLinkResourceListResult
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.ErrorResponse
113
+ }
114
+ },
115
+ queryParameters: [Parameters.apiVersion],
116
+ urlParameters: [
117
+ Parameters.$host,
118
+ Parameters.subscriptionId,
119
+ Parameters.resourceGroupName,
120
+ Parameters.scopeName
121
+ ],
122
+ headerParameters: [Parameters.accept],
123
+ serializer
124
+ };
125
+ const getOperationSpec = {
126
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}",
127
+ httpMethod: "GET",
128
+ responses: {
129
+ 200: {
130
+ bodyMapper: Mappers.PrivateLinkResource
131
+ },
132
+ default: {
133
+ bodyMapper: Mappers.ErrorResponse
134
+ }
135
+ },
136
+ queryParameters: [Parameters.apiVersion],
137
+ urlParameters: [
138
+ Parameters.$host,
139
+ Parameters.subscriptionId,
140
+ Parameters.resourceGroupName,
141
+ Parameters.scopeName,
142
+ Parameters.groupName
143
+ ],
144
+ headerParameters: [Parameters.accept],
145
+ serializer
146
+ };
147
+ const listByPrivateLinkScopeNextOperationSpec = {
148
+ path: "{nextLink}",
149
+ httpMethod: "GET",
150
+ responses: {
151
+ 200: {
152
+ bodyMapper: Mappers.PrivateLinkResourceListResult
153
+ },
154
+ default: {
155
+ bodyMapper: Mappers.ErrorResponse
156
+ }
157
+ },
158
+ queryParameters: [Parameters.apiVersion],
159
+ urlParameters: [
160
+ Parameters.$host,
161
+ Parameters.subscriptionId,
162
+ Parameters.resourceGroupName,
163
+ Parameters.nextLink,
164
+ Parameters.scopeName
165
+ ],
166
+ headerParameters: [Parameters.accept],
167
+ serializer
168
+ };
169
+ //# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,SAAiB,EACjB,OAAkE;QAElE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,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