Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/arm-containerservice

Package Overview
Dependencies
Maintainers
5
Versions
359
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/arm-containerservice - npm Package Compare versions

Comparing version 21.0.1-alpha.20240821.1 to 21.1.0-alpha.20240822.1

dist-esm/samples-dev/agentPoolsDeleteMachinesSample.d.ts

6

dist-esm/samples-dev/agentPoolsAbortLatestOperationSample.js

@@ -16,6 +16,6 @@ /*

/**
* This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
* This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned.
*
* @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsAbortOperation.json
* @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsAbortOperation.json
*/

@@ -22,0 +22,0 @@ function abortOperationOnAgentPool() {

@@ -19,4 +19,30 @@ /*

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_Snapshot.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsAssociate_CRG.json
*/
function associateAgentPoolWithCapacityReservationGroup() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
const resourceName = "clustername1";
const agentPoolName = "agentpool1";
const parameters = {
capacityReservationGroupID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/CapacityReservationGroups/crg1",
count: 3,
orchestratorVersion: "",
osType: "Linux",
vmSize: "Standard_DS2_v2",
};
const credential = new DefaultAzureCredential();
const client = new ContainerServiceClient(credential, subscriptionId);
const result = yield client.agentPools.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, agentPoolName, parameters);
console.log(result);
});
}
/**
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
*
* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_Snapshot.json
*/
function createAgentPoolUsingAnAgentPoolSnapshot() {

@@ -32,3 +58,3 @@ return __awaiter(this, void 0, void 0, function* () {

creationData: {
sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
},

@@ -50,5 +76,5 @@ enableFips: true,

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_CRG.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_EnableCustomCATrust.json
*/
function createAgentPoolWithCapacityReservationGroup() {
function createAgentPoolWithCustomCaTrustEnabled() {
return __awaiter(this, void 0, void 0, function* () {

@@ -61,4 +87,4 @@ const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||

const parameters = {
capacityReservationGroupID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/CapacityReservationGroups/crg1",
count: 3,
enableCustomCATrust: true,
orchestratorVersion: "",

@@ -78,3 +104,3 @@ osType: "Linux",

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_DedicatedHostGroup.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_DedicatedHostGroup.json
*/

@@ -105,3 +131,3 @@ function createAgentPoolWithDedicatedHostGroup() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_EnableEncryptionAtHost.json
*/

@@ -132,3 +158,3 @@ function createAgentPoolWithEncryptionAtHostEnabled() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_Ephemeral.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_Ephemeral.json
*/

@@ -160,3 +186,3 @@ function createAgentPoolWithEphemeralOSDisk() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_EnableFIPS.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_EnableFIPS.json
*/

@@ -187,3 +213,3 @@ function createAgentPoolWithFipsEnabledOS() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_GPUMIG.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_GPUMIG.json
*/

@@ -235,3 +261,3 @@ function createAgentPoolWithGpumig() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_WasmWasi.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_WasmWasi.json
*/

@@ -264,3 +290,3 @@ function createAgentPoolWithKrustletAndTheWasiRuntime() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_CustomNodeConfig.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_CustomNodeConfig.json
*/

@@ -311,4 +337,32 @@ function createAgentPoolWithKubeletConfigAndLinuxOSConfig() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_OSSKU.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_MessageOfTheDay.json
*/
function createAgentPoolWithMessageOfTheDay() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
const resourceName = "clustername1";
const agentPoolName = "agentpool1";
const parameters = {
count: 3,
messageOfTheDay: "Zm9vCg==",
mode: "User",
orchestratorVersion: "",
osDiskSizeGB: 64,
osType: "Linux",
vmSize: "Standard_DS2_v2",
};
const credential = new DefaultAzureCredential();
const client = new ContainerServiceClient(credential, subscriptionId);
const result = yield client.agentPools.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, agentPoolName, parameters);
console.log(result);
});
}
/**
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
*
* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_OSSKU.json
*/
function createAgentPoolWithOssku() {

@@ -359,3 +413,3 @@ return __awaiter(this, void 0, void 0, function* () {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_PPG.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_PPG.json
*/

@@ -386,3 +440,3 @@ function createAgentPoolWithPpg() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_EnableUltraSSD.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_EnableUltraSSD.json
*/

@@ -413,4 +467,74 @@ function createAgentPoolWithUltraSsdEnabled() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_WindowsOSSKU.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_TypeVirtualMachines.json
*/
function createAgentPoolWithVirtualMachinesPoolType() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
const resourceName = "clustername1";
const agentPoolName = "agentpool1";
const parameters = {
typePropertiesType: "VirtualMachines",
nodeLabels: { key1: "val1" },
nodeTaints: ["Key1=Value1:NoSchedule"],
orchestratorVersion: "1.9.6",
osType: "Linux",
tags: { name1: "val1" },
virtualMachinesProfile: {
scale: {
manual: [{ count: 5, sizes: ["Standard_D2_v2", "Standard_D2_v3"] }],
},
},
};
const credential = new DefaultAzureCredential();
const client = new ContainerServiceClient(credential, subscriptionId);
const result = yield client.agentPools.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, agentPoolName, parameters);
console.log(result);
});
}
/**
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
*
* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_TypeVirtualMachines_Autoscale.json
*/
function createAgentPoolWithVirtualMachinesPoolTypeWithAutoscalingEnabled() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
const resourceName = "clustername1";
const agentPoolName = "agentpool1";
const parameters = {
typePropertiesType: "VirtualMachines",
nodeLabels: { key1: "val1" },
nodeTaints: ["Key1=Value1:NoSchedule"],
orchestratorVersion: "1.29.0",
osType: "Linux",
tags: { name1: "val1" },
virtualMachinesProfile: {
scale: {
autoscale: [
{
maxCount: 5,
minCount: 1,
sizes: ["Standard_D2_v2", "Standard_D2_v3"],
},
],
},
},
};
const credential = new DefaultAzureCredential();
const client = new ContainerServiceClient(credential, subscriptionId);
const result = yield client.agentPools.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, agentPoolName, parameters);
console.log(result);
});
}
/**
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
*
* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_WindowsOSSKU.json
*/
function createAgentPoolWithWindowsOssku() {

@@ -440,3 +564,3 @@ return __awaiter(this, void 0, void 0, function* () {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_Spot.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_Spot.json
*/

@@ -471,3 +595,3 @@ function createSpotAgentPool() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json
*/

@@ -499,3 +623,3 @@ function createWindowsAgentPoolWithDisablingOutboundNat() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsCreate_Update.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsCreate_Update.json
*/

@@ -531,3 +655,3 @@ function createOrUpdateAgentPool() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPools_Start.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPools_Start.json
*/

@@ -552,3 +676,3 @@ function startAgentPool() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPools_Stop.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPools_Stop.json
*/

@@ -573,3 +697,3 @@ function stopAgentPool() {

* @summary Creates or updates an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPools_Update.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPools_Update.json
*/

@@ -603,4 +727,5 @@ function updateAgentPool() {

return __awaiter(this, void 0, void 0, function* () {
associateAgentPoolWithCapacityReservationGroup();
createAgentPoolUsingAnAgentPoolSnapshot();
createAgentPoolWithCapacityReservationGroup();
createAgentPoolWithCustomCaTrustEnabled();
createAgentPoolWithDedicatedHostGroup();

@@ -613,5 +738,8 @@ createAgentPoolWithEncryptionAtHostEnabled();

createAgentPoolWithKubeletConfigAndLinuxOSConfig();
createAgentPoolWithMessageOfTheDay();
createAgentPoolWithOssku();
createAgentPoolWithPpg();
createAgentPoolWithUltraSsdEnabled();
createAgentPoolWithVirtualMachinesPoolType();
createAgentPoolWithVirtualMachinesPoolTypeWithAutoscalingEnabled();
createAgentPoolWithWindowsOssku();

@@ -618,0 +746,0 @@ createSpotAgentPool();

@@ -19,3 +19,3 @@ /*

* @summary Deletes an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsDelete.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsDelete.json
*/

@@ -35,5 +35,25 @@ function deleteAgentPool() {

}
/**
* This sample demonstrates how to Deletes an agent pool in the specified managed cluster.
*
* @summary Deletes an agent pool in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json
*/
function deleteAgentPoolByIgnoringPodDisruptionBudget() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
const resourceName = "clustername1";
const agentPoolName = "agentpool1";
const credential = new DefaultAzureCredential();
const client = new ContainerServiceClient(credential, subscriptionId);
const result = yield client.agentPools.beginDeleteAndWait(resourceGroupName, resourceName, agentPoolName);
console.log(result);
});
}
function main() {
return __awaiter(this, void 0, void 0, function* () {
deleteAgentPool();
deleteAgentPoolByIgnoringPodDisruptionBudget();
});

@@ -40,0 +60,0 @@ }

@@ -19,3 +19,3 @@ /*

* @summary See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsGetAgentPoolAvailableVersions.json
*/

@@ -22,0 +22,0 @@ function getAvailableVersionsForAgentPool() {

@@ -19,3 +19,3 @@ /*

* @summary Gets the specified managed cluster agent pool.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsGet.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsGet.json
*/

@@ -22,0 +22,0 @@ function getAgentPool() {

@@ -19,3 +19,3 @@ /*

* @summary Gets the upgrade profile for an agent pool.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsGetUpgradeProfile.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsGetUpgradeProfile.json
*/

@@ -22,0 +22,0 @@ function getUpgradeProfileForAgentPool() {

@@ -19,3 +19,3 @@ /*

* @summary Gets a list of agent pools in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsList.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsList.json
*/

@@ -22,0 +22,0 @@ function listAgentPoolsByManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/AgentPoolsUpgradeNodeImageVersion.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/AgentPoolsUpgradeNodeImageVersion.json
*/

@@ -22,0 +22,0 @@ function upgradeAgentPoolNodeImageVersion() {

@@ -19,3 +19,3 @@ /*

* @summary Creates or updates a maintenance configuration in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/MaintenanceConfigurationsCreate_Update.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/MaintenanceConfigurationsCreate_Update.json
*/

@@ -48,3 +48,3 @@ function createOrUpdateMaintenanceConfiguration() {

* @summary Creates or updates a maintenance configuration in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json
*/

@@ -51,0 +51,0 @@ function createOrUpdateMaintenanceConfigurationWithMaintenanceWindow() {

@@ -19,3 +19,3 @@ /*

* @summary Deletes a maintenance configuration.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/MaintenanceConfigurationsDelete.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/MaintenanceConfigurationsDelete.json
*/

@@ -39,3 +39,3 @@ function deleteMaintenanceConfiguration() {

* @summary Deletes a maintenance configuration.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json
*/

@@ -42,0 +42,0 @@ function deleteMaintenanceConfigurationForNodeOSUpgrade() {

@@ -19,3 +19,3 @@ /*

* @summary Gets the specified maintenance configuration of a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/MaintenanceConfigurationsGet.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/MaintenanceConfigurationsGet.json
*/

@@ -39,3 +39,3 @@ function getMaintenanceConfiguration() {

* @summary Gets the specified maintenance configuration of a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json
*/

@@ -42,0 +42,0 @@ function getMaintenanceConfigurationConfiguredWithMaintenanceWindow() {

@@ -19,3 +19,3 @@ /*

* @summary Gets a list of maintenance configurations in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/MaintenanceConfigurationsList.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/MaintenanceConfigurationsList.json
*/

@@ -54,3 +54,3 @@ function listMaintenanceConfigurationsByManagedCluster() {

* @summary Gets a list of maintenance configurations in the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/MaintenanceConfigurationsList_MaintenanceWindow.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/MaintenanceConfigurationsList_MaintenanceWindow.json
*/

@@ -57,0 +57,0 @@ function listMaintenanceConfigurationsConfiguredWithMaintenanceWindowByManagedCluster() {

@@ -16,6 +16,6 @@ /*

/**
* This sample demonstrates how to 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.
* This sample demonstrates how to 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, an error is returned.
*
* @summary 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.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersAbortOperation.json
* @summary 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, an error is returned.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersAbortOperation.json
*/

@@ -22,0 +22,0 @@ function abortOperationOnManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Deletes a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersDelete.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersDelete.json
*/

@@ -22,0 +22,0 @@ function deleteManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary **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) .
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersGetAccessProfile.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersGetAccessProfile.json
*/

@@ -22,0 +22,0 @@ function getManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Gets the results of a command which has been run on the Managed Cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/RunCommandResultFailed.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/RunCommandResultFailed.json
*/

@@ -39,3 +39,3 @@ function commandFailedResult() {

* @summary Gets the results of a command which has been run on the Managed Cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/RunCommandResultSucceed.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/RunCommandResultSucceed.json
*/

@@ -42,0 +42,0 @@ function commandSucceedResult() {

@@ -19,3 +19,3 @@ /*

* @summary Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersGet_MeshRevisionProfile.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersGet_MeshRevisionProfile.json
*/

@@ -22,0 +22,0 @@ function getAMeshRevisionProfileForAMeshMode() {

@@ -19,3 +19,3 @@ /*

* @summary Gets available upgrades for a service mesh in a cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersGet_MeshUpgradeProfile.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersGet_MeshUpgradeProfile.json
*/

@@ -22,0 +22,0 @@ function getsVersionCompatibilityAndUpgradeProfileForAServiceMeshInACluster() {

@@ -19,3 +19,3 @@ /*

* @summary Gets a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersGet.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersGet.json
*/

@@ -22,0 +22,0 @@ function getManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Gets the upgrade profile of a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersGetUpgradeProfile.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersGetUpgradeProfile.json
*/

@@ -22,0 +22,0 @@ function getUpgradeProfileForManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Lists managed clusters in the specified subscription and resource group.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersListByResourceGroup.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersListByResourceGroup.json
*/

@@ -22,0 +22,0 @@ function getManagedClustersByResourceGroup() {

@@ -19,3 +19,3 @@ /*

* @summary Lists the admin credentials of a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersListClusterAdminCredentials.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersListClusterCredentialResult.json
*/

@@ -22,0 +22,0 @@ function getManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Lists the cluster monitoring user credentials of a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersListClusterCredentialResult.json
*/

@@ -22,0 +22,0 @@ function getManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Lists the user credentials of a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersListClusterUserCredentials.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersListClusterCredentialResult.json
*/

@@ -22,0 +22,0 @@ function getManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/KubernetesVersions_List.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/KubernetesVersions_List.json
*/

@@ -22,0 +22,0 @@ function listKubernetesVersions() {

@@ -19,3 +19,3 @@ /*

* @summary Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersList_MeshRevisionProfiles.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersList_MeshRevisionProfiles.json
*/

@@ -22,0 +22,0 @@ function listMeshRevisionProfilesInALocation() {

@@ -19,3 +19,3 @@ /*

* @summary Lists available upgrades for all service meshes in a specific cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersList_MeshUpgradeProfiles.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersList_MeshUpgradeProfiles.json
*/

@@ -22,0 +22,0 @@ function listsVersionCompatibilityAndUpgradeProfileForAllServiceMeshesInACluster() {

@@ -19,3 +19,3 @@ /*

* @summary 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.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/OutboundNetworkDependenciesEndpointsList.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/OutboundNetworkDependenciesEndpointsList.json
*/

@@ -22,0 +22,0 @@ function listOutboundNetworkDependenciesEndpointsByManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Gets a list of managed clusters in the specified subscription.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersList.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersList.json
*/

@@ -22,0 +22,0 @@ function listManagedClusters() {

@@ -19,3 +19,3 @@ /*

* @summary **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.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersResetAADProfile.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersResetAADProfile.json
*/

@@ -22,0 +22,0 @@ function resetAadProfile() {

@@ -19,3 +19,3 @@ /*

* @summary This action cannot be performed on a cluster that is not using a service principal
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersResetServicePrincipalProfile.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersResetServicePrincipalProfile.json
*/

@@ -22,0 +22,0 @@ function resetServicePrincipalProfile() {

@@ -19,3 +19,3 @@ /*

* @summary See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersRotateClusterCertificates.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersRotateClusterCertificates.json
*/

@@ -22,0 +22,0 @@ function rotateClusterCertificates() {

@@ -19,3 +19,3 @@ /*

* @summary Rotates the service account signing keys of a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersRotateServiceAccountSigningKeys.json
*/

@@ -22,0 +22,0 @@ function rotateClusterServiceAccountSigningKeys() {

@@ -19,3 +19,3 @@ /*

* @summary 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).
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/RunCommandRequest.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/RunCommandRequest.json
*/

@@ -22,0 +22,0 @@ function submitNewCommand() {

@@ -19,3 +19,3 @@ /*

* @summary See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersStart.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersStart.json
*/

@@ -22,0 +22,0 @@ function startManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary 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.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersStop.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersStop.json
*/

@@ -22,0 +22,0 @@ function stopManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Updates tags on a managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ManagedClustersUpdateTags.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ManagedClustersUpdateTags.json
*/

@@ -22,0 +22,0 @@ function updateManagedClusterTags() {

@@ -19,3 +19,3 @@ /*

* @summary Gets a list of operations.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/Operation_List.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/Operation_List.json
*/

@@ -22,0 +22,0 @@ function listAvailableOperationsForTheContainerServiceResourceProvider() {

@@ -19,3 +19,3 @@ /*

* @summary Deletes a private endpoint connection.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/PrivateEndpointConnectionsDelete.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/PrivateEndpointConnectionsDelete.json
*/

@@ -22,0 +22,0 @@ function deletePrivateEndpointConnection() {

@@ -19,3 +19,3 @@ /*

* @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/PrivateEndpointConnectionsGet.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/PrivateEndpointConnectionsGet.json
*/

@@ -22,0 +22,0 @@ function getPrivateEndpointConnection() {

@@ -19,3 +19,3 @@ /*

* @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/PrivateEndpointConnectionsList.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/PrivateEndpointConnectionsList.json
*/

@@ -22,0 +22,0 @@ function listPrivateEndpointConnectionsByManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Updates a private endpoint connection.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/PrivateEndpointConnectionsUpdate.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/PrivateEndpointConnectionsUpdate.json
*/

@@ -22,0 +22,0 @@ function updatePrivateEndpointConnection() {

@@ -19,3 +19,3 @@ /*

* @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/PrivateLinkResourcesList.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/PrivateLinkResourcesList.json
*/

@@ -22,0 +22,0 @@ function listPrivateLinkResourcesByManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Gets the private link service ID for the specified managed cluster.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ResolvePrivateLinkServiceId.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/ResolvePrivateLinkServiceId.json
*/

@@ -22,0 +22,0 @@ function resolveThePrivateLinkServiceIdForManagedCluster() {

@@ -19,3 +19,3 @@ /*

* @summary Creates or updates a snapshot.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/SnapshotsCreate.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/SnapshotsCreate.json
*/

@@ -22,0 +22,0 @@ function createOrUpdateSnapshot() {

@@ -19,3 +19,3 @@ /*

* @summary Deletes a snapshot.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/SnapshotsDelete.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/SnapshotsDelete.json
*/

@@ -22,0 +22,0 @@ function deleteSnapshot() {

@@ -19,3 +19,3 @@ /*

* @summary Gets a snapshot.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/SnapshotsGet.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/SnapshotsGet.json
*/

@@ -22,0 +22,0 @@ function getSnapshot() {

@@ -19,3 +19,3 @@ /*

* @summary Lists snapshots in the specified subscription and resource group.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/SnapshotsListByResourceGroup.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/SnapshotsListByResourceGroup.json
*/

@@ -22,0 +22,0 @@ function listSnapshotsByResourceGroup() {

@@ -19,3 +19,3 @@ /*

* @summary Gets a list of snapshots in the specified subscription.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/SnapshotsList.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/SnapshotsList.json
*/

@@ -22,0 +22,0 @@ function listSnapshots() {

@@ -19,3 +19,3 @@ /*

* @summary Updates tags on a snapshot.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/SnapshotsUpdateTags.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/SnapshotsUpdateTags.json
*/

@@ -22,0 +22,0 @@ function updateSnapshotTags() {

@@ -19,3 +19,3 @@ /*

* @summary Create or update a trusted access role binding
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/TrustedAccessRoleBindings_CreateOrUpdate.json
*/

@@ -22,0 +22,0 @@ function createOrUpdateATrustedAccessRoleBinding() {

@@ -19,3 +19,3 @@ /*

* @summary Delete a trusted access role binding.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/TrustedAccessRoleBindings_Delete.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/TrustedAccessRoleBindings_Delete.json
*/

@@ -22,0 +22,0 @@ function deleteATrustedAccessRoleBinding() {

@@ -19,3 +19,3 @@ /*

* @summary Get a trusted access role binding.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/TrustedAccessRoleBindings_Get.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/TrustedAccessRoleBindings_Get.json
*/

@@ -22,0 +22,0 @@ function getATrustedAccessRoleBinding() {

@@ -19,3 +19,3 @@ /*

* @summary List trusted access role bindings.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/TrustedAccessRoleBindings_List.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/TrustedAccessRoleBindings_List.json
*/

@@ -22,0 +22,0 @@ function listTrustedAccessRoleBindings() {

@@ -19,3 +19,3 @@ /*

* @summary List supported trusted access roles.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/TrustedAccessRoles_List.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-05-02-preview/examples/TrustedAccessRoles_List.json
*/

@@ -22,0 +22,0 @@ function listTrustedAccessRoles() {

import * as coreClient from "@azure/core-client";
import * as coreAuth from "@azure/core-auth";
import { Operations, ManagedClusters, MaintenanceConfigurations, AgentPools, PrivateEndpointConnections, PrivateLinkResources, ResolvePrivateLinkServiceId, Snapshots, TrustedAccessRoleBindings, TrustedAccessRoles } from "./operationsInterfaces";
import { Operations, ManagedClusters, MaintenanceConfigurations, AgentPools, Machines, PrivateEndpointConnections, PrivateLinkResources, ResolvePrivateLinkServiceId, OperationStatusResultOperations, Snapshots, ManagedClusterSnapshots, TrustedAccessRoles, TrustedAccessRoleBindings, LoadBalancers } from "./operationsInterfaces";
import { ContainerServiceClientOptionalParams } from "./models";

@@ -22,9 +22,13 @@ export declare class ContainerServiceClient extends coreClient.ServiceClient {

agentPools: AgentPools;
machines: Machines;
privateEndpointConnections: PrivateEndpointConnections;
privateLinkResources: PrivateLinkResources;
resolvePrivateLinkServiceId: ResolvePrivateLinkServiceId;
operationStatusResultOperations: OperationStatusResultOperations;
snapshots: Snapshots;
managedClusterSnapshots: ManagedClusterSnapshots;
trustedAccessRoles: TrustedAccessRoles;
trustedAccessRoleBindings: TrustedAccessRoleBindings;
trustedAccessRoles: TrustedAccessRoles;
loadBalancers: LoadBalancers;
}
//# sourceMappingURL=containerServiceClient.d.ts.map

@@ -11,3 +11,3 @@ /*

import * as coreRestPipeline from "@azure/core-rest-pipeline";
import { OperationsImpl, ManagedClustersImpl, MaintenanceConfigurationsImpl, AgentPoolsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ResolvePrivateLinkServiceIdImpl, SnapshotsImpl, TrustedAccessRoleBindingsImpl, TrustedAccessRolesImpl, } from "./operations";
import { OperationsImpl, ManagedClustersImpl, MaintenanceConfigurationsImpl, AgentPoolsImpl, MachinesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ResolvePrivateLinkServiceIdImpl, OperationStatusResultOperationsImpl, SnapshotsImpl, ManagedClusterSnapshotsImpl, TrustedAccessRolesImpl, TrustedAccessRoleBindingsImpl, LoadBalancersImpl, } from "./operations";
export class ContainerServiceClient extends coreClient.ServiceClient {

@@ -36,3 +36,3 @@ /**

};
const packageDetails = `azsdk-js-arm-containerservice/21.0.1`;
const packageDetails = `azsdk-js-arm-containerservice/21.1.0-beta.1`;
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix

@@ -70,3 +70,3 @@ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2024-05-01";
this.apiVersion = options.apiVersion || "2024-05-02-preview";
this.operations = new OperationsImpl(this);

@@ -76,8 +76,13 @@ this.managedClusters = new ManagedClustersImpl(this);

this.agentPools = new AgentPoolsImpl(this);
this.machines = new MachinesImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
this.resolvePrivateLinkServiceId = new ResolvePrivateLinkServiceIdImpl(this);
this.operationStatusResultOperations =
new OperationStatusResultOperationsImpl(this);
this.snapshots = new SnapshotsImpl(this);
this.managedClusterSnapshots = new ManagedClusterSnapshotsImpl(this);
this.trustedAccessRoles = new TrustedAccessRolesImpl(this);
this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this);
this.trustedAccessRoles = new TrustedAccessRolesImpl(this);
this.loadBalancers = new LoadBalancersImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);

@@ -84,0 +89,0 @@ }

@@ -21,2 +21,4 @@ /*

KnownManagedClusterSKUName["Base"] = "Base";
/** Automatic clusters are optimized to run most production workloads with configuration that follows AKS best practices and recommendations for cluster and workload setup, scalability, and security. For more details about Automatic clusters see aka.ms\/aks\/automatic. */
KnownManagedClusterSKUName["Automatic"] = "Automatic";
})(KnownManagedClusterSKUName || (KnownManagedClusterSKUName = {}));

@@ -70,3 +72,13 @@ /** Known values of {@link ManagedClusterSKUTier} that the service accepts. */

KnownWorkloadRuntime["WasmWasi"] = "WasmWasi";
/** Nodes can use (Kata + Cloud Hypervisor + Hyper-V) to enable Nested VM-based pods (Preview). Due to the use Hyper-V, AKS node OS itself is a nested VM (the root OS) of Hyper-V. Thus it can only be used with VM series that support Nested Virtualization such as Dv3 series. */
KnownWorkloadRuntime["KataMshvVmIsolation"] = "KataMshvVmIsolation";
})(KnownWorkloadRuntime || (KnownWorkloadRuntime = {}));
/** Known values of {@link PodIPAllocationMode} that the service accepts. */
export var KnownPodIPAllocationMode;
(function (KnownPodIPAllocationMode) {
/** Each pod gets a single IP address assigned. This is better for maximizing a small to medium subnet of size \/16 or smaller. The Azure CNI cluster with dynamic IP allocation defaults to this mode if the customer does not explicitly specify a podIPAllocationMode */
KnownPodIPAllocationMode["DynamicIndividual"] = "DynamicIndividual";
/** Each node is statically allocated CIDR block(s) of size \/28 = 16 IPs per block to satisfy the maxPods per node. Number of CIDR blocks >= (maxPods \/ 16). The block, rather than a single IP, counts against the Azure Vnet Private IP limit of 65K. Therefore block mode is suitable for running larger workloads with more than the current limit of 65K pods in a cluster. This mode is better suited to scale with larger subnets of \/15 or bigger */
KnownPodIPAllocationMode["StaticBlock"] = "StaticBlock";
})(KnownPodIPAllocationMode || (KnownPodIPAllocationMode = {}));
/** Known values of {@link OSType} that the service accepts. */

@@ -85,2 +97,4 @@ export var KnownOSType;

KnownOssku["Ubuntu"] = "Ubuntu";
/** Deprecated OSSKU. Microsoft recommends that new deployments choose 'AzureLinux' instead. */
KnownOssku["Mariner"] = "Mariner";
/** Use AzureLinux as the OS for node images. Azure Linux is a container-optimized Linux distro built by Microsoft, visit https:\//aka.ms\/azurelinux for more information. */

@@ -94,2 +108,4 @@ KnownOssku["AzureLinux"] = "AzureLinux";

KnownOssku["Windows2022"] = "Windows2022";
/** Use Windows Annual Channel version as the OS for node images. Unsupported for system node pools. Details about supported container images and kubernetes versions under different AKS Annual Channel versions could be seen in https:\//aka.ms\/aks\/windows-annual-channel-details. */
KnownOssku["WindowsAnnual"] = "WindowsAnnual";
})(KnownOssku || (KnownOssku = {}));

@@ -111,2 +127,4 @@ /** Known values of {@link ScaleDownMode} that the service accepts. */

KnownAgentPoolType["AvailabilitySet"] = "AvailabilitySet";
/** Create an Agent Pool backed by a Single Instance VM orchestration mode. */
KnownAgentPoolType["VirtualMachines"] = "VirtualMachines";
})(KnownAgentPoolType || (KnownAgentPoolType = {}));

@@ -120,3 +138,13 @@ /** Known values of {@link AgentPoolMode} that the service accepts. */

KnownAgentPoolMode["User"] = "User";
/** Gateway agent pools are dedicated to providing static egress IPs to pods. For more details, see https:\//aka.ms\/aks\/static-egress-gateway. */
KnownAgentPoolMode["Gateway"] = "Gateway";
})(KnownAgentPoolMode || (KnownAgentPoolMode = {}));
/** Known values of {@link UndrainableNodeBehavior} that the service accepts. */
export var KnownUndrainableNodeBehavior;
(function (KnownUndrainableNodeBehavior) {
/** AKS will cordon the blocked nodes and replace them with surge nodes during upgrade. The blocked nodes will be cordoned and replaced by surge nodes. The blocked nodes will have label 'kubernetes.azure.com\/upgrade-status:Quarantined'. A surge node will be retained for each blocked node. A best-effort attempt will be made to delete all other surge nodes. If there are enough surge nodes to replace blocked nodes, then the upgrade operation and the managed cluster will be in failed state. Otherwise, the upgrade operation and the managed cluster will be in canceled state. */
KnownUndrainableNodeBehavior["Cordon"] = "Cordon";
/** AKS will mark the blocked nodes schedulable, but the blocked nodes are not upgraded. A best-effort attempt will be made to delete all surge nodes. The upgrade operation and the managed cluster will be in failed state if there are any blocked nodes. */
KnownUndrainableNodeBehavior["Schedule"] = "Schedule";
})(KnownUndrainableNodeBehavior || (KnownUndrainableNodeBehavior = {}));
/** Known values of {@link ScaleSetPriority} that the service accepts. */

@@ -160,2 +188,10 @@ export var KnownScaleSetPriority;

})(KnownProtocol || (KnownProtocol = {}));
/** Known values of {@link AgentPoolSSHAccess} that the service accepts. */
export var KnownAgentPoolSSHAccess;
(function (KnownAgentPoolSSHAccess) {
/** Can SSH onto the node as a local user using private key. */
KnownAgentPoolSSHAccess["LocalUser"] = "LocalUser";
/** SSH service will be turned off on the node. */
KnownAgentPoolSSHAccess["Disabled"] = "Disabled";
})(KnownAgentPoolSSHAccess || (KnownAgentPoolSSHAccess = {}));
/** Known values of {@link LicenseType} that the service accepts. */

@@ -185,2 +221,10 @@ export var KnownLicenseType;

})(KnownManagedClusterPodIdentityProvisioningState || (KnownManagedClusterPodIdentityProvisioningState = {}));
/** Known values of {@link RestrictionLevel} that the service accepts. */
export var KnownRestrictionLevel;
(function (KnownRestrictionLevel) {
/** All RBAC permissions are allowed on the managed node resource group */
KnownRestrictionLevel["Unrestricted"] = "Unrestricted";
/** Only *\/read RBAC permissions allowed on the managed node resource group */
KnownRestrictionLevel["ReadOnly"] = "ReadOnly";
})(KnownRestrictionLevel || (KnownRestrictionLevel = {}));
/** Known values of {@link NetworkPlugin} that the service accepts. */

@@ -193,3 +237,3 @@ export var KnownNetworkPlugin;

KnownNetworkPlugin["Kubenet"] = "kubenet";
/** No CNI plugin is pre-installed. See [BYO CNI](https:\//docs.microsoft.com\/en-us\/azure\/aks\/use-byo-cni) for more information. */
/** Do not use a network plugin. A custom CNI will need to be installed after cluster creation for networking functionality. */
KnownNetworkPlugin["None"] = "none";

@@ -200,3 +244,3 @@ })(KnownNetworkPlugin || (KnownNetworkPlugin = {}));

(function (KnownNetworkPluginMode) {
/** Used with networkPlugin=azure, pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet's method of route tables. For more information visit https:\//aka.ms\/aks\/azure-cni-overlay. */
/** Pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet reference plugins host-local and bridge. */
KnownNetworkPluginMode["Overlay"] = "overlay";

@@ -243,2 +287,4 @@ })(KnownNetworkPluginMode || (KnownNetworkPluginMode = {}));

KnownOutboundType["UserAssignedNATGateway"] = "userAssignedNATGateway";
/** The AKS cluster is not set with any outbound-type. All AKS nodes follows Azure VM default outbound behavior. Please refer to https:\//azure.microsoft.com\/en-us\/updates\/default-outbound-access-for-vms-in-azure-will-be-retired-transition-to-a-new-method-of-internet-access\/ */
KnownOutboundType["None"] = "none";
})(KnownOutboundType || (KnownOutboundType = {}));

@@ -261,10 +307,42 @@ /** Known values of {@link LoadBalancerSku} that the service accepts. */

})(KnownBackendPoolType || (KnownBackendPoolType = {}));
/** Known values of {@link ClusterServiceLoadBalancerHealthProbeMode} that the service accepts. */
export var KnownClusterServiceLoadBalancerHealthProbeMode;
(function (KnownClusterServiceLoadBalancerHealthProbeMode) {
/** Each External Traffic Policy Cluster service will have its own health probe targeting service nodePort. */
KnownClusterServiceLoadBalancerHealthProbeMode["ServiceNodePort"] = "ServiceNodePort";
/** All External Traffic Policy Cluster services in a Standard Load Balancer will have a dedicated health probe targeting the backend nodes' kube-proxy health check port 10256. */
KnownClusterServiceLoadBalancerHealthProbeMode["Shared"] = "Shared";
})(KnownClusterServiceLoadBalancerHealthProbeMode || (KnownClusterServiceLoadBalancerHealthProbeMode = {}));
/** Known values of {@link IpFamily} that the service accepts. */
export var KnownIpFamily;
(function (KnownIpFamily) {
/** IPv4 */
/** IPv4 family */
KnownIpFamily["IPv4"] = "IPv4";
/** IPv6 */
/** IPv6 family */
KnownIpFamily["IPv6"] = "IPv6";
})(KnownIpFamily || (KnownIpFamily = {}));
/** Known values of {@link PodLinkLocalAccess} that the service accepts. */
export var KnownPodLinkLocalAccess;
(function (KnownPodLinkLocalAccess) {
/** Pods with hostNetwork=false can access Azure Instance Metadata Service (IMDS) without restriction. */
KnownPodLinkLocalAccess["Imds"] = "IMDS";
/** Pods with hostNetwork=false cannot access Azure Instance Metadata Service (IMDS). */
KnownPodLinkLocalAccess["None"] = "None";
})(KnownPodLinkLocalAccess || (KnownPodLinkLocalAccess = {}));
/** Known values of {@link Mode} that the service accepts. */
export var KnownMode;
(function (KnownMode) {
/** IPTables proxy mode */
KnownMode["Iptables"] = "IPTABLES";
/** IPVS proxy mode. Must be using Kubernetes version >= 1.22. */
KnownMode["Ipvs"] = "IPVS";
})(KnownMode || (KnownMode = {}));
/** Known values of {@link IpvsScheduler} that the service accepts. */
export var KnownIpvsScheduler;
(function (KnownIpvsScheduler) {
/** Round Robin */
KnownIpvsScheduler["RoundRobin"] = "RoundRobin";
/** Least Connection */
KnownIpvsScheduler["LeastConnection"] = "LeastConnection";
})(KnownIpvsScheduler || (KnownIpvsScheduler = {}));
/** Known values of {@link UpgradeChannel} that the service accepts. */

@@ -289,8 +367,8 @@ export var KnownUpgradeChannel;

KnownNodeOSUpgradeChannel["None"] = "None";
/** OS updates will be applied automatically through the OS built-in patching infrastructure. Newly scaled in machines will be unpatched initially and will be patched at some point by the OS's infrastructure. Behavior of this option depends on the OS in question. Ubuntu and Mariner apply security patches through unattended upgrade roughly once a day around 06:00 UTC. Windows does not apply security patches automatically and so for them this option is equivalent to None till further notice */
/** OS updates will be applied automatically through the OS built-in patching infrastructure. Newly scaled in machines will be unpatched initially, and will be patched at some later time by the OS's infrastructure. Behavior of this option depends on the OS in question. Ubuntu and Mariner apply security patches through unattended upgrade roughly once a day around 06:00 UTC. Windows does not apply security patches automatically and so for them this option is equivalent to None till further notice */
KnownNodeOSUpgradeChannel["Unmanaged"] = "Unmanaged";
/** AKS downloads and updates the nodes with tested security updates. These updates honor the maintenance window settings and produce a new VHD that is used on new nodes. On some occasions it's not possible to apply the updates in place, in such cases the existing nodes will also be re-imaged to the newly produced VHD in order to apply the changes. This option incurs an extra cost of hosting the new Security Patch VHDs in your resource group for just in time consumption. */
KnownNodeOSUpgradeChannel["SecurityPatch"] = "SecurityPatch";
/** AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images. */
KnownNodeOSUpgradeChannel["NodeImage"] = "NodeImage";
/** AKS downloads and updates the nodes with tested security updates. These updates honor the maintenance window settings and produce a new VHD that is used on new nodes. On some occasions it's not possible to apply the updates in place, in such cases the existing nodes will also be re-imaged to the newly produced VHD in order to apply the changes. This option incurs an extra cost of hosting the new Security Patch VHDs in your resource group for just in time consumption. */
KnownNodeOSUpgradeChannel["SecurityPatch"] = "SecurityPatch";
})(KnownNodeOSUpgradeChannel || (KnownNodeOSUpgradeChannel = {}));

@@ -320,7 +398,27 @@ /** Known values of {@link Expander} that the service accepts. */

(function (KnownPublicNetworkAccess) {
/** Enabled */
/** Inbound\/Outbound to the managedCluster is allowed. */
KnownPublicNetworkAccess["Enabled"] = "Enabled";
/** Disabled */
/** Inbound traffic to managedCluster is disabled, traffic from managedCluster is allowed. */
KnownPublicNetworkAccess["Disabled"] = "Disabled";
/** Inbound\/Outbound traffic is managed by Microsoft.Network\/NetworkSecurityPerimeters. */
KnownPublicNetworkAccess["SecuredByPerimeter"] = "SecuredByPerimeter";
})(KnownPublicNetworkAccess || (KnownPublicNetworkAccess = {}));
/** Known values of {@link AddonAutoscaling} that the service accepts. */
export var KnownAddonAutoscaling;
(function (KnownAddonAutoscaling) {
/** Feature to autoscale AKS-managed add-ons is enabled. The default VPA update mode is Initial mode. */
KnownAddonAutoscaling["Enabled"] = "Enabled";
/** Feature to autoscale AKS-managed add-ons is disabled. */
KnownAddonAutoscaling["Disabled"] = "Disabled";
})(KnownAddonAutoscaling || (KnownAddonAutoscaling = {}));
/** Known values of {@link Level} that the service accepts. */
export var KnownLevel;
(function (KnownLevel) {
/** Off */
KnownLevel["Off"] = "Off";
/** Warning */
KnownLevel["Warning"] = "Warning";
/** Enforcement */
KnownLevel["Enforcement"] = "Enforcement";
})(KnownLevel || (KnownLevel = {}));
/** Known values of {@link ServiceMeshMode} that the service accepts. */

@@ -342,2 +440,18 @@ export var KnownServiceMeshMode;

})(KnownIstioIngressGatewayMode || (KnownIstioIngressGatewayMode = {}));
/** Known values of {@link NodeProvisioningMode} that the service accepts. */
export var KnownNodeProvisioningMode;
(function (KnownNodeProvisioningMode) {
/** Nodes are provisioned manually by the user */
KnownNodeProvisioningMode["Manual"] = "Manual";
/** Nodes are provisioned automatically by AKS using Karpenter. Fixed size Node Pools can still be created, but autoscaling Node Pools cannot be. (See aka.ms\/aks\/nap for more details). */
KnownNodeProvisioningMode["Auto"] = "Auto";
})(KnownNodeProvisioningMode || (KnownNodeProvisioningMode = {}));
/** Known values of {@link ArtifactSource} that the service accepts. */
export var KnownArtifactSource;
(function (KnownArtifactSource) {
/** pull images from Azure Container Registry with cache */
KnownArtifactSource["Cache"] = "Cache";
/** pull images from Microsoft Artifact Registry */
KnownArtifactSource["Direct"] = "Direct";
})(KnownArtifactSource || (KnownArtifactSource = {}));
/** Known values of {@link CreatedByType} that the service accepts. */

@@ -384,11 +498,11 @@ export var KnownCreatedByType;

(function (KnownType) {
/** First week of the month. */
/** First. */
KnownType["First"] = "First";
/** Second week of the month. */
/** Second. */
KnownType["Second"] = "Second";
/** Third week of the month. */
/** Third. */
KnownType["Third"] = "Third";
/** Fourth week of the month. */
/** Fourth. */
KnownType["Fourth"] = "Fourth";
/** Last week of the month. */
/** Last. */
KnownType["Last"] = "Last";

@@ -427,2 +541,4 @@ })(KnownType || (KnownType = {}));

KnownSnapshotType["NodePool"] = "NodePool";
/** The snapshot is a snapshot of a managed cluster. */
KnownSnapshotType["ManagedCluster"] = "ManagedCluster";
})(KnownSnapshotType || (KnownSnapshotType = {}));

@@ -443,2 +559,30 @@ /** Known values of {@link TrustedAccessRoleBindingProvisioningState} that the service accepts. */

})(KnownTrustedAccessRoleBindingProvisioningState || (KnownTrustedAccessRoleBindingProvisioningState = {}));
/** Known values of {@link GuardrailsSupport} that the service accepts. */
export var KnownGuardrailsSupport;
(function (KnownGuardrailsSupport) {
/** The version is preview. It is not recommended to use preview versions on critical production clusters. The preview version may not support all use-cases. */
KnownGuardrailsSupport["Preview"] = "Preview";
/** The version is stable and can be used on critical production clusters. */
KnownGuardrailsSupport["Stable"] = "Stable";
})(KnownGuardrailsSupport || (KnownGuardrailsSupport = {}));
/** Known values of {@link SafeguardsSupport} that the service accepts. */
export var KnownSafeguardsSupport;
(function (KnownSafeguardsSupport) {
/** The version is preview. It is not recommended to use preview versions on critical production clusters. The preview version may not support all use-cases. */
KnownSafeguardsSupport["Preview"] = "Preview";
/** The version is stable and can be used on critical production clusters. */
KnownSafeguardsSupport["Stable"] = "Stable";
})(KnownSafeguardsSupport || (KnownSafeguardsSupport = {}));
/** Known values of {@link Operator} that the service accepts. */
export var KnownOperator;
(function (KnownOperator) {
/** The value of the key should be in the given list. */
KnownOperator["In"] = "In";
/** The value of the key should not be in the given list. */
KnownOperator["NotIn"] = "NotIn";
/** The value of the key should exist. */
KnownOperator["Exists"] = "Exists";
/** The value of the key should not exist. */
KnownOperator["DoesNotExist"] = "DoesNotExist";
})(KnownOperator || (KnownOperator = {}));
//# sourceMappingURL=index.js.map

@@ -17,2 +17,3 @@ import * as coreClient from "@azure/core-client";

export declare const PowerState: coreClient.CompositeMapper;
export declare const CreationData: coreClient.CompositeMapper;
export declare const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMapper;

@@ -23,7 +24,15 @@ export declare const AgentPoolUpgradeSettings: coreClient.CompositeMapper;

export declare const SysctlConfig: coreClient.CompositeMapper;
export declare const CreationData: coreClient.CompositeMapper;
export declare const AgentPoolWindowsProfile: coreClient.CompositeMapper;
export declare const AgentPoolNetworkProfile: coreClient.CompositeMapper;
export declare const IPTag: coreClient.CompositeMapper;
export declare const PortRange: coreClient.CompositeMapper;
export declare const AgentPoolWindowsProfile: coreClient.CompositeMapper;
export declare const AgentPoolSecurityProfile: coreClient.CompositeMapper;
export declare const AgentPoolGPUProfile: coreClient.CompositeMapper;
export declare const AgentPoolArtifactStreamingProfile: coreClient.CompositeMapper;
export declare const VirtualMachinesProfile: coreClient.CompositeMapper;
export declare const ScaleProfile: coreClient.CompositeMapper;
export declare const ManualScaleProfile: coreClient.CompositeMapper;
export declare const AutoScaleProfile: coreClient.CompositeMapper;
export declare const VirtualMachineNodes: coreClient.CompositeMapper;
export declare const AgentPoolGatewayProfile: coreClient.CompositeMapper;
export declare const ContainerServiceLinuxProfile: coreClient.CompositeMapper;

@@ -44,2 +53,3 @@ export declare const ContainerServiceSshConfiguration: coreClient.CompositeMapper;

export declare const ManagedClusterOidcIssuerProfile: coreClient.CompositeMapper;
export declare const ManagedClusterNodeResourceGroupProfile: coreClient.CompositeMapper;
export declare const ContainerServiceNetworkProfile: coreClient.CompositeMapper;

@@ -53,2 +63,7 @@ export declare const ManagedClusterLoadBalancerProfile: coreClient.CompositeMapper;

export declare const ManagedClusterManagedOutboundIPProfile: coreClient.CompositeMapper;
export declare const ManagedClusterStaticEgressGatewayProfile: coreClient.CompositeMapper;
export declare const ContainerServiceNetworkProfileKubeProxyConfig: coreClient.CompositeMapper;
export declare const ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig: coreClient.CompositeMapper;
export declare const AdvancedNetworking: coreClient.CompositeMapper;
export declare const AdvancedNetworkingObservability: coreClient.CompositeMapper;
export declare const ManagedClusterAADProfile: coreClient.CompositeMapper;

@@ -68,2 +83,4 @@ export declare const ManagedClusterAutoUpgradeProfile: coreClient.CompositeMapper;

export declare const ManagedClusterSecurityProfileImageCleaner: coreClient.CompositeMapper;
export declare const ManagedClusterSecurityProfileImageIntegrity: coreClient.CompositeMapper;
export declare const ManagedClusterSecurityProfileNodeRestriction: coreClient.CompositeMapper;
export declare const ManagedClusterStorageProfile: coreClient.CompositeMapper;

@@ -82,2 +99,8 @@ export declare const ManagedClusterStorageProfileDiskCSIDriver: coreClient.CompositeMapper;

export declare const ManagedClusterAzureMonitorProfileKubeStateMetrics: coreClient.CompositeMapper;
export declare const ManagedClusterAzureMonitorProfileContainerInsights: coreClient.CompositeMapper;
export declare const ManagedClusterAzureMonitorProfileAppMonitoring: coreClient.CompositeMapper;
export declare const ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation: coreClient.CompositeMapper;
export declare const ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics: coreClient.CompositeMapper;
export declare const ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs: coreClient.CompositeMapper;
export declare const SafeguardsProfile: coreClient.CompositeMapper;
export declare const ServiceMeshProfile: coreClient.CompositeMapper;

@@ -92,2 +115,5 @@ export declare const IstioServiceMesh: coreClient.CompositeMapper;

export declare const ManagedClusterCostAnalysis: coreClient.CompositeMapper;
export declare const ManagedClusterAIToolchainOperatorProfile: coreClient.CompositeMapper;
export declare const ManagedClusterNodeProvisioningProfile: coreClient.CompositeMapper;
export declare const ManagedClusterBootstrapProfile: coreClient.CompositeMapper;
export declare const Resource: coreClient.CompositeMapper;

@@ -98,2 +124,4 @@ export declare const SystemData: coreClient.CompositeMapper;

export declare const ManagedClusterPoolUpgradeProfileUpgradesItem: coreClient.CompositeMapper;
export declare const ComponentsByRelease: coreClient.CompositeMapper;
export declare const Component: coreClient.CompositeMapper;
export declare const CredentialResults: coreClient.CompositeMapper;

@@ -116,2 +144,10 @@ export declare const CredentialResult: coreClient.CompositeMapper;

export declare const AgentPoolUpgradeProfilePropertiesUpgradesItem: coreClient.CompositeMapper;
export declare const AgentPoolDeleteMachinesParameter: coreClient.CompositeMapper;
export declare const ErrorResponse: coreClient.CompositeMapper;
export declare const ErrorDetail: coreClient.CompositeMapper;
export declare const ErrorAdditionalInfo: coreClient.CompositeMapper;
export declare const MachineListResult: coreClient.CompositeMapper;
export declare const MachineProperties: coreClient.CompositeMapper;
export declare const MachineNetworkProperties: coreClient.CompositeMapper;
export declare const MachineIpAddress: coreClient.CompositeMapper;
export declare const AgentPoolAvailableVersions: coreClient.CompositeMapper;

@@ -130,3 +166,16 @@ export declare const AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem: coreClient.CompositeMapper;

export declare const EndpointDetail: coreClient.CompositeMapper;
export declare const OperationStatusResultList: coreClient.CompositeMapper;
export declare const OperationStatusResult: coreClient.CompositeMapper;
export declare const SnapshotListResult: coreClient.CompositeMapper;
export declare const ManagedClusterSnapshotListResult: coreClient.CompositeMapper;
export declare const ManagedClusterPropertiesForSnapshot: coreClient.CompositeMapper;
export declare const NetworkProfileForSnapshot: coreClient.CompositeMapper;
export declare const TrustedAccessRoleListResult: coreClient.CompositeMapper;
export declare const TrustedAccessRole: coreClient.CompositeMapper;
export declare const TrustedAccessRoleRule: coreClient.CompositeMapper;
export declare const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper;
export declare const GuardrailsAvailableVersionsProperties: coreClient.CompositeMapper;
export declare const GuardrailsAvailableVersionsList: coreClient.CompositeMapper;
export declare const SafeguardsAvailableVersionsProperties: coreClient.CompositeMapper;
export declare const SafeguardsAvailableVersionsList: coreClient.CompositeMapper;
export declare const MeshRevisionProfileList: coreClient.CompositeMapper;

@@ -137,16 +186,16 @@ export declare const MeshRevisionProfileProperties: coreClient.CompositeMapper;

export declare const MeshUpgradeProfileList: coreClient.CompositeMapper;
export declare const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper;
export declare const ErrorResponse: coreClient.CompositeMapper;
export declare const ErrorDetail: coreClient.CompositeMapper;
export declare const ErrorAdditionalInfo: coreClient.CompositeMapper;
export declare const TrustedAccessRoleListResult: coreClient.CompositeMapper;
export declare const TrustedAccessRole: coreClient.CompositeMapper;
export declare const TrustedAccessRoleRule: coreClient.CompositeMapper;
export declare const LoadBalancerListResult: coreClient.CompositeMapper;
export declare const LabelSelector: coreClient.CompositeMapper;
export declare const LabelSelectorRequirement: coreClient.CompositeMapper;
export declare const RebalanceLoadBalancersRequestBody: coreClient.CompositeMapper;
export declare const ManagedClusterAgentPoolProfile: coreClient.CompositeMapper;
export declare const ManagedClusterAddonProfileIdentity: coreClient.CompositeMapper;
export declare const TrackedResource: coreClient.CompositeMapper;
export declare const TrustedAccessRoleBinding: coreClient.CompositeMapper;
export declare const GuardrailsAvailableVersion: coreClient.CompositeMapper;
export declare const SafeguardsAvailableVersion: coreClient.CompositeMapper;
export declare const ProxyResource: coreClient.CompositeMapper;
export declare const TrustedAccessRoleBinding: coreClient.CompositeMapper;
export declare const MaintenanceConfiguration: coreClient.CompositeMapper;
export declare const AgentPool: coreClient.CompositeMapper;
export declare const Machine: coreClient.CompositeMapper;
export declare const MeshUpgradeProfileProperties: coreClient.CompositeMapper;

@@ -156,9 +205,11 @@ export declare const ManagedCluster: coreClient.CompositeMapper;

export declare const Snapshot: coreClient.CompositeMapper;
export declare const ManagedClusterSnapshot: coreClient.CompositeMapper;
export declare const MeshRevisionProfile: coreClient.CompositeMapper;
export declare const MeshUpgradeProfile: coreClient.CompositeMapper;
export declare const LoadBalancer: coreClient.CompositeMapper;
export declare const ManagedClustersDeleteHeaders: coreClient.CompositeMapper;
export declare const ManagedClustersResetServicePrincipalProfileHeaders: coreClient.CompositeMapper;
export declare const ManagedClustersResetAADProfileHeaders: coreClient.CompositeMapper;
export declare const ManagedClustersAbortLatestOperationHeaders: coreClient.CompositeMapper;
export declare const ManagedClustersRotateClusterCertificatesHeaders: coreClient.CompositeMapper;
export declare const ManagedClustersAbortLatestOperationHeaders: coreClient.CompositeMapper;
export declare const ManagedClustersRotateServiceAccountSigningKeysHeaders: coreClient.CompositeMapper;

@@ -169,6 +220,9 @@ export declare const ManagedClustersStopHeaders: coreClient.CompositeMapper;

export declare const ManagedClustersGetCommandResultHeaders: coreClient.CompositeMapper;
export declare const ManagedClustersRebalanceLoadBalancersHeaders: coreClient.CompositeMapper;
export declare const AgentPoolsAbortLatestOperationHeaders: coreClient.CompositeMapper;
export declare const AgentPoolsDeleteHeaders: coreClient.CompositeMapper;
export declare const AgentPoolsDeleteMachinesHeaders: coreClient.CompositeMapper;
export declare const AgentPoolsUpgradeNodeImageVersionHeaders: coreClient.CompositeMapper;
export declare const TrustedAccessRoleBindingsDeleteHeaders: coreClient.CompositeMapper;
export declare const LoadBalancersDeleteHeaders: coreClient.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map

@@ -14,3 +14,6 @@ import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";

export declare const parameters: OperationParameter;
export declare const ifMatch: OperationParameter;
export declare const ifNoneMatch: OperationParameter;
export declare const parameters1: OperationParameter;
export declare const ignorePodDisruptionBudget: OperationQueryParameter;
export declare const parameters2: OperationParameter;

@@ -20,14 +23,27 @@ export declare const parameters3: OperationParameter;

export declare const commandId: OperationURLParameter;
export declare const version: OperationURLParameter;
export declare const mode: OperationURLParameter;
export declare const parameters4: OperationParameter;
export declare const nextLink: OperationURLParameter;
export declare const configName: OperationURLParameter;
export declare const parameters4: OperationParameter;
export declare const parameters5: OperationParameter;
export declare const agentPoolName: OperationURLParameter;
export declare const parameters5: OperationParameter;
export declare const parameters6: OperationParameter;
export declare const machines: OperationParameter;
export declare const machineName: OperationURLParameter;
export declare const privateEndpointConnectionName: OperationURLParameter;
export declare const parameters6: OperationParameter;
export declare const parameters7: OperationParameter;
export declare const parameters8: OperationParameter;
export declare const operationId: OperationURLParameter;
export declare const parameters9: OperationParameter;
export declare const parameters10: OperationParameter;
export declare const trustedAccessRoleBindingName: OperationURLParameter;
export declare const trustedAccessRoleBinding: OperationParameter;
export declare const loadBalancerName: OperationURLParameter;
export declare const name: OperationParameter;
export declare const primaryAgentPoolName: OperationParameter;
export declare const allowServicePlacement: OperationParameter;
export declare const serviceLabelSelector: OperationParameter;
export declare const serviceNamespaceSelector: OperationParameter;
export declare const nodeSelector: OperationParameter;
//# sourceMappingURL=parameters.d.ts.map

@@ -8,3 +8,3 @@ /*

*/
import { ManagedCluster as ManagedClusterMapper, TagsObject as TagsObjectMapper, ManagedClusterServicePrincipalProfile as ManagedClusterServicePrincipalProfileMapper, ManagedClusterAADProfile as ManagedClusterAADProfileMapper, RunCommandRequest as RunCommandRequestMapper, MaintenanceConfiguration as MaintenanceConfigurationMapper, AgentPool as AgentPoolMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, PrivateLinkResource as PrivateLinkResourceMapper, Snapshot as SnapshotMapper, TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper, } from "../models/mappers";
import { ManagedCluster as ManagedClusterMapper, TagsObject as TagsObjectMapper, ManagedClusterServicePrincipalProfile as ManagedClusterServicePrincipalProfileMapper, ManagedClusterAADProfile as ManagedClusterAADProfileMapper, RunCommandRequest as RunCommandRequestMapper, RebalanceLoadBalancersRequestBody as RebalanceLoadBalancersRequestBodyMapper, MaintenanceConfiguration as MaintenanceConfigurationMapper, AgentPool as AgentPoolMapper, AgentPoolDeleteMachinesParameter as AgentPoolDeleteMachinesParameterMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, PrivateLinkResource as PrivateLinkResourceMapper, Snapshot as SnapshotMapper, ManagedClusterSnapshot as ManagedClusterSnapshotMapper, TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper, LoadBalancer as LoadBalancerMapper, } from "../models/mappers";
export const accept = {

@@ -35,3 +35,3 @@ parameterPath: "accept",

mapper: {
defaultValue: "2024-05-01",
defaultValue: "2024-05-02-preview",
isConstant: true,

@@ -139,2 +139,20 @@ serializedName: "api-version",

};
export const ifMatch = {
parameterPath: ["options", "ifMatch"],
mapper: {
serializedName: "If-Match",
type: {
name: "String",
},
},
};
export const ifNoneMatch = {
parameterPath: ["options", "ifNoneMatch"],
mapper: {
serializedName: "If-None-Match",
type: {
name: "String",
},
},
};
export const parameters1 = {

@@ -144,2 +162,11 @@ parameterPath: "parameters",

};
export const ignorePodDisruptionBudget = {
parameterPath: ["options", "ignorePodDisruptionBudget"],
mapper: {
serializedName: "ignore-pod-disruption-budget",
type: {
name: "Boolean",
},
},
};
export const parameters2 = {

@@ -167,2 +194,16 @@ parameterPath: "parameters",

};
export const version = {
parameterPath: "version",
mapper: {
constraints: {
MaxLength: 24,
MinLength: 1,
},
serializedName: "version",
required: true,
type: {
name: "String",
},
},
};
export const mode = {

@@ -183,2 +224,6 @@ parameterPath: "mode",

};
export const parameters4 = {
parameterPath: "parameters",
mapper: RebalanceLoadBalancersRequestBodyMapper,
};
export const nextLink = {

@@ -205,3 +250,3 @@ parameterPath: "nextLink",

};
export const parameters4 = {
export const parameters5 = {
parameterPath: "parameters",

@@ -225,6 +270,23 @@ mapper: MaintenanceConfigurationMapper,

};
export const parameters5 = {
export const parameters6 = {
parameterPath: "parameters",
mapper: AgentPoolMapper,
};
export const machines = {
parameterPath: "machines",
mapper: AgentPoolDeleteMachinesParameterMapper,
};
export const machineName = {
parameterPath: "machineName",
mapper: {
constraints: {
Pattern: new RegExp("^[a-zA-Z0-9][-_a-zA-Z0-9]{0,39}$"),
},
serializedName: "machineName",
required: true,
type: {
name: "String",
},
},
};
export const privateEndpointConnectionName = {

@@ -240,14 +302,31 @@ parameterPath: "privateEndpointConnectionName",

};
export const parameters6 = {
export const parameters7 = {
parameterPath: "parameters",
mapper: PrivateEndpointConnectionMapper,
};
export const parameters7 = {
export const parameters8 = {
parameterPath: "parameters",
mapper: PrivateLinkResourceMapper,
};
export const parameters8 = {
export const operationId = {
parameterPath: "operationId",
mapper: {
constraints: {
MinLength: 1,
},
serializedName: "operationId",
required: true,
type: {
name: "String",
},
},
};
export const parameters9 = {
parameterPath: "parameters",
mapper: SnapshotMapper,
};
export const parameters10 = {
parameterPath: "parameters",
mapper: ManagedClusterSnapshotMapper,
};
export const trustedAccessRoleBindingName = {

@@ -272,2 +351,41 @@ parameterPath: "trustedAccessRoleBindingName",

};
export const loadBalancerName = {
parameterPath: "loadBalancerName",
mapper: {
constraints: {
Pattern: new RegExp("^[a-z][a-z0-9]{0,11}$"),
MaxLength: 12,
MinLength: 1,
},
serializedName: "loadBalancerName",
required: true,
type: {
name: "String",
},
},
};
export const name = {
parameterPath: ["options", "name"],
mapper: LoadBalancerMapper,
};
export const primaryAgentPoolName = {
parameterPath: ["options", "primaryAgentPoolName"],
mapper: LoadBalancerMapper,
};
export const allowServicePlacement = {
parameterPath: ["options", "allowServicePlacement"],
mapper: LoadBalancerMapper,
};
export const serviceLabelSelector = {
parameterPath: ["options", "serviceLabelSelector"],
mapper: LoadBalancerMapper,
};
export const serviceNamespaceSelector = {
parameterPath: ["options", "serviceNamespaceSelector"],
mapper: LoadBalancerMapper,
};
export const nodeSelector = {
parameterPath: ["options", "nodeSelector"],
mapper: LoadBalancerMapper,
};
//# sourceMappingURL=parameters.js.map

@@ -5,3 +5,3 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";

import { SimplePollerLike, OperationState } from "@azure/core-lro";
import { AgentPool, AgentPoolsListOptionalParams, AgentPoolsAbortLatestOperationOptionalParams, AgentPoolsAbortLatestOperationResponse, AgentPoolsGetOptionalParams, AgentPoolsGetResponse, AgentPoolsCreateOrUpdateOptionalParams, AgentPoolsCreateOrUpdateResponse, AgentPoolsDeleteOptionalParams, AgentPoolsDeleteResponse, AgentPoolsGetUpgradeProfileOptionalParams, AgentPoolsGetUpgradeProfileResponse, AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, AgentPoolsGetAvailableAgentPoolVersionsResponse, AgentPoolsUpgradeNodeImageVersionOptionalParams } from "../models";
import { AgentPool, AgentPoolsListOptionalParams, AgentPoolsAbortLatestOperationOptionalParams, AgentPoolsAbortLatestOperationResponse, AgentPoolsGetOptionalParams, AgentPoolsGetResponse, AgentPoolsCreateOrUpdateOptionalParams, AgentPoolsCreateOrUpdateResponse, AgentPoolsDeleteOptionalParams, AgentPoolsDeleteResponse, AgentPoolsGetUpgradeProfileOptionalParams, AgentPoolsGetUpgradeProfileResponse, AgentPoolDeleteMachinesParameter, AgentPoolsDeleteMachinesOptionalParams, AgentPoolsDeleteMachinesResponse, AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, AgentPoolsGetAvailableAgentPoolVersionsResponse, AgentPoolsUpgradeNodeImageVersionOptionalParams } from "../models";
/** Class containing AgentPools operations. */

@@ -27,3 +27,3 @@ export declare class AgentPoolsImpl implements AgentPools {

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -38,3 +38,3 @@ * @param resourceName The name of the managed cluster resource.

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -104,2 +104,20 @@ * @param resourceName The name of the managed cluster resource.

/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
beginDeleteMachines(resourceGroupName: string, resourceName: string, agentPoolName: string, machines: AgentPoolDeleteMachinesParameter, options?: AgentPoolsDeleteMachinesOptionalParams): Promise<SimplePollerLike<OperationState<AgentPoolsDeleteMachinesResponse>, AgentPoolsDeleteMachinesResponse>>;
/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
beginDeleteMachinesAndWait(resourceGroupName: string, resourceName: string, agentPoolName: string, machines: AgentPoolDeleteMachinesParameter, options?: AgentPoolsDeleteMachinesOptionalParams): Promise<AgentPoolsDeleteMachinesResponse>;
/**
* See [supported Kubernetes

@@ -106,0 +124,0 @@ * versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about

@@ -91,3 +91,3 @@ /*

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -139,3 +139,3 @@ * @param resourceName The name of the managed cluster resource.

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -304,2 +304,67 @@ * @param resourceName The name of the managed cluster resource.

/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
beginDeleteMachines(resourceGroupName, resourceName, agentPoolName, machines, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON(),
},
};
});
const lro = createLroSpec({
sendOperationFn,
args: {
resourceGroupName,
resourceName,
agentPoolName,
machines,
options,
},
spec: deleteMachinesOperationSpec,
});
const poller = yield createHttpPoller(lro, {
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
});
yield poller.poll();
return poller;
});
}
/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
beginDeleteMachinesAndWait(resourceGroupName, resourceName, agentPoolName, machines, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginDeleteMachines(resourceGroupName, resourceName, agentPoolName, machines, options);
return poller.pollUntilDone();
});
}
/**
* See [supported Kubernetes

@@ -484,3 +549,3 @@ * versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about

},
requestBody: Parameters.parameters5,
requestBody: Parameters.parameters6,
queryParameters: [Parameters.apiVersion],

@@ -494,3 +559,8 @@ urlParameters: [

],
headerParameters: [Parameters.accept, Parameters.contentType],
headerParameters: [
Parameters.accept,
Parameters.contentType,
Parameters.ifMatch,
Parameters.ifNoneMatch,
],
mediaType: "json",

@@ -519,3 +589,6 @@ serializer,

},
queryParameters: [Parameters.apiVersion],
queryParameters: [
Parameters.apiVersion,
Parameters.ignorePodDisruptionBudget,
],
urlParameters: [

@@ -528,3 +601,3 @@ Parameters.$host,

],
headerParameters: [Parameters.accept],
headerParameters: [Parameters.accept, Parameters.ifMatch],
serializer,

@@ -554,2 +627,35 @@ };

};
const deleteMachinesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/deleteMachines",
httpMethod: "POST",
responses: {
200: {
headersMapper: Mappers.AgentPoolsDeleteMachinesHeaders,
},
201: {
headersMapper: Mappers.AgentPoolsDeleteMachinesHeaders,
},
202: {
headersMapper: Mappers.AgentPoolsDeleteMachinesHeaders,
},
204: {
headersMapper: Mappers.AgentPoolsDeleteMachinesHeaders,
},
default: {
bodyMapper: Mappers.ErrorResponse,
},
},
requestBody: Parameters.machines,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.resourceName,
Parameters.agentPoolName,
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer,
};
const getAvailableAgentPoolVersionsOperationSpec = {

@@ -556,0 +662,0 @@ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions",

@@ -5,8 +5,12 @@ export * from "./operations";

export * from "./agentPools";
export * from "./machines";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
export * from "./resolvePrivateLinkServiceId";
export * from "./operationStatusResultOperations";
export * from "./snapshots";
export * from "./managedClusterSnapshots";
export * from "./trustedAccessRoles";
export * from "./trustedAccessRoleBindings";
export * from "./trustedAccessRoles";
export * from "./loadBalancers";
//# sourceMappingURL=index.d.ts.map

@@ -12,8 +12,12 @@ /*

export * from "./agentPools";
export * from "./machines";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
export * from "./resolvePrivateLinkServiceId";
export * from "./operationStatusResultOperations";
export * from "./snapshots";
export * from "./managedClusterSnapshots";
export * from "./trustedAccessRoles";
export * from "./trustedAccessRoleBindings";
export * from "./trustedAccessRoles";
export * from "./loadBalancers";
//# sourceMappingURL=index.js.map

@@ -196,3 +196,3 @@ /*

},
requestBody: Parameters.parameters4,
requestBody: Parameters.parameters5,
queryParameters: [Parameters.apiVersion],

@@ -199,0 +199,0 @@ urlParameters: [

@@ -5,3 +5,3 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";

import { SimplePollerLike, OperationState } from "@azure/core-lro";
import { ManagedCluster, ManagedClustersListOptionalParams, ManagedClustersListByResourceGroupOptionalParams, OutboundEnvironmentEndpoint, ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, MeshRevisionProfile, ManagedClustersListMeshRevisionProfilesOptionalParams, MeshUpgradeProfile, ManagedClustersListMeshUpgradeProfilesOptionalParams, ManagedClustersListKubernetesVersionsOptionalParams, ManagedClustersListKubernetesVersionsResponse, ManagedClustersGetUpgradeProfileOptionalParams, ManagedClustersGetUpgradeProfileResponse, ManagedClustersGetAccessProfileOptionalParams, ManagedClustersGetAccessProfileResponse, ManagedClustersListClusterAdminCredentialsOptionalParams, ManagedClustersListClusterAdminCredentialsResponse, ManagedClustersListClusterUserCredentialsOptionalParams, ManagedClustersListClusterUserCredentialsResponse, ManagedClustersListClusterMonitoringUserCredentialsOptionalParams, ManagedClustersListClusterMonitoringUserCredentialsResponse, ManagedClustersGetOptionalParams, ManagedClustersGetResponse, ManagedClustersCreateOrUpdateOptionalParams, ManagedClustersCreateOrUpdateResponse, TagsObject, ManagedClustersUpdateTagsOptionalParams, ManagedClustersUpdateTagsResponse, ManagedClustersDeleteOptionalParams, ManagedClustersDeleteResponse, ManagedClusterServicePrincipalProfile, ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, ManagedClustersAbortLatestOperationOptionalParams, ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, ManagedClustersStopResponse, ManagedClustersStartOptionalParams, ManagedClustersStartResponse, RunCommandRequest, ManagedClustersRunCommandOptionalParams, ManagedClustersRunCommandResponse, ManagedClustersGetCommandResultOptionalParams, ManagedClustersGetCommandResultResponse, ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, ManagedClustersGetMeshUpgradeProfileResponse } from "../models";
import { ManagedCluster, ManagedClustersListOptionalParams, ManagedClustersListByResourceGroupOptionalParams, OutboundEnvironmentEndpoint, ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, GuardrailsAvailableVersion, ManagedClustersListGuardrailsVersionsOptionalParams, SafeguardsAvailableVersion, ManagedClustersListSafeguardsVersionsOptionalParams, MeshRevisionProfile, ManagedClustersListMeshRevisionProfilesOptionalParams, MeshUpgradeProfile, ManagedClustersListMeshUpgradeProfilesOptionalParams, ManagedClustersListKubernetesVersionsOptionalParams, ManagedClustersListKubernetesVersionsResponse, ManagedClustersGetUpgradeProfileOptionalParams, ManagedClustersGetUpgradeProfileResponse, ManagedClustersGetAccessProfileOptionalParams, ManagedClustersGetAccessProfileResponse, ManagedClustersListClusterAdminCredentialsOptionalParams, ManagedClustersListClusterAdminCredentialsResponse, ManagedClustersListClusterUserCredentialsOptionalParams, ManagedClustersListClusterUserCredentialsResponse, ManagedClustersListClusterMonitoringUserCredentialsOptionalParams, ManagedClustersListClusterMonitoringUserCredentialsResponse, ManagedClustersGetOptionalParams, ManagedClustersGetResponse, ManagedClustersCreateOrUpdateOptionalParams, ManagedClustersCreateOrUpdateResponse, TagsObject, ManagedClustersUpdateTagsOptionalParams, ManagedClustersUpdateTagsResponse, ManagedClustersDeleteOptionalParams, ManagedClustersDeleteResponse, ManagedClusterServicePrincipalProfile, ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, ManagedClustersAbortLatestOperationOptionalParams, ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, ManagedClustersStopResponse, ManagedClustersStartOptionalParams, ManagedClustersStartResponse, RunCommandRequest, ManagedClustersRunCommandOptionalParams, ManagedClustersRunCommandResponse, ManagedClustersGetCommandResultOptionalParams, ManagedClustersGetCommandResultResponse, ManagedClustersGetGuardrailsVersionsOptionalParams, ManagedClustersGetGuardrailsVersionsResponse, ManagedClustersGetSafeguardsVersionsOptionalParams, ManagedClustersGetSafeguardsVersionsResponse, ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, ManagedClustersGetMeshUpgradeProfileResponse, RebalanceLoadBalancersRequestBody, ManagedClustersRebalanceLoadBalancersOptionalParams, ManagedClustersRebalanceLoadBalancersResponse } from "../models";
/** Class containing ManagedClusters operations. */

@@ -41,2 +41,18 @@ export declare class ManagedClustersImpl implements ManagedClusters {

/**
* Contains list of Guardrails version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param options The options parameters.
*/
listGuardrailsVersions(location: string, options?: ManagedClustersListGuardrailsVersionsOptionalParams): PagedAsyncIterableIterator<GuardrailsAvailableVersion>;
private listGuardrailsVersionsPagingPage;
private listGuardrailsVersionsPagingAll;
/**
* Contains list of Safeguards version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param options The options parameters.
*/
listSafeguardsVersions(location: string, options?: ManagedClustersListSafeguardsVersionsOptionalParams): PagedAsyncIterableIterator<SafeguardsAvailableVersion>;
private listSafeguardsVersionsPagingPage;
private listSafeguardsVersionsPagingAll;
/**
* Contains extra metadata on each revision, including supported revisions, cluster compatibility and

@@ -205,4 +221,5 @@ * available upgrades

/**
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* 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, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -212,6 +229,7 @@ * @param resourceName The name of the managed cluster resource.

*/
beginRotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersRotateClusterCertificatesResponse>, ManagedClustersRotateClusterCertificatesResponse>>;
beginAbortLatestOperation(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersAbortLatestOperationResponse>, ManagedClustersAbortLatestOperationResponse>>;
/**
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* 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, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -221,7 +239,6 @@ * @param resourceName The name of the managed cluster resource.

*/
beginRotateClusterCertificatesAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<ManagedClustersRotateClusterCertificatesResponse>;
beginAbortLatestOperationAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise<ManagedClustersAbortLatestOperationResponse>;
/**
* 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.
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -231,7 +248,6 @@ * @param resourceName The name of the managed cluster resource.

*/
beginAbortLatestOperation(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersAbortLatestOperationResponse>, ManagedClustersAbortLatestOperationResponse>>;
beginRotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersRotateClusterCertificatesResponse>, ManagedClustersRotateClusterCertificatesResponse>>;
/**
* 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.
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -241,3 +257,3 @@ * @param resourceName The name of the managed cluster resource.

*/
beginAbortLatestOperationAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise<ManagedClustersAbortLatestOperationResponse>;
beginRotateClusterCertificatesAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<ManagedClustersRotateClusterCertificatesResponse>;
/**

@@ -332,2 +348,28 @@ * Rotates the service account signing keys of a managed cluster.

/**
* Contains Guardrails version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param version Safeguards version
* @param options The options parameters.
*/
getGuardrailsVersions(location: string, version: string, options?: ManagedClustersGetGuardrailsVersionsOptionalParams): Promise<ManagedClustersGetGuardrailsVersionsResponse>;
/**
* Contains list of Guardrails version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param options The options parameters.
*/
private _listGuardrailsVersions;
/**
* Contains Safeguards version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param version Safeguards version
* @param options The options parameters.
*/
getSafeguardsVersions(location: string, version: string, options?: ManagedClustersGetSafeguardsVersionsOptionalParams): Promise<ManagedClustersGetSafeguardsVersionsResponse>;
/**
* Contains list of Safeguards version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param options The options parameters.
*/
private _listSafeguardsVersions;
/**
* Contains extra metadata on each revision, including supported revisions, cluster compatibility and

@@ -363,2 +405,20 @@ * available upgrades

/**
* Rebalance nodes across specific load balancers.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param parameters The names of the load balancers to be rebalanced. If set to empty, all load
* balancers will be rebalanced.
* @param options The options parameters.
*/
beginRebalanceLoadBalancers(resourceGroupName: string, resourceName: string, parameters: RebalanceLoadBalancersRequestBody, options?: ManagedClustersRebalanceLoadBalancersOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersRebalanceLoadBalancersResponse>, ManagedClustersRebalanceLoadBalancersResponse>>;
/**
* Rebalance nodes across specific load balancers.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param parameters The names of the load balancers to be rebalanced. If set to empty, all load
* balancers will be rebalanced.
* @param options The options parameters.
*/
beginRebalanceLoadBalancersAndWait(resourceGroupName: string, resourceName: string, parameters: RebalanceLoadBalancersRequestBody, options?: ManagedClustersRebalanceLoadBalancersOptionalParams): Promise<ManagedClustersRebalanceLoadBalancersResponse>;
/**
* ListNext

@@ -386,2 +446,16 @@ * @param nextLink The nextLink from the previous successful call to the List method.

/**
* ListGuardrailsVersionsNext
* @param location The name of the Azure region.
* @param nextLink The nextLink from the previous successful call to the ListGuardrailsVersions method.
* @param options The options parameters.
*/
private _listGuardrailsVersionsNext;
/**
* ListSafeguardsVersionsNext
* @param location The name of the Azure region.
* @param nextLink The nextLink from the previous successful call to the ListSafeguardsVersions method.
* @param options The options parameters.
*/
private _listSafeguardsVersionsNext;
/**
* ListMeshRevisionProfilesNext

@@ -388,0 +462,0 @@ * @param location The name of the Azure region.

@@ -186,3 +186,3 @@ /*

},
requestBody: Parameters.parameters6,
requestBody: Parameters.parameters7,
queryParameters: [Parameters.apiVersion],

@@ -189,0 +189,0 @@ urlParameters: [

@@ -44,3 +44,3 @@ /*

},
requestBody: Parameters.parameters7,
requestBody: Parameters.parameters8,
queryParameters: [Parameters.apiVersion],

@@ -47,0 +47,0 @@ urlParameters: [

@@ -290,3 +290,3 @@ /*

},
requestBody: Parameters.parameters8,
requestBody: Parameters.parameters9,
queryParameters: [Parameters.apiVersion],

@@ -293,0 +293,0 @@ urlParameters: [

import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { SimplePollerLike, OperationState } from "@azure/core-lro";
import { AgentPool, AgentPoolsListOptionalParams, AgentPoolsAbortLatestOperationOptionalParams, AgentPoolsAbortLatestOperationResponse, AgentPoolsGetOptionalParams, AgentPoolsGetResponse, AgentPoolsCreateOrUpdateOptionalParams, AgentPoolsCreateOrUpdateResponse, AgentPoolsDeleteOptionalParams, AgentPoolsDeleteResponse, AgentPoolsGetUpgradeProfileOptionalParams, AgentPoolsGetUpgradeProfileResponse, AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, AgentPoolsGetAvailableAgentPoolVersionsResponse, AgentPoolsUpgradeNodeImageVersionOptionalParams } from "../models";
import { AgentPool, AgentPoolsListOptionalParams, AgentPoolsAbortLatestOperationOptionalParams, AgentPoolsAbortLatestOperationResponse, AgentPoolsGetOptionalParams, AgentPoolsGetResponse, AgentPoolsCreateOrUpdateOptionalParams, AgentPoolsCreateOrUpdateResponse, AgentPoolsDeleteOptionalParams, AgentPoolsDeleteResponse, AgentPoolsGetUpgradeProfileOptionalParams, AgentPoolsGetUpgradeProfileResponse, AgentPoolDeleteMachinesParameter, AgentPoolsDeleteMachinesOptionalParams, AgentPoolsDeleteMachinesResponse, AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, AgentPoolsGetAvailableAgentPoolVersionsResponse, AgentPoolsUpgradeNodeImageVersionOptionalParams } from "../models";
/** Interface representing a AgentPools. */

@@ -16,3 +16,3 @@ export interface AgentPools {

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -27,3 +27,3 @@ * @param resourceName The name of the managed cluster resource.

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -86,2 +86,20 @@ * @param resourceName The name of the managed cluster resource.

/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
beginDeleteMachines(resourceGroupName: string, resourceName: string, agentPoolName: string, machines: AgentPoolDeleteMachinesParameter, options?: AgentPoolsDeleteMachinesOptionalParams): Promise<SimplePollerLike<OperationState<AgentPoolsDeleteMachinesResponse>, AgentPoolsDeleteMachinesResponse>>;
/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
beginDeleteMachinesAndWait(resourceGroupName: string, resourceName: string, agentPoolName: string, machines: AgentPoolDeleteMachinesParameter, options?: AgentPoolsDeleteMachinesOptionalParams): Promise<AgentPoolsDeleteMachinesResponse>;
/**
* See [supported Kubernetes

@@ -88,0 +106,0 @@ * versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about

@@ -5,8 +5,12 @@ export * from "./operations";

export * from "./agentPools";
export * from "./machines";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
export * from "./resolvePrivateLinkServiceId";
export * from "./operationStatusResultOperations";
export * from "./snapshots";
export * from "./managedClusterSnapshots";
export * from "./trustedAccessRoles";
export * from "./trustedAccessRoleBindings";
export * from "./trustedAccessRoles";
export * from "./loadBalancers";
//# sourceMappingURL=index.d.ts.map

@@ -12,8 +12,12 @@ /*

export * from "./agentPools";
export * from "./machines";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
export * from "./resolvePrivateLinkServiceId";
export * from "./operationStatusResultOperations";
export * from "./snapshots";
export * from "./managedClusterSnapshots";
export * from "./trustedAccessRoles";
export * from "./trustedAccessRoleBindings";
export * from "./trustedAccessRoles";
export * from "./loadBalancers";
//# sourceMappingURL=index.js.map
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { SimplePollerLike, OperationState } from "@azure/core-lro";
import { ManagedCluster, ManagedClustersListOptionalParams, ManagedClustersListByResourceGroupOptionalParams, OutboundEnvironmentEndpoint, ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, MeshRevisionProfile, ManagedClustersListMeshRevisionProfilesOptionalParams, MeshUpgradeProfile, ManagedClustersListMeshUpgradeProfilesOptionalParams, ManagedClustersListKubernetesVersionsOptionalParams, ManagedClustersListKubernetesVersionsResponse, ManagedClustersGetUpgradeProfileOptionalParams, ManagedClustersGetUpgradeProfileResponse, ManagedClustersGetAccessProfileOptionalParams, ManagedClustersGetAccessProfileResponse, ManagedClustersListClusterAdminCredentialsOptionalParams, ManagedClustersListClusterAdminCredentialsResponse, ManagedClustersListClusterUserCredentialsOptionalParams, ManagedClustersListClusterUserCredentialsResponse, ManagedClustersListClusterMonitoringUserCredentialsOptionalParams, ManagedClustersListClusterMonitoringUserCredentialsResponse, ManagedClustersGetOptionalParams, ManagedClustersGetResponse, ManagedClustersCreateOrUpdateOptionalParams, ManagedClustersCreateOrUpdateResponse, TagsObject, ManagedClustersUpdateTagsOptionalParams, ManagedClustersUpdateTagsResponse, ManagedClustersDeleteOptionalParams, ManagedClustersDeleteResponse, ManagedClusterServicePrincipalProfile, ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, ManagedClustersAbortLatestOperationOptionalParams, ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, ManagedClustersStopResponse, ManagedClustersStartOptionalParams, ManagedClustersStartResponse, RunCommandRequest, ManagedClustersRunCommandOptionalParams, ManagedClustersRunCommandResponse, ManagedClustersGetCommandResultOptionalParams, ManagedClustersGetCommandResultResponse, ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, ManagedClustersGetMeshUpgradeProfileResponse } from "../models";
import { ManagedCluster, ManagedClustersListOptionalParams, ManagedClustersListByResourceGroupOptionalParams, OutboundEnvironmentEndpoint, ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, GuardrailsAvailableVersion, ManagedClustersListGuardrailsVersionsOptionalParams, SafeguardsAvailableVersion, ManagedClustersListSafeguardsVersionsOptionalParams, MeshRevisionProfile, ManagedClustersListMeshRevisionProfilesOptionalParams, MeshUpgradeProfile, ManagedClustersListMeshUpgradeProfilesOptionalParams, ManagedClustersListKubernetesVersionsOptionalParams, ManagedClustersListKubernetesVersionsResponse, ManagedClustersGetUpgradeProfileOptionalParams, ManagedClustersGetUpgradeProfileResponse, ManagedClustersGetAccessProfileOptionalParams, ManagedClustersGetAccessProfileResponse, ManagedClustersListClusterAdminCredentialsOptionalParams, ManagedClustersListClusterAdminCredentialsResponse, ManagedClustersListClusterUserCredentialsOptionalParams, ManagedClustersListClusterUserCredentialsResponse, ManagedClustersListClusterMonitoringUserCredentialsOptionalParams, ManagedClustersListClusterMonitoringUserCredentialsResponse, ManagedClustersGetOptionalParams, ManagedClustersGetResponse, ManagedClustersCreateOrUpdateOptionalParams, ManagedClustersCreateOrUpdateResponse, TagsObject, ManagedClustersUpdateTagsOptionalParams, ManagedClustersUpdateTagsResponse, ManagedClustersDeleteOptionalParams, ManagedClustersDeleteResponse, ManagedClusterServicePrincipalProfile, ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, ManagedClustersAbortLatestOperationOptionalParams, ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, ManagedClustersStopResponse, ManagedClustersStartOptionalParams, ManagedClustersStartResponse, RunCommandRequest, ManagedClustersRunCommandOptionalParams, ManagedClustersRunCommandResponse, ManagedClustersGetCommandResultOptionalParams, ManagedClustersGetCommandResultResponse, ManagedClustersGetGuardrailsVersionsOptionalParams, ManagedClustersGetGuardrailsVersionsResponse, ManagedClustersGetSafeguardsVersionsOptionalParams, ManagedClustersGetSafeguardsVersionsResponse, ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, ManagedClustersGetMeshUpgradeProfileResponse, RebalanceLoadBalancersRequestBody, ManagedClustersRebalanceLoadBalancersOptionalParams, ManagedClustersRebalanceLoadBalancersResponse } from "../models";
/** Interface representing a ManagedClusters. */

@@ -26,2 +26,14 @@ export interface ManagedClusters {

/**
* Contains list of Guardrails version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param options The options parameters.
*/
listGuardrailsVersions(location: string, options?: ManagedClustersListGuardrailsVersionsOptionalParams): PagedAsyncIterableIterator<GuardrailsAvailableVersion>;
/**
* Contains list of Safeguards version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param options The options parameters.
*/
listSafeguardsVersions(location: string, options?: ManagedClustersListSafeguardsVersionsOptionalParams): PagedAsyncIterableIterator<SafeguardsAvailableVersion>;
/**
* Contains extra metadata on each revision, including supported revisions, cluster compatibility and

@@ -175,4 +187,5 @@ * available upgrades

/**
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* 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, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -182,6 +195,7 @@ * @param resourceName The name of the managed cluster resource.

*/
beginRotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersRotateClusterCertificatesResponse>, ManagedClustersRotateClusterCertificatesResponse>>;
beginAbortLatestOperation(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersAbortLatestOperationResponse>, ManagedClustersAbortLatestOperationResponse>>;
/**
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* 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, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -191,7 +205,6 @@ * @param resourceName The name of the managed cluster resource.

*/
beginRotateClusterCertificatesAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<ManagedClustersRotateClusterCertificatesResponse>;
beginAbortLatestOperationAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise<ManagedClustersAbortLatestOperationResponse>;
/**
* 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.
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -201,7 +214,6 @@ * @param resourceName The name of the managed cluster resource.

*/
beginAbortLatestOperation(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersAbortLatestOperationResponse>, ManagedClustersAbortLatestOperationResponse>>;
beginRotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersRotateClusterCertificatesResponse>, ManagedClustersRotateClusterCertificatesResponse>>;
/**
* 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.
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -211,3 +223,3 @@ * @param resourceName The name of the managed cluster resource.

*/
beginAbortLatestOperationAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise<ManagedClustersAbortLatestOperationResponse>;
beginRotateClusterCertificatesAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<ManagedClustersRotateClusterCertificatesResponse>;
/**

@@ -294,2 +306,16 @@ * Rotates the service account signing keys of a managed cluster.

/**
* Contains Guardrails version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param version Safeguards version
* @param options The options parameters.
*/
getGuardrailsVersions(location: string, version: string, options?: ManagedClustersGetGuardrailsVersionsOptionalParams): Promise<ManagedClustersGetGuardrailsVersionsResponse>;
/**
* Contains Safeguards version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param version Safeguards version
* @param options The options parameters.
*/
getSafeguardsVersions(location: string, version: string, options?: ManagedClustersGetSafeguardsVersionsOptionalParams): Promise<ManagedClustersGetSafeguardsVersionsResponse>;
/**
* Contains extra metadata on the revision, including supported revisions, cluster compatibility and

@@ -310,3 +336,21 @@ * available upgrades

getMeshUpgradeProfile(resourceGroupName: string, resourceName: string, mode: string, options?: ManagedClustersGetMeshUpgradeProfileOptionalParams): Promise<ManagedClustersGetMeshUpgradeProfileResponse>;
/**
* Rebalance nodes across specific load balancers.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param parameters The names of the load balancers to be rebalanced. If set to empty, all load
* balancers will be rebalanced.
* @param options The options parameters.
*/
beginRebalanceLoadBalancers(resourceGroupName: string, resourceName: string, parameters: RebalanceLoadBalancersRequestBody, options?: ManagedClustersRebalanceLoadBalancersOptionalParams): Promise<SimplePollerLike<OperationState<ManagedClustersRebalanceLoadBalancersResponse>, ManagedClustersRebalanceLoadBalancersResponse>>;
/**
* Rebalance nodes across specific load balancers.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param parameters The names of the load balancers to be rebalanced. If set to empty, all load
* balancers will be rebalanced.
* @param options The options parameters.
*/
beginRebalanceLoadBalancersAndWait(resourceGroupName: string, resourceName: string, parameters: RebalanceLoadBalancersRequestBody, options?: ManagedClustersRebalanceLoadBalancersOptionalParams): Promise<ManagedClustersRebalanceLoadBalancersResponse>;
}
//# sourceMappingURL=managedClusters.d.ts.map

@@ -6,3 +6,3 @@ {

"description": "A generated SDK for ContainerServiceClient.",
"version": "21.0.1-alpha.20240821.1",
"version": "21.1.0-alpha.20240822.1",
"engines": {

@@ -9,0 +9,0 @@ "node": ">=18.0.0"

@@ -9,3 +9,3 @@ # Azure ContainerService client library for JavaScript

[Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerservice) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

@@ -12,0 +12,0 @@

@@ -22,8 +22,12 @@ /*

AgentPoolsImpl,
MachinesImpl,
PrivateEndpointConnectionsImpl,
PrivateLinkResourcesImpl,
ResolvePrivateLinkServiceIdImpl,
OperationStatusResultOperationsImpl,
SnapshotsImpl,
ManagedClusterSnapshotsImpl,
TrustedAccessRolesImpl,
TrustedAccessRoleBindingsImpl,
TrustedAccessRolesImpl,
LoadBalancersImpl,
} from "./operations";

@@ -35,8 +39,12 @@ import {

AgentPools,
Machines,
PrivateEndpointConnections,
PrivateLinkResources,
ResolvePrivateLinkServiceId,
OperationStatusResultOperations,
Snapshots,
ManagedClusterSnapshots,
TrustedAccessRoles,
TrustedAccessRoleBindings,
TrustedAccessRoles,
LoadBalancers,
} from "./operationsInterfaces";

@@ -77,3 +85,3 @@ import { ContainerServiceClientOptionalParams } from "./models";

const packageDetails = `azsdk-js-arm-containerservice/21.0.1`;
const packageDetails = `azsdk-js-arm-containerservice/21.1.0-beta.1`;
const userAgentPrefix =

@@ -132,3 +140,3 @@ options.userAgentOptions && options.userAgentOptions.userAgentPrefix

this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2024-05-01";
this.apiVersion = options.apiVersion || "2024-05-02-preview";
this.operations = new OperationsImpl(this);

@@ -138,2 +146,3 @@ this.managedClusters = new ManagedClustersImpl(this);

this.agentPools = new AgentPoolsImpl(this);
this.machines = new MachinesImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);

@@ -144,5 +153,9 @@ this.privateLinkResources = new PrivateLinkResourcesImpl(this);

);
this.operationStatusResultOperations =
new OperationStatusResultOperationsImpl(this);
this.snapshots = new SnapshotsImpl(this);
this.managedClusterSnapshots = new ManagedClusterSnapshotsImpl(this);
this.trustedAccessRoles = new TrustedAccessRolesImpl(this);
this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this);
this.trustedAccessRoles = new TrustedAccessRolesImpl(this);
this.loadBalancers = new LoadBalancersImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);

@@ -183,8 +196,12 @@ }

agentPools: AgentPools;
machines: Machines;
privateEndpointConnections: PrivateEndpointConnections;
privateLinkResources: PrivateLinkResources;
resolvePrivateLinkServiceId: ResolvePrivateLinkServiceId;
operationStatusResultOperations: OperationStatusResultOperations;
snapshots: Snapshots;
managedClusterSnapshots: ManagedClusterSnapshots;
trustedAccessRoles: TrustedAccessRoles;
trustedAccessRoleBindings: TrustedAccessRoleBindings;
trustedAccessRoles: TrustedAccessRoles;
loadBalancers: LoadBalancers;
}

@@ -20,8 +20,12 @@ /*

RunCommandRequest as RunCommandRequestMapper,
RebalanceLoadBalancersRequestBody as RebalanceLoadBalancersRequestBodyMapper,
MaintenanceConfiguration as MaintenanceConfigurationMapper,
AgentPool as AgentPoolMapper,
AgentPoolDeleteMachinesParameter as AgentPoolDeleteMachinesParameterMapper,
PrivateEndpointConnection as PrivateEndpointConnectionMapper,
PrivateLinkResource as PrivateLinkResourceMapper,
Snapshot as SnapshotMapper,
ManagedClusterSnapshot as ManagedClusterSnapshotMapper,
TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper,
LoadBalancer as LoadBalancerMapper,
} from "../models/mappers";

@@ -56,3 +60,3 @@

mapper: {
defaultValue: "2024-05-01",
defaultValue: "2024-05-02-preview",
isConstant: true,

@@ -172,2 +176,22 @@ serializedName: "api-version",

export const ifMatch: OperationParameter = {
parameterPath: ["options", "ifMatch"],
mapper: {
serializedName: "If-Match",
type: {
name: "String",
},
},
};
export const ifNoneMatch: OperationParameter = {
parameterPath: ["options", "ifNoneMatch"],
mapper: {
serializedName: "If-None-Match",
type: {
name: "String",
},
},
};
export const parameters1: OperationParameter = {

@@ -178,2 +202,12 @@ parameterPath: "parameters",

export const ignorePodDisruptionBudget: OperationQueryParameter = {
parameterPath: ["options", "ignorePodDisruptionBudget"],
mapper: {
serializedName: "ignore-pod-disruption-budget",
type: {
name: "Boolean",
},
},
};
export const parameters2: OperationParameter = {

@@ -205,2 +239,17 @@ parameterPath: "parameters",

export const version: OperationURLParameter = {
parameterPath: "version",
mapper: {
constraints: {
MaxLength: 24,
MinLength: 1,
},
serializedName: "version",
required: true,
type: {
name: "String",
},
},
};
export const mode: OperationURLParameter = {

@@ -224,2 +273,7 @@ parameterPath: "mode",

export const parameters4: OperationParameter = {
parameterPath: "parameters",
mapper: RebalanceLoadBalancersRequestBodyMapper,
};
export const nextLink: OperationURLParameter = {

@@ -248,3 +302,3 @@ parameterPath: "nextLink",

export const parameters4: OperationParameter = {
export const parameters5: OperationParameter = {
parameterPath: "parameters",

@@ -270,3 +324,3 @@ mapper: MaintenanceConfigurationMapper,

export const parameters5: OperationParameter = {
export const parameters6: OperationParameter = {
parameterPath: "parameters",

@@ -276,2 +330,21 @@ mapper: AgentPoolMapper,

export const machines: OperationParameter = {
parameterPath: "machines",
mapper: AgentPoolDeleteMachinesParameterMapper,
};
export const machineName: OperationURLParameter = {
parameterPath: "machineName",
mapper: {
constraints: {
Pattern: new RegExp("^[a-zA-Z0-9][-_a-zA-Z0-9]{0,39}$"),
},
serializedName: "machineName",
required: true,
type: {
name: "String",
},
},
};
export const privateEndpointConnectionName: OperationURLParameter = {

@@ -288,3 +361,3 @@ parameterPath: "privateEndpointConnectionName",

export const parameters6: OperationParameter = {
export const parameters7: OperationParameter = {
parameterPath: "parameters",

@@ -294,3 +367,3 @@ mapper: PrivateEndpointConnectionMapper,

export const parameters7: OperationParameter = {
export const parameters8: OperationParameter = {
parameterPath: "parameters",

@@ -300,3 +373,17 @@ mapper: PrivateLinkResourceMapper,

export const parameters8: OperationParameter = {
export const operationId: OperationURLParameter = {
parameterPath: "operationId",
mapper: {
constraints: {
MinLength: 1,
},
serializedName: "operationId",
required: true,
type: {
name: "String",
},
},
};
export const parameters9: OperationParameter = {
parameterPath: "parameters",

@@ -306,2 +393,7 @@ mapper: SnapshotMapper,

export const parameters10: OperationParameter = {
parameterPath: "parameters",
mapper: ManagedClusterSnapshotMapper,
};
export const trustedAccessRoleBindingName: OperationURLParameter = {

@@ -327,1 +419,47 @@ parameterPath: "trustedAccessRoleBindingName",

};
export const loadBalancerName: OperationURLParameter = {
parameterPath: "loadBalancerName",
mapper: {
constraints: {
Pattern: new RegExp("^[a-z][a-z0-9]{0,11}$"),
MaxLength: 12,
MinLength: 1,
},
serializedName: "loadBalancerName",
required: true,
type: {
name: "String",
},
},
};
export const name: OperationParameter = {
parameterPath: ["options", "name"],
mapper: LoadBalancerMapper,
};
export const primaryAgentPoolName: OperationParameter = {
parameterPath: ["options", "primaryAgentPoolName"],
mapper: LoadBalancerMapper,
};
export const allowServicePlacement: OperationParameter = {
parameterPath: ["options", "allowServicePlacement"],
mapper: LoadBalancerMapper,
};
export const serviceLabelSelector: OperationParameter = {
parameterPath: ["options", "serviceLabelSelector"],
mapper: LoadBalancerMapper,
};
export const serviceNamespaceSelector: OperationParameter = {
parameterPath: ["options", "serviceNamespaceSelector"],
mapper: LoadBalancerMapper,
};
export const nodeSelector: OperationParameter = {
parameterPath: ["options", "nodeSelector"],
mapper: LoadBalancerMapper,
};

@@ -37,2 +37,5 @@ /*

AgentPoolsGetUpgradeProfileResponse,
AgentPoolDeleteMachinesParameter,
AgentPoolsDeleteMachinesOptionalParams,
AgentPoolsDeleteMachinesResponse,
AgentPoolsGetAvailableAgentPoolVersionsOptionalParams,

@@ -136,3 +139,3 @@ AgentPoolsGetAvailableAgentPoolVersionsResponse,

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -212,3 +215,3 @@ * @param resourceName The name of the managed cluster resource.

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -489,2 +492,107 @@ * @param resourceName The name of the managed cluster resource.

/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
async beginDeleteMachines(
resourceGroupName: string,
resourceName: string,
agentPoolName: string,
machines: AgentPoolDeleteMachinesParameter,
options?: AgentPoolsDeleteMachinesOptionalParams,
): Promise<
SimplePollerLike<
OperationState<AgentPoolsDeleteMachinesResponse>,
AgentPoolsDeleteMachinesResponse
>
> {
const directSendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec,
): Promise<AgentPoolsDeleteMachinesResponse> => {
return this.client.sendOperationRequest(args, spec);
};
const sendOperationFn = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec,
) => {
let currentRawResponse: coreClient.FullOperationResponse | undefined =
undefined;
const providedCallback = args.options?.onResponse;
const callback: coreClient.RawResponseCallback = (
rawResponse: coreClient.FullOperationResponse,
flatResponse: unknown,
) => {
currentRawResponse = rawResponse;
providedCallback?.(rawResponse, flatResponse);
};
const updatedArgs = {
...args,
options: {
...args.options,
onResponse: callback,
},
};
const flatResponse = await directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse!.status,
body: currentRawResponse!.parsedBody,
headers: currentRawResponse!.headers.toJSON(),
},
};
};
const lro = createLroSpec({
sendOperationFn,
args: {
resourceGroupName,
resourceName,
agentPoolName,
machines,
options,
},
spec: deleteMachinesOperationSpec,
});
const poller = await createHttpPoller<
AgentPoolsDeleteMachinesResponse,
OperationState<AgentPoolsDeleteMachinesResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
});
await poller.poll();
return poller;
}
/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
async beginDeleteMachinesAndWait(
resourceGroupName: string,
resourceName: string,
agentPoolName: string,
machines: AgentPoolDeleteMachinesParameter,
options?: AgentPoolsDeleteMachinesOptionalParams,
): Promise<AgentPoolsDeleteMachinesResponse> {
const poller = await this.beginDeleteMachines(
resourceGroupName,
resourceName,
agentPoolName,
machines,
options,
);
return poller.pollUntilDone();
}
/**
* See [supported Kubernetes

@@ -715,3 +823,3 @@ * versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about

},
requestBody: Parameters.parameters5,
requestBody: Parameters.parameters6,
queryParameters: [Parameters.apiVersion],

@@ -725,3 +833,8 @@ urlParameters: [

],
headerParameters: [Parameters.accept, Parameters.contentType],
headerParameters: [
Parameters.accept,
Parameters.contentType,
Parameters.ifMatch,
Parameters.ifNoneMatch,
],
mediaType: "json",

@@ -750,3 +863,6 @@ serializer,

},
queryParameters: [Parameters.apiVersion],
queryParameters: [
Parameters.apiVersion,
Parameters.ignorePodDisruptionBudget,
],
urlParameters: [

@@ -759,3 +875,3 @@ Parameters.$host,

],
headerParameters: [Parameters.accept],
headerParameters: [Parameters.accept, Parameters.ifMatch],
serializer,

@@ -785,2 +901,35 @@ };

};
const deleteMachinesOperationSpec: coreClient.OperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/deleteMachines",
httpMethod: "POST",
responses: {
200: {
headersMapper: Mappers.AgentPoolsDeleteMachinesHeaders,
},
201: {
headersMapper: Mappers.AgentPoolsDeleteMachinesHeaders,
},
202: {
headersMapper: Mappers.AgentPoolsDeleteMachinesHeaders,
},
204: {
headersMapper: Mappers.AgentPoolsDeleteMachinesHeaders,
},
default: {
bodyMapper: Mappers.ErrorResponse,
},
},
requestBody: Parameters.machines,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.resourceName,
Parameters.agentPoolName,
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer,
};
const getAvailableAgentPoolVersionsOperationSpec: coreClient.OperationSpec = {

@@ -787,0 +936,0 @@ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions",

@@ -13,7 +13,11 @@ /*

export * from "./agentPools";
export * from "./machines";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
export * from "./resolvePrivateLinkServiceId";
export * from "./operationStatusResultOperations";
export * from "./snapshots";
export * from "./managedClusterSnapshots";
export * from "./trustedAccessRoles";
export * from "./trustedAccessRoleBindings";
export * from "./trustedAccessRoles";
export * from "./loadBalancers";

@@ -283,3 +283,3 @@ /*

},
requestBody: Parameters.parameters4,
requestBody: Parameters.parameters5,
queryParameters: [Parameters.apiVersion],

@@ -286,0 +286,0 @@ urlParameters: [

@@ -264,3 +264,3 @@ /*

},
requestBody: Parameters.parameters6,
requestBody: Parameters.parameters7,
queryParameters: [Parameters.apiVersion],

@@ -267,0 +267,0 @@ urlParameters: [

@@ -67,3 +67,3 @@ /*

},
requestBody: Parameters.parameters7,
requestBody: Parameters.parameters8,
queryParameters: [Parameters.apiVersion],

@@ -70,0 +70,0 @@ urlParameters: [

@@ -375,3 +375,3 @@ /*

},
requestBody: Parameters.parameters8,
requestBody: Parameters.parameters9,
queryParameters: [Parameters.apiVersion],

@@ -378,0 +378,0 @@ urlParameters: [

@@ -24,2 +24,5 @@ /*

AgentPoolsGetUpgradeProfileResponse,
AgentPoolDeleteMachinesParameter,
AgentPoolsDeleteMachinesOptionalParams,
AgentPoolsDeleteMachinesResponse,
AgentPoolsGetAvailableAgentPoolVersionsOptionalParams,

@@ -47,3 +50,3 @@ AgentPoolsGetAvailableAgentPoolVersionsResponse,

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -68,3 +71,3 @@ * @param resourceName The name of the managed cluster resource.

* 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.
* completes before cancellation can take place, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -174,2 +177,37 @@ * @param resourceName The name of the managed cluster resource.

/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
beginDeleteMachines(
resourceGroupName: string,
resourceName: string,
agentPoolName: string,
machines: AgentPoolDeleteMachinesParameter,
options?: AgentPoolsDeleteMachinesOptionalParams,
): Promise<
SimplePollerLike<
OperationState<AgentPoolsDeleteMachinesResponse>,
AgentPoolsDeleteMachinesResponse
>
>;
/**
* Deletes specific machines in an agent pool.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param machines A list of machines from the agent pool to be deleted.
* @param options The options parameters.
*/
beginDeleteMachinesAndWait(
resourceGroupName: string,
resourceName: string,
agentPoolName: string,
machines: AgentPoolDeleteMachinesParameter,
options?: AgentPoolsDeleteMachinesOptionalParams,
): Promise<AgentPoolsDeleteMachinesResponse>;
/**
* See [supported Kubernetes

@@ -176,0 +214,0 @@ * versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about

@@ -13,7 +13,11 @@ /*

export * from "./agentPools";
export * from "./machines";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
export * from "./resolvePrivateLinkServiceId";
export * from "./operationStatusResultOperations";
export * from "./snapshots";
export * from "./managedClusterSnapshots";
export * from "./trustedAccessRoles";
export * from "./trustedAccessRoleBindings";
export * from "./trustedAccessRoles";
export * from "./loadBalancers";

@@ -17,2 +17,6 @@ /*

ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams,
GuardrailsAvailableVersion,
ManagedClustersListGuardrailsVersionsOptionalParams,
SafeguardsAvailableVersion,
ManagedClustersListSafeguardsVersionsOptionalParams,
MeshRevisionProfile,

@@ -47,6 +51,6 @@ ManagedClustersListMeshRevisionProfilesOptionalParams,

ManagedClustersResetAADProfileOptionalParams,
ManagedClustersAbortLatestOperationOptionalParams,
ManagedClustersAbortLatestOperationResponse,
ManagedClustersRotateClusterCertificatesOptionalParams,
ManagedClustersRotateClusterCertificatesResponse,
ManagedClustersAbortLatestOperationOptionalParams,
ManagedClustersAbortLatestOperationResponse,
ManagedClustersRotateServiceAccountSigningKeysOptionalParams,

@@ -63,2 +67,6 @@ ManagedClustersRotateServiceAccountSigningKeysResponse,

ManagedClustersGetCommandResultResponse,
ManagedClustersGetGuardrailsVersionsOptionalParams,
ManagedClustersGetGuardrailsVersionsResponse,
ManagedClustersGetSafeguardsVersionsOptionalParams,
ManagedClustersGetSafeguardsVersionsResponse,
ManagedClustersGetMeshRevisionProfileOptionalParams,

@@ -68,2 +76,5 @@ ManagedClustersGetMeshRevisionProfileResponse,

ManagedClustersGetMeshUpgradeProfileResponse,
RebalanceLoadBalancersRequestBody,
ManagedClustersRebalanceLoadBalancersOptionalParams,
ManagedClustersRebalanceLoadBalancersResponse,
} from "../models";

@@ -103,2 +114,20 @@

/**
* Contains list of Guardrails version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param options The options parameters.
*/
listGuardrailsVersions(
location: string,
options?: ManagedClustersListGuardrailsVersionsOptionalParams,
): PagedAsyncIterableIterator<GuardrailsAvailableVersion>;
/**
* Contains list of Safeguards version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param options The options parameters.
*/
listSafeguardsVersions(
location: string,
options?: ManagedClustersListSafeguardsVersionsOptionalParams,
): PagedAsyncIterableIterator<SafeguardsAvailableVersion>;
/**
* Contains extra metadata on each revision, including supported revisions, cluster compatibility and

@@ -350,4 +379,5 @@ * available upgrades

/**
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* 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, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -357,15 +387,16 @@ * @param resourceName The name of the managed cluster resource.

*/
beginRotateClusterCertificates(
beginAbortLatestOperation(
resourceGroupName: string,
resourceName: string,
options?: ManagedClustersRotateClusterCertificatesOptionalParams,
options?: ManagedClustersAbortLatestOperationOptionalParams,
): Promise<
SimplePollerLike<
OperationState<ManagedClustersRotateClusterCertificatesResponse>,
ManagedClustersRotateClusterCertificatesResponse
OperationState<ManagedClustersAbortLatestOperationResponse>,
ManagedClustersAbortLatestOperationResponse
>
>;
/**
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* 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, an error is returned.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -375,11 +406,10 @@ * @param resourceName The name of the managed cluster resource.

*/
beginRotateClusterCertificatesAndWait(
beginAbortLatestOperationAndWait(
resourceGroupName: string,
resourceName: string,
options?: ManagedClustersRotateClusterCertificatesOptionalParams,
): Promise<ManagedClustersRotateClusterCertificatesResponse>;
options?: ManagedClustersAbortLatestOperationOptionalParams,
): Promise<ManagedClustersAbortLatestOperationResponse>;
/**
* 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.
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -389,16 +419,15 @@ * @param resourceName The name of the managed cluster resource.

*/
beginAbortLatestOperation(
beginRotateClusterCertificates(
resourceGroupName: string,
resourceName: string,
options?: ManagedClustersAbortLatestOperationOptionalParams,
options?: ManagedClustersRotateClusterCertificatesOptionalParams,
): Promise<
SimplePollerLike<
OperationState<ManagedClustersAbortLatestOperationResponse>,
ManagedClustersAbortLatestOperationResponse
OperationState<ManagedClustersRotateClusterCertificatesResponse>,
ManagedClustersRotateClusterCertificatesResponse
>
>;
/**
* 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.
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
* details about rotating managed cluster certificates.
* @param resourceGroupName The name of the resource group. The name is case insensitive.

@@ -408,7 +437,7 @@ * @param resourceName The name of the managed cluster resource.

*/
beginAbortLatestOperationAndWait(
beginRotateClusterCertificatesAndWait(
resourceGroupName: string,
resourceName: string,
options?: ManagedClustersAbortLatestOperationOptionalParams,
): Promise<ManagedClustersAbortLatestOperationResponse>;
options?: ManagedClustersRotateClusterCertificatesOptionalParams,
): Promise<ManagedClustersRotateClusterCertificatesResponse>;
/**

@@ -554,2 +583,24 @@ * Rotates the service account signing keys of a managed cluster.

/**
* Contains Guardrails version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param version Safeguards version
* @param options The options parameters.
*/
getGuardrailsVersions(
location: string,
version: string,
options?: ManagedClustersGetGuardrailsVersionsOptionalParams,
): Promise<ManagedClustersGetGuardrailsVersionsResponse>;
/**
* Contains Safeguards version along with its support info and whether it is a default version.
* @param location The name of the Azure region.
* @param version Safeguards version
* @param options The options parameters.
*/
getSafeguardsVersions(
location: string,
version: string,
options?: ManagedClustersGetSafeguardsVersionsOptionalParams,
): Promise<ManagedClustersGetSafeguardsVersionsResponse>;
/**
* Contains extra metadata on the revision, including supported revisions, cluster compatibility and

@@ -579,2 +630,35 @@ * available upgrades

): Promise<ManagedClustersGetMeshUpgradeProfileResponse>;
/**
* Rebalance nodes across specific load balancers.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param parameters The names of the load balancers to be rebalanced. If set to empty, all load
* balancers will be rebalanced.
* @param options The options parameters.
*/
beginRebalanceLoadBalancers(
resourceGroupName: string,
resourceName: string,
parameters: RebalanceLoadBalancersRequestBody,
options?: ManagedClustersRebalanceLoadBalancersOptionalParams,
): Promise<
SimplePollerLike<
OperationState<ManagedClustersRebalanceLoadBalancersResponse>,
ManagedClustersRebalanceLoadBalancersResponse
>
>;
/**
* Rebalance nodes across specific load balancers.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param parameters The names of the load balancers to be rebalanced. If set to empty, all load
* balancers will be rebalanced.
* @param options The options parameters.
*/
beginRebalanceLoadBalancersAndWait(
resourceGroupName: string,
resourceName: string,
parameters: RebalanceLoadBalancersRequestBody,
options?: ManagedClustersRebalanceLoadBalancersOptionalParams,
): Promise<ManagedClustersRebalanceLoadBalancersResponse>;
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc