@azure/arm-containerservice 25.0.0 → 25.1.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.
- package/dist/browser/api/agentPools/operations.js +15 -15
- package/dist/browser/api/agentPools/operations.js.map +1 -1
- package/dist/browser/api/containerServiceContext.js +1 -1
- package/dist/browser/api/containerServiceContext.js.map +1 -1
- package/dist/browser/api/machines/operations.js +3 -3
- package/dist/browser/api/machines/operations.js.map +1 -1
- package/dist/browser/api/maintenanceConfigurations/operations.js +5 -5
- package/dist/browser/api/maintenanceConfigurations/operations.js.map +1 -1
- package/dist/browser/api/managedClusters/operations.js +42 -42
- package/dist/browser/api/managedClusters/operations.js.map +1 -1
- package/dist/browser/api/managedNamespaces/operations.js +9 -9
- package/dist/browser/api/managedNamespaces/operations.js.map +1 -1
- package/dist/browser/api/operations/operations.js +2 -2
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/operations.js +5 -5
- package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/api/privateLinkResources/operations.js +1 -1
- package/dist/browser/api/privateLinkResources/operations.js.map +1 -1
- package/dist/browser/api/resolvePrivateLinkServiceId/operations.js +1 -1
- package/dist/browser/api/resolvePrivateLinkServiceId/operations.js.map +1 -1
- package/dist/browser/api/snapshots/operations.js +8 -8
- package/dist/browser/api/snapshots/operations.js.map +1 -1
- package/dist/browser/api/trustedAccessRoleBindings/operations.js +7 -7
- package/dist/browser/api/trustedAccessRoleBindings/operations.js.map +1 -1
- package/dist/browser/api/trustedAccessRoles/operations.js +2 -2
- package/dist/browser/api/trustedAccessRoles/operations.js.map +1 -1
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +2 -2
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +100 -6
- package/dist/browser/models/models.js +127 -10
- package/dist/browser/models/models.js.map +1 -1
- package/dist/commonjs/api/agentPools/index.js +1 -0
- package/dist/commonjs/api/agentPools/index.js.map +1 -1
- package/dist/commonjs/api/agentPools/operations.js +16 -15
- package/dist/commonjs/api/agentPools/operations.js.map +2 -2
- package/dist/commonjs/api/agentPools/options.js +1 -0
- package/dist/commonjs/api/agentPools/options.js.map +1 -1
- package/dist/commonjs/api/containerServiceContext.js +2 -1
- package/dist/commonjs/api/containerServiceContext.js.map +2 -2
- package/dist/commonjs/api/index.js +1 -0
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/machines/index.js +1 -0
- package/dist/commonjs/api/machines/index.js.map +1 -1
- package/dist/commonjs/api/machines/operations.js +4 -3
- package/dist/commonjs/api/machines/operations.js.map +2 -2
- package/dist/commonjs/api/machines/options.js +1 -0
- package/dist/commonjs/api/machines/options.js.map +1 -1
- package/dist/commonjs/api/maintenanceConfigurations/index.js +1 -0
- package/dist/commonjs/api/maintenanceConfigurations/index.js.map +1 -1
- package/dist/commonjs/api/maintenanceConfigurations/operations.js +6 -5
- package/dist/commonjs/api/maintenanceConfigurations/operations.js.map +2 -2
- package/dist/commonjs/api/maintenanceConfigurations/options.js +1 -0
- package/dist/commonjs/api/maintenanceConfigurations/options.js.map +1 -1
- package/dist/commonjs/api/managedClusters/index.js +1 -0
- package/dist/commonjs/api/managedClusters/index.js.map +1 -1
- package/dist/commonjs/api/managedClusters/operations.js +43 -42
- package/dist/commonjs/api/managedClusters/operations.js.map +2 -2
- package/dist/commonjs/api/managedClusters/options.js +1 -0
- package/dist/commonjs/api/managedClusters/options.js.map +1 -1
- package/dist/commonjs/api/managedNamespaces/index.js +1 -0
- package/dist/commonjs/api/managedNamespaces/index.js.map +1 -1
- package/dist/commonjs/api/managedNamespaces/operations.js +10 -9
- package/dist/commonjs/api/managedNamespaces/operations.js.map +2 -2
- package/dist/commonjs/api/managedNamespaces/options.js +1 -0
- package/dist/commonjs/api/managedNamespaces/options.js.map +1 -1
- package/dist/commonjs/api/operations/index.js +1 -0
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/operations/operations.js +3 -2
- package/dist/commonjs/api/operations/operations.js.map +2 -2
- package/dist/commonjs/api/operations/options.js +1 -0
- package/dist/commonjs/api/operations/options.js.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/index.js +1 -0
- package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/operations.js +6 -5
- package/dist/commonjs/api/privateEndpointConnections/operations.js.map +2 -2
- package/dist/commonjs/api/privateEndpointConnections/options.js +1 -0
- package/dist/commonjs/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/commonjs/api/privateLinkResources/index.js +1 -0
- package/dist/commonjs/api/privateLinkResources/index.js.map +1 -1
- package/dist/commonjs/api/privateLinkResources/operations.js +2 -1
- package/dist/commonjs/api/privateLinkResources/operations.js.map +2 -2
- package/dist/commonjs/api/privateLinkResources/options.js +1 -0
- package/dist/commonjs/api/privateLinkResources/options.js.map +1 -1
- package/dist/commonjs/api/resolvePrivateLinkServiceId/index.js +1 -0
- package/dist/commonjs/api/resolvePrivateLinkServiceId/index.js.map +1 -1
- package/dist/commonjs/api/resolvePrivateLinkServiceId/operations.js +2 -1
- package/dist/commonjs/api/resolvePrivateLinkServiceId/operations.js.map +2 -2
- package/dist/commonjs/api/resolvePrivateLinkServiceId/options.js +1 -0
- package/dist/commonjs/api/resolvePrivateLinkServiceId/options.js.map +1 -1
- package/dist/commonjs/api/snapshots/index.js +1 -0
- package/dist/commonjs/api/snapshots/index.js.map +1 -1
- package/dist/commonjs/api/snapshots/operations.js +9 -8
- package/dist/commonjs/api/snapshots/operations.js.map +2 -2
- package/dist/commonjs/api/snapshots/options.js +1 -0
- package/dist/commonjs/api/snapshots/options.js.map +1 -1
- package/dist/commonjs/api/trustedAccessRoleBindings/index.js +1 -0
- package/dist/commonjs/api/trustedAccessRoleBindings/index.js.map +1 -1
- package/dist/commonjs/api/trustedAccessRoleBindings/operations.js +8 -7
- package/dist/commonjs/api/trustedAccessRoleBindings/operations.js.map +2 -2
- package/dist/commonjs/api/trustedAccessRoleBindings/options.js +1 -0
- package/dist/commonjs/api/trustedAccessRoleBindings/options.js.map +1 -1
- package/dist/commonjs/api/trustedAccessRoles/index.js +1 -0
- package/dist/commonjs/api/trustedAccessRoles/index.js.map +1 -1
- package/dist/commonjs/api/trustedAccessRoles/operations.js +3 -2
- package/dist/commonjs/api/trustedAccessRoles/operations.js.map +2 -2
- package/dist/commonjs/api/trustedAccessRoles/options.js +1 -0
- package/dist/commonjs/api/trustedAccessRoles/options.js.map +1 -1
- package/dist/commonjs/classic/agentPools/index.js +1 -0
- package/dist/commonjs/classic/agentPools/index.js.map +1 -1
- package/dist/commonjs/classic/index.js +1 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/machines/index.js +1 -0
- package/dist/commonjs/classic/machines/index.js.map +1 -1
- package/dist/commonjs/classic/maintenanceConfigurations/index.js +1 -0
- package/dist/commonjs/classic/maintenanceConfigurations/index.js.map +1 -1
- package/dist/commonjs/classic/managedClusters/index.js +1 -0
- package/dist/commonjs/classic/managedClusters/index.js.map +1 -1
- package/dist/commonjs/classic/managedNamespaces/index.js +1 -0
- package/dist/commonjs/classic/managedNamespaces/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.js +1 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/privateEndpointConnections/index.js +1 -0
- package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/commonjs/classic/privateLinkResources/index.js +1 -0
- package/dist/commonjs/classic/privateLinkResources/index.js.map +1 -1
- package/dist/commonjs/classic/resolvePrivateLinkServiceId/index.js +1 -0
- package/dist/commonjs/classic/resolvePrivateLinkServiceId/index.js.map +1 -1
- package/dist/commonjs/classic/snapshots/index.js +1 -0
- package/dist/commonjs/classic/snapshots/index.js.map +1 -1
- package/dist/commonjs/classic/trustedAccessRoleBindings/index.js +1 -0
- package/dist/commonjs/classic/trustedAccessRoleBindings/index.js.map +1 -1
- package/dist/commonjs/classic/trustedAccessRoles/index.js +1 -0
- package/dist/commonjs/classic/trustedAccessRoles/index.js.map +1 -1
- package/dist/commonjs/containerServiceClient.js +1 -0
- package/dist/commonjs/containerServiceClient.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -2
- package/dist/commonjs/index.js +5 -0
- package/dist/commonjs/index.js.map +3 -3
- package/dist/commonjs/logger.js +1 -0
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -2
- package/dist/commonjs/models/index.js +5 -0
- package/dist/commonjs/models/index.js.map +3 -3
- package/dist/commonjs/models/models.d.ts +100 -6
- package/dist/commonjs/models/models.js +132 -14
- package/dist/commonjs/models/models.js.map +4 -4
- package/dist/commonjs/restorePollerHelpers.js +1 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +1 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -1
- package/dist/commonjs/static-helpers/simplePollerHelpers.js +1 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/agentPools/index.js +4 -22
- package/dist/esm/api/agentPools/index.js.map +1 -7
- package/dist/esm/api/agentPools/operations.js +266 -364
- package/dist/esm/api/agentPools/operations.js.map +1 -7
- package/dist/esm/api/agentPools/options.js +4 -0
- package/dist/esm/api/agentPools/options.js.map +1 -7
- package/dist/esm/api/containerServiceContext.js +20 -17
- package/dist/esm/api/containerServiceContext.js.map +1 -7
- package/dist/esm/api/index.js +4 -4
- package/dist/esm/api/index.js.map +1 -7
- package/dist/esm/api/machines/index.js +4 -5
- package/dist/esm/api/machines/index.js.map +1 -7
- package/dist/esm/api/machines/operations.js +55 -83
- package/dist/esm/api/machines/operations.js.map +1 -7
- package/dist/esm/api/machines/options.js +4 -0
- package/dist/esm/api/machines/options.js.map +1 -7
- package/dist/esm/api/maintenanceConfigurations/index.js +4 -7
- package/dist/esm/api/maintenanceConfigurations/index.js.map +1 -7
- package/dist/esm/api/maintenanceConfigurations/operations.js +107 -143
- package/dist/esm/api/maintenanceConfigurations/operations.js.map +1 -7
- package/dist/esm/api/maintenanceConfigurations/options.js +4 -0
- package/dist/esm/api/maintenanceConfigurations/options.js.map +1 -7
- package/dist/esm/api/managedClusters/index.js +4 -56
- package/dist/esm/api/managedClusters/index.js.map +1 -7
- package/dist/esm/api/managedClusters/operations.js +772 -1035
- package/dist/esm/api/managedClusters/operations.js.map +1 -7
- package/dist/esm/api/managedClusters/options.js +4 -0
- package/dist/esm/api/managedClusters/options.js.map +1 -7
- package/dist/esm/api/managedNamespaces/index.js +4 -16
- package/dist/esm/api/managedNamespaces/index.js.map +1 -7
- package/dist/esm/api/managedNamespaces/operations.js +184 -253
- package/dist/esm/api/managedNamespaces/operations.js.map +1 -7
- package/dist/esm/api/managedNamespaces/options.js +4 -0
- package/dist/esm/api/managedNamespaces/options.js.map +1 -7
- package/dist/esm/api/operations/index.js +4 -4
- package/dist/esm/api/operations/index.js.map +1 -7
- package/dist/esm/api/operations/operations.js +25 -39
- package/dist/esm/api/operations/operations.js.map +1 -7
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -7
- package/dist/esm/api/privateEndpointConnections/index.js +4 -7
- package/dist/esm/api/privateEndpointConnections/index.js.map +1 -7
- package/dist/esm/api/privateEndpointConnections/operations.js +113 -155
- package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -7
- package/dist/esm/api/privateEndpointConnections/options.js +4 -0
- package/dist/esm/api/privateEndpointConnections/options.js.map +1 -7
- package/dist/esm/api/privateLinkResources/index.js +4 -4
- package/dist/esm/api/privateLinkResources/index.js.map +1 -7
- package/dist/esm/api/privateLinkResources/operations.js +29 -37
- package/dist/esm/api/privateLinkResources/operations.js.map +1 -7
- package/dist/esm/api/privateLinkResources/options.js +4 -0
- package/dist/esm/api/privateLinkResources/options.js.map +1 -7
- package/dist/esm/api/resolvePrivateLinkServiceId/index.js +4 -4
- package/dist/esm/api/resolvePrivateLinkServiceId/index.js.map +1 -7
- package/dist/esm/api/resolvePrivateLinkServiceId/operations.js +31 -40
- package/dist/esm/api/resolvePrivateLinkServiceId/operations.js.map +1 -7
- package/dist/esm/api/resolvePrivateLinkServiceId/options.js +4 -0
- package/dist/esm/api/resolvePrivateLinkServiceId/options.js.map +1 -7
- package/dist/esm/api/snapshots/index.js +4 -16
- package/dist/esm/api/snapshots/index.js.map +1 -7
- package/dist/esm/api/snapshots/operations.js +167 -227
- package/dist/esm/api/snapshots/operations.js.map +1 -7
- package/dist/esm/api/snapshots/options.js +4 -0
- package/dist/esm/api/snapshots/options.js.map +1 -7
- package/dist/esm/api/trustedAccessRoleBindings/index.js +4 -7
- package/dist/esm/api/trustedAccessRoleBindings/index.js.map +1 -7
- package/dist/esm/api/trustedAccessRoleBindings/operations.js +117 -159
- package/dist/esm/api/trustedAccessRoleBindings/operations.js.map +1 -7
- package/dist/esm/api/trustedAccessRoleBindings/options.js +4 -0
- package/dist/esm/api/trustedAccessRoleBindings/options.js.map +1 -7
- package/dist/esm/api/trustedAccessRoles/index.js +4 -4
- package/dist/esm/api/trustedAccessRoles/index.js.map +1 -7
- package/dist/esm/api/trustedAccessRoles/operations.js +27 -41
- package/dist/esm/api/trustedAccessRoles/operations.js.map +1 -7
- package/dist/esm/api/trustedAccessRoles/options.js +4 -0
- package/dist/esm/api/trustedAccessRoles/options.js.map +1 -7
- package/dist/esm/classic/agentPools/index.js +59 -121
- package/dist/esm/classic/agentPools/index.js.map +1 -7
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -7
- package/dist/esm/classic/machines/index.js +11 -11
- package/dist/esm/classic/machines/index.js.map +1 -7
- package/dist/esm/classic/maintenanceConfigurations/index.js +14 -19
- package/dist/esm/classic/maintenanceConfigurations/index.js.map +1 -7
- package/dist/esm/classic/managedClusters/index.js +124 -173
- package/dist/esm/classic/managedClusters/index.js.map +1 -7
- package/dist/esm/classic/managedNamespaces/index.js +32 -66
- package/dist/esm/classic/managedNamespaces/index.js.map +1 -7
- package/dist/esm/classic/operations/index.js +10 -10
- package/dist/esm/classic/operations/index.js.map +1 -7
- package/dist/esm/classic/privateEndpointConnections/index.js +21 -40
- package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -7
- package/dist/esm/classic/privateLinkResources/index.js +10 -10
- package/dist/esm/classic/privateLinkResources/index.js.map +1 -7
- package/dist/esm/classic/resolvePrivateLinkServiceId/index.js +10 -10
- package/dist/esm/classic/resolvePrivateLinkServiceId/index.js.map +1 -7
- package/dist/esm/classic/snapshots/index.js +16 -23
- package/dist/esm/classic/snapshots/index.js.map +1 -7
- package/dist/esm/classic/trustedAccessRoleBindings/index.js +30 -68
- package/dist/esm/classic/trustedAccessRoleBindings/index.js.map +1 -7
- package/dist/esm/classic/trustedAccessRoles/index.js +10 -10
- package/dist/esm/classic/trustedAccessRoles/index.js.map +1 -7
- package/dist/esm/containerServiceClient.js +62 -59
- package/dist/esm/containerServiceClient.js.map +1 -7
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +7 -147
- package/dist/esm/index.js.map +1 -7
- package/dist/esm/logger.js +4 -4
- package/dist/esm/logger.js.map +1 -7
- package/dist/esm/models/index.d.ts +2 -2
- package/dist/esm/models/index.js +4 -142
- package/dist/esm/models/index.js.map +1 -7
- package/dist/esm/models/models.d.ts +100 -6
- package/dist/esm/models/models.js +4899 -4137
- package/dist/esm/models/models.js.map +1 -7
- package/dist/esm/restorePollerHelpers.js +127 -140
- package/dist/esm/restorePollerHelpers.js.map +1 -7
- package/dist/esm/static-helpers/cloudSettingHelpers.js +37 -26
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/pagingHelpers.js +122 -98
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/pollingHelpers.js +86 -68
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +15 -9
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -7
- package/dist/esm/static-helpers/simplePollerHelpers.js +43 -42
- package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -7
- package/dist/esm/static-helpers/urlTemplate.js +169 -142
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -7
- package/dist/react-native/api/agentPools/operations.js +15 -15
- package/dist/react-native/api/agentPools/operations.js.map +1 -1
- package/dist/react-native/api/containerServiceContext.js +1 -1
- package/dist/react-native/api/containerServiceContext.js.map +1 -1
- package/dist/react-native/api/machines/operations.js +3 -3
- package/dist/react-native/api/machines/operations.js.map +1 -1
- package/dist/react-native/api/maintenanceConfigurations/operations.js +5 -5
- package/dist/react-native/api/maintenanceConfigurations/operations.js.map +1 -1
- package/dist/react-native/api/managedClusters/operations.js +42 -42
- package/dist/react-native/api/managedClusters/operations.js.map +1 -1
- package/dist/react-native/api/managedNamespaces/operations.js +9 -9
- package/dist/react-native/api/managedNamespaces/operations.js.map +1 -1
- package/dist/react-native/api/operations/operations.js +2 -2
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/privateEndpointConnections/operations.js +5 -5
- package/dist/react-native/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/react-native/api/privateLinkResources/operations.js +1 -1
- package/dist/react-native/api/privateLinkResources/operations.js.map +1 -1
- package/dist/react-native/api/resolvePrivateLinkServiceId/operations.js +1 -1
- package/dist/react-native/api/resolvePrivateLinkServiceId/operations.js.map +1 -1
- package/dist/react-native/api/snapshots/operations.js +8 -8
- package/dist/react-native/api/snapshots/operations.js.map +1 -1
- package/dist/react-native/api/trustedAccessRoleBindings/operations.js +7 -7
- package/dist/react-native/api/trustedAccessRoleBindings/operations.js.map +1 -1
- package/dist/react-native/api/trustedAccessRoles/operations.js +2 -2
- package/dist/react-native/api/trustedAccessRoles/operations.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -2
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +2 -2
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +100 -6
- package/dist/react-native/models/models.js +127 -10
- package/dist/react-native/models/models.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,403 +1,305 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
errorResponseDeserializer,
|
|
5
|
-
_agentPoolListResultDeserializer,
|
|
6
|
-
agentPoolDeleteMachinesParameterSerializer,
|
|
7
|
-
agentPoolAvailableVersionsDeserializer,
|
|
8
|
-
agentPoolUpgradeProfileDeserializer
|
|
9
|
-
} from "../../models/models.js";
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { agentPoolSerializer, agentPoolDeserializer, errorResponseDeserializer, _agentPoolListResultDeserializer, agentPoolDeleteMachinesParameterSerializer, agentPoolAvailableVersionsDeserializer, agentPoolUpgradeProfileDeserializer, } from "../../models/models.js";
|
|
10
4
|
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
11
5
|
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
12
6
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
13
7
|
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
14
|
-
function _getUpgradeProfileSend(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
{
|
|
25
|
-
|
|
8
|
+
export function _getUpgradeProfileSend(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
9
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default{?api%2Dversion}", {
|
|
10
|
+
subscriptionId: context.subscriptionId,
|
|
11
|
+
resourceGroupName: resourceGroupName,
|
|
12
|
+
resourceName: resourceName,
|
|
13
|
+
agentPoolName: agentPoolName,
|
|
14
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
15
|
+
}, {
|
|
16
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
17
|
+
});
|
|
18
|
+
return context.path(path).get({
|
|
19
|
+
...operationOptionsToRequestParameters(options),
|
|
20
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
export async function _getUpgradeProfileDeserialize(result) {
|
|
24
|
+
const expectedStatuses = ["200"];
|
|
25
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
26
|
+
const error = createRestError(result);
|
|
27
|
+
error.details = errorResponseDeserializer(result.body);
|
|
28
|
+
throw error;
|
|
26
29
|
}
|
|
27
|
-
|
|
28
|
-
return context.path(path).get({
|
|
29
|
-
...operationOptionsToRequestParameters(options),
|
|
30
|
-
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
31
|
-
});
|
|
30
|
+
return agentPoolUpgradeProfileDeserializer(result.body);
|
|
32
31
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
error.details = errorResponseDeserializer(result.body);
|
|
38
|
-
throw error;
|
|
39
|
-
}
|
|
40
|
-
return agentPoolUpgradeProfileDeserializer(result.body);
|
|
32
|
+
/** Gets the upgrade profile for an agent pool. */
|
|
33
|
+
export async function getUpgradeProfile(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
34
|
+
const result = await _getUpgradeProfileSend(context, resourceGroupName, resourceName, agentPoolName, options);
|
|
35
|
+
return _getUpgradeProfileDeserialize(result);
|
|
41
36
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
37
|
+
export function _getAvailableAgentPoolVersionsSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
38
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions{?api%2Dversion}", {
|
|
39
|
+
subscriptionId: context.subscriptionId,
|
|
40
|
+
resourceGroupName: resourceGroupName,
|
|
41
|
+
resourceName: resourceName,
|
|
42
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
43
|
+
}, {
|
|
44
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
45
|
+
});
|
|
46
|
+
return context.path(path).get({
|
|
47
|
+
...operationOptionsToRequestParameters(options),
|
|
48
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
49
|
+
});
|
|
51
50
|
}
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
resourceName,
|
|
59
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
51
|
+
export async function _getAvailableAgentPoolVersionsDeserialize(result) {
|
|
52
|
+
const expectedStatuses = ["200"];
|
|
53
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
54
|
+
const error = createRestError(result);
|
|
55
|
+
error.details = errorResponseDeserializer(result.body);
|
|
56
|
+
throw error;
|
|
63
57
|
}
|
|
64
|
-
|
|
65
|
-
return context.path(path).get({
|
|
66
|
-
...operationOptionsToRequestParameters(options),
|
|
67
|
-
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
68
|
-
});
|
|
58
|
+
return agentPoolAvailableVersionsDeserializer(result.body);
|
|
69
59
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
error.details = errorResponseDeserializer(result.body);
|
|
75
|
-
throw error;
|
|
76
|
-
}
|
|
77
|
-
return agentPoolAvailableVersionsDeserializer(result.body);
|
|
60
|
+
/** See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. */
|
|
61
|
+
export async function getAvailableAgentPoolVersions(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
62
|
+
const result = await _getAvailableAgentPoolVersionsSend(context, resourceGroupName, resourceName, options);
|
|
63
|
+
return _getAvailableAgentPoolVersionsDeserialize(result);
|
|
78
64
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
65
|
+
export function _upgradeNodeImageVersionSend(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
66
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion{?api%2Dversion}", {
|
|
67
|
+
subscriptionId: context.subscriptionId,
|
|
68
|
+
resourceGroupName: resourceGroupName,
|
|
69
|
+
resourceName: resourceName,
|
|
70
|
+
agentPoolName: agentPoolName,
|
|
71
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
72
|
+
}, {
|
|
73
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
74
|
+
});
|
|
75
|
+
return context.path(path).post({
|
|
76
|
+
...operationOptionsToRequestParameters(options),
|
|
77
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
78
|
+
});
|
|
87
79
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
resourceName,
|
|
95
|
-
agentPoolName,
|
|
96
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
80
|
+
export async function _upgradeNodeImageVersionDeserialize(result) {
|
|
81
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
82
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
83
|
+
const error = createRestError(result);
|
|
84
|
+
error.details = errorResponseDeserializer(result.body);
|
|
85
|
+
throw error;
|
|
100
86
|
}
|
|
101
|
-
|
|
102
|
-
return context.path(path).post({
|
|
103
|
-
...operationOptionsToRequestParameters(options),
|
|
104
|
-
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
105
|
-
});
|
|
87
|
+
return;
|
|
106
88
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
89
|
+
/** Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade */
|
|
90
|
+
export function upgradeNodeImageVersion(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
91
|
+
return getLongRunningPoller(context, _upgradeNodeImageVersionDeserialize, ["202", "200", "201"], {
|
|
92
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
93
|
+
abortSignal: options?.abortSignal,
|
|
94
|
+
getInitialResponse: () => _upgradeNodeImageVersionSend(context, resourceGroupName, resourceName, agentPoolName, options),
|
|
95
|
+
resourceLocationConfig: "location",
|
|
96
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
97
|
+
});
|
|
115
98
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
99
|
+
export function _deleteMachinesSend(context, resourceGroupName, resourceName, agentPoolName, machines, options = { requestOptions: {} }) {
|
|
100
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/deleteMachines{?api%2Dversion}", {
|
|
101
|
+
subscriptionId: context.subscriptionId,
|
|
102
|
+
resourceGroupName: resourceGroupName,
|
|
103
|
+
resourceName: resourceName,
|
|
104
|
+
agentPoolName: agentPoolName,
|
|
105
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
106
|
+
}, {
|
|
107
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
108
|
+
});
|
|
109
|
+
return context.path(path).post({
|
|
110
|
+
...operationOptionsToRequestParameters(options),
|
|
111
|
+
contentType: "application/json",
|
|
112
|
+
body: agentPoolDeleteMachinesParameterSerializer(machines),
|
|
113
|
+
});
|
|
130
114
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
resourceName,
|
|
138
|
-
agentPoolName,
|
|
139
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
115
|
+
export async function _deleteMachinesDeserialize(result) {
|
|
116
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
117
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
118
|
+
const error = createRestError(result);
|
|
119
|
+
error.details = errorResponseDeserializer(result.body);
|
|
120
|
+
throw error;
|
|
143
121
|
}
|
|
144
|
-
|
|
145
|
-
return context.path(path).post({
|
|
146
|
-
...operationOptionsToRequestParameters(options),
|
|
147
|
-
contentType: "application/json",
|
|
148
|
-
body: agentPoolDeleteMachinesParameterSerializer(machines)
|
|
149
|
-
});
|
|
122
|
+
return;
|
|
150
123
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
124
|
+
/** Deletes specific machines in an agent pool. */
|
|
125
|
+
export function deleteMachines(context, resourceGroupName, resourceName, agentPoolName, machines, options = { requestOptions: {} }) {
|
|
126
|
+
return getLongRunningPoller(context, _deleteMachinesDeserialize, ["202", "200", "201"], {
|
|
127
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
128
|
+
abortSignal: options?.abortSignal,
|
|
129
|
+
getInitialResponse: () => _deleteMachinesSend(context, resourceGroupName, resourceName, agentPoolName, machines, options),
|
|
130
|
+
resourceLocationConfig: "azure-async-operation",
|
|
131
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
132
|
+
});
|
|
159
133
|
}
|
|
160
|
-
function
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
),
|
|
172
|
-
resourceLocationConfig: "azure-async-operation",
|
|
173
|
-
apiVersion: context.apiVersion ?? "2026-01-01"
|
|
174
|
-
});
|
|
134
|
+
export function _abortLatestOperationSend(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
135
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/abort{?api%2Dversion}", {
|
|
136
|
+
subscriptionId: context.subscriptionId,
|
|
137
|
+
resourceGroupName: resourceGroupName,
|
|
138
|
+
resourceName: resourceName,
|
|
139
|
+
agentPoolName: agentPoolName,
|
|
140
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
141
|
+
}, {
|
|
142
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
143
|
+
});
|
|
144
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
175
145
|
}
|
|
176
|
-
function
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
resourceName,
|
|
183
|
-
agentPoolName,
|
|
184
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
146
|
+
export async function _abortLatestOperationDeserialize(result) {
|
|
147
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
148
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
149
|
+
const error = createRestError(result);
|
|
150
|
+
error.details = errorResponseDeserializer(result.body);
|
|
151
|
+
throw error;
|
|
188
152
|
}
|
|
189
|
-
|
|
190
|
-
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
153
|
+
return;
|
|
191
154
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
155
|
+
/** Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. */
|
|
156
|
+
export function abortLatestOperation(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
157
|
+
return getLongRunningPoller(context, _abortLatestOperationDeserialize, ["202", "204", "200", "201"], {
|
|
158
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
159
|
+
abortSignal: options?.abortSignal,
|
|
160
|
+
getInitialResponse: () => _abortLatestOperationSend(context, resourceGroupName, resourceName, agentPoolName, options),
|
|
161
|
+
resourceLocationConfig: "location",
|
|
162
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
163
|
+
});
|
|
200
164
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
165
|
+
export function _listSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
166
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools{?api%2Dversion}", {
|
|
167
|
+
subscriptionId: context.subscriptionId,
|
|
168
|
+
resourceGroupName: resourceGroupName,
|
|
169
|
+
resourceName: resourceName,
|
|
170
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
171
|
+
}, {
|
|
172
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
173
|
+
});
|
|
174
|
+
return context.path(path).get({
|
|
175
|
+
...operationOptionsToRequestParameters(options),
|
|
176
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
177
|
+
});
|
|
214
178
|
}
|
|
215
|
-
function
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
resourceName,
|
|
222
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
179
|
+
export async function _listDeserialize(result) {
|
|
180
|
+
const expectedStatuses = ["200"];
|
|
181
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
182
|
+
const error = createRestError(result);
|
|
183
|
+
error.details = errorResponseDeserializer(result.body);
|
|
184
|
+
throw error;
|
|
226
185
|
}
|
|
227
|
-
|
|
228
|
-
return context.path(path).get({
|
|
229
|
-
...operationOptionsToRequestParameters(options),
|
|
230
|
-
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
231
|
-
});
|
|
186
|
+
return _agentPoolListResultDeserializer(result.body);
|
|
232
187
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
const error = createRestError(result);
|
|
237
|
-
error.details = errorResponseDeserializer(result.body);
|
|
238
|
-
throw error;
|
|
239
|
-
}
|
|
240
|
-
return _agentPoolListResultDeserializer(result.body);
|
|
188
|
+
/** Gets a list of agent pools in the specified managed cluster. */
|
|
189
|
+
export function list(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
190
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, resourceGroupName, resourceName, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
|
|
241
191
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
192
|
+
export function _$deleteSend(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
193
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}{?api%2Dversion,ignore%2Dpod%2Ddisruption%2Dbudget}", {
|
|
194
|
+
subscriptionId: context.subscriptionId,
|
|
195
|
+
resourceGroupName: resourceGroupName,
|
|
196
|
+
resourceName: resourceName,
|
|
197
|
+
agentPoolName: agentPoolName,
|
|
198
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
199
|
+
"ignore%2Dpod%2Ddisruption%2Dbudget": options?.ignorePodDisruptionBudget,
|
|
200
|
+
}, {
|
|
201
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
202
|
+
});
|
|
203
|
+
return context.path(path).delete({
|
|
204
|
+
...operationOptionsToRequestParameters(options),
|
|
205
|
+
headers: {
|
|
206
|
+
...(options?.ifMatch !== undefined ? { "if-match": options?.ifMatch } : {}),
|
|
207
|
+
...options.requestOptions?.headers,
|
|
208
|
+
},
|
|
209
|
+
});
|
|
250
210
|
}
|
|
251
|
-
function _$
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
resourceName,
|
|
258
|
-
agentPoolName,
|
|
259
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01",
|
|
260
|
-
"ignore%2Dpod%2Ddisruption%2Dbudget": options?.ignorePodDisruptionBudget
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
211
|
+
export async function _$deleteDeserialize(result) {
|
|
212
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
213
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
214
|
+
const error = createRestError(result);
|
|
215
|
+
error.details = errorResponseDeserializer(result.body);
|
|
216
|
+
throw error;
|
|
264
217
|
}
|
|
265
|
-
|
|
266
|
-
return context.path(path).delete({
|
|
267
|
-
...operationOptionsToRequestParameters(options),
|
|
268
|
-
headers: {
|
|
269
|
-
...options?.ifMatch !== void 0 ? { "if-match": options?.ifMatch } : {},
|
|
270
|
-
...options.requestOptions?.headers
|
|
271
|
-
}
|
|
272
|
-
});
|
|
218
|
+
return;
|
|
273
219
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
220
|
+
/** Deletes an agent pool in the specified managed cluster. */
|
|
221
|
+
/**
|
|
222
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
223
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
224
|
+
* to the operation to override the generated name.
|
|
225
|
+
*/
|
|
226
|
+
export function $delete(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
227
|
+
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
228
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
229
|
+
abortSignal: options?.abortSignal,
|
|
230
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, resourceName, agentPoolName, options),
|
|
231
|
+
resourceLocationConfig: "azure-async-operation",
|
|
232
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
233
|
+
});
|
|
282
234
|
}
|
|
283
|
-
function
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
235
|
+
export function _createOrUpdateSend(context, resourceGroupName, resourceName, agentPoolName, parameters, options = { requestOptions: {} }) {
|
|
236
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}{?api%2Dversion}", {
|
|
237
|
+
subscriptionId: context.subscriptionId,
|
|
238
|
+
resourceGroupName: resourceGroupName,
|
|
239
|
+
resourceName: resourceName,
|
|
240
|
+
agentPoolName: agentPoolName,
|
|
241
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
242
|
+
}, {
|
|
243
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
244
|
+
});
|
|
245
|
+
return context.path(path).put({
|
|
246
|
+
...operationOptionsToRequestParameters(options),
|
|
247
|
+
contentType: "application/json",
|
|
248
|
+
headers: {
|
|
249
|
+
...(options?.ifMatch !== undefined ? { "if-match": options?.ifMatch } : {}),
|
|
250
|
+
...(options?.ifNoneMatch !== undefined ? { "if-none-match": options?.ifNoneMatch } : {}),
|
|
251
|
+
accept: "application/json",
|
|
252
|
+
...options.requestOptions?.headers,
|
|
253
|
+
},
|
|
254
|
+
body: agentPoolSerializer(parameters),
|
|
255
|
+
});
|
|
291
256
|
}
|
|
292
|
-
function
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
resourceName,
|
|
299
|
-
agentPoolName,
|
|
300
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
257
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
258
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
259
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
260
|
+
const error = createRestError(result);
|
|
261
|
+
error.details = errorResponseDeserializer(result.body);
|
|
262
|
+
throw error;
|
|
304
263
|
}
|
|
305
|
-
|
|
306
|
-
return context.path(path).put({
|
|
307
|
-
...operationOptionsToRequestParameters(options),
|
|
308
|
-
contentType: "application/json",
|
|
309
|
-
headers: {
|
|
310
|
-
...options?.ifMatch !== void 0 ? { "if-match": options?.ifMatch } : {},
|
|
311
|
-
...options?.ifNoneMatch !== void 0 ? { "if-none-match": options?.ifNoneMatch } : {},
|
|
312
|
-
accept: "application/json",
|
|
313
|
-
...options.requestOptions?.headers
|
|
314
|
-
},
|
|
315
|
-
body: agentPoolSerializer(parameters)
|
|
316
|
-
});
|
|
264
|
+
return agentPoolDeserializer(result.body);
|
|
317
265
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
266
|
+
/** Creates or updates an agent pool in the specified managed cluster. */
|
|
267
|
+
export function createOrUpdate(context, resourceGroupName, resourceName, agentPoolName, parameters, options = { requestOptions: {} }) {
|
|
268
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
269
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
270
|
+
abortSignal: options?.abortSignal,
|
|
271
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, resourceName, agentPoolName, parameters, options),
|
|
272
|
+
resourceLocationConfig: "azure-async-operation",
|
|
273
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
274
|
+
});
|
|
326
275
|
}
|
|
327
|
-
function
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
});
|
|
276
|
+
export function _getSend(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
277
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}{?api%2Dversion}", {
|
|
278
|
+
subscriptionId: context.subscriptionId,
|
|
279
|
+
resourceGroupName: resourceGroupName,
|
|
280
|
+
resourceName: resourceName,
|
|
281
|
+
agentPoolName: agentPoolName,
|
|
282
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
283
|
+
}, {
|
|
284
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
285
|
+
});
|
|
286
|
+
return context.path(path).get({
|
|
287
|
+
...operationOptionsToRequestParameters(options),
|
|
288
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
289
|
+
});
|
|
342
290
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
resourceName,
|
|
350
|
-
agentPoolName,
|
|
351
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
291
|
+
export async function _getDeserialize(result) {
|
|
292
|
+
const expectedStatuses = ["200"];
|
|
293
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
294
|
+
const error = createRestError(result);
|
|
295
|
+
error.details = errorResponseDeserializer(result.body);
|
|
296
|
+
throw error;
|
|
355
297
|
}
|
|
356
|
-
|
|
357
|
-
return context.path(path).get({
|
|
358
|
-
...operationOptionsToRequestParameters(options),
|
|
359
|
-
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
async function _getDeserialize(result) {
|
|
363
|
-
const expectedStatuses = ["200"];
|
|
364
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
365
|
-
const error = createRestError(result);
|
|
366
|
-
error.details = errorResponseDeserializer(result.body);
|
|
367
|
-
throw error;
|
|
368
|
-
}
|
|
369
|
-
return agentPoolDeserializer(result.body);
|
|
298
|
+
return agentPoolDeserializer(result.body);
|
|
370
299
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
300
|
+
/** Gets the specified managed cluster agent pool. */
|
|
301
|
+
export async function get(context, resourceGroupName, resourceName, agentPoolName, options = { requestOptions: {} }) {
|
|
302
|
+
const result = await _getSend(context, resourceGroupName, resourceName, agentPoolName, options);
|
|
303
|
+
return _getDeserialize(result);
|
|
374
304
|
}
|
|
375
|
-
|
|
376
|
-
$delete,
|
|
377
|
-
_$deleteDeserialize,
|
|
378
|
-
_$deleteSend,
|
|
379
|
-
_abortLatestOperationDeserialize,
|
|
380
|
-
_abortLatestOperationSend,
|
|
381
|
-
_createOrUpdateDeserialize,
|
|
382
|
-
_createOrUpdateSend,
|
|
383
|
-
_deleteMachinesDeserialize,
|
|
384
|
-
_deleteMachinesSend,
|
|
385
|
-
_getAvailableAgentPoolVersionsDeserialize,
|
|
386
|
-
_getAvailableAgentPoolVersionsSend,
|
|
387
|
-
_getDeserialize,
|
|
388
|
-
_getSend,
|
|
389
|
-
_getUpgradeProfileDeserialize,
|
|
390
|
-
_getUpgradeProfileSend,
|
|
391
|
-
_listDeserialize,
|
|
392
|
-
_listSend,
|
|
393
|
-
_upgradeNodeImageVersionDeserialize,
|
|
394
|
-
_upgradeNodeImageVersionSend,
|
|
395
|
-
abortLatestOperation,
|
|
396
|
-
createOrUpdate,
|
|
397
|
-
deleteMachines,
|
|
398
|
-
get,
|
|
399
|
-
getAvailableAgentPoolVersions,
|
|
400
|
-
getUpgradeProfile,
|
|
401
|
-
list,
|
|
402
|
-
upgradeNodeImageVersion
|
|
403
|
-
};
|
|
305
|
+
//# sourceMappingURL=operations.js.map
|