@azure/arm-containerservice 20.0.0-beta.1 → 20.0.1-alpha.20240426.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +1 -1
  3. package/dist/index.js +1104 -3804
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/agentPoolsAbortLatestOperationSample.js +3 -3
  8. package/dist-esm/samples-dev/agentPoolsCreateOrUpdateSample.js +23 -112
  9. package/dist-esm/samples-dev/agentPoolsCreateOrUpdateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/agentPoolsDeleteSample.js +1 -21
  11. package/dist-esm/samples-dev/agentPoolsDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.js +1 -1
  13. package/dist-esm/samples-dev/agentPoolsGetSample.js +1 -1
  14. package/dist-esm/samples-dev/agentPoolsGetUpgradeProfileSample.js +1 -1
  15. package/dist-esm/samples-dev/agentPoolsListSample.js +1 -1
  16. package/dist-esm/samples-dev/agentPoolsUpgradeNodeImageVersionSample.js +1 -1
  17. package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.js +2 -2
  18. package/dist-esm/samples-dev/maintenanceConfigurationsDeleteSample.js +2 -2
  19. package/dist-esm/samples-dev/maintenanceConfigurationsGetSample.js +2 -2
  20. package/dist-esm/samples-dev/maintenanceConfigurationsListByManagedClusterSample.js +2 -2
  21. package/dist-esm/samples-dev/managedClustersAbortLatestOperationSample.js +3 -3
  22. package/dist-esm/samples-dev/managedClustersCreateOrUpdateSample.js +57 -379
  23. package/dist-esm/samples-dev/managedClustersCreateOrUpdateSample.js.map +1 -1
  24. package/dist-esm/samples-dev/managedClustersDeleteSample.js +1 -1
  25. package/dist-esm/samples-dev/managedClustersGetAccessProfileSample.js +1 -1
  26. package/dist-esm/samples-dev/managedClustersGetCommandResultSample.js +2 -2
  27. package/dist-esm/samples-dev/managedClustersGetMeshRevisionProfileSample.js +1 -1
  28. package/dist-esm/samples-dev/managedClustersGetMeshUpgradeProfileSample.js +1 -1
  29. package/dist-esm/samples-dev/managedClustersGetOSOptionsSample.js +1 -1
  30. package/dist-esm/samples-dev/managedClustersGetSample.js +1 -1
  31. package/dist-esm/samples-dev/managedClustersGetUpgradeProfileSample.js +1 -1
  32. package/dist-esm/samples-dev/managedClustersListByResourceGroupSample.js +1 -1
  33. package/dist-esm/samples-dev/managedClustersListClusterAdminCredentialsSample.js +1 -1
  34. package/dist-esm/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.js +1 -1
  35. package/dist-esm/samples-dev/managedClustersListClusterUserCredentialsSample.js +1 -1
  36. package/dist-esm/samples-dev/managedClustersListKubernetesVersionsSample.js +1 -1
  37. package/dist-esm/samples-dev/managedClustersListMeshRevisionProfilesSample.js +1 -1
  38. package/dist-esm/samples-dev/managedClustersListMeshUpgradeProfilesSample.js +1 -1
  39. package/dist-esm/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.js +1 -1
  40. package/dist-esm/samples-dev/managedClustersListSample.js +1 -1
  41. package/dist-esm/samples-dev/managedClustersResetAadProfileSample.js +1 -1
  42. package/dist-esm/samples-dev/managedClustersResetServicePrincipalProfileSample.js +1 -1
  43. package/dist-esm/samples-dev/managedClustersRotateClusterCertificatesSample.js +1 -1
  44. package/dist-esm/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.js +1 -1
  45. package/dist-esm/samples-dev/managedClustersRunCommandSample.js +1 -1
  46. package/dist-esm/samples-dev/managedClustersStartSample.js +1 -1
  47. package/dist-esm/samples-dev/managedClustersStopSample.js +1 -1
  48. package/dist-esm/samples-dev/managedClustersUpdateTagsSample.js +1 -1
  49. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  50. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  51. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  52. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  53. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +1 -1
  54. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
  55. package/dist-esm/samples-dev/resolvePrivateLinkServiceIdPostSample.js +1 -1
  56. package/dist-esm/samples-dev/snapshotsCreateOrUpdateSample.js +1 -1
  57. package/dist-esm/samples-dev/snapshotsDeleteSample.js +1 -1
  58. package/dist-esm/samples-dev/snapshotsGetSample.js +1 -1
  59. package/dist-esm/samples-dev/snapshotsListByResourceGroupSample.js +1 -1
  60. package/dist-esm/samples-dev/snapshotsListSample.js +1 -1
  61. package/dist-esm/samples-dev/snapshotsUpdateTagsSample.js +1 -1
  62. package/dist-esm/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.js +1 -1
  63. package/dist-esm/samples-dev/trustedAccessRoleBindingsDeleteSample.js +1 -1
  64. package/dist-esm/samples-dev/trustedAccessRoleBindingsGetSample.js +1 -1
  65. package/dist-esm/samples-dev/trustedAccessRoleBindingsListSample.js +1 -1
  66. package/dist-esm/samples-dev/trustedAccessRolesListSample.js +1 -1
  67. package/dist-esm/src/containerServiceClient.d.ts +2 -5
  68. package/dist-esm/src/containerServiceClient.d.ts.map +1 -1
  69. package/dist-esm/src/containerServiceClient.js +4 -8
  70. package/dist-esm/src/containerServiceClient.js.map +1 -1
  71. package/dist-esm/src/models/index.d.ts +182 -972
  72. package/dist-esm/src/models/index.d.ts.map +1 -1
  73. package/dist-esm/src/models/index.js +12 -128
  74. package/dist-esm/src/models/index.js.map +1 -1
  75. package/dist-esm/src/models/mappers.d.ts +11 -54
  76. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  77. package/dist-esm/src/models/mappers.js +293 -1597
  78. package/dist-esm/src/models/mappers.js.map +1 -1
  79. package/dist-esm/src/models/parameters.d.ts +0 -6
  80. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  81. package/dist-esm/src/models/parameters.js +2 -59
  82. package/dist-esm/src/models/parameters.js.map +1 -1
  83. package/dist-esm/src/operations/agentPools.d.ts +3 -21
  84. package/dist-esm/src/operations/agentPools.d.ts.map +1 -1
  85. package/dist-esm/src/operations/agentPools.js +3 -104
  86. package/dist-esm/src/operations/agentPools.js.map +1 -1
  87. package/dist-esm/src/operations/index.d.ts +1 -4
  88. package/dist-esm/src/operations/index.d.ts.map +1 -1
  89. package/dist-esm/src/operations/index.js +1 -4
  90. package/dist-esm/src/operations/index.js.map +1 -1
  91. package/dist-esm/src/operations/managedClusters.d.ts +15 -71
  92. package/dist-esm/src/operations/managedClusters.d.ts.map +1 -1
  93. package/dist-esm/src/operations/managedClusters.js +37 -338
  94. package/dist-esm/src/operations/managedClusters.js.map +1 -1
  95. package/dist-esm/src/operationsInterfaces/agentPools.d.ts +3 -21
  96. package/dist-esm/src/operationsInterfaces/agentPools.d.ts.map +1 -1
  97. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -4
  98. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  99. package/dist-esm/src/operationsInterfaces/index.js +1 -4
  100. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  101. package/dist-esm/src/operationsInterfaces/managedClusters.d.ts +15 -41
  102. package/dist-esm/src/operationsInterfaces/managedClusters.d.ts.map +1 -1
  103. package/dist-esm/test/containerservice_examples.d.ts +3 -0
  104. package/dist-esm/test/containerservice_examples.d.ts.map +1 -1
  105. package/dist-esm/test/containerservice_examples.js +41 -15
  106. package/dist-esm/test/containerservice_examples.js.map +1 -1
  107. package/package.json +5 -4
  108. package/review/arm-containerservice.api.md +5 -620
  109. package/src/containerServiceClient.ts +6 -19
  110. package/src/models/index.ts +188 -1100
  111. package/src/models/mappers.ts +261 -1662
  112. package/src/models/parameters.ts +1 -66
  113. package/src/operations/agentPools.ts +3 -147
  114. package/src/operations/index.ts +1 -4
  115. package/src/operations/managedClusters.ts +49 -424
  116. package/src/operationsInterfaces/agentPools.ts +2 -40
  117. package/src/operationsInterfaces/index.ts +1 -4
  118. package/src/operationsInterfaces/managedClusters.ts +26 -74
  119. package/types/arm-containerservice.d.ts +86 -1127
  120. package/dist-esm/samples-dev/agentPoolsDeleteMachinesSample.d.ts +0 -2
  121. package/dist-esm/samples-dev/agentPoolsDeleteMachinesSample.d.ts.map +0 -1
  122. package/dist-esm/samples-dev/agentPoolsDeleteMachinesSample.js +0 -46
  123. package/dist-esm/samples-dev/agentPoolsDeleteMachinesSample.js.map +0 -1
  124. package/dist-esm/samples-dev/machinesGetSample.d.ts +0 -2
  125. package/dist-esm/samples-dev/machinesGetSample.d.ts.map +0 -1
  126. package/dist-esm/samples-dev/machinesGetSample.js +0 -41
  127. package/dist-esm/samples-dev/machinesGetSample.js.map +0 -1
  128. package/dist-esm/samples-dev/machinesListSample.d.ts +0 -2
  129. package/dist-esm/samples-dev/machinesListSample.d.ts.map +0 -1
  130. package/dist-esm/samples-dev/machinesListSample.js +0 -56
  131. package/dist-esm/samples-dev/machinesListSample.js.map +0 -1
  132. package/dist-esm/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.d.ts +0 -2
  133. package/dist-esm/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.d.ts.map +0 -1
  134. package/dist-esm/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.js +0 -46
  135. package/dist-esm/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.js.map +0 -1
  136. package/dist-esm/samples-dev/managedClusterSnapshotsDeleteSample.d.ts +0 -2
  137. package/dist-esm/samples-dev/managedClusterSnapshotsDeleteSample.d.ts.map +0 -1
  138. package/dist-esm/samples-dev/managedClusterSnapshotsDeleteSample.js +0 -39
  139. package/dist-esm/samples-dev/managedClusterSnapshotsDeleteSample.js.map +0 -1
  140. package/dist-esm/samples-dev/managedClusterSnapshotsGetSample.d.ts +0 -2
  141. package/dist-esm/samples-dev/managedClusterSnapshotsGetSample.d.ts.map +0 -1
  142. package/dist-esm/samples-dev/managedClusterSnapshotsGetSample.js +0 -39
  143. package/dist-esm/samples-dev/managedClusterSnapshotsGetSample.js.map +0 -1
  144. package/dist-esm/samples-dev/managedClusterSnapshotsListByResourceGroupSample.d.ts +0 -2
  145. package/dist-esm/samples-dev/managedClusterSnapshotsListByResourceGroupSample.d.ts.map +0 -1
  146. package/dist-esm/samples-dev/managedClusterSnapshotsListByResourceGroupSample.js +0 -54
  147. package/dist-esm/samples-dev/managedClusterSnapshotsListByResourceGroupSample.js.map +0 -1
  148. package/dist-esm/samples-dev/managedClusterSnapshotsListSample.d.ts +0 -2
  149. package/dist-esm/samples-dev/managedClusterSnapshotsListSample.d.ts.map +0 -1
  150. package/dist-esm/samples-dev/managedClusterSnapshotsListSample.js +0 -53
  151. package/dist-esm/samples-dev/managedClusterSnapshotsListSample.js.map +0 -1
  152. package/dist-esm/samples-dev/managedClusterSnapshotsUpdateTagsSample.d.ts +0 -2
  153. package/dist-esm/samples-dev/managedClusterSnapshotsUpdateTagsSample.d.ts.map +0 -1
  154. package/dist-esm/samples-dev/managedClusterSnapshotsUpdateTagsSample.js +0 -40
  155. package/dist-esm/samples-dev/managedClusterSnapshotsUpdateTagsSample.js.map +0 -1
  156. package/dist-esm/samples-dev/managedClustersGetGuardrailsVersionsSample.d.ts +0 -2
  157. package/dist-esm/samples-dev/managedClustersGetGuardrailsVersionsSample.d.ts.map +0 -1
  158. package/dist-esm/samples-dev/managedClustersGetGuardrailsVersionsSample.js +0 -39
  159. package/dist-esm/samples-dev/managedClustersGetGuardrailsVersionsSample.js.map +0 -1
  160. package/dist-esm/samples-dev/managedClustersGetSafeguardsVersionsSample.d.ts +0 -2
  161. package/dist-esm/samples-dev/managedClustersGetSafeguardsVersionsSample.d.ts.map +0 -1
  162. package/dist-esm/samples-dev/managedClustersGetSafeguardsVersionsSample.js +0 -39
  163. package/dist-esm/samples-dev/managedClustersGetSafeguardsVersionsSample.js.map +0 -1
  164. package/dist-esm/samples-dev/managedClustersListGuardrailsVersionsSample.d.ts +0 -2
  165. package/dist-esm/samples-dev/managedClustersListGuardrailsVersionsSample.d.ts.map +0 -1
  166. package/dist-esm/samples-dev/managedClustersListGuardrailsVersionsSample.js +0 -54
  167. package/dist-esm/samples-dev/managedClustersListGuardrailsVersionsSample.js.map +0 -1
  168. package/dist-esm/samples-dev/managedClustersListSafeguardsVersionsSample.d.ts +0 -2
  169. package/dist-esm/samples-dev/managedClustersListSafeguardsVersionsSample.d.ts.map +0 -1
  170. package/dist-esm/samples-dev/managedClustersListSafeguardsVersionsSample.js +0 -54
  171. package/dist-esm/samples-dev/managedClustersListSafeguardsVersionsSample.js.map +0 -1
  172. package/dist-esm/samples-dev/operationStatusResultGetByAgentPoolSample.d.ts +0 -2
  173. package/dist-esm/samples-dev/operationStatusResultGetByAgentPoolSample.d.ts.map +0 -1
  174. package/dist-esm/samples-dev/operationStatusResultGetByAgentPoolSample.js +0 -41
  175. package/dist-esm/samples-dev/operationStatusResultGetByAgentPoolSample.js.map +0 -1
  176. package/dist-esm/samples-dev/operationStatusResultGetSample.d.ts +0 -2
  177. package/dist-esm/samples-dev/operationStatusResultGetSample.d.ts.map +0 -1
  178. package/dist-esm/samples-dev/operationStatusResultGetSample.js +0 -40
  179. package/dist-esm/samples-dev/operationStatusResultGetSample.js.map +0 -1
  180. package/dist-esm/samples-dev/operationStatusResultListSample.d.ts +0 -2
  181. package/dist-esm/samples-dev/operationStatusResultListSample.d.ts.map +0 -1
  182. package/dist-esm/samples-dev/operationStatusResultListSample.js +0 -55
  183. package/dist-esm/samples-dev/operationStatusResultListSample.js.map +0 -1
  184. package/dist-esm/src/operations/machines.d.ts +0 -50
  185. package/dist-esm/src/operations/machines.d.ts.map +0 -1
  186. package/dist-esm/src/operations/machines.js +0 -189
  187. package/dist-esm/src/operations/machines.js.map +0 -1
  188. package/dist-esm/src/operations/managedClusterSnapshots.d.ts +0 -83
  189. package/dist-esm/src/operations/managedClusterSnapshots.d.ts.map +0 -1
  190. package/dist-esm/src/operations/managedClusterSnapshots.js +0 -384
  191. package/dist-esm/src/operations/managedClusterSnapshots.js.map +0 -1
  192. package/dist-esm/src/operations/operationStatusResultOperations.d.ts +0 -55
  193. package/dist-esm/src/operations/operationStatusResultOperations.d.ts.map +0 -1
  194. package/dist-esm/src/operations/operationStatusResultOperations.js +0 -216
  195. package/dist-esm/src/operations/operationStatusResultOperations.js.map +0 -1
  196. package/dist-esm/src/operationsInterfaces/machines.d.ts +0 -23
  197. package/dist-esm/src/operationsInterfaces/machines.d.ts.map +0 -1
  198. package/dist-esm/src/operationsInterfaces/machines.js +0 -9
  199. package/dist-esm/src/operationsInterfaces/machines.js.map +0 -1
  200. package/dist-esm/src/operationsInterfaces/managedClusterSnapshots.d.ts +0 -47
  201. package/dist-esm/src/operationsInterfaces/managedClusterSnapshots.d.ts.map +0 -1
  202. package/dist-esm/src/operationsInterfaces/managedClusterSnapshots.js +0 -9
  203. package/dist-esm/src/operationsInterfaces/managedClusterSnapshots.js.map +0 -1
  204. package/dist-esm/src/operationsInterfaces/operationStatusResultOperations.d.ts +0 -30
  205. package/dist-esm/src/operationsInterfaces/operationStatusResultOperations.d.ts.map +0 -1
  206. package/dist-esm/src/operationsInterfaces/operationStatusResultOperations.js +0 -9
  207. package/dist-esm/src/operationsInterfaces/operationStatusResultOperations.js.map +0 -1
  208. package/src/operations/machines.ts +0 -262
  209. package/src/operations/managedClusterSnapshots.ts +0 -468
  210. package/src/operations/operationStatusResultOperations.ts +0 -284
  211. package/src/operationsInterfaces/machines.ts +0 -48
  212. package/src/operationsInterfaces/managedClusterSnapshots.ts +0 -91
  213. package/src/operationsInterfaces/operationStatusResultOperations.ts +0 -61
@@ -1,39 +0,0 @@
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 { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { ContainerServiceClient } from "@azure/arm-containerservice";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- import * as dotenv from "dotenv";
14
- dotenv.config();
15
- /**
16
- * This sample demonstrates how to Contains Safeguards version along with its support info and whether it is a default version.
17
- *
18
- * @summary Contains Safeguards version along with its support info and whether it is a default version.
19
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-02-02-preview/examples/GetSafeguardsVersions.json
20
- */
21
- function getSafeguardsAvailableVersions() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
24
- "00000000-0000-0000-0000-000000000000";
25
- const location = "location1";
26
- const version = "v1.0.0";
27
- const credential = new DefaultAzureCredential();
28
- const client = new ContainerServiceClient(credential, subscriptionId);
29
- const result = yield client.managedClusters.getSafeguardsVersions(location, version);
30
- console.log(result);
31
- });
32
- }
33
- function main() {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- getSafeguardsAvailableVersions();
36
- });
37
- }
38
- main().catch(console.error);
39
- //# sourceMappingURL=managedClustersGetSafeguardsVersionsSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"managedClustersGetSafeguardsVersionsSample.js","sourceRoot":"","sources":["../../samples-dev/managedClustersGetSafeguardsVersionsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,8BAA8B;;QAC3C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;YAC/C,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,WAAW,CAAC;QAC7B,MAAM,OAAO,GAAG,QAAQ,CAAC;QACzB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,qBAAqB,CAC/D,QAAQ,EACR,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,8BAA8B,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=managedClustersListGuardrailsVersionsSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"managedClustersListGuardrailsVersionsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managedClustersListGuardrailsVersionsSample.ts"],"names":[],"mappings":""}
@@ -1,54 +0,0 @@
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 { __asyncValues, __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { ContainerServiceClient } from "@azure/arm-containerservice";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- import * as dotenv from "dotenv";
14
- dotenv.config();
15
- /**
16
- * This sample demonstrates how to Contains list of Guardrails version along with its support info and whether it is a default version.
17
- *
18
- * @summary Contains list of Guardrails version along with its support info and whether it is a default version.
19
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-02-02-preview/examples/ListGuardrailsVersions.json
20
- */
21
- function listGuardrailsVersions() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- var _a, e_1, _b, _c;
24
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
25
- "00000000-0000-0000-0000-000000000000";
26
- const location = "location1";
27
- const credential = new DefaultAzureCredential();
28
- const client = new ContainerServiceClient(credential, subscriptionId);
29
- const resArray = new Array();
30
- try {
31
- for (var _d = true, _e = __asyncValues(client.managedClusters.listGuardrailsVersions(location)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
32
- _c = _f.value;
33
- _d = false;
34
- let item = _c;
35
- resArray.push(item);
36
- }
37
- }
38
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
39
- finally {
40
- try {
41
- if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
42
- }
43
- finally { if (e_1) throw e_1.error; }
44
- }
45
- console.log(resArray);
46
- });
47
- }
48
- function main() {
49
- return __awaiter(this, void 0, void 0, function* () {
50
- listGuardrailsVersions();
51
- });
52
- }
53
- main().catch(console.error);
54
- //# sourceMappingURL=managedClustersListGuardrailsVersionsSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"managedClustersListGuardrailsVersionsSample.js","sourceRoot":"","sources":["../../samples-dev/managedClustersListGuardrailsVersionsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;YAC/C,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,WAAW,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,sBAAsB,CAClE,QAAQ,CACT,CAAA,IAAA,sDAAE,CAAC;gBAFmB,cAEtB;gBAFsB,WAEtB;gBAFU,IAAI,IAAI,KAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=managedClustersListSafeguardsVersionsSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"managedClustersListSafeguardsVersionsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managedClustersListSafeguardsVersionsSample.ts"],"names":[],"mappings":""}
@@ -1,54 +0,0 @@
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 { __asyncValues, __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { ContainerServiceClient } from "@azure/arm-containerservice";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- import * as dotenv from "dotenv";
14
- dotenv.config();
15
- /**
16
- * This sample demonstrates how to Contains list of Safeguards version along with its support info and whether it is a default version.
17
- *
18
- * @summary Contains list of Safeguards version along with its support info and whether it is a default version.
19
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-02-02-preview/examples/ListSafeguardsVersions.json
20
- */
21
- function listSafeguardsVersions() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- var _a, e_1, _b, _c;
24
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
25
- "00000000-0000-0000-0000-000000000000";
26
- const location = "location1";
27
- const credential = new DefaultAzureCredential();
28
- const client = new ContainerServiceClient(credential, subscriptionId);
29
- const resArray = new Array();
30
- try {
31
- for (var _d = true, _e = __asyncValues(client.managedClusters.listSafeguardsVersions(location)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
32
- _c = _f.value;
33
- _d = false;
34
- let item = _c;
35
- resArray.push(item);
36
- }
37
- }
38
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
39
- finally {
40
- try {
41
- if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
42
- }
43
- finally { if (e_1) throw e_1.error; }
44
- }
45
- console.log(resArray);
46
- });
47
- }
48
- function main() {
49
- return __awaiter(this, void 0, void 0, function* () {
50
- listSafeguardsVersions();
51
- });
52
- }
53
- main().catch(console.error);
54
- //# sourceMappingURL=managedClustersListSafeguardsVersionsSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"managedClustersListSafeguardsVersionsSample.js","sourceRoot":"","sources":["../../samples-dev/managedClustersListSafeguardsVersionsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;YAC/C,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,WAAW,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,sBAAsB,CAClE,QAAQ,CACT,CAAA,IAAA,sDAAE,CAAC;gBAFmB,cAEtB;gBAFsB,WAEtB;gBAFU,IAAI,IAAI,KAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=operationStatusResultGetByAgentPoolSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationStatusResultGetByAgentPoolSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationStatusResultGetByAgentPoolSample.ts"],"names":[],"mappings":""}
@@ -1,41 +0,0 @@
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 { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { ContainerServiceClient } from "@azure/arm-containerservice";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- import * as dotenv from "dotenv";
14
- dotenv.config();
15
- /**
16
- * This sample demonstrates how to Get the status of a specific operation in the specified agent pool.
17
- *
18
- * @summary Get the status of a specific operation in the specified agent pool.
19
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-02-02-preview/examples/OperationStatusResultGetByAgentPool.json
20
- */
21
- function getOperationStatusResult() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
24
- "00000000-0000-0000-0000-000000000000";
25
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
26
- const resourceName = "clustername1";
27
- const agentPoolName = "agentpool1";
28
- const operationId = "00000000-0000-0000-0000-000000000001";
29
- const credential = new DefaultAzureCredential();
30
- const client = new ContainerServiceClient(credential, subscriptionId);
31
- const result = yield client.operationStatusResultOperations.getByAgentPool(resourceGroupName, resourceName, agentPoolName, operationId);
32
- console.log(result);
33
- });
34
- }
35
- function main() {
36
- return __awaiter(this, void 0, void 0, function* () {
37
- getOperationStatusResult();
38
- });
39
- }
40
- main().catch(console.error);
41
- //# sourceMappingURL=operationStatusResultGetByAgentPoolSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationStatusResultGetByAgentPoolSample.js","sourceRoot":"","sources":["../../samples-dev/operationStatusResultGetByAgentPoolSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;YAC/C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,KAAK,CAAC;QAC1D,MAAM,YAAY,GAAG,cAAc,CAAC;QACpC,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,WAAW,GAAG,sCAAsC,CAAC;QAC3D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC,cAAc,CACxE,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,wBAAwB,EAAE,CAAC;IAC7B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=operationStatusResultGetSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationStatusResultGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationStatusResultGetSample.ts"],"names":[],"mappings":""}
@@ -1,40 +0,0 @@
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 { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { ContainerServiceClient } from "@azure/arm-containerservice";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- import * as dotenv from "dotenv";
14
- dotenv.config();
15
- /**
16
- * This sample demonstrates how to Get the status of a specific operation in the specified managed cluster.
17
- *
18
- * @summary Get the status of a specific operation in the specified managed cluster.
19
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-02-02-preview/examples/OperationStatusResultGet.json
20
- */
21
- function getOperationStatusResult() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
24
- "00000000-0000-0000-0000-000000000000";
25
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
26
- const resourceName = "clustername1";
27
- const operationId = "00000000-0000-0000-0000-000000000001";
28
- const credential = new DefaultAzureCredential();
29
- const client = new ContainerServiceClient(credential, subscriptionId);
30
- const result = yield client.operationStatusResultOperations.get(resourceGroupName, resourceName, operationId);
31
- console.log(result);
32
- });
33
- }
34
- function main() {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- getOperationStatusResult();
37
- });
38
- }
39
- main().catch(console.error);
40
- //# sourceMappingURL=operationStatusResultGetSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationStatusResultGetSample.js","sourceRoot":"","sources":["../../samples-dev/operationStatusResultGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;YAC/C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,KAAK,CAAC;QAC1D,MAAM,YAAY,GAAG,cAAc,CAAC;QACpC,MAAM,WAAW,GAAG,sCAAsC,CAAC;QAC3D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC,GAAG,CAC7D,iBAAiB,EACjB,YAAY,EACZ,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,wBAAwB,EAAE,CAAC;IAC7B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=operationStatusResultListSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationStatusResultListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationStatusResultListSample.ts"],"names":[],"mappings":""}
@@ -1,55 +0,0 @@
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 { __asyncValues, __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { ContainerServiceClient } from "@azure/arm-containerservice";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- import * as dotenv from "dotenv";
14
- dotenv.config();
15
- /**
16
- * This sample demonstrates how to Gets a list of operations in the specified managedCluster
17
- *
18
- * @summary Gets a list of operations in the specified managedCluster
19
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-02-02-preview/examples/OperationStatusResultList.json
20
- */
21
- function listOfOperationStatusResult() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- var _a, e_1, _b, _c;
24
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
25
- "00000000-0000-0000-0000-000000000000";
26
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
27
- const resourceName = "clustername1";
28
- const credential = new DefaultAzureCredential();
29
- const client = new ContainerServiceClient(credential, subscriptionId);
30
- const resArray = new Array();
31
- try {
32
- for (var _d = true, _e = __asyncValues(client.operationStatusResultOperations.list(resourceGroupName, resourceName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
33
- _c = _f.value;
34
- _d = false;
35
- let item = _c;
36
- resArray.push(item);
37
- }
38
- }
39
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
40
- finally {
41
- try {
42
- if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
43
- }
44
- finally { if (e_1) throw e_1.error; }
45
- }
46
- console.log(resArray);
47
- });
48
- }
49
- function main() {
50
- return __awaiter(this, void 0, void 0, function* () {
51
- listOfOperationStatusResult();
52
- });
53
- }
54
- main().catch(console.error);
55
- //# sourceMappingURL=operationStatusResultListSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationStatusResultListSample.js","sourceRoot":"","sources":["../../samples-dev/operationStatusResultListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2BAA2B;;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;YAC/C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,KAAK,CAAC;QAC1D,MAAM,YAAY,GAAG,cAAc,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,+BAA+B,CAAC,IAAI,CAChE,iBAAiB,EACjB,YAAY,CACb,CAAA,IAAA,sDAAE,CAAC;gBAHmB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,50 +0,0 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Machines } from "../operationsInterfaces";
3
- import { ContainerServiceClient } from "../containerServiceClient";
4
- import { Machine, MachinesListOptionalParams, MachinesGetOptionalParams, MachinesGetResponse } from "../models";
5
- /** Class containing Machines operations. */
6
- export declare class MachinesImpl implements Machines {
7
- private readonly client;
8
- /**
9
- * Initialize a new instance of the class Machines class.
10
- * @param client Reference to the service client
11
- */
12
- constructor(client: ContainerServiceClient);
13
- /**
14
- * Gets a list of machines in the specified agent pool.
15
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
- * @param resourceName The name of the managed cluster resource.
17
- * @param agentPoolName The name of the agent pool.
18
- * @param options The options parameters.
19
- */
20
- list(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: MachinesListOptionalParams): PagedAsyncIterableIterator<Machine>;
21
- private listPagingPage;
22
- private listPagingAll;
23
- /**
24
- * Gets a list of machines in the specified agent pool.
25
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
- * @param resourceName The name of the managed cluster resource.
27
- * @param agentPoolName The name of the agent pool.
28
- * @param options The options parameters.
29
- */
30
- private _list;
31
- /**
32
- * Get a specific machine in the specified agent pool.
33
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
- * @param resourceName The name of the managed cluster resource.
35
- * @param agentPoolName The name of the agent pool.
36
- * @param machineName host name of the machine
37
- * @param options The options parameters.
38
- */
39
- get(resourceGroupName: string, resourceName: string, agentPoolName: string, machineName: string, options?: MachinesGetOptionalParams): Promise<MachinesGetResponse>;
40
- /**
41
- * ListNext
42
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
43
- * @param resourceName The name of the managed cluster resource.
44
- * @param agentPoolName The name of the agent pool.
45
- * @param nextLink The nextLink from the previous successful call to the List method.
46
- * @param options The options parameters.
47
- */
48
- private _listNext;
49
- }
50
- //# sourceMappingURL=machines.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"machines.d.ts","sourceRoot":"","sources":["../../../src/operations/machines.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACL,OAAO,EAEP,0BAA0B,EAE1B,yBAAyB,EACzB,mBAAmB,EAEpB,MAAM,WAAW,CAAC;AAGnB,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;;OAMG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,OAAO,CAAC;YA6BvB,cAAc;YAoCd,aAAa;IAgB5B;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
@@ -1,189 +0,0 @@
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 { setContinuationToken } from "../pagingHelper";
10
- import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
13
- /// <reference lib="esnext.asynciterable" />
14
- /** Class containing Machines operations. */
15
- export class MachinesImpl {
16
- /**
17
- * Initialize a new instance of the class Machines class.
18
- * @param client Reference to the service client
19
- */
20
- constructor(client) {
21
- this.client = client;
22
- }
23
- /**
24
- * Gets a list of machines in the specified agent pool.
25
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
- * @param resourceName The name of the managed cluster resource.
27
- * @param agentPoolName The name of the agent pool.
28
- * @param options The options parameters.
29
- */
30
- list(resourceGroupName, resourceName, agentPoolName, options) {
31
- const iter = this.listPagingAll(resourceGroupName, resourceName, agentPoolName, options);
32
- return {
33
- next() {
34
- return iter.next();
35
- },
36
- [Symbol.asyncIterator]() {
37
- return this;
38
- },
39
- byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
- throw new Error("maxPageSize is not supported by this operation.");
42
- }
43
- return this.listPagingPage(resourceGroupName, resourceName, agentPoolName, options, settings);
44
- },
45
- };
46
- }
47
- listPagingPage(resourceGroupName, resourceName, agentPoolName, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(resourceGroupName, resourceName, agentPoolName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(resourceGroupName, resourceName, agentPoolName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
66
- }
67
- listPagingAll(resourceGroupName, resourceName, agentPoolName, options) {
68
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, resourceName, agentPoolName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
86
- }
87
- /**
88
- * Gets a list of machines in the specified agent pool.
89
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
90
- * @param resourceName The name of the managed cluster resource.
91
- * @param agentPoolName The name of the agent pool.
92
- * @param options The options parameters.
93
- */
94
- _list(resourceGroupName, resourceName, agentPoolName, options) {
95
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, agentPoolName, options }, listOperationSpec);
96
- }
97
- /**
98
- * Get a specific machine in the specified agent pool.
99
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
100
- * @param resourceName The name of the managed cluster resource.
101
- * @param agentPoolName The name of the agent pool.
102
- * @param machineName host name of the machine
103
- * @param options The options parameters.
104
- */
105
- get(resourceGroupName, resourceName, agentPoolName, machineName, options) {
106
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, agentPoolName, machineName, options }, getOperationSpec);
107
- }
108
- /**
109
- * ListNext
110
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
111
- * @param resourceName The name of the managed cluster resource.
112
- * @param agentPoolName The name of the agent pool.
113
- * @param nextLink The nextLink from the previous successful call to the List method.
114
- * @param options The options parameters.
115
- */
116
- _listNext(resourceGroupName, resourceName, agentPoolName, nextLink, options) {
117
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, agentPoolName, nextLink, options }, listNextOperationSpec);
118
- }
119
- }
120
- // Operation Specifications
121
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
122
- const listOperationSpec = {
123
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/machines",
124
- httpMethod: "GET",
125
- responses: {
126
- 200: {
127
- bodyMapper: Mappers.MachineListResult,
128
- },
129
- default: {
130
- bodyMapper: Mappers.CloudError,
131
- },
132
- },
133
- queryParameters: [Parameters.apiVersion],
134
- urlParameters: [
135
- Parameters.$host,
136
- Parameters.subscriptionId,
137
- Parameters.resourceGroupName,
138
- Parameters.resourceName,
139
- Parameters.agentPoolName,
140
- ],
141
- headerParameters: [Parameters.accept],
142
- serializer,
143
- };
144
- const getOperationSpec = {
145
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/machines/{machineName}",
146
- httpMethod: "GET",
147
- responses: {
148
- 200: {
149
- bodyMapper: Mappers.Machine,
150
- },
151
- default: {
152
- bodyMapper: Mappers.CloudError,
153
- },
154
- },
155
- queryParameters: [Parameters.apiVersion],
156
- urlParameters: [
157
- Parameters.$host,
158
- Parameters.subscriptionId,
159
- Parameters.resourceGroupName,
160
- Parameters.resourceName,
161
- Parameters.agentPoolName,
162
- Parameters.machineName,
163
- ],
164
- headerParameters: [Parameters.accept],
165
- serializer,
166
- };
167
- const listNextOperationSpec = {
168
- path: "{nextLink}",
169
- httpMethod: "GET",
170
- responses: {
171
- 200: {
172
- bodyMapper: Mappers.MachineListResult,
173
- },
174
- default: {
175
- bodyMapper: Mappers.CloudError,
176
- },
177
- },
178
- urlParameters: [
179
- Parameters.$host,
180
- Parameters.subscriptionId,
181
- Parameters.resourceGroupName,
182
- Parameters.resourceName,
183
- Parameters.nextLink,
184
- Parameters.agentPoolName,
185
- ],
186
- headerParameters: [Parameters.accept],
187
- serializer,
188
- };
189
- //# sourceMappingURL=machines.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"machines.js","sourceRoot":"","sources":["../../../src/operations/machines.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,aAAqB,EACrB,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aA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