@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,1069 +1,806 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
managedClusterDeserializer,
|
|
5
|
-
managedClusterServicePrincipalProfileSerializer,
|
|
6
|
-
managedClusterAADProfileSerializer,
|
|
7
|
-
tagsObjectSerializer,
|
|
8
|
-
_managedClusterListResultDeserializer,
|
|
9
|
-
managedClusterAccessProfileDeserializer,
|
|
10
|
-
credentialResultsDeserializer,
|
|
11
|
-
runCommandRequestSerializer,
|
|
12
|
-
runCommandResultDeserializer,
|
|
13
|
-
_outboundEnvironmentEndpointCollectionDeserializer,
|
|
14
|
-
managedClusterUpgradeProfileDeserializer,
|
|
15
|
-
meshRevisionProfileDeserializer,
|
|
16
|
-
_meshRevisionProfileListDeserializer,
|
|
17
|
-
meshUpgradeProfileDeserializer,
|
|
18
|
-
_meshUpgradeProfileListDeserializer,
|
|
19
|
-
kubernetesVersionListResultDeserializer
|
|
20
|
-
} from "../../models/models.js";
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseDeserializer, managedClusterSerializer, managedClusterDeserializer, managedClusterServicePrincipalProfileSerializer, managedClusterAADProfileSerializer, tagsObjectSerializer, _managedClusterListResultDeserializer, managedClusterAccessProfileDeserializer, credentialResultsDeserializer, runCommandRequestSerializer, runCommandResultDeserializer, _outboundEnvironmentEndpointCollectionDeserializer, managedClusterUpgradeProfileDeserializer, meshRevisionProfileDeserializer, _meshRevisionProfileListDeserializer, meshUpgradeProfileDeserializer, _meshUpgradeProfileListDeserializer, kubernetesVersionListResultDeserializer, } from "../../models/models.js";
|
|
21
4
|
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
22
5
|
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
23
6
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
24
7
|
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
25
|
-
function _listKubernetesVersionsSend(context, location, options = { requestOptions: {} }) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
{
|
|
34
|
-
|
|
8
|
+
export function _listKubernetesVersionsSend(context, location, options = { requestOptions: {} }) {
|
|
9
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/kubernetesVersions{?api%2Dversion}", {
|
|
10
|
+
subscriptionId: context.subscriptionId,
|
|
11
|
+
location: location,
|
|
12
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
13
|
+
}, {
|
|
14
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
15
|
+
});
|
|
16
|
+
return context.path(path).get({
|
|
17
|
+
...operationOptionsToRequestParameters(options),
|
|
18
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export async function _listKubernetesVersionsDeserialize(result) {
|
|
22
|
+
const expectedStatuses = ["200"];
|
|
23
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
24
|
+
const error = createRestError(result);
|
|
25
|
+
error.details = errorResponseDeserializer(result.body);
|
|
26
|
+
throw error;
|
|
35
27
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
28
|
+
return kubernetesVersionListResultDeserializer(result.body);
|
|
29
|
+
}
|
|
30
|
+
/** Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version */
|
|
31
|
+
export async function listKubernetesVersions(context, location, options = { requestOptions: {} }) {
|
|
32
|
+
const result = await _listKubernetesVersionsSend(context, location, options);
|
|
33
|
+
return _listKubernetesVersionsDeserialize(result);
|
|
34
|
+
}
|
|
35
|
+
export function _listMeshUpgradeProfilesSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
36
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles{?api%2Dversion}", {
|
|
37
|
+
subscriptionId: context.subscriptionId,
|
|
38
|
+
resourceGroupName: resourceGroupName,
|
|
39
|
+
resourceName: resourceName,
|
|
40
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
41
|
+
}, {
|
|
42
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
43
|
+
});
|
|
44
|
+
return context.path(path).get({
|
|
45
|
+
...operationOptionsToRequestParameters(options),
|
|
46
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export async function _listMeshUpgradeProfilesDeserialize(result) {
|
|
50
|
+
const expectedStatuses = ["200"];
|
|
51
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
52
|
+
const error = createRestError(result);
|
|
53
|
+
error.details = errorResponseDeserializer(result.body);
|
|
54
|
+
throw error;
|
|
66
55
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
{
|
|
95
|
-
subscriptionId: context.subscriptionId,
|
|
96
|
-
resourceGroupName,
|
|
97
|
-
resourceName,
|
|
98
|
-
mode,
|
|
99
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
56
|
+
return _meshUpgradeProfileListDeserializer(result.body);
|
|
57
|
+
}
|
|
58
|
+
/** Lists available upgrades for all service meshes in a specific cluster. */
|
|
59
|
+
export function listMeshUpgradeProfiles(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
60
|
+
return buildPagedAsyncIterator(context, () => _listMeshUpgradeProfilesSend(context, resourceGroupName, resourceName, options), _listMeshUpgradeProfilesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
|
|
61
|
+
}
|
|
62
|
+
export function _getMeshUpgradeProfileSend(context, resourceGroupName, resourceName, mode, options = { requestOptions: {} }) {
|
|
63
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles/{mode}{?api%2Dversion}", {
|
|
64
|
+
subscriptionId: context.subscriptionId,
|
|
65
|
+
resourceGroupName: resourceGroupName,
|
|
66
|
+
resourceName: resourceName,
|
|
67
|
+
mode: mode,
|
|
68
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
69
|
+
}, {
|
|
70
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
71
|
+
});
|
|
72
|
+
return context.path(path).get({
|
|
73
|
+
...operationOptionsToRequestParameters(options),
|
|
74
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
export async function _getMeshUpgradeProfileDeserialize(result) {
|
|
78
|
+
const expectedStatuses = ["200"];
|
|
79
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
80
|
+
const error = createRestError(result);
|
|
81
|
+
error.details = errorResponseDeserializer(result.body);
|
|
82
|
+
throw error;
|
|
103
83
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
const path = expandUrlTemplate(
|
|
131
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles{?api%2Dversion}",
|
|
132
|
-
{
|
|
133
|
-
subscriptionId: context.subscriptionId,
|
|
134
|
-
location,
|
|
135
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
84
|
+
return meshUpgradeProfileDeserializer(result.body);
|
|
85
|
+
}
|
|
86
|
+
/** Gets available upgrades for a service mesh in a cluster. */
|
|
87
|
+
export async function getMeshUpgradeProfile(context, resourceGroupName, resourceName, mode, options = { requestOptions: {} }) {
|
|
88
|
+
const result = await _getMeshUpgradeProfileSend(context, resourceGroupName, resourceName, mode, options);
|
|
89
|
+
return _getMeshUpgradeProfileDeserialize(result);
|
|
90
|
+
}
|
|
91
|
+
export function _listMeshRevisionProfilesSend(context, location, options = { requestOptions: {} }) {
|
|
92
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles{?api%2Dversion}", {
|
|
93
|
+
subscriptionId: context.subscriptionId,
|
|
94
|
+
location: location,
|
|
95
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
96
|
+
}, {
|
|
97
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
98
|
+
});
|
|
99
|
+
return context.path(path).get({
|
|
100
|
+
...operationOptionsToRequestParameters(options),
|
|
101
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
export async function _listMeshRevisionProfilesDeserialize(result) {
|
|
105
|
+
const expectedStatuses = ["200"];
|
|
106
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
107
|
+
const error = createRestError(result);
|
|
108
|
+
error.details = errorResponseDeserializer(result.body);
|
|
109
|
+
throw error;
|
|
139
110
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles/{mode}{?api%2Dversion}",
|
|
167
|
-
{
|
|
168
|
-
subscriptionId: context.subscriptionId,
|
|
169
|
-
location,
|
|
170
|
-
mode,
|
|
171
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
111
|
+
return _meshRevisionProfileListDeserializer(result.body);
|
|
112
|
+
}
|
|
113
|
+
/** Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades */
|
|
114
|
+
export function listMeshRevisionProfiles(context, location, options = { requestOptions: {} }) {
|
|
115
|
+
return buildPagedAsyncIterator(context, () => _listMeshRevisionProfilesSend(context, location, options), _listMeshRevisionProfilesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
|
|
116
|
+
}
|
|
117
|
+
export function _getMeshRevisionProfileSend(context, location, mode, options = { requestOptions: {} }) {
|
|
118
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles/{mode}{?api%2Dversion}", {
|
|
119
|
+
subscriptionId: context.subscriptionId,
|
|
120
|
+
location: location,
|
|
121
|
+
mode: mode,
|
|
122
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
123
|
+
}, {
|
|
124
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
125
|
+
});
|
|
126
|
+
return context.path(path).get({
|
|
127
|
+
...operationOptionsToRequestParameters(options),
|
|
128
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export async function _getMeshRevisionProfileDeserialize(result) {
|
|
132
|
+
const expectedStatuses = ["200"];
|
|
133
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
134
|
+
const error = createRestError(result);
|
|
135
|
+
error.details = errorResponseDeserializer(result.body);
|
|
136
|
+
throw error;
|
|
175
137
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
138
|
+
return meshRevisionProfileDeserializer(result.body);
|
|
139
|
+
}
|
|
140
|
+
/** Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades */
|
|
141
|
+
export async function getMeshRevisionProfile(context, location, mode, options = { requestOptions: {} }) {
|
|
142
|
+
const result = await _getMeshRevisionProfileSend(context, location, mode, options);
|
|
143
|
+
return _getMeshRevisionProfileDeserialize(result);
|
|
144
|
+
}
|
|
145
|
+
export function _getUpgradeProfileSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
146
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default{?api%2Dversion}", {
|
|
147
|
+
subscriptionId: context.subscriptionId,
|
|
148
|
+
resourceGroupName: resourceGroupName,
|
|
149
|
+
resourceName: resourceName,
|
|
150
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
151
|
+
}, {
|
|
152
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
153
|
+
});
|
|
154
|
+
return context.path(path).get({
|
|
155
|
+
...operationOptionsToRequestParameters(options),
|
|
156
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
export async function _getUpgradeProfileDeserialize(result) {
|
|
160
|
+
const expectedStatuses = ["200"];
|
|
161
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
162
|
+
const error = createRestError(result);
|
|
163
|
+
error.details = errorResponseDeserializer(result.body);
|
|
164
|
+
throw error;
|
|
206
165
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
const error = createRestError(result);
|
|
217
|
-
error.details = errorResponseDeserializer(result.body);
|
|
218
|
-
throw error;
|
|
219
|
-
}
|
|
220
|
-
return managedClusterUpgradeProfileDeserializer(result.body);
|
|
221
|
-
}
|
|
222
|
-
async function getUpgradeProfile(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
223
|
-
const result = await _getUpgradeProfileSend(context, resourceGroupName, resourceName, options);
|
|
224
|
-
return _getUpgradeProfileDeserialize(result);
|
|
225
|
-
}
|
|
226
|
-
function _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, resourceName, options = {
|
|
227
|
-
requestOptions: {}
|
|
166
|
+
return managedClusterUpgradeProfileDeserializer(result.body);
|
|
167
|
+
}
|
|
168
|
+
/** Gets the upgrade profile of a managed cluster. */
|
|
169
|
+
export async function getUpgradeProfile(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
170
|
+
const result = await _getUpgradeProfileSend(context, resourceGroupName, resourceName, options);
|
|
171
|
+
return _getUpgradeProfileDeserialize(result);
|
|
172
|
+
}
|
|
173
|
+
export function _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, resourceName, options = {
|
|
174
|
+
requestOptions: {},
|
|
228
175
|
}) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
{
|
|
238
|
-
|
|
176
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints{?api%2Dversion}", {
|
|
177
|
+
subscriptionId: context.subscriptionId,
|
|
178
|
+
resourceGroupName: resourceGroupName,
|
|
179
|
+
resourceName: resourceName,
|
|
180
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
181
|
+
}, {
|
|
182
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
183
|
+
});
|
|
184
|
+
return context.path(path).get({
|
|
185
|
+
...operationOptionsToRequestParameters(options),
|
|
186
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
export async function _listOutboundNetworkDependenciesEndpointsDeserialize(result) {
|
|
190
|
+
const expectedStatuses = ["200"];
|
|
191
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
192
|
+
const error = createRestError(result);
|
|
193
|
+
error.details = errorResponseDeserializer(result.body);
|
|
194
|
+
throw error;
|
|
239
195
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
async function _listOutboundNetworkDependenciesEndpointsDeserialize(result) {
|
|
247
|
-
const expectedStatuses = ["200"];
|
|
248
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
249
|
-
const error = createRestError(result);
|
|
250
|
-
error.details = errorResponseDeserializer(result.body);
|
|
251
|
-
throw error;
|
|
252
|
-
}
|
|
253
|
-
return _outboundEnvironmentEndpointCollectionDeserializer(result.body);
|
|
254
|
-
}
|
|
255
|
-
function listOutboundNetworkDependenciesEndpoints(context, resourceGroupName, resourceName, options = {
|
|
256
|
-
requestOptions: {}
|
|
196
|
+
return _outboundEnvironmentEndpointCollectionDeserializer(result.body);
|
|
197
|
+
}
|
|
198
|
+
/** Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. */
|
|
199
|
+
export function listOutboundNetworkDependenciesEndpoints(context, resourceGroupName, resourceName, options = {
|
|
200
|
+
requestOptions: {},
|
|
257
201
|
}) {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
{
|
|
282
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
283
|
-
}
|
|
284
|
-
);
|
|
285
|
-
return context.path(path).get({
|
|
286
|
-
...operationOptionsToRequestParameters(options),
|
|
287
|
-
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
async function _getCommandResultDeserialize(result) {
|
|
291
|
-
const expectedStatuses = ["200", "202"];
|
|
292
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
293
|
-
const error = createRestError(result);
|
|
294
|
-
error.details = errorResponseDeserializer(result.body);
|
|
295
|
-
throw error;
|
|
296
|
-
}
|
|
297
|
-
return runCommandResultDeserializer(result.body);
|
|
298
|
-
}
|
|
299
|
-
async function getCommandResult(context, resourceGroupName, resourceName, commandId, options = { requestOptions: {} }) {
|
|
300
|
-
const result = await _getCommandResultSend(
|
|
301
|
-
context,
|
|
302
|
-
resourceGroupName,
|
|
303
|
-
resourceName,
|
|
304
|
-
commandId,
|
|
305
|
-
options
|
|
306
|
-
);
|
|
307
|
-
return _getCommandResultDeserialize(result);
|
|
308
|
-
}
|
|
309
|
-
function _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
|
|
310
|
-
const path = expandUrlTemplate(
|
|
311
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand{?api%2Dversion}",
|
|
312
|
-
{
|
|
313
|
-
subscriptionId: context.subscriptionId,
|
|
314
|
-
resourceGroupName,
|
|
315
|
-
resourceName,
|
|
316
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
320
|
-
}
|
|
321
|
-
);
|
|
322
|
-
return context.path(path).post({
|
|
323
|
-
...operationOptionsToRequestParameters(options),
|
|
324
|
-
contentType: "application/json",
|
|
325
|
-
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
326
|
-
body: runCommandRequestSerializer(requestPayload)
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
async function _runCommandDeserialize(result) {
|
|
330
|
-
const expectedStatuses = ["202", "200", "201"];
|
|
331
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
332
|
-
const error = createRestError(result);
|
|
333
|
-
error.details = errorResponseDeserializer(result.body);
|
|
334
|
-
throw error;
|
|
335
|
-
}
|
|
336
|
-
return runCommandResultDeserializer(result.body);
|
|
337
|
-
}
|
|
338
|
-
function runCommand(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
|
|
339
|
-
return getLongRunningPoller(context, _runCommandDeserialize, ["202", "200", "201"], {
|
|
340
|
-
updateIntervalInMs: options?.updateIntervalInMs,
|
|
341
|
-
abortSignal: options?.abortSignal,
|
|
342
|
-
getInitialResponse: () => _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options),
|
|
343
|
-
resourceLocationConfig: "location",
|
|
344
|
-
apiVersion: context.apiVersion ?? "2026-01-01"
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
function _startSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
348
|
-
const path = expandUrlTemplate(
|
|
349
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start{?api%2Dversion}",
|
|
350
|
-
{
|
|
351
|
-
subscriptionId: context.subscriptionId,
|
|
352
|
-
resourceGroupName,
|
|
353
|
-
resourceName,
|
|
354
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
358
|
-
}
|
|
359
|
-
);
|
|
360
|
-
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
361
|
-
}
|
|
362
|
-
async function _startDeserialize(result) {
|
|
363
|
-
const expectedStatuses = ["202", "204", "200", "201"];
|
|
364
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
365
|
-
const error = createRestError(result);
|
|
366
|
-
error.details = errorResponseDeserializer(result.body);
|
|
367
|
-
throw error;
|
|
368
|
-
}
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
function start(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
372
|
-
return getLongRunningPoller(context, _startDeserialize, ["202", "204", "200", "201"], {
|
|
373
|
-
updateIntervalInMs: options?.updateIntervalInMs,
|
|
374
|
-
abortSignal: options?.abortSignal,
|
|
375
|
-
getInitialResponse: () => _startSend(context, resourceGroupName, resourceName, options),
|
|
376
|
-
resourceLocationConfig: "location",
|
|
377
|
-
apiVersion: context.apiVersion ?? "2026-01-01"
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
function _stopSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
381
|
-
const path = expandUrlTemplate(
|
|
382
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop{?api%2Dversion}",
|
|
383
|
-
{
|
|
384
|
-
subscriptionId: context.subscriptionId,
|
|
385
|
-
resourceGroupName,
|
|
386
|
-
resourceName,
|
|
387
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
202
|
+
return buildPagedAsyncIterator(context, () => _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, resourceName, options), _listOutboundNetworkDependenciesEndpointsDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
|
|
203
|
+
}
|
|
204
|
+
export function _getCommandResultSend(context, resourceGroupName, resourceName, commandId, options = { requestOptions: {} }) {
|
|
205
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}{?api%2Dversion}", {
|
|
206
|
+
subscriptionId: context.subscriptionId,
|
|
207
|
+
resourceGroupName: resourceGroupName,
|
|
208
|
+
resourceName: resourceName,
|
|
209
|
+
commandId: commandId,
|
|
210
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
211
|
+
}, {
|
|
212
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
213
|
+
});
|
|
214
|
+
return context.path(path).get({
|
|
215
|
+
...operationOptionsToRequestParameters(options),
|
|
216
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
export async function _getCommandResultDeserialize(result) {
|
|
220
|
+
const expectedStatuses = ["200", "202"];
|
|
221
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
222
|
+
const error = createRestError(result);
|
|
223
|
+
error.details = errorResponseDeserializer(result.body);
|
|
224
|
+
throw error;
|
|
391
225
|
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
async function
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
226
|
+
return runCommandResultDeserializer(result.body);
|
|
227
|
+
}
|
|
228
|
+
/** Gets the results of a command which has been run on the Managed Cluster. */
|
|
229
|
+
export async function getCommandResult(context, resourceGroupName, resourceName, commandId, options = { requestOptions: {} }) {
|
|
230
|
+
const result = await _getCommandResultSend(context, resourceGroupName, resourceName, commandId, options);
|
|
231
|
+
return _getCommandResultDeserialize(result);
|
|
232
|
+
}
|
|
233
|
+
export function _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
|
|
234
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand{?api%2Dversion}", {
|
|
235
|
+
subscriptionId: context.subscriptionId,
|
|
236
|
+
resourceGroupName: resourceGroupName,
|
|
237
|
+
resourceName: resourceName,
|
|
238
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
239
|
+
}, {
|
|
240
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
241
|
+
});
|
|
242
|
+
return context.path(path).post({
|
|
243
|
+
...operationOptionsToRequestParameters(options),
|
|
244
|
+
contentType: "application/json",
|
|
245
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
246
|
+
body: runCommandRequestSerializer(requestPayload),
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
export async function _runCommandDeserialize(result) {
|
|
250
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
251
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
252
|
+
const error = createRestError(result);
|
|
253
|
+
error.details = errorResponseDeserializer(result.body);
|
|
254
|
+
throw error;
|
|
424
255
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}
|
|
437
|
-
function
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
256
|
+
return runCommandResultDeserializer(result.body);
|
|
257
|
+
}
|
|
258
|
+
/** AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). */
|
|
259
|
+
export function runCommand(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
|
|
260
|
+
return getLongRunningPoller(context, _runCommandDeserialize, ["202", "200", "201"], {
|
|
261
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
262
|
+
abortSignal: options?.abortSignal,
|
|
263
|
+
getInitialResponse: () => _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options),
|
|
264
|
+
resourceLocationConfig: "location",
|
|
265
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
export function _startSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
269
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start{?api%2Dversion}", {
|
|
270
|
+
subscriptionId: context.subscriptionId,
|
|
271
|
+
resourceGroupName: resourceGroupName,
|
|
272
|
+
resourceName: resourceName,
|
|
273
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
274
|
+
}, {
|
|
275
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
276
|
+
});
|
|
277
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
278
|
+
}
|
|
279
|
+
export async function _startDeserialize(result) {
|
|
280
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
281
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
282
|
+
const error = createRestError(result);
|
|
283
|
+
error.details = errorResponseDeserializer(result.body);
|
|
284
|
+
throw error;
|
|
448
285
|
}
|
|
449
|
-
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
"
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
/** See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. */
|
|
289
|
+
export function start(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
290
|
+
return getLongRunningPoller(context, _startDeserialize, ["202", "204", "200", "201"], {
|
|
291
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
292
|
+
abortSignal: options?.abortSignal,
|
|
293
|
+
getInitialResponse: () => _startSend(context, resourceGroupName, resourceName, options),
|
|
294
|
+
resourceLocationConfig: "location",
|
|
295
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
export function _stopSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
299
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop{?api%2Dversion}", {
|
|
300
|
+
subscriptionId: context.subscriptionId,
|
|
301
|
+
resourceGroupName: resourceGroupName,
|
|
302
|
+
resourceName: resourceName,
|
|
303
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
304
|
+
}, {
|
|
305
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
306
|
+
});
|
|
307
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
308
|
+
}
|
|
309
|
+
export async function _stopDeserialize(result) {
|
|
310
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
311
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
312
|
+
const error = createRestError(result);
|
|
313
|
+
error.details = errorResponseDeserializer(result.body);
|
|
314
|
+
throw error;
|
|
462
315
|
}
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
function
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
/** This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. */
|
|
319
|
+
export function stop(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
320
|
+
return getLongRunningPoller(context, _stopDeserialize, ["202", "204", "200", "201"], {
|
|
321
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
322
|
+
abortSignal: options?.abortSignal,
|
|
323
|
+
getInitialResponse: () => _stopSend(context, resourceGroupName, resourceName, options),
|
|
324
|
+
resourceLocationConfig: "location",
|
|
325
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
export function _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
329
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys{?api%2Dversion}", {
|
|
330
|
+
subscriptionId: context.subscriptionId,
|
|
331
|
+
resourceGroupName: resourceGroupName,
|
|
332
|
+
resourceName: resourceName,
|
|
333
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
334
|
+
}, {
|
|
335
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
336
|
+
});
|
|
337
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
338
|
+
}
|
|
339
|
+
export async function _rotateServiceAccountSigningKeysDeserialize(result) {
|
|
340
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
341
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
342
|
+
const error = createRestError(result);
|
|
343
|
+
error.details = errorResponseDeserializer(result.body);
|
|
344
|
+
throw error;
|
|
486
345
|
}
|
|
487
|
-
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
"
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
/** Rotates the service account signing keys of a managed cluster. */
|
|
349
|
+
export function rotateServiceAccountSigningKeys(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
350
|
+
return getLongRunningPoller(context, _rotateServiceAccountSigningKeysDeserialize, ["202", "204", "200", "201"], {
|
|
351
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
352
|
+
abortSignal: options?.abortSignal,
|
|
353
|
+
getInitialResponse: () => _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resourceName, options),
|
|
354
|
+
resourceLocationConfig: "location",
|
|
355
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
export function _abortLatestOperationSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
359
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/abort{?api%2Dversion}", {
|
|
360
|
+
subscriptionId: context.subscriptionId,
|
|
361
|
+
resourceGroupName: resourceGroupName,
|
|
362
|
+
resourceName: resourceName,
|
|
363
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
364
|
+
}, {
|
|
365
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
366
|
+
});
|
|
367
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
368
|
+
}
|
|
369
|
+
export async function _abortLatestOperationDeserialize(result) {
|
|
370
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
371
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
372
|
+
const error = createRestError(result);
|
|
373
|
+
error.details = errorResponseDeserializer(result.body);
|
|
374
|
+
throw error;
|
|
500
375
|
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}
|
|
513
|
-
function
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
/** Aborts the currently running operation on the managed cluster. The Managed Cluster 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. */
|
|
379
|
+
export function abortLatestOperation(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
380
|
+
return getLongRunningPoller(context, _abortLatestOperationDeserialize, ["202", "204", "200", "201"], {
|
|
381
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
382
|
+
abortSignal: options?.abortSignal,
|
|
383
|
+
getInitialResponse: () => _abortLatestOperationSend(context, resourceGroupName, resourceName, options),
|
|
384
|
+
resourceLocationConfig: "location",
|
|
385
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
export function _rotateClusterCertificatesSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
389
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates{?api%2Dversion}", {
|
|
390
|
+
subscriptionId: context.subscriptionId,
|
|
391
|
+
resourceGroupName: resourceGroupName,
|
|
392
|
+
resourceName: resourceName,
|
|
393
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
394
|
+
}, {
|
|
395
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
396
|
+
});
|
|
397
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
398
|
+
}
|
|
399
|
+
export async function _rotateClusterCertificatesDeserialize(result) {
|
|
400
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
401
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
402
|
+
const error = createRestError(result);
|
|
403
|
+
error.details = errorResponseDeserializer(result.body);
|
|
404
|
+
throw error;
|
|
524
405
|
}
|
|
525
|
-
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
"
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
/** See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. */
|
|
409
|
+
export function rotateClusterCertificates(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
410
|
+
return getLongRunningPoller(context, _rotateClusterCertificatesDeserialize, ["202", "204", "200", "201"], {
|
|
411
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
412
|
+
abortSignal: options?.abortSignal,
|
|
413
|
+
getInitialResponse: () => _rotateClusterCertificatesSend(context, resourceGroupName, resourceName, options),
|
|
414
|
+
resourceLocationConfig: "location",
|
|
415
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
export function _resetAADProfileSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
419
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile{?api%2Dversion}", {
|
|
420
|
+
subscriptionId: context.subscriptionId,
|
|
421
|
+
resourceGroupName: resourceGroupName,
|
|
422
|
+
resourceName: resourceName,
|
|
423
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
424
|
+
}, {
|
|
425
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
426
|
+
});
|
|
427
|
+
return context.path(path).post({
|
|
428
|
+
...operationOptionsToRequestParameters(options),
|
|
429
|
+
contentType: "application/json",
|
|
430
|
+
body: managedClusterAADProfileSerializer(parameters),
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
export async function _resetAADProfileDeserialize(result) {
|
|
434
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
435
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
436
|
+
const error = createRestError(result);
|
|
437
|
+
error.details = errorResponseDeserializer(result.body);
|
|
438
|
+
throw error;
|
|
538
439
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
/** **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. */
|
|
443
|
+
export function resetAADProfile(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
444
|
+
return getLongRunningPoller(context, _resetAADProfileDeserialize, ["202", "200", "201"], {
|
|
445
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
446
|
+
abortSignal: options?.abortSignal,
|
|
447
|
+
getInitialResponse: () => _resetAADProfileSend(context, resourceGroupName, resourceName, parameters, options),
|
|
448
|
+
resourceLocationConfig: "location",
|
|
449
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
export function _resetServicePrincipalProfileSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
453
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile{?api%2Dversion}", {
|
|
454
|
+
subscriptionId: context.subscriptionId,
|
|
455
|
+
resourceGroupName: resourceGroupName,
|
|
456
|
+
resourceName: resourceName,
|
|
457
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
458
|
+
}, {
|
|
459
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
460
|
+
});
|
|
461
|
+
return context.path(path).post({
|
|
462
|
+
...operationOptionsToRequestParameters(options),
|
|
463
|
+
contentType: "application/json",
|
|
464
|
+
body: managedClusterServicePrincipalProfileSerializer(parameters),
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
export async function _resetServicePrincipalProfileDeserialize(result) {
|
|
468
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
469
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
470
|
+
const error = createRestError(result);
|
|
471
|
+
error.details = errorResponseDeserializer(result.body);
|
|
472
|
+
throw error;
|
|
575
473
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
function resetServicePrincipalProfile(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
593
|
-
return getLongRunningPoller(
|
|
594
|
-
context,
|
|
595
|
-
_resetServicePrincipalProfileDeserialize,
|
|
596
|
-
["202", "200", "201"],
|
|
597
|
-
{
|
|
598
|
-
updateIntervalInMs: options?.updateIntervalInMs,
|
|
599
|
-
abortSignal: options?.abortSignal,
|
|
600
|
-
getInitialResponse: () => _resetServicePrincipalProfileSend(
|
|
601
|
-
context,
|
|
602
|
-
resourceGroupName,
|
|
603
|
-
resourceName,
|
|
604
|
-
parameters,
|
|
605
|
-
options
|
|
606
|
-
),
|
|
607
|
-
resourceLocationConfig: "location",
|
|
608
|
-
apiVersion: context.apiVersion ?? "2026-01-01"
|
|
609
|
-
}
|
|
610
|
-
);
|
|
611
|
-
}
|
|
612
|
-
function _listClusterMonitoringUserCredentialsSend(context, resourceGroupName, resourceName, options = {
|
|
613
|
-
requestOptions: {}
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
/** This action cannot be performed on a cluster that is not using a service principal */
|
|
477
|
+
export function resetServicePrincipalProfile(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
478
|
+
return getLongRunningPoller(context, _resetServicePrincipalProfileDeserialize, ["202", "200", "201"], {
|
|
479
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
480
|
+
abortSignal: options?.abortSignal,
|
|
481
|
+
getInitialResponse: () => _resetServicePrincipalProfileSend(context, resourceGroupName, resourceName, parameters, options),
|
|
482
|
+
resourceLocationConfig: "location",
|
|
483
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
export function _listClusterMonitoringUserCredentialsSend(context, resourceGroupName, resourceName, options = {
|
|
487
|
+
requestOptions: {},
|
|
614
488
|
}) {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}
|
|
624
|
-
{
|
|
625
|
-
|
|
489
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential{?api%2Dversion,server%2Dfqdn}", {
|
|
490
|
+
subscriptionId: context.subscriptionId,
|
|
491
|
+
resourceGroupName: resourceGroupName,
|
|
492
|
+
resourceName: resourceName,
|
|
493
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
494
|
+
"server%2Dfqdn": options?.serverFqdn,
|
|
495
|
+
}, {
|
|
496
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
497
|
+
});
|
|
498
|
+
return context.path(path).post({
|
|
499
|
+
...operationOptionsToRequestParameters(options),
|
|
500
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
export async function _listClusterMonitoringUserCredentialsDeserialize(result) {
|
|
504
|
+
const expectedStatuses = ["200"];
|
|
505
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
506
|
+
const error = createRestError(result);
|
|
507
|
+
error.details = errorResponseDeserializer(result.body);
|
|
508
|
+
throw error;
|
|
626
509
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
}
|
|
633
|
-
async function _listClusterMonitoringUserCredentialsDeserialize(result) {
|
|
634
|
-
const expectedStatuses = ["200"];
|
|
635
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
636
|
-
const error = createRestError(result);
|
|
637
|
-
error.details = errorResponseDeserializer(result.body);
|
|
638
|
-
throw error;
|
|
639
|
-
}
|
|
640
|
-
return credentialResultsDeserializer(result.body);
|
|
641
|
-
}
|
|
642
|
-
async function listClusterMonitoringUserCredentials(context, resourceGroupName, resourceName, options = {
|
|
643
|
-
requestOptions: {}
|
|
510
|
+
return credentialResultsDeserializer(result.body);
|
|
511
|
+
}
|
|
512
|
+
/** Lists the cluster monitoring user credentials of a managed cluster. */
|
|
513
|
+
export async function listClusterMonitoringUserCredentials(context, resourceGroupName, resourceName, options = {
|
|
514
|
+
requestOptions: {},
|
|
644
515
|
}) {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
{
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
516
|
+
const result = await _listClusterMonitoringUserCredentialsSend(context, resourceGroupName, resourceName, options);
|
|
517
|
+
return _listClusterMonitoringUserCredentialsDeserialize(result);
|
|
518
|
+
}
|
|
519
|
+
export function _listClusterUserCredentialsSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
520
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential{?api%2Dversion,server%2Dfqdn,format}", {
|
|
521
|
+
subscriptionId: context.subscriptionId,
|
|
522
|
+
resourceGroupName: resourceGroupName,
|
|
523
|
+
resourceName: resourceName,
|
|
524
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
525
|
+
"server%2Dfqdn": options?.serverFqdn,
|
|
526
|
+
format: options?.format,
|
|
527
|
+
}, {
|
|
528
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
529
|
+
});
|
|
530
|
+
return context.path(path).post({
|
|
531
|
+
...operationOptionsToRequestParameters(options),
|
|
532
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
export async function _listClusterUserCredentialsDeserialize(result) {
|
|
536
|
+
const expectedStatuses = ["200"];
|
|
537
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
538
|
+
const error = createRestError(result);
|
|
539
|
+
error.details = errorResponseDeserializer(result.body);
|
|
540
|
+
throw error;
|
|
666
541
|
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
context
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
subscriptionId: context.subscriptionId,
|
|
696
|
-
resourceGroupName,
|
|
697
|
-
resourceName,
|
|
698
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01",
|
|
699
|
-
"server%2Dfqdn": options?.serverFqdn
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
542
|
+
return credentialResultsDeserializer(result.body);
|
|
543
|
+
}
|
|
544
|
+
/** Lists the user credentials of a managed cluster. */
|
|
545
|
+
export async function listClusterUserCredentials(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
546
|
+
const result = await _listClusterUserCredentialsSend(context, resourceGroupName, resourceName, options);
|
|
547
|
+
return _listClusterUserCredentialsDeserialize(result);
|
|
548
|
+
}
|
|
549
|
+
export function _listClusterAdminCredentialsSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
550
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential{?api%2Dversion,server%2Dfqdn}", {
|
|
551
|
+
subscriptionId: context.subscriptionId,
|
|
552
|
+
resourceGroupName: resourceGroupName,
|
|
553
|
+
resourceName: resourceName,
|
|
554
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
555
|
+
"server%2Dfqdn": options?.serverFqdn,
|
|
556
|
+
}, {
|
|
557
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
558
|
+
});
|
|
559
|
+
return context.path(path).post({
|
|
560
|
+
...operationOptionsToRequestParameters(options),
|
|
561
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
export async function _listClusterAdminCredentialsDeserialize(result) {
|
|
565
|
+
const expectedStatuses = ["200"];
|
|
566
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
567
|
+
const error = createRestError(result);
|
|
568
|
+
error.details = errorResponseDeserializer(result.body);
|
|
569
|
+
throw error;
|
|
703
570
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
context
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
subscriptionId: context.subscriptionId,
|
|
733
|
-
resourceGroupName,
|
|
734
|
-
resourceName,
|
|
735
|
-
roleName,
|
|
736
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
571
|
+
return credentialResultsDeserializer(result.body);
|
|
572
|
+
}
|
|
573
|
+
/** Lists the admin credentials of a managed cluster. */
|
|
574
|
+
export async function listClusterAdminCredentials(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
575
|
+
const result = await _listClusterAdminCredentialsSend(context, resourceGroupName, resourceName, options);
|
|
576
|
+
return _listClusterAdminCredentialsDeserialize(result);
|
|
577
|
+
}
|
|
578
|
+
export function _getAccessProfileSend(context, resourceGroupName, resourceName, roleName, options = { requestOptions: {} }) {
|
|
579
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential{?api%2Dversion}", {
|
|
580
|
+
subscriptionId: context.subscriptionId,
|
|
581
|
+
resourceGroupName: resourceGroupName,
|
|
582
|
+
resourceName: resourceName,
|
|
583
|
+
roleName: roleName,
|
|
584
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
585
|
+
}, {
|
|
586
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
587
|
+
});
|
|
588
|
+
return context.path(path).post({
|
|
589
|
+
...operationOptionsToRequestParameters(options),
|
|
590
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
export async function _getAccessProfileDeserialize(result) {
|
|
594
|
+
const expectedStatuses = ["200"];
|
|
595
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
596
|
+
const error = createRestError(result);
|
|
597
|
+
error.details = errorResponseDeserializer(result.body);
|
|
598
|
+
throw error;
|
|
740
599
|
}
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
function _listSend(context, options = { requestOptions: {} }) {
|
|
767
|
-
const path = expandUrlTemplate(
|
|
768
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}",
|
|
769
|
-
{
|
|
770
|
-
subscriptionId: context.subscriptionId,
|
|
771
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
600
|
+
return managedClusterAccessProfileDeserializer(result.body);
|
|
601
|
+
}
|
|
602
|
+
/** **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . */
|
|
603
|
+
export async function getAccessProfile(context, resourceGroupName, resourceName, roleName, options = { requestOptions: {} }) {
|
|
604
|
+
const result = await _getAccessProfileSend(context, resourceGroupName, resourceName, roleName, options);
|
|
605
|
+
return _getAccessProfileDeserialize(result);
|
|
606
|
+
}
|
|
607
|
+
export function _listSend(context, options = { requestOptions: {} }) {
|
|
608
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}", {
|
|
609
|
+
subscriptionId: context.subscriptionId,
|
|
610
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
611
|
+
}, {
|
|
612
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
613
|
+
});
|
|
614
|
+
return context.path(path).get({
|
|
615
|
+
...operationOptionsToRequestParameters(options),
|
|
616
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
export async function _listDeserialize(result) {
|
|
620
|
+
const expectedStatuses = ["200"];
|
|
621
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
622
|
+
const error = createRestError(result);
|
|
623
|
+
error.details = errorResponseDeserializer(result.body);
|
|
624
|
+
throw error;
|
|
775
625
|
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
["200"]
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
const path = expandUrlTemplate(
|
|
802
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}",
|
|
803
|
-
{
|
|
804
|
-
subscriptionId: context.subscriptionId,
|
|
805
|
-
resourceGroupName,
|
|
806
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
626
|
+
return _managedClusterListResultDeserializer(result.body);
|
|
627
|
+
}
|
|
628
|
+
/** Gets a list of managed clusters in the specified subscription. */
|
|
629
|
+
export function list(context, options = { requestOptions: {} }) {
|
|
630
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
|
|
631
|
+
}
|
|
632
|
+
export function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
633
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}", {
|
|
634
|
+
subscriptionId: context.subscriptionId,
|
|
635
|
+
resourceGroupName: resourceGroupName,
|
|
636
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
637
|
+
}, {
|
|
638
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
639
|
+
});
|
|
640
|
+
return context.path(path).get({
|
|
641
|
+
...operationOptionsToRequestParameters(options),
|
|
642
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
export async function _listByResourceGroupDeserialize(result) {
|
|
646
|
+
const expectedStatuses = ["200"];
|
|
647
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
648
|
+
const error = createRestError(result);
|
|
649
|
+
error.details = errorResponseDeserializer(result.body);
|
|
650
|
+
throw error;
|
|
810
651
|
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
resourceGroupName,
|
|
841
|
-
resourceName,
|
|
842
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
843
|
-
},
|
|
844
|
-
{
|
|
845
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
652
|
+
return _managedClusterListResultDeserializer(result.body);
|
|
653
|
+
}
|
|
654
|
+
/** Lists managed clusters in the specified subscription and resource group. */
|
|
655
|
+
export function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
656
|
+
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
|
|
657
|
+
}
|
|
658
|
+
export function _$deleteSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
659
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}", {
|
|
660
|
+
subscriptionId: context.subscriptionId,
|
|
661
|
+
resourceGroupName: resourceGroupName,
|
|
662
|
+
resourceName: resourceName,
|
|
663
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
664
|
+
}, {
|
|
665
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
666
|
+
});
|
|
667
|
+
return context.path(path).delete({
|
|
668
|
+
...operationOptionsToRequestParameters(options),
|
|
669
|
+
headers: {
|
|
670
|
+
...(options?.ifMatch !== undefined ? { "if-match": options?.ifMatch } : {}),
|
|
671
|
+
...options.requestOptions?.headers,
|
|
672
|
+
},
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
export async function _$deleteDeserialize(result) {
|
|
676
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
677
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
678
|
+
const error = createRestError(result);
|
|
679
|
+
error.details = errorResponseDeserializer(result.body);
|
|
680
|
+
throw error;
|
|
846
681
|
}
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
684
|
+
/** Deletes a managed cluster. */
|
|
685
|
+
/**
|
|
686
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
687
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
688
|
+
* to the operation to override the generated name.
|
|
689
|
+
*/
|
|
690
|
+
export function $delete(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
691
|
+
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
692
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
693
|
+
abortSignal: options?.abortSignal,
|
|
694
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, resourceName, options),
|
|
695
|
+
resourceLocationConfig: "azure-async-operation",
|
|
696
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
export function _updateTagsSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
700
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}", {
|
|
701
|
+
subscriptionId: context.subscriptionId,
|
|
702
|
+
resourceGroupName: resourceGroupName,
|
|
703
|
+
resourceName: resourceName,
|
|
704
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
705
|
+
}, {
|
|
706
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
707
|
+
});
|
|
708
|
+
return context.path(path).patch({
|
|
709
|
+
...operationOptionsToRequestParameters(options),
|
|
710
|
+
contentType: "application/json",
|
|
711
|
+
headers: {
|
|
712
|
+
...(options?.ifMatch !== undefined ? { "if-match": options?.ifMatch } : {}),
|
|
713
|
+
accept: "application/json",
|
|
714
|
+
...options.requestOptions?.headers,
|
|
715
|
+
},
|
|
716
|
+
body: tagsObjectSerializer(parameters),
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
export async function _updateTagsDeserialize(result) {
|
|
720
|
+
const expectedStatuses = ["200", "202", "201"];
|
|
721
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
722
|
+
const error = createRestError(result);
|
|
723
|
+
error.details = errorResponseDeserializer(result.body);
|
|
724
|
+
throw error;
|
|
853
725
|
}
|
|
854
|
-
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
726
|
+
return managedClusterDeserializer(result.body);
|
|
727
|
+
}
|
|
728
|
+
/** Updates tags on a managed cluster. */
|
|
729
|
+
export function updateTags(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
730
|
+
return getLongRunningPoller(context, _updateTagsDeserialize, ["200", "202", "201"], {
|
|
731
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
732
|
+
abortSignal: options?.abortSignal,
|
|
733
|
+
getInitialResponse: () => _updateTagsSend(context, resourceGroupName, resourceName, parameters, options),
|
|
734
|
+
resourceLocationConfig: "azure-async-operation",
|
|
735
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
export function _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
739
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}", {
|
|
740
|
+
subscriptionId: context.subscriptionId,
|
|
741
|
+
resourceGroupName: resourceGroupName,
|
|
742
|
+
resourceName: resourceName,
|
|
743
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
744
|
+
}, {
|
|
745
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
746
|
+
});
|
|
747
|
+
return context.path(path).put({
|
|
748
|
+
...operationOptionsToRequestParameters(options),
|
|
749
|
+
contentType: "application/json",
|
|
750
|
+
headers: {
|
|
751
|
+
...(options?.ifMatch !== undefined ? { "if-match": options?.ifMatch } : {}),
|
|
752
|
+
...(options?.ifNoneMatch !== undefined ? { "if-none-match": options?.ifNoneMatch } : {}),
|
|
753
|
+
accept: "application/json",
|
|
754
|
+
...options.requestOptions?.headers,
|
|
755
|
+
},
|
|
756
|
+
body: managedClusterSerializer(parameters),
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
760
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
761
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
762
|
+
const error = createRestError(result);
|
|
763
|
+
error.details = errorResponseDeserializer(result.body);
|
|
764
|
+
throw error;
|
|
885
765
|
}
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}",
|
|
919
|
-
{
|
|
920
|
-
subscriptionId: context.subscriptionId,
|
|
921
|
-
resourceGroupName,
|
|
922
|
-
resourceName,
|
|
923
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
924
|
-
},
|
|
925
|
-
{
|
|
926
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
766
|
+
return managedClusterDeserializer(result.body);
|
|
767
|
+
}
|
|
768
|
+
/** Creates or updates a managed cluster. */
|
|
769
|
+
export function createOrUpdate(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
770
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
771
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
772
|
+
abortSignal: options?.abortSignal,
|
|
773
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options),
|
|
774
|
+
resourceLocationConfig: "azure-async-operation",
|
|
775
|
+
apiVersion: context.apiVersion ?? "2026-02-01",
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
export function _getSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
779
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}", {
|
|
780
|
+
subscriptionId: context.subscriptionId,
|
|
781
|
+
resourceGroupName: resourceGroupName,
|
|
782
|
+
resourceName: resourceName,
|
|
783
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01",
|
|
784
|
+
}, {
|
|
785
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
786
|
+
});
|
|
787
|
+
return context.path(path).get({
|
|
788
|
+
...operationOptionsToRequestParameters(options),
|
|
789
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
export async function _getDeserialize(result) {
|
|
793
|
+
const expectedStatuses = ["200"];
|
|
794
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
795
|
+
const error = createRestError(result);
|
|
796
|
+
error.details = errorResponseDeserializer(result.body);
|
|
797
|
+
throw error;
|
|
927
798
|
}
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
...options.requestOptions?.headers
|
|
937
|
-
},
|
|
938
|
-
body: managedClusterSerializer(parameters)
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
async function _createOrUpdateDeserialize(result) {
|
|
942
|
-
const expectedStatuses = ["200", "201", "202"];
|
|
943
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
944
|
-
const error = createRestError(result);
|
|
945
|
-
error.details = errorResponseDeserializer(result.body);
|
|
946
|
-
throw error;
|
|
947
|
-
}
|
|
948
|
-
return managedClusterDeserializer(result.body);
|
|
949
|
-
}
|
|
950
|
-
function createOrUpdate(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
|
|
951
|
-
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
952
|
-
updateIntervalInMs: options?.updateIntervalInMs,
|
|
953
|
-
abortSignal: options?.abortSignal,
|
|
954
|
-
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options),
|
|
955
|
-
resourceLocationConfig: "azure-async-operation",
|
|
956
|
-
apiVersion: context.apiVersion ?? "2026-01-01"
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
function _getSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
960
|
-
const path = expandUrlTemplate(
|
|
961
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}",
|
|
962
|
-
{
|
|
963
|
-
subscriptionId: context.subscriptionId,
|
|
964
|
-
resourceGroupName,
|
|
965
|
-
resourceName,
|
|
966
|
-
"api%2Dversion": context.apiVersion ?? "2026-01-01"
|
|
967
|
-
},
|
|
968
|
-
{
|
|
969
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
970
|
-
}
|
|
971
|
-
);
|
|
972
|
-
return context.path(path).get({
|
|
973
|
-
...operationOptionsToRequestParameters(options),
|
|
974
|
-
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
async function _getDeserialize(result) {
|
|
978
|
-
const expectedStatuses = ["200"];
|
|
979
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
980
|
-
const error = createRestError(result);
|
|
981
|
-
error.details = errorResponseDeserializer(result.body);
|
|
982
|
-
throw error;
|
|
983
|
-
}
|
|
984
|
-
return managedClusterDeserializer(result.body);
|
|
985
|
-
}
|
|
986
|
-
async function get(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
987
|
-
const result = await _getSend(context, resourceGroupName, resourceName, options);
|
|
988
|
-
return _getDeserialize(result);
|
|
989
|
-
}
|
|
990
|
-
export {
|
|
991
|
-
$delete,
|
|
992
|
-
_$deleteDeserialize,
|
|
993
|
-
_$deleteSend,
|
|
994
|
-
_abortLatestOperationDeserialize,
|
|
995
|
-
_abortLatestOperationSend,
|
|
996
|
-
_createOrUpdateDeserialize,
|
|
997
|
-
_createOrUpdateSend,
|
|
998
|
-
_getAccessProfileDeserialize,
|
|
999
|
-
_getAccessProfileSend,
|
|
1000
|
-
_getCommandResultDeserialize,
|
|
1001
|
-
_getCommandResultSend,
|
|
1002
|
-
_getDeserialize,
|
|
1003
|
-
_getMeshRevisionProfileDeserialize,
|
|
1004
|
-
_getMeshRevisionProfileSend,
|
|
1005
|
-
_getMeshUpgradeProfileDeserialize,
|
|
1006
|
-
_getMeshUpgradeProfileSend,
|
|
1007
|
-
_getSend,
|
|
1008
|
-
_getUpgradeProfileDeserialize,
|
|
1009
|
-
_getUpgradeProfileSend,
|
|
1010
|
-
_listByResourceGroupDeserialize,
|
|
1011
|
-
_listByResourceGroupSend,
|
|
1012
|
-
_listClusterAdminCredentialsDeserialize,
|
|
1013
|
-
_listClusterAdminCredentialsSend,
|
|
1014
|
-
_listClusterMonitoringUserCredentialsDeserialize,
|
|
1015
|
-
_listClusterMonitoringUserCredentialsSend,
|
|
1016
|
-
_listClusterUserCredentialsDeserialize,
|
|
1017
|
-
_listClusterUserCredentialsSend,
|
|
1018
|
-
_listDeserialize,
|
|
1019
|
-
_listKubernetesVersionsDeserialize,
|
|
1020
|
-
_listKubernetesVersionsSend,
|
|
1021
|
-
_listMeshRevisionProfilesDeserialize,
|
|
1022
|
-
_listMeshRevisionProfilesSend,
|
|
1023
|
-
_listMeshUpgradeProfilesDeserialize,
|
|
1024
|
-
_listMeshUpgradeProfilesSend,
|
|
1025
|
-
_listOutboundNetworkDependenciesEndpointsDeserialize,
|
|
1026
|
-
_listOutboundNetworkDependenciesEndpointsSend,
|
|
1027
|
-
_listSend,
|
|
1028
|
-
_resetAADProfileDeserialize,
|
|
1029
|
-
_resetAADProfileSend,
|
|
1030
|
-
_resetServicePrincipalProfileDeserialize,
|
|
1031
|
-
_resetServicePrincipalProfileSend,
|
|
1032
|
-
_rotateClusterCertificatesDeserialize,
|
|
1033
|
-
_rotateClusterCertificatesSend,
|
|
1034
|
-
_rotateServiceAccountSigningKeysDeserialize,
|
|
1035
|
-
_rotateServiceAccountSigningKeysSend,
|
|
1036
|
-
_runCommandDeserialize,
|
|
1037
|
-
_runCommandSend,
|
|
1038
|
-
_startDeserialize,
|
|
1039
|
-
_startSend,
|
|
1040
|
-
_stopDeserialize,
|
|
1041
|
-
_stopSend,
|
|
1042
|
-
_updateTagsDeserialize,
|
|
1043
|
-
_updateTagsSend,
|
|
1044
|
-
abortLatestOperation,
|
|
1045
|
-
createOrUpdate,
|
|
1046
|
-
get,
|
|
1047
|
-
getAccessProfile,
|
|
1048
|
-
getCommandResult,
|
|
1049
|
-
getMeshRevisionProfile,
|
|
1050
|
-
getMeshUpgradeProfile,
|
|
1051
|
-
getUpgradeProfile,
|
|
1052
|
-
list,
|
|
1053
|
-
listByResourceGroup,
|
|
1054
|
-
listClusterAdminCredentials,
|
|
1055
|
-
listClusterMonitoringUserCredentials,
|
|
1056
|
-
listClusterUserCredentials,
|
|
1057
|
-
listKubernetesVersions,
|
|
1058
|
-
listMeshRevisionProfiles,
|
|
1059
|
-
listMeshUpgradeProfiles,
|
|
1060
|
-
listOutboundNetworkDependenciesEndpoints,
|
|
1061
|
-
resetAADProfile,
|
|
1062
|
-
resetServicePrincipalProfile,
|
|
1063
|
-
rotateClusterCertificates,
|
|
1064
|
-
rotateServiceAccountSigningKeys,
|
|
1065
|
-
runCommand,
|
|
1066
|
-
start,
|
|
1067
|
-
stop,
|
|
1068
|
-
updateTags
|
|
1069
|
-
};
|
|
799
|
+
return managedClusterDeserializer(result.body);
|
|
800
|
+
}
|
|
801
|
+
/** Gets a managed cluster. */
|
|
802
|
+
export async function get(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
|
|
803
|
+
const result = await _getSend(context, resourceGroupName, resourceName, options);
|
|
804
|
+
return _getDeserialize(result);
|
|
805
|
+
}
|
|
806
|
+
//# sourceMappingURL=operations.js.map
|