@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,294 @@
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 Machines operations. */
14
+ export class MachinesImpl {
15
+ /**
16
+ * Initialize a new instance of the class Machines class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists all the hybrid machines in the specified resource group. Use the nextLink property in the
24
+ * response to get the next page of hybrid machines.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param options The options parameters.
27
+ */
28
+ listByResourceGroup(resourceGroupName, options) {
29
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
39
+ }
40
+ };
41
+ }
42
+ listByResourceGroupPagingPage(resourceGroupName, options) {
43
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
44
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listByResourceGroupPagingAll(resourceGroupName, options) {
55
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, 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
+ * Lists all the hybrid machines in the specified subscription. Use the nextLink property in the
74
+ * response to get the next page of hybrid machines.
75
+ * @param options The options parameters.
76
+ */
77
+ listBySubscription(options) {
78
+ const iter = this.listBySubscriptionPagingAll(options);
79
+ return {
80
+ next() {
81
+ return iter.next();
82
+ },
83
+ [Symbol.asyncIterator]() {
84
+ return this;
85
+ },
86
+ byPage: () => {
87
+ return this.listBySubscriptionPagingPage(options);
88
+ }
89
+ };
90
+ }
91
+ listBySubscriptionPagingPage(options) {
92
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
93
+ let result = yield __await(this._listBySubscription(options));
94
+ yield yield __await(result.value || []);
95
+ let continuationToken = result.nextLink;
96
+ while (continuationToken) {
97
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
98
+ continuationToken = result.nextLink;
99
+ yield yield __await(result.value || []);
100
+ }
101
+ });
102
+ }
103
+ listBySubscriptionPagingAll(options) {
104
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
105
+ var e_2, _a;
106
+ try {
107
+ for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
108
+ const page = _c.value;
109
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
110
+ }
111
+ }
112
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
113
+ finally {
114
+ try {
115
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
116
+ }
117
+ finally { if (e_2) throw e_2.error; }
118
+ }
119
+ });
120
+ }
121
+ /**
122
+ * The operation to remove a hybrid machine identity in Azure.
123
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
124
+ * @param machineName The name of the hybrid machine.
125
+ * @param options The options parameters.
126
+ */
127
+ delete(resourceGroupName, machineName, options) {
128
+ return this.client.sendOperationRequest({ resourceGroupName, machineName, options }, deleteOperationSpec);
129
+ }
130
+ /**
131
+ * Retrieves information about the model view or the instance view of a hybrid machine.
132
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
133
+ * @param machineName The name of the hybrid machine.
134
+ * @param options The options parameters.
135
+ */
136
+ get(resourceGroupName, machineName, options) {
137
+ return this.client.sendOperationRequest({ resourceGroupName, machineName, options }, getOperationSpec);
138
+ }
139
+ /**
140
+ * Lists all the hybrid machines in the specified resource group. Use the nextLink property in the
141
+ * response to get the next page of hybrid machines.
142
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
143
+ * @param options The options parameters.
144
+ */
145
+ _listByResourceGroup(resourceGroupName, options) {
146
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
147
+ }
148
+ /**
149
+ * Lists all the hybrid machines in the specified subscription. Use the nextLink property in the
150
+ * response to get the next page of hybrid machines.
151
+ * @param options The options parameters.
152
+ */
153
+ _listBySubscription(options) {
154
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
155
+ }
156
+ /**
157
+ * ListByResourceGroupNext
158
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
159
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
160
+ * @param options The options parameters.
161
+ */
162
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
163
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
164
+ }
165
+ /**
166
+ * ListBySubscriptionNext
167
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
168
+ * @param options The options parameters.
169
+ */
170
+ _listBySubscriptionNext(nextLink, options) {
171
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
172
+ }
173
+ }
174
+ // Operation Specifications
175
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
176
+ const deleteOperationSpec = {
177
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}",
178
+ httpMethod: "DELETE",
179
+ responses: {
180
+ 200: {},
181
+ 204: {},
182
+ default: {
183
+ bodyMapper: Mappers.ErrorResponse
184
+ }
185
+ },
186
+ queryParameters: [Parameters.apiVersion],
187
+ urlParameters: [
188
+ Parameters.$host,
189
+ Parameters.subscriptionId,
190
+ Parameters.resourceGroupName,
191
+ Parameters.machineName
192
+ ],
193
+ headerParameters: [Parameters.accept],
194
+ serializer
195
+ };
196
+ const getOperationSpec = {
197
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}",
198
+ httpMethod: "GET",
199
+ responses: {
200
+ 200: {
201
+ bodyMapper: Mappers.Machine
202
+ },
203
+ default: {
204
+ bodyMapper: Mappers.ErrorResponse
205
+ }
206
+ },
207
+ queryParameters: [Parameters.apiVersion, Parameters.expand],
208
+ urlParameters: [
209
+ Parameters.$host,
210
+ Parameters.subscriptionId,
211
+ Parameters.resourceGroupName,
212
+ Parameters.machineName
213
+ ],
214
+ headerParameters: [Parameters.accept],
215
+ serializer
216
+ };
217
+ const listByResourceGroupOperationSpec = {
218
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines",
219
+ httpMethod: "GET",
220
+ responses: {
221
+ 200: {
222
+ bodyMapper: Mappers.MachineListResult
223
+ },
224
+ default: {
225
+ bodyMapper: Mappers.ErrorResponse
226
+ }
227
+ },
228
+ queryParameters: [Parameters.apiVersion],
229
+ urlParameters: [
230
+ Parameters.$host,
231
+ Parameters.subscriptionId,
232
+ Parameters.resourceGroupName
233
+ ],
234
+ headerParameters: [Parameters.accept],
235
+ serializer
236
+ };
237
+ const listBySubscriptionOperationSpec = {
238
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines",
239
+ httpMethod: "GET",
240
+ responses: {
241
+ 200: {
242
+ bodyMapper: Mappers.MachineListResult
243
+ },
244
+ default: {
245
+ bodyMapper: Mappers.ErrorResponse
246
+ }
247
+ },
248
+ queryParameters: [Parameters.apiVersion],
249
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
250
+ headerParameters: [Parameters.accept],
251
+ serializer
252
+ };
253
+ const listByResourceGroupNextOperationSpec = {
254
+ path: "{nextLink}",
255
+ httpMethod: "GET",
256
+ responses: {
257
+ 200: {
258
+ bodyMapper: Mappers.MachineListResult
259
+ },
260
+ default: {
261
+ bodyMapper: Mappers.ErrorResponse
262
+ }
263
+ },
264
+ queryParameters: [Parameters.apiVersion],
265
+ urlParameters: [
266
+ Parameters.$host,
267
+ Parameters.subscriptionId,
268
+ Parameters.resourceGroupName,
269
+ Parameters.nextLink
270
+ ],
271
+ headerParameters: [Parameters.accept],
272
+ serializer
273
+ };
274
+ const listBySubscriptionNextOperationSpec = {
275
+ path: "{nextLink}",
276
+ httpMethod: "GET",
277
+ responses: {
278
+ 200: {
279
+ bodyMapper: Mappers.MachineListResult
280
+ },
281
+ default: {
282
+ bodyMapper: Mappers.ErrorResponse
283
+ }
284
+ },
285
+ queryParameters: [Parameters.apiVersion],
286
+ urlParameters: [
287
+ Parameters.$host,
288
+ Parameters.subscriptionId,
289
+ Parameters.nextLink
290
+ ],
291
+ headerParameters: [Parameters.accept],
292
+ serializer
293
+ };
294
+ //# sourceMappingURL=machines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machines.js","sourceRoot":"","sources":["../../../src/operations/machines.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,M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e,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces";
3
+ import { HybridComputeManagementClient } from "../hybridComputeManagementClient";
4
+ import { OperationValue, OperationsListOptionalParams } from "../models";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: HybridComputeManagementClient);
13
+ /**
14
+ * Gets a list of hybrid compute operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationValue>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Gets a list of hybrid compute operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ }
26
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACL,cAAc,EACd,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,cAAc,CAAC;YAe9B,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
@@ -0,0 +1,90 @@
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 Operations operations. */
14
+ export class OperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Operations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets a list of hybrid compute operations.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
+ let result = yield __await(this._list(options));
43
+ yield yield __await(result.value || []);
44
+ });
45
+ }
46
+ listPagingAll(options) {
47
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
48
+ var e_1, _a;
49
+ try {
50
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
51
+ const page = _c.value;
52
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
53
+ }
54
+ }
55
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
56
+ finally {
57
+ try {
58
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
59
+ }
60
+ finally { if (e_1) throw e_1.error; }
61
+ }
62
+ });
63
+ }
64
+ /**
65
+ * Gets a list of hybrid compute operations.
66
+ * @param options The options parameters.
67
+ */
68
+ _list(options) {
69
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
70
+ }
71
+ }
72
+ // Operation Specifications
73
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
74
+ const listOperationSpec = {
75
+ path: "/providers/Microsoft.HybridCompute/operations",
76
+ httpMethod: "GET",
77
+ responses: {
78
+ 200: {
79
+ bodyMapper: Mappers.OperationListResult
80
+ },
81
+ default: {
82
+ bodyMapper: Mappers.ErrorResponse
83
+ }
84
+ },
85
+ queryParameters: [Parameters.apiVersion],
86
+ urlParameters: [Parameters.$host],
87
+ headerParameters: [Parameters.accept],
88
+ serializer
89
+ };
90
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAQnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,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/core-paging";
2
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
3
+ import { HybridComputeManagementClient } from "../hybridComputeManagementClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { PrivateEndpointConnection, PrivateEndpointConnectionsListByPrivateLinkScopeOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams } from "../models";
6
+ /** Class containing PrivateEndpointConnections operations. */
7
+ export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class PrivateEndpointConnections class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: HybridComputeManagementClient);
14
+ /**
15
+ * Gets all private endpoint connections on a private link scope.
16
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
17
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
18
+ * @param options The options parameters.
19
+ */
20
+ listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: PrivateEndpointConnectionsListByPrivateLinkScopeOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
21
+ private listByPrivateLinkScopePagingPage;
22
+ private listByPrivateLinkScopePagingAll;
23
+ /**
24
+ * Gets a private endpoint connection.
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 privateEndpointConnectionName The name of the private endpoint connection.
28
+ * @param options The options parameters.
29
+ */
30
+ get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
31
+ /**
32
+ * Approve or reject a private endpoint connection with a given name.
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 privateEndpointConnectionName The name of the private endpoint connection.
36
+ * @param parameters A private endpoint connection
37
+ * @param options The options parameters.
38
+ */
39
+ beginCreateOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
40
+ /**
41
+ * Approve or reject a private endpoint connection with a given name.
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 privateEndpointConnectionName The name of the private endpoint connection.
45
+ * @param parameters A private endpoint connection
46
+ * @param options The options parameters.
47
+ */
48
+ beginCreateOrUpdateAndWait(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
49
+ /**
50
+ * Deletes a private endpoint connection with a given name.
51
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
52
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
53
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
54
+ * @param options The options parameters.
55
+ */
56
+ beginDelete(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
57
+ /**
58
+ * Deletes a private endpoint connection with a given name.
59
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
60
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
61
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
62
+ * @param options The options parameters.
63
+ */
64
+ beginDeleteAndWait(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
65
+ /**
66
+ * Gets all private endpoint connections on a private link scope.
67
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
68
+ * @param scopeName The name of the Azure Arc PrivateLinkScope resource.
69
+ * @param options The options parameters.
70
+ */
71
+ private _listByPrivateLinkScope;
72
+ /**
73
+ * ListByPrivateLinkScopeNext
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 nextLink The nextLink from the previous successful call to the ListByPrivateLinkScope method.
77
+ * @param options The options parameters.
78
+ */
79
+ private _listByPrivateLinkScopeNext;
80
+ }
81
+ //# sourceMappingURL=privateEndpointConnections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAIrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,yBAAyB,EAEzB,8DAA8D,EAC9D,2CAA2C,EAC3C,qCAAqC,EACrC,sDAAsD,EACtD,gDAAgD,EAChD,8CAA8C,EAG/C,MAAM,WAAW,CAAC;AAGnB,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IACrC,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,8DAA8D,GACvE,0BAA0B,CAAC,yBAAyB,CAAC;YAuBzC,gCAAgC;YAwBhC,+BAA+B;IAc9C;;;;;;OAMG;IACH,GAAG,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