diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index aa462321912a..1ea418876dbb 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,5 +1,22 @@ # Release History +## 22.0.0 (2025-05-12) + +### Features Added + + - Added Type Alias UndrainableNodeBehavior + - Interface AgentPoolUpgradeSettings has a new optional parameter maxUnavailable + - Interface AgentPoolUpgradeSettings has a new optional parameter undrainableNodeBehavior + - Interface ManagedClusterAPIServerAccessProfile has a new optional parameter enableVnetIntegration + - Interface ManagedClusterAPIServerAccessProfile has a new optional parameter subnetId + - Added Enum KnownUndrainableNodeBehavior + - Enum KnownOssku has a new value Ubuntu2204 + +### Breaking Changes + + - Interface ManagedCluster no longer has parameter enablePodSecurityPolicy + + ## 22.0.0-beta.2 (2025-04-25) Compared with version 21.6.0 diff --git a/sdk/containerservice/arm-containerservice/README.md b/sdk/containerservice/arm-containerservice/README.md index dc708f99c8a4..6c88600682bd 100644 --- a/sdk/containerservice/arm-containerservice/README.md +++ b/sdk/containerservice/arm-containerservice/README.md @@ -6,7 +6,7 @@ The Container Service Client. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerservice) | -[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview) | +[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-containerservice) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started @@ -63,11 +63,10 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur import { InteractiveBrowserCredential } from "@azure/identity"; import { ContainerServiceClient } from "@azure/arm-containerservice"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new ContainerServiceClient(credential, subscriptionId); ``` diff --git a/sdk/containerservice/arm-containerservice/_meta.json b/sdk/containerservice/arm-containerservice/_meta.json index 6ea58b741079..8a0a736fe729 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "6a864ce544420c3c83ccaed34fe61281357a96a8", + "commit": "fa2582d33fc5e32f272a6cf89ba8781f1cc29554", "readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.38 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.26", - "use": "@autorest/typescript@6.0.38" -} \ No newline at end of file + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.27", + "use": "@autorest/typescript@^6.0.12" +} diff --git a/sdk/containerservice/arm-containerservice/api-extractor.json b/sdk/containerservice/arm-containerservice/api-extractor.json index 60d2859ba2fb..7299ce0e264b 100644 --- a/sdk/containerservice/arm-containerservice/api-extractor.json +++ b/sdk/containerservice/arm-containerservice/api-extractor.json @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index 32e04d9f0f4f..2d514bde488d 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerServiceClient.", - "version": "22.0.0-beta.2", + "version": "22.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.3", + "@azure/core-client": "^1.9.4", "@azure/core-lro": "^2.5.4", "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.19.1", + "@azure/core-rest-pipeline": "^1.20.0", "tslib": "^2.8.1" }, "keywords": [ @@ -28,13 +28,14 @@ "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/commonjs/index.d.ts", + "type": "module", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.9.1", - "@azure/logger": "^1.1.4", + "@azure/logger": "^1.2.0", "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", @@ -56,20 +57,30 @@ ], "scripts": { "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "echo skipped", + "build:node": "echo skipped", "build:samples": "echo skipped.", - "check-format": "echo skipped", + "build:test": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "dev-tool run extract-api", - "format": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", "prepack": "npm run build", - "test": "npm run test:node && npm run test:browser", + "test": "npm run integration-test", "test:browser": "echo skipped", "test:node": "dev-tool run test:vitest", - "test:node:esm": "dev-tool run test:vitest --esm", - "update-snippets": "dev-tool run update-snippets" + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "echo skipped", + "unit-test:node": "dev-tool run test:vitest", + "update-snippets": "dev-tool run update-snippets", + "test:node:esm": "dev-tool run test:vitest --esm" }, "sideEffects": false, "//metadata": { @@ -81,16 +92,9 @@ ] }, "autoPublish": true, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview" - }, - "type": "module", "tshy": { "project": "./tsconfig.src.json", "exports": { @@ -107,8 +111,6 @@ ], "selfLink": false }, - "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/index.js", "exports": { "./package.json": "./package.json", ".": { @@ -130,4 +132,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md index 4092a29e973f..1a16d19e60f7 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -4,11 +4,11 @@ ```ts -import type * as coreAuth from '@azure/core-auth'; +import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; -import type { OperationState } from '@azure/core-lro'; -import type { PagedAsyncIterableIterator } from '@azure/core-paging'; -import type { SimplePollerLike } from '@azure/core-lro'; +import { OperationState } from '@azure/core-lro'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export interface AbsoluteMonthlySchedule { @@ -16,12 +16,6 @@ export interface AbsoluteMonthlySchedule { intervalMonths: number; } -// @public -export type AddonAutoscaling = string; - -// @public -export type AdoptionPolicy = string; - // @public export interface AdvancedNetworking { enabled?: boolean; @@ -36,32 +30,24 @@ export interface AdvancedNetworkingObservability { // @public export interface AdvancedNetworkingSecurity { - advancedNetworkPolicies?: AdvancedNetworkPolicies; enabled?: boolean; - transitEncryption?: TransitEncryption; } -// @public -export type AdvancedNetworkPolicies = string; - // @public export interface AgentPool extends SubResource { - artifactStreamingProfile?: AgentPoolArtifactStreamingProfile; availabilityZones?: string[]; capacityReservationGroupID?: string; count?: number; creationData?: CreationData; readonly currentOrchestratorVersion?: string; enableAutoScaling?: boolean; - enableCustomCATrust?: boolean; enableEncryptionAtHost?: boolean; enableFips?: boolean; enableNodePublicIP?: boolean; enableUltraSSD?: boolean; readonly eTag?: string; - gatewayProfile?: AgentPoolGatewayProfile; gpuInstanceProfile?: GPUInstanceProfile; - gpuProfile?: AgentPoolGPUProfile; + gpuProfile?: GPUProfile; hostGroupID?: string; kubeletConfig?: KubeletConfig; kubeletDiskType?: KubeletDiskType; @@ -73,7 +59,6 @@ export interface AgentPool extends SubResource { mode?: AgentPoolMode; networkProfile?: AgentPoolNetworkProfile; readonly nodeImageVersion?: string; - nodeInitializationTaints?: string[]; nodeLabels?: { [propertyName: string]: string; }; @@ -84,7 +69,6 @@ export interface AgentPool extends SubResource { osDiskType?: OSDiskType; osSKU?: Ossku; osType?: OSType; - podIPAllocationMode?: PodIPAllocationMode; podSubnetID?: string; powerState?: PowerState; readonly provisioningState?: string; @@ -94,25 +78,17 @@ export interface AgentPool extends SubResource { scaleSetPriority?: ScaleSetPriority; securityProfile?: AgentPoolSecurityProfile; spotMaxPrice?: number; - status?: AgentPoolStatus; tags?: { [propertyName: string]: string; }; typePropertiesType?: AgentPoolType; upgradeSettings?: AgentPoolUpgradeSettings; - virtualMachineNodesStatus?: VirtualMachineNodes[]; - virtualMachinesProfile?: VirtualMachinesProfile; vmSize?: string; vnetSubnetID?: string; windowsProfile?: AgentPoolWindowsProfile; workloadRuntime?: WorkloadRuntime; } -// @public (undocumented) -export interface AgentPoolArtifactStreamingProfile { - enabled?: boolean; -} - // @public export interface AgentPoolAvailableVersions { agentPoolVersions?: AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem[]; @@ -133,17 +109,6 @@ export interface AgentPoolDeleteMachinesParameter { machineNames: string[]; } -// @public -export interface AgentPoolGatewayProfile { - publicIPPrefixSize?: number; -} - -// @public (undocumented) -export interface AgentPoolGPUProfile { - driverType?: DriverType; - installGPUDriver?: boolean; -} - // @public export interface AgentPoolListResult { readonly nextLink?: string; @@ -238,7 +203,6 @@ export type AgentPoolsDeleteResponse = AgentPoolsDeleteHeaders; export interface AgentPoolSecurityProfile { enableSecureBoot?: boolean; enableVtpm?: boolean; - sshAccess?: AgentPoolSSHAccess; } // @public @@ -276,14 +240,6 @@ export interface AgentPoolsListOptionalParams extends coreClient.OperationOption // @public export type AgentPoolsListResponse = AgentPoolListResult; -// @public -export type AgentPoolSSHAccess = string; - -// @public -export interface AgentPoolStatus { - readonly provisioningError?: CloudErrorBody; -} - // @public export interface AgentPoolsUpgradeNodeImageVersionHeaders { azureAsyncOperation?: string; @@ -300,7 +256,6 @@ export type AgentPoolType = string; // @public export interface AgentPoolUpgradeProfile { - componentsByReleases?: ComponentsByRelease[]; readonly id?: string; kubernetesVersion: string; latestNodeImageVersion?: string; @@ -312,7 +267,6 @@ export interface AgentPoolUpgradeProfile { // @public (undocumented) export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { - isOutOfSupport?: boolean; isPreview?: boolean; kubernetesVersion?: string; } @@ -320,7 +274,6 @@ export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { // @public export interface AgentPoolUpgradeSettings { drainTimeoutInMinutes?: number; - maxBlockedNodes?: string; maxSurge?: string; maxUnavailable?: string; nodeSoakDurationInMinutes?: number; @@ -335,13 +288,6 @@ export interface AgentPoolWindowsProfile { // @public export type ArtifactSource = string; -// @public -export interface AutoScaleProfile { - maxCount?: number; - minCount?: number; - size?: string; -} - // @public export interface AzureKeyVaultKms { enabled?: boolean; @@ -366,9 +312,6 @@ export interface CloudErrorBody { target?: string; } -// @public -export type ClusterServiceLoadBalancerHealthProbeMode = string; - // @public export interface ClusterUpgradeSettings { overrideSettings?: UpgradeOverrideSettings; @@ -383,27 +326,9 @@ export interface CompatibleVersions { versions?: string[]; } -// @public (undocumented) -export interface Component { - hasBreakingChanges?: boolean; - name?: string; - version?: string; -} - -// @public -export interface ComponentsByRelease { - components?: Component[]; - kubernetesVersion?: string; -} - // @public export type ConnectionStatus = string; -// @public -export interface ContainerService { - listNodeImageVersions(location: string, options?: ContainerServiceListNodeImageVersionsOptionalParams): PagedAsyncIterableIterator; -} - // @public (undocumented) export class ContainerServiceClient extends coreClient.ServiceClient { // (undocumented) @@ -414,24 +339,14 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) - containerService: ContainerService; - // (undocumented) - loadBalancers: LoadBalancers; - // (undocumented) machines: Machines; // (undocumented) maintenanceConfigurations: MaintenanceConfigurations; // (undocumented) managedClusters: ManagedClusters; // (undocumented) - managedClusterSnapshots: ManagedClusterSnapshots; - // (undocumented) - namespaces: Namespaces; - // (undocumented) operations: Operations; // (undocumented) - operationStatusResultOperations: OperationStatusResultOperations; - // (undocumented) privateEndpointConnections: PrivateEndpointConnections; // (undocumented) privateLinkResources: PrivateLinkResources; @@ -460,26 +375,11 @@ export interface ContainerServiceLinuxProfile { ssh: ContainerServiceSshConfiguration; } -// @public -export interface ContainerServiceListNodeImageVersionsNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ContainerServiceListNodeImageVersionsNextResponse = NodeImageVersionsListResult; - -// @public -export interface ContainerServiceListNodeImageVersionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ContainerServiceListNodeImageVersionsResponse = NodeImageVersionsListResult; - // @public export interface ContainerServiceNetworkProfile { advancedNetworking?: AdvancedNetworking; dnsServiceIP?: string; ipFamilies?: IpFamily[]; - kubeProxyConfig?: ContainerServiceNetworkProfileKubeProxyConfig; loadBalancerProfile?: ManagedClusterLoadBalancerProfile; loadBalancerSku?: LoadBalancerSku; natGatewayProfile?: ManagedClusterNATGatewayProfile; @@ -491,25 +391,8 @@ export interface ContainerServiceNetworkProfile { outboundType?: OutboundType; podCidr?: string; podCidrs?: string[]; - podLinkLocalAccess?: PodLinkLocalAccess; serviceCidr?: string; serviceCidrs?: string[]; - staticEgressGatewayProfile?: ManagedClusterStaticEgressGatewayProfile; -} - -// @public -export interface ContainerServiceNetworkProfileKubeProxyConfig { - enabled?: boolean; - ipvsConfig?: ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig; - mode?: Mode; -} - -// @public -export interface ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig { - scheduler?: IpvsScheduler; - tcpFinTimeoutSeconds?: number; - tcpTimeoutSeconds?: number; - udpTimeoutSeconds?: number; } // @public @@ -560,12 +443,6 @@ export interface DelegatedResource { tenantId?: string; } -// @public -export type DeletePolicy = string; - -// @public -export type DriverType = string; - // @public export interface EndpointDependency { domainName?: string; @@ -619,28 +496,16 @@ export type Format = string; export function getContinuationToken(page: unknown): string | undefined; // @public -export type GPUInstanceProfile = string; - -// @public -export interface GuardrailsAvailableVersion extends Resource { - properties: GuardrailsAvailableVersionsProperties; -} +export type GPUDriver = string; // @public -export interface GuardrailsAvailableVersionsList { - readonly nextLink?: string; - value?: GuardrailsAvailableVersion[]; -} +export type GPUInstanceProfile = string; // @public -export interface GuardrailsAvailableVersionsProperties { - readonly isDefaultVersion?: boolean; - readonly support?: GuardrailsSupport; +export interface GPUProfile { + driver?: GPUDriver; } -// @public -export type GuardrailsSupport = string; - // @public export type IpFamily = string; @@ -650,9 +515,6 @@ export interface IPTag { tag?: string; } -// @public -export type IpvsScheduler = string; - // @public export interface IstioCertificateAuthority { plugin?: IstioPluginCertificateAuthority; @@ -667,9 +529,6 @@ export interface IstioComponents { // @public export interface IstioEgressGateway { enabled: boolean; - gatewayConfigurationName?: string; - name: string; - namespace?: string; } // @public @@ -700,43 +559,15 @@ export interface IstioServiceMesh { // @public export type KeyVaultNetworkAccessTypes = string; -// @public -export enum KnownAddonAutoscaling { - Disabled = "Disabled", - Enabled = "Enabled" -} - -// @public -export enum KnownAdoptionPolicy { - Always = "Always", - IfIdentical = "IfIdentical", - Never = "Never" -} - -// @public -export enum KnownAdvancedNetworkPolicies { - Fqdn = "FQDN", - L7 = "L7", - None = "None" -} - // @public export enum KnownAgentPoolMode { - Gateway = "Gateway", System = "System", User = "User" } -// @public -export enum KnownAgentPoolSSHAccess { - Disabled = "Disabled", - LocalUser = "LocalUser" -} - // @public export enum KnownAgentPoolType { AvailabilitySet = "AvailabilitySet", - VirtualMachines = "VirtualMachines", VirtualMachineScaleSets = "VirtualMachineScaleSets" } @@ -752,12 +583,6 @@ export enum KnownBackendPoolType { NodeIPConfiguration = "NodeIPConfiguration" } -// @public -export enum KnownClusterServiceLoadBalancerHealthProbeMode { - ServiceNodePort = "ServiceNodePort", - Shared = "Shared" -} - // @public export enum KnownCode { Running = "Running", @@ -780,18 +605,6 @@ export enum KnownCreatedByType { User = "User" } -// @public -export enum KnownDeletePolicy { - Delete = "Delete", - Keep = "Keep" -} - -// @public -export enum KnownDriverType { - Cuda = "CUDA", - Grid = "GRID" -} - // @public export enum KnownExpander { LeastWaste = "least-waste", @@ -811,6 +624,12 @@ export enum KnownFormat { Exec = "exec" } +// @public +export enum KnownGPUDriver { + Install = "Install", + None = "None" +} + // @public export enum KnownGPUInstanceProfile { MIG1G = "MIG1g", @@ -820,24 +639,12 @@ export enum KnownGPUInstanceProfile { MIG7G = "MIG7g" } -// @public -export enum KnownGuardrailsSupport { - Preview = "Preview", - Stable = "Stable" -} - // @public export enum KnownIpFamily { IPv4 = "IPv4", IPv6 = "IPv6" } -// @public -export enum KnownIpvsScheduler { - LeastConnection = "LeastConnection", - RoundRobin = "RoundRobin" -} - // @public export enum KnownIstioIngressGatewayMode { External = "External", @@ -862,13 +669,6 @@ export enum KnownKubernetesSupportPlan { KubernetesOfficial = "KubernetesOfficial" } -// @public -export enum KnownLevel { - Enforcement = "Enforcement", - Off = "Off", - Warning = "Warning" -} - // @public export enum KnownLicenseType { None = "None", @@ -893,7 +693,6 @@ export enum KnownManagedClusterPodIdentityProvisioningState { // @public export enum KnownManagedClusterSKUName { - Automatic = "Automatic", Base = "Base" } @@ -904,22 +703,6 @@ export enum KnownManagedClusterSKUTier { Standard = "Standard" } -// @public -export enum KnownMode { - Iptables = "IPTABLES", - Ipvs = "IPVS" -} - -// @public -export enum KnownNamespaceProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - // @public export enum KnownNetworkDataplane { Azure = "azure", @@ -968,20 +751,6 @@ export enum KnownNodeOSUpgradeChannel { Unmanaged = "Unmanaged" } -// @public -export enum KnownNodeProvisioningMode { - Auto = "Auto", - Manual = "Manual" -} - -// @public -export enum KnownOperator { - DoesNotExist = "DoesNotExist", - Exists = "Exists", - In = "In", - NotIn = "NotIn" -} - // @public export enum KnownOSDiskType { Ephemeral = "Ephemeral", @@ -992,11 +761,10 @@ export enum KnownOSDiskType { export enum KnownOssku { AzureLinux = "AzureLinux", CBLMariner = "CBLMariner", - Mariner = "Mariner", Ubuntu = "Ubuntu", + Ubuntu2204 = "Ubuntu2204", Windows2019 = "Windows2019", - Windows2022 = "Windows2022", - WindowsAnnual = "WindowsAnnual" + Windows2022 = "Windows2022" } // @public @@ -1014,25 +782,6 @@ export enum KnownOutboundType { UserDefinedRouting = "userDefinedRouting" } -// @public -export enum KnownPodIPAllocationMode { - DynamicIndividual = "DynamicIndividual", - StaticBlock = "StaticBlock" -} - -// @public -export enum KnownPodLinkLocalAccess { - Imds = "IMDS", - None = "None" -} - -// @public -export enum KnownPolicyRule { - AllowAll = "AllowAll", - AllowSameNamespace = "AllowSameNamespace", - DenyAll = "DenyAll" -} - // @public export enum KnownPrivateEndpointConnectionProvisioningState { Canceled = "Canceled", @@ -1051,8 +800,7 @@ export enum KnownProtocol { // @public export enum KnownPublicNetworkAccess { Disabled = "Disabled", - Enabled = "Enabled", - SecuredByPerimeter = "SecuredByPerimeter" + Enabled = "Enabled" } // @public @@ -1061,12 +809,6 @@ export enum KnownRestrictionLevel { Unrestricted = "Unrestricted" } -// @public -export enum KnownSafeguardsSupport { - Preview = "Preview", - Stable = "Stable" -} - // @public export enum KnownScaleDownMode { Deallocate = "Deallocate", @@ -1085,12 +827,6 @@ export enum KnownScaleSetPriority { Spot = "Spot" } -// @public -export enum KnownSeccompDefault { - RuntimeDefault = "RuntimeDefault", - Unconfined = "Unconfined" -} - // @public export enum KnownServiceMeshMode { Disabled = "Disabled", @@ -1099,16 +835,9 @@ export enum KnownServiceMeshMode { // @public export enum KnownSnapshotType { - ManagedCluster = "ManagedCluster", NodePool = "NodePool" } -// @public -export enum KnownTransitEncryption { - None = "None", - WireGuard = "WireGuard" -} - // @public export enum KnownTrustedAccessRoleBindingProvisioningState { Canceled = "Canceled", @@ -1155,7 +884,6 @@ export enum KnownWeekDay { // @public export enum KnownWorkloadRuntime { - KataMshvVmIsolation = "KataMshvVmIsolation", OCIContainer = "OCIContainer", WasmWasi = "WasmWasi" } @@ -1172,7 +900,6 @@ export interface KubeletConfig { imageGcHighThreshold?: number; imageGcLowThreshold?: number; podMaxPids?: number; - seccompDefault?: SeccompDefault; topologyManagerPolicy?: string; } @@ -1209,22 +936,6 @@ export interface KubernetesVersionListResult { values?: KubernetesVersion[]; } -// @public -export interface LabelSelector { - matchExpressions?: LabelSelectorRequirement[]; - matchLabels?: string[]; -} - -// @public -export interface LabelSelectorRequirement { - key?: string; - operator?: Operator; - values?: string[]; -} - -// @public -export type Level = string; - // @public export type LicenseType = string; @@ -1236,76 +947,9 @@ export interface LinuxOSConfig { transparentHugePageEnabled?: string; } -// @public -export interface LoadBalancer extends ProxyResource { - allowServicePlacement?: boolean; - nodeSelector?: LabelSelector; - primaryAgentPoolName?: string; - readonly provisioningState?: string; - serviceLabelSelector?: LabelSelector; - serviceNamespaceSelector?: LabelSelector; -} - -// @public -export interface LoadBalancerListResult { - readonly nextLink?: string; - value?: LoadBalancer[]; -} - -// @public -export interface LoadBalancers { - beginDelete(resourceGroupName: string, resourceName: string, loadBalancerName: string, options?: LoadBalancersDeleteOptionalParams): Promise, LoadBalancersDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, resourceName: string, loadBalancerName: string, options?: LoadBalancersDeleteOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, resourceName: string, loadBalancerName: string, parameters: LoadBalancer, options?: LoadBalancersCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, resourceName: string, loadBalancerName: string, options?: LoadBalancersGetOptionalParams): Promise; - listByManagedCluster(resourceGroupName: string, resourceName: string, options?: LoadBalancersListByManagedClusterOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface LoadBalancersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LoadBalancersCreateOrUpdateResponse = LoadBalancer; - -// @public -export interface LoadBalancersDeleteHeaders { - location?: string; -} - -// @public -export interface LoadBalancersDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type LoadBalancersDeleteResponse = LoadBalancersDeleteHeaders; - -// @public -export interface LoadBalancersGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LoadBalancersGetResponse = LoadBalancer; - // @public export type LoadBalancerSku = string; -// @public -export interface LoadBalancersListByManagedClusterNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LoadBalancersListByManagedClusterNextResponse = LoadBalancerListResult; - -// @public -export interface LoadBalancersListByManagedClusterOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LoadBalancersListByManagedClusterResponse = LoadBalancerListResult; - // @public export interface Machine extends SubResource { readonly properties?: MachineProperties; @@ -1432,20 +1076,16 @@ export interface ManagedCluster extends TrackedResource { [propertyName: string]: ManagedClusterAddonProfile; }; agentPoolProfiles?: ManagedClusterAgentPoolProfile[]; - aiToolchainOperatorProfile?: ManagedClusterAIToolchainOperatorProfile; apiServerAccessProfile?: ManagedClusterAPIServerAccessProfile; autoScalerProfile?: ManagedClusterPropertiesAutoScalerProfile; autoUpgradeProfile?: ManagedClusterAutoUpgradeProfile; azureMonitorProfile?: ManagedClusterAzureMonitorProfile; readonly azurePortalFqdn?: string; bootstrapProfile?: ManagedClusterBootstrapProfile; - creationData?: CreationData; readonly currentKubernetesVersion?: string; disableLocalAccounts?: boolean; diskEncryptionSetID?: string; dnsPrefix?: string; - enableNamespaceResources?: boolean; - enablePodSecurityPolicy?: boolean; enableRbac?: boolean; readonly eTag?: string; extendedLocation?: ExtendedLocation; @@ -1457,13 +1097,11 @@ export interface ManagedCluster extends TrackedResource { [propertyName: string]: UserAssignedIdentity; }; ingressProfile?: ManagedClusterIngressProfile; - kind?: string; kubernetesVersion?: string; linuxProfile?: ContainerServiceLinuxProfile; readonly maxAgentPools?: number; metricsProfile?: ManagedClusterMetricsProfile; networkProfile?: ContainerServiceNetworkProfile; - nodeProvisioningProfile?: ManagedClusterNodeProvisioningProfile; nodeResourceGroup?: string; nodeResourceGroupProfile?: ManagedClusterNodeResourceGroupProfile; oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; @@ -1474,12 +1112,10 @@ export interface ManagedCluster extends TrackedResource { readonly provisioningState?: string; publicNetworkAccess?: PublicNetworkAccess; readonly resourceUID?: string; - safeguardsProfile?: SafeguardsProfile; securityProfile?: ManagedClusterSecurityProfile; serviceMeshProfile?: ServiceMeshProfile; servicePrincipalProfile?: ManagedClusterServicePrincipalProfile; sku?: ManagedClusterSKU; - status?: ManagedClusterStatus; storageProfile?: ManagedClusterStorageProfile; supportPlan?: KubernetesSupportPlan; upgradeSettings?: ClusterUpgradeSettings; @@ -1523,22 +1159,19 @@ export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolP // @public export interface ManagedClusterAgentPoolProfileProperties { - artifactStreamingProfile?: AgentPoolArtifactStreamingProfile; availabilityZones?: string[]; capacityReservationGroupID?: string; count?: number; creationData?: CreationData; readonly currentOrchestratorVersion?: string; enableAutoScaling?: boolean; - enableCustomCATrust?: boolean; enableEncryptionAtHost?: boolean; enableFips?: boolean; enableNodePublicIP?: boolean; enableUltraSSD?: boolean; readonly eTag?: string; - gatewayProfile?: AgentPoolGatewayProfile; gpuInstanceProfile?: GPUInstanceProfile; - gpuProfile?: AgentPoolGPUProfile; + gpuProfile?: GPUProfile; hostGroupID?: string; kubeletConfig?: KubeletConfig; kubeletDiskType?: KubeletDiskType; @@ -1550,7 +1183,6 @@ export interface ManagedClusterAgentPoolProfileProperties { mode?: AgentPoolMode; networkProfile?: AgentPoolNetworkProfile; readonly nodeImageVersion?: string; - nodeInitializationTaints?: string[]; nodeLabels?: { [propertyName: string]: string; }; @@ -1561,7 +1193,6 @@ export interface ManagedClusterAgentPoolProfileProperties { osDiskType?: OSDiskType; osSKU?: Ossku; osType?: OSType; - podIPAllocationMode?: PodIPAllocationMode; podSubnetID?: string; powerState?: PowerState; readonly provisioningState?: string; @@ -1571,25 +1202,17 @@ export interface ManagedClusterAgentPoolProfileProperties { scaleSetPriority?: ScaleSetPriority; securityProfile?: AgentPoolSecurityProfile; spotMaxPrice?: number; - status?: AgentPoolStatus; tags?: { [propertyName: string]: string; }; type?: AgentPoolType; upgradeSettings?: AgentPoolUpgradeSettings; - virtualMachineNodesStatus?: VirtualMachineNodes[]; - virtualMachinesProfile?: VirtualMachinesProfile; vmSize?: string; vnetSubnetID?: string; windowsProfile?: AgentPoolWindowsProfile; workloadRuntime?: WorkloadRuntime; } -// @public -export interface ManagedClusterAIToolchainOperatorProfile { - enabled?: boolean; -} - // @public export interface ManagedClusterAPIServerAccessProfile { authorizedIPRanges?: string[]; @@ -1609,44 +1232,9 @@ export interface ManagedClusterAutoUpgradeProfile { // @public export interface ManagedClusterAzureMonitorProfile { - appMonitoring?: ManagedClusterAzureMonitorProfileAppMonitoring; - containerInsights?: ManagedClusterAzureMonitorProfileContainerInsights; metrics?: ManagedClusterAzureMonitorProfileMetrics; } -// @public -export interface ManagedClusterAzureMonitorProfileAppMonitoring { - autoInstrumentation?: ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation; - openTelemetryLogs?: ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs; - openTelemetryMetrics?: ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics; -} - -// @public -export interface ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation { - enabled?: boolean; -} - -// @public -export interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs { - enabled?: boolean; - port?: number; -} - -// @public -export interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics { - enabled?: boolean; - port?: number; -} - -// @public -export interface ManagedClusterAzureMonitorProfileContainerInsights { - disableCustomMetrics?: boolean; - disablePrometheusMetricsScraping?: boolean; - enabled?: boolean; - logAnalyticsWorkspaceResourceId?: string; - syslogPort?: number; -} - // @public export interface ManagedClusterAzureMonitorProfileKubeStateMetrics { metricAnnotationsAllowList?: string; @@ -1672,7 +1260,6 @@ export interface ManagedClusterCostAnalysis { // @public export interface ManagedClusterHttpProxyConfig { - readonly effectiveNoProxy?: string[]; httpProxy?: string; httpsProxy?: string; noProxy?: string[]; @@ -1720,7 +1307,6 @@ export interface ManagedClusterListResult { export interface ManagedClusterLoadBalancerProfile { allocatedOutboundPorts?: number; backendPoolType?: BackendPoolType; - clusterServiceLoadBalancerHealthProbeMode?: ClusterServiceLoadBalancerHealthProbeMode; readonly effectiveOutboundIPs?: ResourceReference[]; enableMultipleStandardLoadBalancers?: boolean; idleTimeoutInMinutes?: number; @@ -1762,11 +1348,6 @@ export interface ManagedClusterNATGatewayProfile { managedOutboundIPProfile?: ManagedClusterManagedOutboundIPProfile; } -// @public (undocumented) -export interface ManagedClusterNodeProvisioningProfile { - mode?: NodeProvisioningMode; -} - // @public export interface ManagedClusterNodeResourceGroupProfile { restrictionLevel?: RestrictionLevel; @@ -1828,7 +1409,6 @@ export type ManagedClusterPodIdentityProvisioningState = string; // @public export interface ManagedClusterPoolUpgradeProfile { - componentsByReleases?: ComponentsByRelease[]; kubernetesVersion: string; name?: string; osType: OSType; @@ -1837,7 +1417,6 @@ export interface ManagedClusterPoolUpgradeProfile { // @public (undocumented) export interface ManagedClusterPoolUpgradeProfileUpgradesItem { - isOutOfSupport?: boolean; isPreview?: boolean; kubernetesVersion?: string; } @@ -1866,14 +1445,6 @@ export interface ManagedClusterPropertiesAutoScalerProfile { skipNodesWithSystemPods?: string; } -// @public -export interface ManagedClusterPropertiesForSnapshot { - enableRbac?: boolean; - kubernetesVersion?: string; - readonly networkProfile?: NetworkProfileForSnapshot; - sku?: ManagedClusterSKU; -} - // @public export interface ManagedClusters { beginAbortLatestOperation(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise, ManagedClustersAbortLatestOperationResponse>>; @@ -1882,8 +1453,6 @@ export interface ManagedClusters { beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: ManagedCluster, options?: ManagedClustersCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, resourceName: string, options?: ManagedClustersDeleteOptionalParams): Promise, ManagedClustersDeleteResponse>>; beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersDeleteOptionalParams): Promise; - beginRebalanceLoadBalancers(resourceGroupName: string, resourceName: string, parameters: RebalanceLoadBalancersRequestBody, options?: ManagedClustersRebalanceLoadBalancersOptionalParams): Promise, ManagedClustersRebalanceLoadBalancersResponse>>; - beginRebalanceLoadBalancersAndWait(resourceGroupName: string, resourceName: string, parameters: RebalanceLoadBalancersRequestBody, options?: ManagedClustersRebalanceLoadBalancersOptionalParams): Promise; beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: ManagedClusterAADProfile, options?: ManagedClustersResetAADProfileOptionalParams): Promise, void>>; beginResetAADProfileAndWait(resourceGroupName: string, resourceName: string, parameters: ManagedClusterAADProfile, options?: ManagedClustersResetAADProfileOptionalParams): Promise; beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: ManagedClusterServicePrincipalProfile, options?: ManagedClustersResetServicePrincipalProfileOptionalParams): Promise, void>>; @@ -1903,22 +1472,18 @@ export interface ManagedClusters { get(resourceGroupName: string, resourceName: string, options?: ManagedClustersGetOptionalParams): Promise; getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: ManagedClustersGetAccessProfileOptionalParams): Promise; getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, options?: ManagedClustersGetCommandResultOptionalParams): Promise; - getGuardrailsVersions(location: string, version: string, options?: ManagedClustersGetGuardrailsVersionsOptionalParams): Promise; getMeshRevisionProfile(location: string, mode: string, options?: ManagedClustersGetMeshRevisionProfileOptionalParams): Promise; getMeshUpgradeProfile(resourceGroupName: string, resourceName: string, mode: string, options?: ManagedClustersGetMeshUpgradeProfileOptionalParams): Promise; - getSafeguardsVersions(location: string, version: string, options?: ManagedClustersGetSafeguardsVersionsOptionalParams): Promise; getUpgradeProfile(resourceGroupName: string, resourceName: string, options?: ManagedClustersGetUpgradeProfileOptionalParams): Promise; list(options?: ManagedClustersListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: ManagedClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listClusterAdminCredentials(resourceGroupName: string, resourceName: string, options?: ManagedClustersListClusterAdminCredentialsOptionalParams): Promise; listClusterMonitoringUserCredentials(resourceGroupName: string, resourceName: string, options?: ManagedClustersListClusterMonitoringUserCredentialsOptionalParams): Promise; listClusterUserCredentials(resourceGroupName: string, resourceName: string, options?: ManagedClustersListClusterUserCredentialsOptionalParams): Promise; - listGuardrailsVersions(location: string, options?: ManagedClustersListGuardrailsVersionsOptionalParams): PagedAsyncIterableIterator; listKubernetesVersions(location: string, options?: ManagedClustersListKubernetesVersionsOptionalParams): Promise; listMeshRevisionProfiles(location: string, options?: ManagedClustersListMeshRevisionProfilesOptionalParams): PagedAsyncIterableIterator; listMeshUpgradeProfiles(resourceGroupName: string, resourceName: string, options?: ManagedClustersListMeshUpgradeProfilesOptionalParams): PagedAsyncIterableIterator; listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, resourceName: string, options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator; - listSafeguardsVersions(location: string, options?: ManagedClustersListSafeguardsVersionsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -1955,7 +1520,6 @@ export interface ManagedClustersDeleteHeaders { // @public export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { ifMatch?: string; - ignorePodDisruptionBudget?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1969,31 +1533,15 @@ export interface ManagedClusterSecurityProfile { customCATrustCertificates?: Uint8Array[]; defender?: ManagedClusterSecurityProfileDefender; imageCleaner?: ManagedClusterSecurityProfileImageCleaner; - imageIntegrity?: ManagedClusterSecurityProfileImageIntegrity; - nodeRestriction?: ManagedClusterSecurityProfileNodeRestriction; workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; } // @public export interface ManagedClusterSecurityProfileDefender { logAnalyticsWorkspaceResourceId?: string; - securityGating?: ManagedClusterSecurityProfileDefenderSecurityGating; securityMonitoring?: ManagedClusterSecurityProfileDefenderSecurityMonitoring; } -// @public -export interface ManagedClusterSecurityProfileDefenderSecurityGating { - allowSecretAccess?: boolean; - enabled?: boolean; - identities?: ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem[]; -} - -// @public (undocumented) -export interface ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem { - azureContainerRegistry?: string; - identity?: UserAssignedIdentity; -} - // @public export interface ManagedClusterSecurityProfileDefenderSecurityMonitoring { enabled?: boolean; @@ -2006,24 +1554,14 @@ export interface ManagedClusterSecurityProfileImageCleaner { } // @public -export interface ManagedClusterSecurityProfileImageIntegrity { +export interface ManagedClusterSecurityProfileWorkloadIdentity { enabled?: boolean; } // @public -export interface ManagedClusterSecurityProfileNodeRestriction { - enabled?: boolean; -} - -// @public -export interface ManagedClusterSecurityProfileWorkloadIdentity { - enabled?: boolean; -} - -// @public -export interface ManagedClusterServicePrincipalProfile { - clientId: string; - secret?: string; +export interface ManagedClusterServicePrincipalProfile { + clientId: string; + secret?: string; } // @public @@ -2045,13 +1583,6 @@ export interface ManagedClustersGetCommandResultOptionalParams extends coreClien // @public export type ManagedClustersGetCommandResultResponse = RunCommandResult; -// @public -export interface ManagedClustersGetGuardrailsVersionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersGetGuardrailsVersionsResponse = GuardrailsAvailableVersion; - // @public export interface ManagedClustersGetMeshRevisionProfileOptionalParams extends coreClient.OperationOptions { } @@ -2073,13 +1604,6 @@ export interface ManagedClustersGetOptionalParams extends coreClient.OperationOp // @public export type ManagedClustersGetResponse = ManagedCluster; -// @public -export interface ManagedClustersGetSafeguardsVersionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersGetSafeguardsVersionsResponse = SafeguardsAvailableVersion; - // @public export interface ManagedClustersGetUpgradeProfileOptionalParams extends coreClient.OperationOptions { } @@ -2138,20 +1662,6 @@ export interface ManagedClustersListClusterUserCredentialsOptionalParams extends // @public export type ManagedClustersListClusterUserCredentialsResponse = CredentialResults; -// @public -export interface ManagedClustersListGuardrailsVersionsNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersListGuardrailsVersionsNextResponse = GuardrailsAvailableVersionsList; - -// @public -export interface ManagedClustersListGuardrailsVersionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersListGuardrailsVersionsResponse = GuardrailsAvailableVersionsList; - // @public export interface ManagedClustersListKubernetesVersionsOptionalParams extends coreClient.OperationOptions { } @@ -2215,110 +1725,6 @@ export type ManagedClustersListOutboundNetworkDependenciesEndpointsResponse = Ou // @public export type ManagedClustersListResponse = ManagedClusterListResult; -// @public -export interface ManagedClustersListSafeguardsVersionsNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersListSafeguardsVersionsNextResponse = SafeguardsAvailableVersionsList; - -// @public -export interface ManagedClustersListSafeguardsVersionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersListSafeguardsVersionsResponse = SafeguardsAvailableVersionsList; - -// @public -export interface ManagedClusterSnapshot extends TrackedResource { - creationData?: CreationData; - readonly managedClusterPropertiesReadOnly?: ManagedClusterPropertiesForSnapshot; - snapshotType?: SnapshotType; -} - -// @public -export interface ManagedClusterSnapshotListResult { - readonly nextLink?: string; - value?: ManagedClusterSnapshot[]; -} - -// @public -export interface ManagedClusterSnapshots { - createOrUpdate(resourceGroupName: string, resourceName: string, parameters: ManagedClusterSnapshot, options?: ManagedClusterSnapshotsCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, resourceName: string, options?: ManagedClusterSnapshotsDeleteOptionalParams): Promise; - get(resourceGroupName: string, resourceName: string, options?: ManagedClusterSnapshotsGetOptionalParams): Promise; - list(options?: ManagedClusterSnapshotsListOptionalParams): PagedAsyncIterableIterator; - listByResourceGroup(resourceGroupName: string, options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - updateTags(resourceGroupName: string, resourceName: string, parameters: TagsObject, options?: ManagedClusterSnapshotsUpdateTagsOptionalParams): Promise; -} - -// @public -export interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsCreateOrUpdateResponse = ManagedClusterSnapshot; - -// @public -export interface ManagedClusterSnapshotsDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface ManagedClusterSnapshotsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsGetResponse = ManagedClusterSnapshot; - -// @public -export interface ManagedClusterSnapshotsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsListByResourceGroupNextResponse = ManagedClusterSnapshotListResult; - -// @public -export interface ManagedClusterSnapshotsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsListByResourceGroupResponse = ManagedClusterSnapshotListResult; - -// @public -export interface ManagedClusterSnapshotsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsListNextResponse = ManagedClusterSnapshotListResult; - -// @public -export interface ManagedClusterSnapshotsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsListResponse = ManagedClusterSnapshotListResult; - -// @public -export interface ManagedClusterSnapshotsUpdateTagsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsUpdateTagsResponse = ManagedClusterSnapshot; - -// @public -export interface ManagedClustersRebalanceLoadBalancersHeaders { - location?: string; -} - -// @public -export interface ManagedClustersRebalanceLoadBalancersOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ManagedClustersRebalanceLoadBalancersResponse = ManagedClustersRebalanceLoadBalancersHeaders; - // @public export interface ManagedClustersResetAADProfileHeaders { location?: string; @@ -2357,6 +1763,7 @@ export type ManagedClustersRotateClusterCertificatesResponse = ManagedClustersRo // @public export interface ManagedClustersRotateServiceAccountSigningKeysHeaders { + // (undocumented) location?: string; } @@ -2411,16 +1818,6 @@ export interface ManagedClustersStopOptionalParams extends coreClient.OperationO // @public export type ManagedClustersStopResponse = ManagedClustersStopHeaders; -// @public -export interface ManagedClusterStaticEgressGatewayProfile { - enabled?: boolean; -} - -// @public -export interface ManagedClusterStatus { - readonly provisioningError?: CloudErrorBody; -} - // @public export interface ManagedClusterStorageProfile { blobCSIDriver?: ManagedClusterStorageProfileBlobCSIDriver; @@ -2437,7 +1834,6 @@ export interface ManagedClusterStorageProfileBlobCSIDriver { // @public export interface ManagedClusterStorageProfileDiskCSIDriver { enabled?: boolean; - version?: string; } // @public @@ -2481,7 +1877,6 @@ export interface ManagedClusterWindowsProfile { // @public export interface ManagedClusterWorkloadAutoScalerProfile { keda?: ManagedClusterWorkloadAutoScalerProfileKeda; - // (undocumented) verticalPodAutoscaler?: ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler; } @@ -2490,9 +1885,8 @@ export interface ManagedClusterWorkloadAutoScalerProfileKeda { enabled: boolean; } -// @public (undocumented) +// @public export interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler { - addonAutoscaling?: AddonAutoscaling; enabled: boolean; } @@ -2502,12 +1896,6 @@ export interface ManagedServiceIdentityUserAssignedIdentitiesValue { readonly principalId?: string; } -// @public -export interface ManualScaleProfile { - count?: number; - size?: string; -} - // @public export interface MeshRevision { compatibleWith?: CompatibleVersions[]; @@ -2547,114 +1935,6 @@ export interface MeshUpgradeProfileList { export interface MeshUpgradeProfileProperties extends MeshRevision { } -// @public -export type Mode = string; - -// @public -export interface Namespace extends SubResource { - readonly eTag?: string; - location?: string; - properties?: NamespaceProperties; - readonly systemData?: SystemData; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface NamespaceListResult { - nextLink?: string; - value?: Namespace[]; -} - -// @public -export interface NamespaceProperties { - adoptionPolicy?: AdoptionPolicy; - annotations?: { - [propertyName: string]: string; - }; - defaultNetworkPolicy?: NetworkPolicies; - defaultResourceQuota?: ResourceQuota; - deletePolicy?: DeletePolicy; - labels?: { - [propertyName: string]: string; - }; - readonly provisioningState?: NamespaceProvisioningState; -} - -// @public -export type NamespaceProvisioningState = string; - -// @public -export interface Namespaces { - beginCreateOrUpdate(resourceGroupName: string, resourceName: string, namespaceName: string, parameters: Namespace, options?: NamespacesCreateOrUpdateOptionalParams): Promise, NamespacesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, namespaceName: string, parameters: Namespace, options?: NamespacesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, resourceName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise, NamespacesDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, resourceName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise; - get(resourceGroupName: string, resourceName: string, namespaceName: string, options?: NamespacesGetOptionalParams): Promise; - listByManagedCluster(resourceGroupName: string, resourceName: string, options?: NamespacesListByManagedClusterOptionalParams): PagedAsyncIterableIterator; - listCredential(resourceGroupName: string, resourceName: string, namespaceName: string, options?: NamespacesListCredentialOptionalParams): Promise; - update(resourceGroupName: string, resourceName: string, namespaceName: string, parameters: TagsObject, options?: NamespacesUpdateOptionalParams): Promise; -} - -// @public -export interface NamespacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type NamespacesCreateOrUpdateResponse = Namespace; - -// @public -export interface NamespacesDeleteHeaders { - location?: string; -} - -// @public -export interface NamespacesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type NamespacesDeleteResponse = NamespacesDeleteHeaders; - -// @public -export interface NamespacesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesGetResponse = Namespace; - -// @public -export interface NamespacesListByManagedClusterNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesListByManagedClusterNextResponse = NamespaceListResult; - -// @public -export interface NamespacesListByManagedClusterOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesListByManagedClusterResponse = NamespaceListResult; - -// @public -export interface NamespacesListCredentialOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesListCredentialResponse = CredentialResults; - -// @public -export interface NamespacesUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesUpdateResponse = Namespace; - // @public export type NetworkDataplane = string; @@ -2667,47 +1947,15 @@ export type NetworkPlugin = string; // @public export type NetworkPluginMode = string; -// @public -export interface NetworkPolicies { - egress?: PolicyRule; - ingress?: PolicyRule; -} - // @public export type NetworkPolicy = string; -// @public -export interface NetworkProfileForSnapshot { - loadBalancerSku?: LoadBalancerSku; - networkMode?: NetworkMode; - networkPlugin?: NetworkPlugin; - networkPluginMode?: NetworkPluginMode; - networkPolicy?: NetworkPolicy; -} - // @public export type NginxIngressControllerType = string; -// @public -export interface NodeImageVersion { - fullName?: string; - os?: string; - sku?: string; - version?: string; -} - -// @public -export interface NodeImageVersionsListResult { - readonly nextLink?: string; - value?: NodeImageVersion[]; -} - // @public export type NodeOSUpgradeChannel = string; -// @public -export type NodeProvisioningMode = string; - // @public export interface OperationListResult { readonly value?: OperationValue[]; @@ -2725,60 +1973,6 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption // @public export type OperationsListResponse = OperationListResult; -// @public -export interface OperationStatusResult { - endTime?: Date; - error?: ErrorDetail; - id?: string; - name?: string; - operations?: OperationStatusResult[]; - percentComplete?: number; - readonly resourceId?: string; - startTime?: Date; - status: string; -} - -// @public -export interface OperationStatusResultGetByAgentPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationStatusResultGetByAgentPoolResponse = OperationStatusResult; - -// @public -export interface OperationStatusResultGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationStatusResultGetResponse = OperationStatusResult; - -// @public -export interface OperationStatusResultList { - readonly nextLink?: string; - readonly value?: OperationStatusResult[]; -} - -// @public -export interface OperationStatusResultListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationStatusResultListNextResponse = OperationStatusResultList; - -// @public -export interface OperationStatusResultListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationStatusResultListResponse = OperationStatusResultList; - -// @public -export interface OperationStatusResultOperations { - get(resourceGroupName: string, resourceName: string, operationId: string, options?: OperationStatusResultGetOptionalParams): Promise; - getByAgentPool(resourceGroupName: string, resourceName: string, agentPoolName: string, operationId: string, options?: OperationStatusResultGetByAgentPoolOptionalParams): Promise; - list(resourceGroupName: string, resourceName: string, options?: OperationStatusResultListOptionalParams): PagedAsyncIterableIterator; -} - // @public export interface OperationValue { readonly description?: string; @@ -2789,9 +1983,6 @@ export interface OperationValue { readonly resource?: string; } -// @public -export type Operator = string; - // @public export type OSDiskType = string; @@ -2816,15 +2007,6 @@ export interface OutboundEnvironmentEndpointCollection { // @public export type OutboundType = string; -// @public -export type PodIPAllocationMode = string; - -// @public -export type PodLinkLocalAccess = string; - -// @public -export type PolicyRule = string; - // @public export interface PortRange { portEnd?: number; @@ -2939,11 +2121,6 @@ export interface ProxyResource extends Resource { // @public export type PublicNetworkAccess = string; -// @public -export interface RebalanceLoadBalancersRequestBody { - loadBalancerNames?: string[]; -} - // @public export interface RelativeMonthlySchedule { dayOfWeek: WeekDay; @@ -2974,14 +2151,6 @@ export interface Resource { // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; -// @public -export interface ResourceQuota { - cpuLimit?: string; - cpuRequest?: string; - memoryLimit?: string; - memoryRequest?: string; -} - // @public export interface ResourceReference { id?: string; @@ -3008,43 +2177,9 @@ export interface RunCommandResult { readonly startedAt?: Date; } -// @public -export interface SafeguardsAvailableVersion extends Resource { - properties: SafeguardsAvailableVersionsProperties; -} - -// @public -export interface SafeguardsAvailableVersionsList { - readonly nextLink?: string; - value?: SafeguardsAvailableVersion[]; -} - -// @public -export interface SafeguardsAvailableVersionsProperties { - readonly isDefaultVersion?: boolean; - readonly support?: SafeguardsSupport; -} - -// @public -export interface SafeguardsProfile { - excludedNamespaces?: string[]; - level: Level; - readonly systemExcludedNamespaces?: string[]; - version?: string; -} - -// @public -export type SafeguardsSupport = string; - // @public export type ScaleDownMode = string; -// @public -export interface ScaleProfile { - autoscale?: Record; - manual?: ManualScaleProfile[]; -} - // @public export type ScaleSetEvictionPolicy = string; @@ -3059,9 +2194,6 @@ export interface Schedule { weekly?: WeeklySchedule; } -// @public -export type SeccompDefault = string; - // @public export type ServiceMeshMode = string; @@ -3231,9 +2363,6 @@ export interface TrackedResource extends Resource { }; } -// @public -export type TransitEncryption = string; - // @public export interface TrustedAccessRole { readonly name?: string; @@ -3367,17 +2496,6 @@ export interface UserAssignedIdentity { resourceId?: string; } -// @public -export interface VirtualMachineNodes { - count?: number; - size?: string; -} - -// @public -export interface VirtualMachinesProfile { - scale?: ScaleProfile; -} - // @public export type WeekDay = string; diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index 6b673756edb9..9642746b2d4f 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -8,49 +8,35 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import type { - PipelineRequest, - PipelineResponse, - SendRequest, -} from "@azure/core-rest-pipeline"; -import type * as coreAuth from "@azure/core-auth"; +import { PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; +import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, ManagedClustersImpl, - ContainerServiceImpl, MaintenanceConfigurationsImpl, - NamespacesImpl, AgentPoolsImpl, - MachinesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ResolvePrivateLinkServiceIdImpl, - OperationStatusResultOperationsImpl, SnapshotsImpl, - ManagedClusterSnapshotsImpl, - TrustedAccessRolesImpl, TrustedAccessRoleBindingsImpl, - LoadBalancersImpl, + TrustedAccessRolesImpl, + MachinesImpl, } from "./operations/index.js"; -import type { +import { Operations, ManagedClusters, - ContainerService, MaintenanceConfigurations, - Namespaces, AgentPools, - Machines, PrivateEndpointConnections, PrivateLinkResources, ResolvePrivateLinkServiceId, - OperationStatusResultOperations, Snapshots, - ManagedClusterSnapshots, - TrustedAccessRoles, TrustedAccessRoleBindings, - LoadBalancers, + TrustedAccessRoles, + Machines, } from "./operationsInterfaces/index.js"; -import type { ContainerServiceClientOptionalParams } from "./models/index.js"; +import { ContainerServiceClientOptionalParams } from "./models/index.js"; export class ContainerServiceClient extends coreClient.ServiceClient { $host: string; @@ -84,7 +70,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-containerservice/22.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-containerservice/22.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -96,8 +82,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix, }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com", + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); @@ -107,8 +92,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName, + pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -124,11 +108,9 @@ export class ContainerServiceClient extends coreClient.ServiceClient { coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: credentials, scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, + optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge, + authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge, }, }), ); @@ -138,26 +120,18 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2025-02-02-preview"; + this.apiVersion = options.apiVersion || "2025-03-01"; this.operations = new OperationsImpl(this); this.managedClusters = new ManagedClustersImpl(this); - this.containerService = new ContainerServiceImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this); - this.namespaces = new NamespacesImpl(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.resolvePrivateLinkServiceId = new ResolvePrivateLinkServiceIdImpl(this); this.snapshots = new SnapshotsImpl(this); - this.managedClusterSnapshots = new ManagedClusterSnapshotsImpl(this); - this.trustedAccessRoles = new TrustedAccessRolesImpl(this); this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this); - this.loadBalancers = new LoadBalancersImpl(this); + this.trustedAccessRoles = new TrustedAccessRolesImpl(this); + this.machines = new MachinesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -168,10 +142,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { } const apiVersionPolicy = { name: "CustomApiVersionPolicy", - async sendRequest( - request: PipelineRequest, - next: SendRequest, - ): Promise { + async sendRequest(request: PipelineRequest, next: SendRequest): Promise { const param = request.url.split("?"); if (param.length > 1) { const newParams = param[1].split("&").map((item) => { @@ -191,18 +162,13 @@ export class ContainerServiceClient extends coreClient.ServiceClient { operations: Operations; managedClusters: ManagedClusters; - containerService: ContainerService; maintenanceConfigurations: MaintenanceConfigurations; - namespaces: Namespaces; agentPools: AgentPools; - machines: Machines; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; resolvePrivateLinkServiceId: ResolvePrivateLinkServiceId; - operationStatusResultOperations: OperationStatusResultOperations; snapshots: Snapshots; - managedClusterSnapshots: ManagedClusterSnapshots; - trustedAccessRoles: TrustedAccessRoles; trustedAccessRoleBindings: TrustedAccessRoleBindings; - loadBalancers: LoadBalancers; + trustedAccessRoles: TrustedAccessRoles; + machines: Machines; } diff --git a/sdk/containerservice/arm-containerservice/src/lroImpl.ts b/sdk/containerservice/arm-containerservice/src/lroImpl.ts index 12819b3e3ec9..1b3a95e6c540 100644 --- a/sdk/containerservice/arm-containerservice/src/lroImpl.ts +++ b/sdk/containerservice/arm-containerservice/src/lroImpl.ts @@ -6,11 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AbortSignalLike } from "@azure/abort-controller"; -import type { LongRunningOperation, LroResponse } from "@azure/core-lro"; +import { AbortSignalLike } from "@azure/abort-controller"; +import { LongRunningOperation, LroResponse } from "@azure/core-lro"; export function createLroSpec(inputs: { sendOperationFn: (args: any, spec: any) => Promise>; @@ -26,10 +23,7 @@ export function createLroSpec(inputs: { requestMethod: spec.httpMethod, requestPath: spec.path!, sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: ( - path: string, - options?: { abortSignal?: AbortSignalLike }, - ) => { + sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index e3271621d74b..42f3f3da9f91 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type * as coreClient from "@azure/core-client"; +import * as coreClient from "@azure/core-client"; /** The List Operation response. */ export interface OperationListResult { @@ -100,29 +100,6 @@ export interface KubernetesPatchVersion { upgrades?: string[]; } -/** Holds an array NodeImageVersions */ -export interface NodeImageVersionsListResult { - /** Array of AKS Node Image versions. */ - value?: NodeImageVersion[]; - /** - * The URL to get the next set of machine results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** node image version profile for given major.minor.patch release. */ -export interface NodeImageVersion { - /** The operating system of the node image. Example: AKSUbuntu */ - os?: string; - /** The SKU or flavor of the node image. Example: 2004gen2containerd */ - sku?: string; - /** major.minor.patch version of the node image version release. Example: 2024.02.02 */ - version?: string; - /** The OS + SKU + version of the node image. Example: AKSUbuntu-1804gen2containerd-2024.02.02 */ - fullName?: string; -} - /** The response from the List Managed Clusters operation. */ export interface ManagedClusterListResult { /** The list of managed clusters. */ @@ -203,12 +180,6 @@ export interface PowerState { code?: Code; } -/** Data used when creating a target resource from a source resource. */ -export interface CreationData { - /** This is the ARM ID of the source object to be used to create the target object. */ - sourceResourceId?: string; -} - /** Properties for the container service agent pool profile. */ export interface ManagedClusterAgentPoolProfileProperties { /** @@ -234,13 +205,11 @@ export interface ManagedClusterAgentPoolProfileProperties { vnetSubnetID?: string; /** If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */ podSubnetID?: string; - /** The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'. */ - podIPAllocationMode?: PodIPAllocationMode; /** The maximum number of pods that can run on a node. */ maxPods?: number; /** The operating system type. The default is Linux. */ osType?: OSType; - /** Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. */ + /** Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. */ osSKU?: Ossku; /** The maximum number of nodes for auto-scaling */ maxCount?: number; @@ -254,10 +223,10 @@ export interface ManagedClusterAgentPoolProfileProperties { type?: AgentPoolType; /** A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools */ mode?: AgentPoolMode; - /** Both patch version and are supported. When is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ + /** Both patch version (e.g. 1.20.13) and (e.g. 1.20) are supported. When is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ orchestratorVersion?: string; /** - * If orchestratorVersion was a fully specified version , this field will be exactly equal to it. If orchestratorVersion was , this field will contain the full version being used. + * If orchestratorVersion is a fully specified version , this field will be exactly equal to it. If orchestratorVersion is , this field will contain the full version being used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentOrchestratorVersion?: string; @@ -279,8 +248,6 @@ export interface ManagedClusterAgentPoolProfileProperties { availabilityZones?: string[]; /** Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. */ enableNodePublicIP?: boolean; - /** When set to true, AKS adds a label to the node indicating that the feature is enabled and deploys a daemonset along with host services to sync custom certificate authorities from user-provided list of base64 encoded certificates into node trust stores. Defaults to false. */ - enableCustomCATrust?: boolean; /** This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName} */ nodePublicIPPrefixID?: string; /** The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. */ @@ -295,8 +262,6 @@ export interface ManagedClusterAgentPoolProfileProperties { nodeLabels?: { [propertyName: string]: string }; /** The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule. */ nodeTaints?: string[]; - /** These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be modified after node pool is created, but nodes will not be recreated with new taints until another operation that requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with `kubectl taint nodes node1 key1=value1:NoSchedule-` */ - nodeInitializationTaints?: string[]; /** The ID for Proximity Placement Group. */ proximityPlacementGroupID?: string; /** The Kubelet configuration on the agent pool nodes. */ @@ -317,24 +282,14 @@ export interface ManagedClusterAgentPoolProfileProperties { capacityReservationGroupID?: string; /** This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). */ hostGroupID?: string; - /** The Windows agent pool's specific profile. */ - windowsProfile?: AgentPoolWindowsProfile; /** Network-related settings of an agent pool. */ networkProfile?: AgentPoolNetworkProfile; + /** The Windows agent pool's specific profile. */ + windowsProfile?: AgentPoolWindowsProfile; /** The security settings of an agent pool. */ securityProfile?: AgentPoolSecurityProfile; - /** The GPU settings of an agent pool. */ - gpuProfile?: AgentPoolGPUProfile; - /** Configuration for using artifact streaming on AKS. */ - artifactStreamingProfile?: AgentPoolArtifactStreamingProfile; - /** Specifications on VirtualMachines agent pool. */ - virtualMachinesProfile?: VirtualMachinesProfile; - /** The status of nodes in a VirtualMachines agent pool. */ - virtualMachineNodesStatus?: VirtualMachineNodes[]; - /** Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway. */ - gatewayProfile?: AgentPoolGatewayProfile; - /** Contains read-only information about the Agent Pool. */ - status?: AgentPoolStatus; + /** GPU settings for the Agent Pool. */ + gpuProfile?: GPUProfile; } /** Settings for upgrading an agentpool */ @@ -343,8 +298,6 @@ export interface AgentPoolUpgradeSettings { maxSurge?: string; /** This can either be set to an integer (e.g. '1') or a percentage (e.g. '5%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 0. For more information, including best practices, see: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster */ maxUnavailable?: string; - /** This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is maxSurge. This must always be greater than or equal to maxSurge. For more information, including best practices, see: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster */ - maxBlockedNodes?: string; /** The amount of time (in minutes) to wait on eviction of pods and graceful termination per node. This eviction wait time honors waiting on pod disruption budgets. If this time is exceeded, the upgrade fails. If not specified, the default is 30 minutes. */ drainTimeoutInMinutes?: number; /** The amount of time (in minutes) to wait after draining a node and before reimaging it and moving on to next node. If not specified, the default is 0 minutes. */ @@ -377,8 +330,6 @@ export interface KubeletConfig { containerLogMaxFiles?: number; /** The maximum number of processes per pod. */ podMaxPids?: number; - /** Specifies the default seccomp profile applied to all workloads. If not specified, 'Unconfined' will be used by default. */ - seccompDefault?: SeccompDefault; } /** See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details. */ @@ -453,10 +404,10 @@ export interface SysctlConfig { vmVfsCachePressure?: number; } -/** The Windows agent pool's specific profile. */ -export interface AgentPoolWindowsProfile { - /** The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled. */ - disableOutboundNat?: boolean; +/** Data used when creating a target resource from a source resource. */ +export interface CreationData { + /** This is the ARM ID of the source object to be used to create the target object. */ + sourceResourceId?: string; } /** Network settings of an agent pool. */ @@ -487,71 +438,24 @@ export interface PortRange { protocol?: Protocol; } +/** The Windows agent pool's specific profile. */ +export interface AgentPoolWindowsProfile { + /** The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled. */ + disableOutboundNat?: boolean; +} + /** The security settings of an agent pool. */ export interface AgentPoolSecurityProfile { - /** SSH access method of an agent pool. */ - sshAccess?: AgentPoolSSHAccess; /** vTPM is a Trusted Launch feature for configuring a dedicated secure vault for keys and measurements held locally on the node. For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false. */ enableVtpm?: boolean; /** Secure Boot is a feature of Trusted Launch which ensures that only signed operating systems and drivers can boot. For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false. */ enableSecureBoot?: boolean; } -export interface AgentPoolGPUProfile { - /** The default value is true when the vmSize of the agent pool contains a GPU, false otherwise. GPU Driver Installation can only be set true when VM has an associated GPU resource. Setting this field to false prevents automatic GPU driver installation. In that case, in order for the GPU to be usable, the user must perform GPU driver installation themselves. */ - installGPUDriver?: boolean; - /** Specify the type of GPU driver to install when creating Windows agent pools. If not provided, AKS selects the driver based on system compatibility. This cannot be changed once the AgentPool has been created. This cannot be set on Linux AgentPools. For Linux AgentPools, the driver is selected based on system compatibility. */ - driverType?: DriverType; -} - -export interface AgentPoolArtifactStreamingProfile { - /** Artifact streaming speeds up the cold-start of containers on a node through on-demand image loading. To use this feature, container images must also enable artifact streaming on ACR. If not specified, the default is false. */ - enabled?: boolean; -} - -/** Specifications on VirtualMachines agent pool. */ -export interface VirtualMachinesProfile { - /** Specifications on how to scale a VirtualMachines agent pool. */ - scale?: ScaleProfile; -} - -/** Specifications on how to scale a VirtualMachines agent pool. */ -export interface ScaleProfile { - /** Specifications on how to scale the VirtualMachines agent pool to a fixed size. */ - manual?: ManualScaleProfile[]; - /** Specifications on how to auto-scale the VirtualMachines agent pool within a predefined size range. */ - autoscale?: Record; -} - -/** Specifications on number of machines. */ -export interface ManualScaleProfile { - /** VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or 'Standard_D16s_v5'. */ - size?: string; - /** Number of nodes. */ - count?: number; -} - -/** Current status on a group of nodes of the same vm size. */ -export interface VirtualMachineNodes { - /** The VM size of the agents used to host this group of nodes. */ - size?: string; - /** Number of nodes. */ - count?: number; -} - -/** Profile of the managed cluster gateway agent pool. */ -export interface AgentPoolGatewayProfile { - /** The Gateway agent pool associates one public IPPrefix for each static egress gateway to provide public egress. The size of Public IPPrefix should be selected by the user. Each node in the agent pool is assigned with one IP from the IPPrefix. The IPPrefix size thus serves as a cap on the size of the Gateway agent pool. Due to Azure public IPPrefix size limitation, the valid value range is [28, 31] (/31 = 2 nodes/IPs, /30 = 4 nodes/IPs, /29 = 8 nodes/IPs, /28 = 16 nodes/IPs). The default value is 31. */ - publicIPPrefixSize?: number; -} - -/** Contains read-only information about the Agent Pool. */ -export interface AgentPoolStatus { - /** - * Preserves the detailed info of failure. If there was no error, this field is omitted. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningError?: CloudErrorBody; +/** GPU settings for the Agent Pool. */ +export interface GPUProfile { + /** Whether to install GPU drivers. When it's not specified, default is Install. */ + driver?: GPUDriver; } /** Profile for Linux VMs in the container service cluster. */ @@ -706,7 +610,7 @@ export interface ManagedClusterOidcIssuerProfile { /** Node resource group lockdown profile for a managed cluster. */ export interface ManagedClusterNodeResourceGroupProfile { - /** The restriction level applied to the cluster's node resource group */ + /** The restriction level applied to the cluster's node resource group. If not specified, the default is 'Unrestricted' */ restrictionLevel?: RestrictionLevel; } @@ -714,7 +618,7 @@ export interface ManagedClusterNodeResourceGroupProfile { export interface ContainerServiceNetworkProfile { /** Network plugin used for building the Kubernetes network. */ networkPlugin?: NetworkPlugin; - /** Network plugin mode used for building the Kubernetes network. */ + /** The mode the network plugin should use. */ networkPluginMode?: NetworkPluginMode; /** Network policy used for building the Kubernetes network. */ networkPolicy?: NetworkPolicy; @@ -722,6 +626,8 @@ export interface ContainerServiceNetworkProfile { networkMode?: NetworkMode; /** Network dataplane used in the Kubernetes cluster. */ networkDataplane?: NetworkDataplane; + /** Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information see aka.ms/aksadvancednetworking. */ + advancedNetworking?: AdvancedNetworking; /** A CIDR notation IP range from which to assign pod IPs when kubenet is used. */ podCidr?: string; /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ @@ -736,20 +642,34 @@ export interface ContainerServiceNetworkProfile { loadBalancerProfile?: ManagedClusterLoadBalancerProfile; /** Profile of the cluster NAT gateway. */ natGatewayProfile?: ManagedClusterNATGatewayProfile; - /** The profile for Static Egress Gateway addon. For more details about Static Egress Gateway, see https://aka.ms/aks/static-egress-gateway. */ - staticEgressGatewayProfile?: ManagedClusterStaticEgressGatewayProfile; /** One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. */ podCidrs?: string[]; /** One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges. */ serviceCidrs?: string[]; /** IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6. */ ipFamilies?: IpFamily[]; - /** Defines access to special link local addresses (Azure Instance Metadata Service, aka IMDS) for pods with hostNetwork=false. if not specified, the default is 'IMDS'. */ - podLinkLocalAccess?: PodLinkLocalAccess; - /** Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting behavior. See https://v.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where is represented by a - string. Kubernetes version 1.23 would be '1-23'. */ - kubeProxyConfig?: ContainerServiceNetworkProfileKubeProxyConfig; - /** Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information see aka.ms/aksadvancednetworking. */ - advancedNetworking?: AdvancedNetworking; +} + +/** Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information see aka.ms/aksadvancednetworking. */ +export interface AdvancedNetworking { + /** Indicates the enablement of Advanced Networking functionalities of observability and security on AKS clusters. When this is set to true, all observability and security features will be set to enabled unless explicitly disabled. If not specified, the default is false. */ + enabled?: boolean; + /** Observability profile to enable advanced network metrics and flow logs with historical contexts. */ + observability?: AdvancedNetworkingObservability; + /** Security profile to enable security features on cilium based cluster. */ + security?: AdvancedNetworkingSecurity; +} + +/** Observability profile to enable advanced network metrics and flow logs with historical contexts. */ +export interface AdvancedNetworkingObservability { + /** Indicates the enablement of Advanced Networking observability functionalities on clusters. */ + enabled?: boolean; +} + +/** Security profile to enable security features on cilium based cluster. */ +export interface AdvancedNetworkingSecurity { + /** This feature allows user to configure network policy based on DNS (FQDN) names. It can be enabled only on cilium based clusters. If not specified, the default is false. */ + enabled?: boolean; } /** Profile of the managed cluster load balancer. */ @@ -773,8 +693,6 @@ export interface ManagedClusterLoadBalancerProfile { enableMultipleStandardLoadBalancers?: boolean; /** The type of the managed inbound Load Balancer BackendPool. */ backendPoolType?: BackendPoolType; - /** The health probing behavior for External Traffic Policy Cluster services. */ - clusterServiceLoadBalancerHealthProbeMode?: ClusterServiceLoadBalancerHealthProbeMode; } /** Desired managed outbound IPs for the cluster load balancer. */ @@ -822,60 +740,6 @@ export interface ManagedClusterManagedOutboundIPProfile { count?: number; } -/** The Static Egress Gateway addon configuration for the cluster. */ -export interface ManagedClusterStaticEgressGatewayProfile { - /** Indicates if Static Egress Gateway addon is enabled or not. */ - enabled?: boolean; -} - -/** Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting behavior. See https://v.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where is represented by a - string. Kubernetes version 1.23 would be '1-23'. */ -export interface ContainerServiceNetworkProfileKubeProxyConfig { - /** Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, kube-proxy is enabled in AKS by default without these customizations). */ - enabled?: boolean; - /** Specify which proxy mode to use ('IPTABLES' or 'IPVS') */ - mode?: Mode; - /** Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. */ - ipvsConfig?: ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig; -} - -/** Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. */ -export interface ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig { - /** IPVS scheduler, for more information please see http://www.linuxvirtualserver.org/docs/scheduling.html. */ - scheduler?: IpvsScheduler; - /** The timeout value used for idle IPVS TCP sessions in seconds. Must be a positive integer value. */ - tcpTimeoutSeconds?: number; - /** The timeout value used for IPVS TCP sessions after receiving a FIN in seconds. Must be a positive integer value. */ - tcpFinTimeoutSeconds?: number; - /** The timeout value used for IPVS UDP packets in seconds. Must be a positive integer value. */ - udpTimeoutSeconds?: number; -} - -/** Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information see aka.ms/aksadvancednetworking. */ -export interface AdvancedNetworking { - /** Indicates the enablement of Advanced Networking functionalities of observability and security on AKS clusters. When this is set to true, all observability and security features will be set to enabled unless explicitly disabled. If not specified, the default is false. */ - enabled?: boolean; - /** Observability profile to enable advanced network metrics and flow logs with historical contexts. */ - observability?: AdvancedNetworkingObservability; - /** Security profile to enable security features on cilium-based cluster. */ - security?: AdvancedNetworkingSecurity; -} - -/** Observability profile to enable advanced network metrics and flow logs with historical contexts. */ -export interface AdvancedNetworkingObservability { - /** Indicates the enablement of Advanced Networking observability functionalities on clusters. */ - enabled?: boolean; -} - -/** Security profile to enable security features on cilium-based cluster. */ -export interface AdvancedNetworkingSecurity { - /** Configure Advanced Networking Security features on Cilium clusters. See individual fields for their default values. */ - enabled?: boolean; - /** This allows users to configure Layer 7 network policies (FQDN, HTTP, Kafka). Policies themselves must be configured via the Cilium Network Policy resources, see https://docs.cilium.io/en/latest/security/policy/index.html. This can be enabled only on cilium-based clusters. If not specified, the default value is FQDN if security.enabled is set to true. */ - advancedNetworkPolicies?: AdvancedNetworkPolicies; - /** This can be enabled only on Cilium-based clusters. If not specified, the default value is None. */ - transitEncryption?: TransitEncryption; -} - /** For more details see [managed AAD on AKS](https://docs.microsoft.com/azure/aks/managed-aad). */ export interface ManagedClusterAADProfile { /** Whether to enable managed AAD. */ @@ -898,7 +762,7 @@ export interface ManagedClusterAADProfile { export interface ManagedClusterAutoUpgradeProfile { /** For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). */ upgradeChannel?: UpgradeChannel; - /** The default is Unmanaged, but may change to either NodeImage or SecurityPatch at GA. */ + /** Manner in which the OS on your nodes is updated. The default is NodeImage. */ nodeOSUpgradeChannel?: NodeOSUpgradeChannel; } @@ -926,7 +790,7 @@ export interface ManagedClusterPropertiesAutoScalerProfile { daemonsetEvictionForOccupiedNodes?: boolean; /** If set to true, the resources used by daemonset will be taken into account when making scaling down decisions. */ ignoreDaemonsetsUtilization?: boolean; - /** Available values are: 'least-waste', 'most-pods', 'priority', 'random'. */ + /** If not specified, the default is 'random'. See [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) for more information. */ expander?: Expander; /** The default is 10. */ maxEmptyBulkDelete?: string; @@ -972,9 +836,9 @@ export interface ManagedClusterAPIServerAccessProfile { enablePrivateClusterPublicFqdn?: boolean; /** Whether to disable run command for the cluster or not. */ disableRunCommand?: boolean; - /** Whether to enable apiserver vnet integration for the cluster or not. */ + /** Whether to enable apiserver vnet integration for the cluster or not. See aka.ms/AksVnetIntegration for more details. */ enableVnetIntegration?: boolean; - /** It is required when: 1. creating a new cluster with BYO Vnet; 2. updating an existing cluster to enable apiserver vnet integration. */ + /** It is required when creating a new cluster with BYO Vnet, or when updating an existing cluster to enable apiserver vnet integration. */ subnetId?: string; } @@ -1005,11 +869,6 @@ export interface ManagedClusterHttpProxyConfig { httpsProxy?: string; /** The endpoints that should not go through proxy. */ noProxy?: string[]; - /** - * A read-only list of all endpoints for which traffic should not be sent to the proxy. This list is a superset of noProxy and values injected by AKS. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly effectiveNoProxy?: string[]; /** Alternative CA cert to use for connecting to proxy servers. */ trustedCa?: string; } @@ -1024,10 +883,6 @@ export interface ManagedClusterSecurityProfile { workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; /** Image Cleaner settings for the security profile. */ imageCleaner?: ManagedClusterSecurityProfileImageCleaner; - /** Image integrity is a feature that works with Azure Policy to verify image integrity by signature. This will not have any effect unless Azure Policy is applied to enforce image signatures. See https://aka.ms/aks/image-integrity for how to use this feature via policy. */ - imageIntegrity?: ManagedClusterSecurityProfileImageIntegrity; - /** [Node Restriction](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#noderestriction) settings for the security profile. */ - nodeRestriction?: ManagedClusterSecurityProfileNodeRestriction; /** A list of up to 10 base64 encoded CAs that will be added to the trust store on all nodes in the cluster. For more information see [Custom CA Trust Certificates](https://learn.microsoft.com/en-us/azure/aks/custom-certificate-authority). */ customCATrustCertificates?: Uint8Array[]; } @@ -1038,8 +893,6 @@ export interface ManagedClusterSecurityProfileDefender { logAnalyticsWorkspaceResourceId?: string; /** Microsoft Defender threat detection for Cloud settings for the security profile. */ securityMonitoring?: ManagedClusterSecurityProfileDefenderSecurityMonitoring; - /** Microsoft Defender settings for security gating, validates container images eligibility for deployment based on Defender for Containers security findings. Using Admission Controller, it either audits or prevents the deployment of images that do not meet security standards. */ - securityGating?: ManagedClusterSecurityProfileDefenderSecurityGating; } /** Microsoft Defender settings for the security profile threat detection. */ @@ -1048,23 +901,6 @@ export interface ManagedClusterSecurityProfileDefenderSecurityMonitoring { enabled?: boolean; } -/** Microsoft Defender settings for security gating, validates container images eligibility for deployment based on Defender for Containers security findings. Using Admission Controller, it either audits or prevents the deployment of images that do not meet security standards. */ -export interface ManagedClusterSecurityProfileDefenderSecurityGating { - /** Whether to enable Defender security gating. When enabled, the gating feature will scan container images and audit or block the deployment of images that do not meet security standards according to the configured security rules. */ - enabled?: boolean; - /** List of identities that the admission controller will make use of in order to pull security artifacts from the registry. These are the same identities used by the cluster to pull container images. Each identity provided should have federated identity credential attached to it. */ - identities?: ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem[]; - /** In use only while registry access granted by secret rather than managed identity. Set whether to grant the Defender gating agent access to the cluster's secrets for pulling images from registries. If secret access is denied and the registry requires pull secrets, the add-on will not perform any image validation. Default value is false. */ - allowSecretAccess?: boolean; -} - -export interface ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem { - /** The container registry for which the identity will be used; the identity specified here should have a federated identity credential attached to it. */ - azureContainerRegistry?: string; - /** The identity object used to access the registry */ - identity?: UserAssignedIdentity; -} - /** Azure Key Vault key management service settings for the security profile. */ export interface AzureKeyVaultKms { /** Whether to enable Azure Key Vault key management service. The default is false. */ @@ -1091,18 +927,6 @@ export interface ManagedClusterSecurityProfileImageCleaner { intervalHours?: number; } -/** Image integrity related settings for the security profile. */ -export interface ManagedClusterSecurityProfileImageIntegrity { - /** Whether to enable image integrity. The default value is false. */ - enabled?: boolean; -} - -/** Node Restriction settings for the security profile. */ -export interface ManagedClusterSecurityProfileNodeRestriction { - /** Whether to enable Node Restriction */ - enabled?: boolean; -} - /** Storage profile for the container service cluster. */ export interface ManagedClusterStorageProfile { /** AzureDisk CSI Driver settings for the storage profile. */ @@ -1119,8 +943,6 @@ export interface ManagedClusterStorageProfile { export interface ManagedClusterStorageProfileDiskCSIDriver { /** Whether to enable AzureDisk CSI Driver. The default value is true. */ enabled?: boolean; - /** The version of AzureDisk CSI Driver. The default value is v1. */ - version?: string; } /** AzureFile CSI Driver settings for the storage profile. */ @@ -1143,20 +965,20 @@ export interface ManagedClusterStorageProfileBlobCSIDriver { /** Ingress profile for the container service cluster. */ export interface ManagedClusterIngressProfile { - /** Web App Routing settings for the ingress profile. */ + /** App Routing settings for the ingress profile. You can find an overview and onboarding guide for this feature at https://learn.microsoft.com/en-us/azure/aks/app-routing?tabs=default%2Cdeploy-app-default. */ webAppRouting?: ManagedClusterIngressProfileWebAppRouting; } -/** Web App Routing settings for the ingress profile. */ +/** Application Routing add-on settings for the ingress profile. */ export interface ManagedClusterIngressProfileWebAppRouting { - /** Whether to enable Web App Routing. */ + /** Whether to enable the Application Routing add-on. */ enabled?: boolean; - /** Resource IDs of the DNS zones to be associated with the Web App Routing add-on. Used only when Web App Routing is enabled. Public and private DNS zones can be in different resource groups, but all public DNS zones must be in the same resource group and all private DNS zones must be in the same resource group. */ + /** Resource IDs of the DNS zones to be associated with the Application Routing add-on. Used only when Application Routing add-on is enabled. Public and private DNS zones can be in different resource groups, but all public DNS zones must be in the same resource group and all private DNS zones must be in the same resource group. */ dnsZoneResourceIds?: string[]; /** Configuration for the default NginxIngressController. See more at https://learn.microsoft.com/en-us/azure/aks/app-routing-nginx-configuration#the-default-nginx-ingress-controller. */ nginx?: ManagedClusterIngressProfileNginx; /** - * Managed identity of the Web Application Routing add-on. This is the identity that should be granted permissions, for example, to manage the associated Azure DNS resource and get certificates from Azure Key Vault. See [this overview of the add-on](https://learn.microsoft.com/en-us/azure/aks/web-app-routing?tabs=with-osm) for more instructions. + * Managed identity of the Application Routing add-on. This is the identity that should be granted permissions, for example, to manage the associated Azure DNS resource and get certificates from Azure Key Vault. See [this overview of the add-on](https://learn.microsoft.com/en-us/azure/aks/web-app-routing?tabs=with-osm) for more instructions. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly identity?: UserAssignedIdentity; @@ -1171,6 +993,7 @@ export interface ManagedClusterIngressProfileNginx { export interface ManagedClusterWorkloadAutoScalerProfile { /** KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile. */ keda?: ManagedClusterWorkloadAutoScalerProfileKeda; + /** VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile. */ verticalPodAutoscaler?: ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler; } @@ -1180,100 +1003,34 @@ export interface ManagedClusterWorkloadAutoScalerProfileKeda { enabled: boolean; } +/** VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile. */ export interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler { - /** Whether to enable VPA add-on in cluster. Default value is false. */ + /** Whether to enable VPA. Default value is false. */ enabled: boolean; - /** Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. */ - addonAutoscaling?: AddonAutoscaling; } -/** Prometheus addon profile for the container service cluster */ +/** Azure Monitor addon profiles for monitoring the managed cluster. */ export interface ManagedClusterAzureMonitorProfile { - /** Metrics profile for the prometheus service addon */ + /** Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview. */ metrics?: ManagedClusterAzureMonitorProfileMetrics; - /** Azure Monitor Container Insights Profile for Kubernetes Events, Inventory and Container stdout & stderr logs etc. See aka.ms/AzureMonitorContainerInsights for an overview. */ - containerInsights?: ManagedClusterAzureMonitorProfileContainerInsights; - /** Application Monitoring Profile for Kubernetes Application Container. Collects application logs, metrics and traces through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ - appMonitoring?: ManagedClusterAzureMonitorProfileAppMonitoring; } -/** Metrics profile for the prometheus service addon */ +/** Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview. */ export interface ManagedClusterAzureMonitorProfileMetrics { - /** Whether to enable the Prometheus collector */ + /** Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling. */ enabled: boolean; - /** Kube State Metrics for prometheus addon profile for the container service cluster */ + /** Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details. */ kubeStateMetrics?: ManagedClusterAzureMonitorProfileKubeStateMetrics; } -/** Kube State Metrics for prometheus addon profile for the container service cluster */ +/** Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details. */ export interface ManagedClusterAzureMonitorProfileKubeStateMetrics { - /** Comma-separated list of Kubernetes annotations keys that will be used in the resource's labels metric. */ + /** Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric (Example: 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). By default the metric contains only resource name and namespace labels. */ metricLabelsAllowlist?: string; - /** Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric. */ + /** Comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric (Example: 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). By default the metric contains only resource name and namespace labels. */ metricAnnotationsAllowList?: string; } -/** Azure Monitor Container Insights Profile for Kubernetes Events, Inventory and Container stdout & stderr logs etc. See aka.ms/AzureMonitorContainerInsights for an overview. */ -export interface ManagedClusterAzureMonitorProfileContainerInsights { - /** Indicates if Azure Monitor Container Insights Logs Addon is enabled or not. */ - enabled?: boolean; - /** Fully Qualified ARM Resource Id of Azure Log Analytics Workspace for storing Azure Monitor Container Insights Logs. */ - logAnalyticsWorkspaceResourceId?: string; - /** The syslog host port. If not specified, the default port is 28330. */ - syslogPort?: number; - /** Indicates whether custom metrics collection has to be disabled or not. If not specified the default is false. No custom metrics will be emitted if this field is false but the container insights enabled field is false */ - disableCustomMetrics?: boolean; - /** Indicates whether prometheus metrics scraping is disabled or not. If not specified the default is false. No prometheus metrics will be emitted if this field is false but the container insights enabled field is false */ - disablePrometheusMetricsScraping?: boolean; -} - -/** Application Monitoring Profile for Kubernetes Application Container. Collects application logs, metrics and traces through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ -export interface ManagedClusterAzureMonitorProfileAppMonitoring { - /** Application Monitoring Auto Instrumentation for Kubernetes Application Container. Deploys web hook to auto-instrument Azure Monitor OpenTelemetry based SDKs to collect OpenTelemetry metrics, logs and traces of the application. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ - autoInstrumentation?: ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation; - /** Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Metrics. Collects OpenTelemetry metrics of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ - openTelemetryMetrics?: ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics; - /** Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Logs and Traces. Collects OpenTelemetry logs and traces of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ - openTelemetryLogs?: ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs; -} - -/** Application Monitoring Auto Instrumentation for Kubernetes Application Container. Deploys web hook to auto-instrument Azure Monitor OpenTelemetry based SDKs to collect OpenTelemetry metrics, logs and traces of the application. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ -export interface ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation { - /** Indicates if Application Monitoring Auto Instrumentation is enabled or not. */ - enabled?: boolean; -} - -/** Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Metrics. Collects OpenTelemetry metrics of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ -export interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics { - /** Indicates if Application Monitoring Open Telemetry Metrics is enabled or not. */ - enabled?: boolean; - /** The Open Telemetry host port for Open Telemetry metrics. If not specified, the default port is 28333. */ - port?: number; -} - -/** Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Logs and Traces. Collects OpenTelemetry logs and traces of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ -export interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs { - /** Indicates if Application Monitoring Open Telemetry Logs and traces is enabled or not. */ - enabled?: boolean; - /** The Open Telemetry host port for Open Telemetry logs and traces. If not specified, the default port is 28331. */ - port?: number; -} - -/** The Safeguards profile. */ -export interface SafeguardsProfile { - /** - * List of namespaces specified by AKS to be excluded from Safeguards - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemExcludedNamespaces?: string[]; - /** The version of constraints to use */ - version?: string; - /** The Safeguards level to be used. By default, Safeguards is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces */ - level: Level; - /** List of namespaces excluded from Safeguards checks */ - excludedNamespaces?: string[]; -} - /** Service mesh profile for a managed cluster. */ export interface ServiceMeshProfile { /** Mode of the service mesh. */ @@ -1312,12 +1069,6 @@ export interface IstioIngressGateway { export interface IstioEgressGateway { /** Whether to enable the egress gateway. */ enabled: boolean; - /** Name of the Istio add-on egress gateway. */ - name: string; - /** Namespace that the Istio add-on egress gateway should be deployed in. If unspecified, the default is aks-istio-egress. */ - namespace?: string; - /** Name of the gateway configuration custom resource for the Istio add-on egress gateway. Must be specified when enabling the Istio egress gateway. Must be deployed in the same namespace that the Istio egress gateway will be deployed in. */ - gatewayConfigurationName?: string; } /** Istio Service Mesh Certificate Authority (CA) configuration. For now, we only support plugin certificates as described here https://aka.ms/asm-plugin-ca */ @@ -1352,17 +1103,6 @@ export interface ManagedClusterCostAnalysis { enabled?: boolean; } -/** When enabling the operator, a set of AKS managed CRDs and controllers will be installed in the cluster. The operator automates the deployment of OSS models for inference and/or training purposes. It provides a set of preset models and enables distributed inference against them. */ -export interface ManagedClusterAIToolchainOperatorProfile { - /** Indicates if AI toolchain operator enabled or not. */ - enabled?: boolean; -} - -export interface ManagedClusterNodeProvisioningProfile { - /** Once the mode it set to Auto, it cannot be changed back to Manual. */ - mode?: NodeProvisioningMode; -} - /** The bootstrap profile. */ export interface ManagedClusterBootstrapProfile { /** The source where the artifacts are downloaded from. */ @@ -1371,15 +1111,6 @@ export interface ManagedClusterBootstrapProfile { containerRegistryId?: string; } -/** Contains read-only information about the Managed Cluster. */ -export interface ManagedClusterStatus { - /** - * Preserves the detailed info of failure. If there was no error, this field is omitted. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningError?: CloudErrorBody; -} - /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** @@ -1453,8 +1184,6 @@ export interface ManagedClusterPoolUpgradeProfile { osType: OSType; /** List of orchestrator types and versions available for upgrade. */ upgrades?: ManagedClusterPoolUpgradeProfileUpgradesItem[]; - /** List of components grouped by kubernetes major.minor version. */ - componentsByReleases?: ComponentsByRelease[]; } export interface ManagedClusterPoolUpgradeProfileUpgradesItem { @@ -1462,25 +1191,6 @@ export interface ManagedClusterPoolUpgradeProfileUpgradesItem { kubernetesVersion?: string; /** Whether the Kubernetes version is currently in preview. */ isPreview?: boolean; - /** Whether the Kubernetes version is out of support. */ - isOutOfSupport?: boolean; -} - -/** components of given Kubernetes version. */ -export interface ComponentsByRelease { - /** The Kubernetes version (major.minor). */ - kubernetesVersion?: string; - /** components of current or upgraded Kubernetes version in the cluster. */ - components?: Component[]; -} - -export interface Component { - /** Component name. */ - name?: string; - /** Component version. */ - version?: string; - /** If upgraded component version contains breaking changes from the current version. To see a detailed description of what the breaking changes are, visit https://learn.microsoft.com/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-components-breaking-changes-by-version. */ - hasBreakingChanges?: boolean; } /** The list credential result response. */ @@ -1593,7 +1303,7 @@ export interface AbsoluteMonthlySchedule { export interface RelativeMonthlySchedule { /** Specifies the number of months between each set of occurrences. */ intervalMonths: number; - /** Specifies on which instance of the allowed days specified in daysOfWeek the maintenance occurs. */ + /** Specifies on which week of the month the dayOfWeek applies. */ weekIndex: Type; /** Specifies on which day of the week the maintenance occurs. */ dayOfWeek: WeekDay; @@ -1626,53 +1336,55 @@ export interface SubResource { readonly type?: string; } -/** The result of a request to list namespaces in a managed cluster. */ -export interface NamespaceListResult { - /** The list of namespaces. */ - value?: Namespace[]; - /** The URI to fetch the next page of results, if any. */ - nextLink?: string; +/** The response from the List Agent Pools operation. */ +export interface AgentPoolListResult { + /** The list of agent pools. */ + value?: AgentPool[]; + /** + * The URL to get the next set of agent pool results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Properties of a namespace managed by ARM */ -export interface NamespaceProperties { +/** The list of available upgrades for an agent pool. */ +export interface AgentPoolUpgradeProfile { + /** + * The ID of the agent pool upgrade profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the agent pool upgrade profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; /** - * The current provisioning state of the namespace. + * The type of the agent pool upgrade profile. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: NamespaceProvisioningState; - /** The labels of managed namespace. */ - labels?: { [propertyName: string]: string }; - /** The annotations of managed namespace. */ - annotations?: { [propertyName: string]: string }; - /** The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced. */ - defaultResourceQuota?: ResourceQuota; - /** The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced. */ - defaultNetworkPolicy?: NetworkPolicies; - /** Action if Kubernetes namespace with same name already exists. */ - adoptionPolicy?: AdoptionPolicy; - /** Delete options of a namespace. */ - deletePolicy?: DeletePolicy; -} - -/** Resource quota for the namespace. */ -export interface ResourceQuota { - /** CPU request of the namespace in one-thousandth CPU form. See [CPU resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) for more details. */ - cpuRequest?: string; - /** CPU limit of the namespace in one-thousandth CPU form. See [CPU resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) for more details. */ - cpuLimit?: string; - /** Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See [Memory resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory) for more details. */ - memoryRequest?: string; - /** Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See [Memory resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory) for more details. */ - memoryLimit?: string; -} - -/** Default network policy of the namespace, specifying ingress and egress rules. */ -export interface NetworkPolicies { - /** Ingress policy for the network. */ - ingress?: PolicyRule; - /** Egress policy for the network. */ - egress?: PolicyRule; + readonly type?: string; + /** The Kubernetes version (major.minor.patch). */ + kubernetesVersion: string; + /** The operating system type. The default is Linux. */ + osType: OSType; + /** List of orchestrator types and versions available for upgrade. */ + upgrades?: AgentPoolUpgradeProfilePropertiesUpgradesItem[]; + /** The latest AKS supported node image version. */ + latestNodeImageVersion?: string; +} + +export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { + /** The Kubernetes version (major.minor.patch). */ + kubernetesVersion?: string; + /** Whether the Kubernetes version is currently in preview. */ + isPreview?: boolean; +} + +/** Specifies a list of machine names from the agent pool to be deleted. */ +export interface AgentPoolDeleteMachinesParameter { + /** The agent pool machine names. */ + machineNames: string[]; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -1724,149 +1436,46 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** The response from the List Agent Pools operation. */ -export interface AgentPoolListResult { - /** The list of agent pools. */ - value?: AgentPool[]; - /** - * The URL to get the next set of agent pool results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The list of available upgrades for an agent pool. */ -export interface AgentPoolUpgradeProfile { +/** The list of available versions for an agent pool. */ +export interface AgentPoolAvailableVersions { /** - * The ID of the agent pool upgrade profile. + * The ID of the agent pool version list. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * The name of the agent pool upgrade profile. + * The name of the agent pool version list. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The type of the agent pool upgrade profile. + * Type of the agent pool version list. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; - /** The Kubernetes version (major.minor.patch). */ - kubernetesVersion: string; - /** The operating system type. The default is Linux. */ - osType: OSType; - /** List of orchestrator types and versions available for upgrade. */ - upgrades?: AgentPoolUpgradeProfilePropertiesUpgradesItem[]; - /** List of components grouped by kubernetes major.minor version. */ - componentsByReleases?: ComponentsByRelease[]; - /** The latest AKS supported node image version. */ - latestNodeImageVersion?: string; + /** List of versions available for agent pool. */ + agentPoolVersions?: AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem[]; } -export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { +export interface AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem { + /** Whether this version is the default agent pool version. */ + default?: boolean; /** The Kubernetes version (major.minor.patch). */ kubernetesVersion?: string; - /** Whether the Kubernetes version is currently in preview. */ + /** Whether Kubernetes version is currently in preview. */ isPreview?: boolean; - /** Whether the Kubernetes version is out of support. */ - isOutOfSupport?: boolean; } -/** Specifies a list of machine names from the agent pool to be deleted. */ -export interface AgentPoolDeleteMachinesParameter { - /** The agent pool machine names. */ - machineNames: string[]; +/** A list of private endpoint connections */ +export interface PrivateEndpointConnectionListResult { + /** The collection value. */ + value?: PrivateEndpointConnection[]; } -/** The response from the List Machines operation. */ -export interface MachineListResult { - /** The list of Machines in cluster. */ - value?: Machine[]; +/** A private endpoint connection */ +export interface PrivateEndpointConnection { /** - * The URL to get the next set of machine results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The properties of the machine */ -export interface MachineProperties { - /** - * network properties of the machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly network?: MachineNetworkProperties; - /** - * Arm resource id of the machine. It can be used to GET underlying VM Instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceId?: string; -} - -/** network properties of the machine */ -export interface MachineNetworkProperties { - /** - * IPv4, IPv6 addresses of the machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ipAddresses?: MachineIpAddress[]; -} - -/** The machine IP address details. */ -export interface MachineIpAddress { - /** - * To determine if address belongs IPv4 or IPv6 family - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly family?: IpFamily; - /** - * IPv4 or IPv6 address of the machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ip?: string; -} - -/** The list of available versions for an agent pool. */ -export interface AgentPoolAvailableVersions { - /** - * The ID of the agent pool version list. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the agent pool version list. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Type of the agent pool version list. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** List of versions available for agent pool. */ - agentPoolVersions?: AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem[]; -} - -export interface AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem { - /** Whether this version is the default agent pool version. */ - default?: boolean; - /** The Kubernetes version (major.minor.patch). */ - kubernetesVersion?: string; - /** Whether Kubernetes version is currently in preview. */ - isPreview?: boolean; -} - -/** A list of private endpoint connections */ -export interface PrivateEndpointConnectionListResult { - /** The collection value. */ - value?: PrivateEndpointConnection[]; -} - -/** A private endpoint connection */ -export interface PrivateEndpointConnection { - /** - * The ID of the private endpoint connection. + * The ID of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -1999,45 +1608,6 @@ export interface EndpointDetail { description?: string; } -/** The operations list. It contains an URL link to get the next set of results. */ -export interface OperationStatusResultList { - /** - * List of operations - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: OperationStatusResult[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The current status of an async operation. */ -export interface OperationStatusResult { - /** Fully qualified ID for the async operation. */ - id?: string; - /** - * Fully qualified ID of the resource against which the original async operation was started. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceId?: string; - /** Name of the async operation. */ - name?: string; - /** Operation status. */ - status: string; - /** Percent of the operation that is complete. */ - percentComplete?: number; - /** The start time of the operation. */ - startTime?: Date; - /** The end time of the operation. */ - endTime?: Date; - /** The operations list. */ - operations?: OperationStatusResult[]; - /** If present, details of the operation error. */ - error?: ErrorDetail; -} - /** The response from the List Snapshots operation. */ export interface SnapshotListResult { /** The list of snapshots. */ @@ -2049,44 +1619,60 @@ export interface SnapshotListResult { readonly nextLink?: string; } -/** The response from the List Managed Cluster Snapshots operation. */ -export interface ManagedClusterSnapshotListResult { - /** The list of managed cluster snapshots. */ - value?: ManagedClusterSnapshot[]; +/** Holds an array of MeshRevisionsProfiles */ +export interface MeshRevisionProfileList { + /** Array of service mesh add-on revision profiles for all supported mesh modes. */ + value?: MeshRevisionProfile[]; /** - * The URL to get the next set of managed cluster snapshot results. + * The URL to get the next set of mesh revision profile. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** managed cluster properties for snapshot, these properties are read only. */ -export interface ManagedClusterPropertiesForSnapshot { - /** The current kubernetes version. */ - kubernetesVersion?: string; - /** The current managed cluster sku. */ - sku?: ManagedClusterSKU; - /** Whether the cluster has enabled Kubernetes Role-Based Access Control or not. */ - enableRbac?: boolean; +/** Mesh revision profile properties for a mesh */ +export interface MeshRevisionProfileProperties { + meshRevisions?: MeshRevision[]; +} + +/** Holds information on upgrades and compatibility for given major.minor mesh release. */ +export interface MeshRevision { + /** The revision of the mesh release. */ + revision?: string; + /** List of revisions available for upgrade of a specific mesh revision */ + upgrades?: string[]; + /** List of items this revision of service mesh is compatible with, and their associated versions. */ + compatibleWith?: CompatibleVersions[]; +} + +/** Version information about a product/service that is compatible with a service mesh revision. */ +export interface CompatibleVersions { + /** The product/service name. */ + name?: string; + /** Product/service versions compatible with a service mesh add-on revision. */ + versions?: string[]; +} + +/** Holds an array of MeshUpgradeProfiles */ +export interface MeshUpgradeProfileList { + /** Array of supported service mesh add-on upgrade profiles. */ + value?: MeshUpgradeProfile[]; /** - * The current network profile. + * The URL to get the next set of mesh upgrade profile. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly networkProfile?: NetworkProfileForSnapshot; + readonly nextLink?: string; } -/** network profile for managed cluster snapshot, these properties are read only. */ -export interface NetworkProfileForSnapshot { - /** networkPlugin for managed cluster snapshot. */ - networkPlugin?: NetworkPlugin; - /** NetworkPluginMode for managed cluster snapshot. */ - networkPluginMode?: NetworkPluginMode; - /** networkPolicy for managed cluster snapshot. */ - networkPolicy?: NetworkPolicy; - /** networkMode for managed cluster snapshot. */ - networkMode?: NetworkMode; - /** loadBalancerSku for managed cluster snapshot. */ - loadBalancerSku?: LoadBalancerSku; +/** List of trusted access role bindings */ +export interface TrustedAccessRoleBindingListResult { + /** Role binding list */ + value?: TrustedAccessRoleBinding[]; + /** + * Link to next page of resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } /** List of trusted access roles */ @@ -2151,161 +1737,62 @@ export interface TrustedAccessRoleRule { readonly nonResourceURLs?: string[]; } -/** List of trusted access role bindings */ -export interface TrustedAccessRoleBindingListResult { - /** Role binding list */ - value?: TrustedAccessRoleBinding[]; - /** - * Link to next page of resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Whether the version is default or not and support info. */ -export interface GuardrailsAvailableVersionsProperties { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefaultVersion?: boolean; - /** - * Whether the version is preview or stable. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly support?: GuardrailsSupport; -} - -/** Hold values properties, which is array of GuardrailsVersions */ -export interface GuardrailsAvailableVersionsList { - /** Array of AKS supported Guardrails versions. */ - value?: GuardrailsAvailableVersion[]; +/** The response from the List Machines operation. */ +export interface MachineListResult { /** - * The URL to get the next Guardrails available version. + * The URL to get the next set of machine results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; + /** The list of Machines in cluster. */ + value?: Machine[]; } -/** Whether the version is default or not and support info. */ -export interface SafeguardsAvailableVersionsProperties { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefaultVersion?: boolean; +/** The properties of the machine */ +export interface MachineProperties { /** - * Whether the version is preview or stable. + * network properties of the machine * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly support?: SafeguardsSupport; -} - -/** Hold values properties, which is array of SafeguardsVersions */ -export interface SafeguardsAvailableVersionsList { - /** Array of AKS supported Safeguards versions. */ - value?: SafeguardsAvailableVersion[]; + readonly network?: MachineNetworkProperties; /** - * The URL to get the next Safeguards available version. + * Azure resource id of the machine. It can be used to GET underlying VM Instance * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly resourceId?: string; } -/** Holds an array of MeshRevisionsProfiles */ -export interface MeshRevisionProfileList { - /** Array of service mesh add-on revision profiles for all supported mesh modes. */ - value?: MeshRevisionProfile[]; +/** network properties of the machine */ +export interface MachineNetworkProperties { /** - * The URL to get the next set of mesh revision profile. + * IPv4, IPv6 addresses of the machine * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Mesh revision profile properties for a mesh */ -export interface MeshRevisionProfileProperties { - meshRevisions?: MeshRevision[]; -} - -/** Holds information on upgrades and compatibility for given major.minor mesh release. */ -export interface MeshRevision { - /** The revision of the mesh release. */ - revision?: string; - /** List of revisions available for upgrade of a specific mesh revision */ - upgrades?: string[]; - /** List of items this revision of service mesh is compatible with, and their associated versions. */ - compatibleWith?: CompatibleVersions[]; -} - -/** Version information about a product/service that is compatible with a service mesh revision. */ -export interface CompatibleVersions { - /** The product/service name. */ - name?: string; - /** Product/service versions compatible with a service mesh add-on revision. */ - versions?: string[]; + readonly ipAddresses?: MachineIpAddress[]; } -/** Holds an array of MeshUpgradeProfiles */ -export interface MeshUpgradeProfileList { - /** Array of supported service mesh add-on upgrade profiles. */ - value?: MeshUpgradeProfile[]; +/** The machine IP address details. */ +export interface MachineIpAddress { /** - * The URL to get the next set of mesh upgrade profile. + * To determine if address belongs IPv4 or IPv6 family * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The response from the List Load Balancers operation. */ -export interface LoadBalancerListResult { - /** The list of Load Balancers. */ - value?: LoadBalancer[]; + readonly family?: IpFamily; /** - * The URL to get the next set of load balancer results. + * IPv4 or IPv6 address of the machine * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. */ -export interface LabelSelector { - /** matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is `key`, the operator is `In`, and the values array contains only `value`. The requirements are ANDed. */ - matchLabels?: string[]; - /** matchExpressions is a list of label selector requirements. The requirements are ANDed. */ - matchExpressions?: LabelSelectorRequirement[]; -} - -/** A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ -export interface LabelSelectorRequirement { - /** key is the label key that the selector applies to. */ - key?: string; - /** operator represents a key's relationship to a set of values. Valid operators are In and NotIn */ - operator?: Operator; - /** values is an array of string values, the values array must be non-empty. */ - values?: string[]; -} - -/** The names of the load balancers to rebalance. If set to empty, all load balancers will be rebalanced. */ -export interface RebalanceLoadBalancersRequestBody { - /** The load balancer names list. */ - loadBalancerNames?: string[]; -} - -/** Specifications on auto-scaling. */ -export interface AutoScaleProfile { - /** VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or 'Standard_D16s_v5'. */ - size?: string; - /** The minimum number of nodes of the specified sizes. */ - minCount?: number; - /** The maximum number of nodes of the specified sizes. */ - maxCount?: number; + readonly ip?: string; } /** Profile for the container service agent pool. */ -export interface ManagedClusterAgentPoolProfile - extends ManagedClusterAgentPoolProfileProperties { +export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolProfileProperties { /** Windows agent pool names must be 6 characters or less. */ name: string; } /** Information of user assigned identity used by this add-on. */ -export interface ManagedClusterAddonProfileIdentity - extends UserAssignedIdentity {} +export interface ManagedClusterAddonProfileIdentity extends UserAssignedIdentity {} /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export interface TrackedResource extends Resource { @@ -2315,6 +1802,9 @@ export interface TrackedResource extends Resource { location: string; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + /** Defines binding between a resource and role */ export interface TrustedAccessRoleBinding extends Resource { /** @@ -2328,21 +1818,6 @@ export interface TrustedAccessRoleBinding extends Resource { roles: string[]; } -/** Available Guardrails Version */ -export interface GuardrailsAvailableVersion extends Resource { - /** Whether the version is default or not and support info. */ - properties: GuardrailsAvailableVersionsProperties; -} - -/** Available Safeguards Version */ -export interface SafeguardsAvailableVersion extends Resource { - /** Whether the version is default or not and support info. */ - properties: SafeguardsAvailableVersionsProperties; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - /** See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. */ export interface MaintenanceConfiguration extends SubResource { /** @@ -2358,26 +1833,6 @@ export interface MaintenanceConfiguration extends SubResource { maintenanceWindow?: MaintenanceWindow; } -/** Namespace managed by ARM. */ -export interface Namespace extends SubResource { - /** - * The system metadata relating to this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** The tags to be persisted on the managed cluster namespace. */ - tags?: { [propertyName: string]: string }; - /** - * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly eTag?: string; - /** The location of the namespace. */ - location?: string; - /** Properties of a namespace. */ - properties?: NamespaceProperties; -} - /** Agent Pool. */ export interface AgentPool extends SubResource { /** @@ -2403,13 +1858,11 @@ export interface AgentPool extends SubResource { vnetSubnetID?: string; /** If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */ podSubnetID?: string; - /** The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'. */ - podIPAllocationMode?: PodIPAllocationMode; /** The maximum number of pods that can run on a node. */ maxPods?: number; /** The operating system type. The default is Linux. */ osType?: OSType; - /** Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. */ + /** Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. */ osSKU?: Ossku; /** The maximum number of nodes for auto-scaling */ maxCount?: number; @@ -2423,10 +1876,10 @@ export interface AgentPool extends SubResource { typePropertiesType?: AgentPoolType; /** A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools */ mode?: AgentPoolMode; - /** Both patch version and are supported. When is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ + /** Both patch version (e.g. 1.20.13) and (e.g. 1.20) are supported. When is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ orchestratorVersion?: string; /** - * If orchestratorVersion was a fully specified version , this field will be exactly equal to it. If orchestratorVersion was , this field will contain the full version being used. + * If orchestratorVersion is a fully specified version , this field will be exactly equal to it. If orchestratorVersion is , this field will contain the full version being used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentOrchestratorVersion?: string; @@ -2448,8 +1901,6 @@ export interface AgentPool extends SubResource { availabilityZones?: string[]; /** Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. */ enableNodePublicIP?: boolean; - /** When set to true, AKS adds a label to the node indicating that the feature is enabled and deploys a daemonset along with host services to sync custom certificate authorities from user-provided list of base64 encoded certificates into node trust stores. Defaults to false. */ - enableCustomCATrust?: boolean; /** This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName} */ nodePublicIPPrefixID?: string; /** The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. */ @@ -2464,8 +1915,6 @@ export interface AgentPool extends SubResource { nodeLabels?: { [propertyName: string]: string }; /** The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule. */ nodeTaints?: string[]; - /** These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be modified after node pool is created, but nodes will not be recreated with new taints until another operation that requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with `kubectl taint nodes node1 key1=value1:NoSchedule-` */ - nodeInitializationTaints?: string[]; /** The ID for Proximity Placement Group. */ proximityPlacementGroupID?: string; /** The Kubelet configuration on the agent pool nodes. */ @@ -2486,24 +1935,14 @@ export interface AgentPool extends SubResource { capacityReservationGroupID?: string; /** This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). */ hostGroupID?: string; - /** The Windows agent pool's specific profile. */ - windowsProfile?: AgentPoolWindowsProfile; /** Network-related settings of an agent pool. */ networkProfile?: AgentPoolNetworkProfile; + /** The Windows agent pool's specific profile. */ + windowsProfile?: AgentPoolWindowsProfile; /** The security settings of an agent pool. */ securityProfile?: AgentPoolSecurityProfile; - /** The GPU settings of an agent pool. */ - gpuProfile?: AgentPoolGPUProfile; - /** Configuration for using artifact streaming on AKS. */ - artifactStreamingProfile?: AgentPoolArtifactStreamingProfile; - /** Specifications on VirtualMachines agent pool. */ - virtualMachinesProfile?: VirtualMachinesProfile; - /** The status of nodes in a VirtualMachines agent pool. */ - virtualMachineNodesStatus?: VirtualMachineNodes[]; - /** Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway. */ - gatewayProfile?: AgentPoolGatewayProfile; - /** Contains read-only information about the Agent Pool. */ - status?: AgentPoolStatus; + /** GPU settings for the Agent Pool. */ + gpuProfile?: GPUProfile; } /** A machine. Contains details about the underlying virtual machine. A machine may be visible here but not in kubectl get nodes; if so it may be because the machine has not been registered with the Kubernetes API Server yet. */ @@ -2531,8 +1970,6 @@ export interface ManagedCluster extends TrackedResource { extendedLocation?: ExtendedLocation; /** The identity of the managed cluster, if configured. */ identity?: ManagedClusterIdentity; - /** This is primarily used to expose different UI experiences in the portal for different kinds */ - kind?: string; /** * The current provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2543,17 +1980,15 @@ export interface ManagedCluster extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly powerState?: PowerState; - /** CreationData to be used to specify the source Snapshot ID if the cluster will be created/upgraded using a snapshot. */ - creationData?: CreationData; /** * The max number of agent pools for the managed cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxAgentPools?: number; - /** When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. */ + /** Both patch version (e.g. 1.20.13) and (e.g. 1.20) are supported. When is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. */ kubernetesVersion?: string; /** - * The version of Kubernetes the Managed Cluster is running. + * If kubernetesVersion was a fully specified version , this field will be exactly equal to it. If kubernetesVersion was , this field will contain the full version being used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentKubernetesVersion?: string; @@ -2592,16 +2027,12 @@ export interface ManagedCluster extends TrackedResource { oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; /** The name of the resource group containing agent pool nodes. */ nodeResourceGroup?: string; - /** The node resource group configuration profile. */ + /** Profile of the node resource group configuration. */ nodeResourceGroupProfile?: ManagedClusterNodeResourceGroupProfile; /** Whether to enable Kubernetes Role-Based Access Control. */ enableRbac?: boolean; /** The support plan for the Managed Cluster. If unspecified, the default is 'KubernetesOfficial'. */ supportPlan?: KubernetesSupportPlan; - /** (DEPRECATED) Whether to enable Kubernetes pod security policy (preview). PodSecurityPolicy was deprecated in Kubernetes v1.21, and removed from Kubernetes in v1.25. Learn more at https://aka.ms/k8s/psp and https://aka.ms/aks/psp. */ - enablePodSecurityPolicy?: boolean; - /** The default value is false. It can be enabled/disabled on creation and updating of the managed cluster. See [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on Namespace as a ARM Resource. */ - enableNamespaceResources?: boolean; /** The network configuration profile. */ networkProfile?: ContainerServiceNetworkProfile; /** The Azure Active Directory configuration. */ @@ -2634,10 +2065,8 @@ export interface ManagedCluster extends TrackedResource { publicNetworkAccess?: PublicNetworkAccess; /** Workload Auto-scaler profile for the managed cluster. */ workloadAutoScalerProfile?: ManagedClusterWorkloadAutoScalerProfile; - /** Prometheus addon profile for the container service cluster */ + /** Azure Monitor addon profiles for monitoring the managed cluster. */ azureMonitorProfile?: ManagedClusterAzureMonitorProfile; - /** The Safeguards profile holds all the safeguards information for a given cluster */ - safeguardsProfile?: SafeguardsProfile; /** Service mesh profile for a managed cluster. */ serviceMeshProfile?: ServiceMeshProfile; /** @@ -2647,14 +2076,8 @@ export interface ManagedCluster extends TrackedResource { readonly resourceUID?: string; /** Optional cluster metrics configuration. */ metricsProfile?: ManagedClusterMetricsProfile; - /** AI toolchain operator settings that apply to the whole cluster. */ - aiToolchainOperatorProfile?: ManagedClusterAIToolchainOperatorProfile; - /** Node provisioning settings that apply to the whole cluster. */ - nodeProvisioningProfile?: ManagedClusterNodeProvisioningProfile; /** Profile of the cluster bootstrap configuration. */ bootstrapProfile?: ManagedClusterBootstrapProfile; - /** Contains read-only information about the Managed Cluster. */ - status?: ManagedClusterStatus; } /** Managed cluster Access Profile. */ @@ -2685,7 +2108,7 @@ export interface Snapshot extends TrackedResource { */ readonly osType?: OSType; /** - * Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. + * Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly osSku?: Ossku; @@ -2701,19 +2124,6 @@ export interface Snapshot extends TrackedResource { readonly enableFips?: boolean; } -/** A managed cluster snapshot resource. */ -export interface ManagedClusterSnapshot extends TrackedResource { - /** CreationData to be used to specify the source resource ID to create this snapshot. */ - creationData?: CreationData; - /** The type of a snapshot. The default is NodePool. */ - snapshotType?: SnapshotType; - /** - * What the properties will be showed when getting managed cluster snapshot. Those properties are read-only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managedClusterPropertiesReadOnly?: ManagedClusterPropertiesForSnapshot; -} - /** Mesh revision profile for a mesh. */ export interface MeshRevisionProfile extends ProxyResource { /** Mesh revision profile properties for a mesh */ @@ -2726,25 +2136,6 @@ export interface MeshUpgradeProfile extends ProxyResource { properties?: MeshUpgradeProfileProperties; } -/** The configurations regarding multiple standard load balancers. If not supplied, single load balancer mode will be used. Multiple standard load balancers mode will be used if at lease one configuration is supplied. There has to be a configuration named `kubernetes`. The name field will be the name of the corresponding public load balancer. There will be an internal load balancer created if needed, and the name will be `-internal`. The internal lb shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer list. */ -export interface LoadBalancer extends ProxyResource { - /** Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer. */ - primaryAgentPoolName?: string; - /** Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it. */ - allowServicePlacement?: boolean; - /** Only services that must match this selector can be placed on this load balancer. */ - serviceLabelSelector?: LabelSelector; - /** Services created in namespaces that match the selector can be placed on this load balancer. */ - serviceNamespaceSelector?: LabelSelector; - /** Nodes that match this selector will be possible members of this load balancer. */ - nodeSelector?: LabelSelector; - /** - * The current provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - /** Defines headers for ManagedClusters_delete operation. */ export interface ManagedClustersDeleteHeaders { /** URL to query for status of the operation. */ @@ -2763,23 +2154,22 @@ export interface ManagedClustersResetAADProfileHeaders { location?: string; } -/** Defines headers for ManagedClusters_abortLatestOperation operation. */ -export interface ManagedClustersAbortLatestOperationHeaders { +/** Defines headers for ManagedClusters_rotateClusterCertificates operation. */ +export interface ManagedClustersRotateClusterCertificatesHeaders { /** URL to query for status of the operation. */ location?: string; - /** URL to query for status of the operation. */ - azureAsyncOperation?: string; } -/** Defines headers for ManagedClusters_rotateClusterCertificates operation. */ -export interface ManagedClustersRotateClusterCertificatesHeaders { +/** Defines headers for ManagedClusters_abortLatestOperation operation. */ +export interface ManagedClustersAbortLatestOperationHeaders { /** URL to query for status of the operation. */ location?: string; + /** URL to query for status of the operation. */ + azureAsyncOperation?: string; } /** Defines headers for ManagedClusters_rotateServiceAccountSigningKeys operation. */ export interface ManagedClustersRotateServiceAccountSigningKeysHeaders { - /** URL to query for status of the operation. */ location?: string; } @@ -2807,18 +2197,6 @@ export interface ManagedClustersGetCommandResultHeaders { location?: string; } -/** Defines headers for ManagedClusters_rebalanceLoadBalancers operation. */ -export interface ManagedClustersRebalanceLoadBalancersHeaders { - /** URL to query for status of the operation. */ - location?: string; -} - -/** Defines headers for Namespaces_delete operation. */ -export interface NamespacesDeleteHeaders { - /** URL to query for status of the operation. */ - location?: string; -} - /** Defines headers for AgentPools_abortLatestOperation operation. */ export interface AgentPoolsAbortLatestOperationHeaders { /** URL to query for status of the operation. */ @@ -2851,12 +2229,6 @@ export interface TrustedAccessRoleBindingsDeleteHeaders { location?: string; } -/** Defines headers for LoadBalancers_delete operation. */ -export interface LoadBalancersDeleteHeaders { - /** URL to query for status of the operation. */ - location?: string; -} - /** Known values of {@link KubernetesSupportPlan} that the service accepts. */ export enum KnownKubernetesSupportPlan { /** Support for the version is the same as for the open source Kubernetes offering. Official Kubernetes open source community support versions for 1 year after release. */ @@ -2879,8 +2251,6 @@ export type KubernetesSupportPlan = string; export enum KnownManagedClusterSKUName { /** Base option for the AKS control plane. */ 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. */ - Automatic = "Automatic", } /** @@ -2888,8 +2258,7 @@ export enum KnownManagedClusterSKUName { * {@link KnownManagedClusterSKUName} can be used interchangeably with ManagedClusterSKUName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Base**: Base option for the AKS control plane. \ - * **Automatic**: 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. + * **Base**: Base option for the AKS control plane. */ export type ManagedClusterSKUName = string; @@ -2989,8 +2358,6 @@ export enum KnownWorkloadRuntime { OCIContainer = "OCIContainer", /** Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview). */ 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. */ - KataMshvVmIsolation = "KataMshvVmIsolation", } /** @@ -2999,29 +2366,10 @@ export enum KnownWorkloadRuntime { * this enum contains the known values that the service supports. * ### Known values supported by the service * **OCIContainer**: Nodes will use Kubelet to run standard OCI container workloads. \ - * **WasmWasi**: Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview). \ - * **KataMshvVmIsolation**: 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. + * **WasmWasi**: Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview). */ export type WorkloadRuntime = string; -/** Known values of {@link PodIPAllocationMode} that the service accepts. */ -export enum 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 */ - 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 */ - StaticBlock = "StaticBlock", -} - -/** - * Defines values for PodIPAllocationMode. \ - * {@link KnownPodIPAllocationMode} can be used interchangeably with PodIPAllocationMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **DynamicIndividual**: 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 \ - * **StaticBlock**: 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 - */ -export type PodIPAllocationMode = string; - /** Known values of {@link OSType} that the service accepts. */ export enum KnownOSType { /** Use Linux. */ @@ -3044,8 +2392,6 @@ export type OSType = string; export enum KnownOssku { /** Use Ubuntu as the OS for node images. */ Ubuntu = "Ubuntu", - /** Deprecated OSSKU. Microsoft recommends that new deployments choose 'AzureLinux' instead. */ - 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. */ AzureLinux = "AzureLinux", /** Deprecated OSSKU. Microsoft recommends that new deployments choose 'AzureLinux' instead. */ @@ -3054,8 +2400,8 @@ export enum KnownOssku { Windows2019 = "Windows2019", /** Use Windows2022 as the OS for node images. Unsupported for system node pools. Windows2022 only supports Windows2022 containers; it cannot run Windows2019 containers and vice versa. */ 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. */ - WindowsAnnual = "WindowsAnnual", + /** Use Ubuntu2204 as the OS for node images, however, Ubuntu 22.04 may not be supported for all nodepools. For limitations and supported kubernetes versions, see see https:\//aka.ms\/aks\/supported-ubuntu-versions */ + Ubuntu2204 = "Ubuntu2204", } /** @@ -3064,12 +2410,11 @@ export enum KnownOssku { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Ubuntu**: Use Ubuntu as the OS for node images. \ - * **Mariner**: Deprecated OSSKU. Microsoft recommends that new deployments choose 'AzureLinux' instead. \ * **AzureLinux**: 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. \ * **CBLMariner**: Deprecated OSSKU. Microsoft recommends that new deployments choose 'AzureLinux' instead. \ * **Windows2019**: Use Windows2019 as the OS for node images. Unsupported for system node pools. Windows2019 only supports Windows2019 containers; it cannot run Windows2022 containers and vice versa. \ * **Windows2022**: Use Windows2022 as the OS for node images. Unsupported for system node pools. Windows2022 only supports Windows2022 containers; it cannot run Windows2019 containers and vice versa. \ - * **WindowsAnnual**: 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. + * **Ubuntu2204**: Use Ubuntu2204 as the OS for node images, however, Ubuntu 22.04 may not be supported for all nodepools. For limitations and supported kubernetes versions, see see https:\/\/aka.ms\/aks\/supported-ubuntu-versions */ export type Ossku = string; @@ -3097,8 +2442,6 @@ export enum KnownAgentPoolType { VirtualMachineScaleSets = "VirtualMachineScaleSets", /** Use of this is strongly discouraged. */ AvailabilitySet = "AvailabilitySet", - /** Create an Agent Pool backed by a Single Instance VM orchestration mode. */ - VirtualMachines = "VirtualMachines", } /** @@ -3107,8 +2450,7 @@ export enum KnownAgentPoolType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **VirtualMachineScaleSets**: Create an Agent Pool backed by a Virtual Machine Scale Set. \ - * **AvailabilitySet**: Use of this is strongly discouraged. \ - * **VirtualMachines**: Create an Agent Pool backed by a Single Instance VM orchestration mode. + * **AvailabilitySet**: Use of this is strongly discouraged. */ export type AgentPoolType = string; @@ -3118,8 +2460,6 @@ export enum KnownAgentPoolMode { System = "System", /** User agent pools are primarily for hosting your application pods. */ 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. */ - Gateway = "Gateway", } /** @@ -3128,8 +2468,7 @@ export enum KnownAgentPoolMode { * this enum contains the known values that the service supports. * ### Known values supported by the service * **System**: System agent pools are primarily for hosting critical system pods such as CoreDNS and metrics-server. System agent pools osType must be Linux. System agent pools VM SKU must have at least 2vCPUs and 4GB of memory. \ - * **User**: User agent pools are primarily for hosting your application pods. \ - * **Gateway**: Gateway agent pools are dedicated to providing static egress IPs to pods. For more details, see https:\/\/aka.ms\/aks\/static-egress-gateway. + * **User**: User agent pools are primarily for hosting your application pods. */ export type AgentPoolMode = string; @@ -3187,24 +2526,6 @@ export enum KnownScaleSetEvictionPolicy { */ export type ScaleSetEvictionPolicy = string; -/** Known values of {@link SeccompDefault} that the service accepts. */ -export enum KnownSeccompDefault { - /** No seccomp profile is applied, allowing all system calls. */ - Unconfined = "Unconfined", - /** The default seccomp profile for container runtime is applied, which restricts certain system calls for enhanced security. */ - RuntimeDefault = "RuntimeDefault", -} - -/** - * Defines values for SeccompDefault. \ - * {@link KnownSeccompDefault} can be used interchangeably with SeccompDefault, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unconfined**: No seccomp profile is applied, allowing all system calls. \ - * **RuntimeDefault**: The default seccomp profile for container runtime is applied, which restricts certain system calls for enhanced security. - */ -export type SeccompDefault = string; - /** Known values of {@link GPUInstanceProfile} that the service accepts. */ export enum KnownGPUInstanceProfile { /** MIG1G */ @@ -3250,41 +2571,23 @@ export enum KnownProtocol { */ export type Protocol = string; -/** Known values of {@link AgentPoolSSHAccess} that the service accepts. */ -export enum KnownAgentPoolSSHAccess { - /** Can SSH onto the node as a local user using private key. */ - LocalUser = "LocalUser", - /** SSH service will be turned off on the node. */ - Disabled = "Disabled", -} - -/** - * Defines values for AgentPoolSSHAccess. \ - * {@link KnownAgentPoolSSHAccess} can be used interchangeably with AgentPoolSSHAccess, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LocalUser**: Can SSH onto the node as a local user using private key. \ - * **Disabled**: SSH service will be turned off on the node. - */ -export type AgentPoolSSHAccess = string; - -/** Known values of {@link DriverType} that the service accepts. */ -export enum KnownDriverType { - /** Install the GRID driver for the GPU, suitable for applications requiring virtualization support. */ - Grid = "GRID", - /** Install the CUDA driver for the GPU, optimized for computational tasks in scientific computing and data-intensive applications. */ - Cuda = "CUDA", +/** Known values of {@link GPUDriver} that the service accepts. */ +export enum KnownGPUDriver { + /** Install driver. */ + Install = "Install", + /** Skip driver install. */ + None = "None", } /** - * Defines values for DriverType. \ - * {@link KnownDriverType} can be used interchangeably with DriverType, + * Defines values for GPUDriver. \ + * {@link KnownGPUDriver} can be used interchangeably with GPUDriver, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GRID**: Install the GRID driver for the GPU, suitable for applications requiring virtualization support. \ - * **CUDA**: Install the CUDA driver for the GPU, optimized for computational tasks in scientific computing and data-intensive applications. + * **Install**: Install driver. \ + * **None**: Skip driver install. */ -export type DriverType = string; +export type GPUDriver = string; /** Known values of {@link LicenseType} that the service accepts. */ export enum KnownLicenseType { @@ -3358,7 +2661,7 @@ export enum KnownNetworkPlugin { Azure = "azure", /** Use the Kubenet network plugin. See [Kubenet (basic) networking](https:\//docs.microsoft.com\/azure\/aks\/concepts-network#kubenet-basic-networking) for more information. */ Kubenet = "kubenet", - /** Do not use a network plugin. A custom CNI will need to be installed after cluster creation for networking functionality. */ + /** No CNI plugin is pre-installed. See [BYO CNI](https:\//docs.microsoft.com\/en-us\/azure\/aks\/use-byo-cni) for more information. */ None = "none", } @@ -3369,13 +2672,13 @@ export enum KnownNetworkPlugin { * ### Known values supported by the service * **azure**: Use the Azure CNI network plugin. See [Azure CNI (advanced) networking](https:\/\/docs.microsoft.com\/azure\/aks\/concepts-network#azure-cni-advanced-networking) for more information. \ * **kubenet**: Use the Kubenet network plugin. See [Kubenet (basic) networking](https:\/\/docs.microsoft.com\/azure\/aks\/concepts-network#kubenet-basic-networking) for more information. \ - * **none**: Do not use a network plugin. A custom CNI will need to be installed after cluster creation for networking functionality. + * **none**: No CNI plugin is pre-installed. See [BYO CNI](https:\/\/docs.microsoft.com\/en-us\/azure\/aks\/use-byo-cni) for more information. */ export type NetworkPlugin = string; /** Known values of {@link NetworkPluginMode} that the service accepts. */ export enum KnownNetworkPluginMode { - /** Pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet reference plugins host-local and bridge. */ + /** 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. */ Overlay = "overlay", } @@ -3384,7 +2687,7 @@ export enum KnownNetworkPluginMode { * {@link KnownNetworkPluginMode} can be used interchangeably with NetworkPluginMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **overlay**: Pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet reference plugins host-local and bridge. + * **overlay**: 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. */ export type NetworkPluginMode = string; @@ -3511,29 +2814,11 @@ export enum KnownBackendPoolType { */ export type BackendPoolType = string; -/** Known values of {@link ClusterServiceLoadBalancerHealthProbeMode} that the service accepts. */ -export enum KnownClusterServiceLoadBalancerHealthProbeMode { - /** Each External Traffic Policy Cluster service will have its own health probe targeting service nodePort. */ - 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. */ - Shared = "Shared", -} - -/** - * Defines values for ClusterServiceLoadBalancerHealthProbeMode. \ - * {@link KnownClusterServiceLoadBalancerHealthProbeMode} can be used interchangeably with ClusterServiceLoadBalancerHealthProbeMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ServiceNodePort**: Each External Traffic Policy Cluster service will have its own health probe targeting service nodePort. \ - * **Shared**: 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. - */ -export type ClusterServiceLoadBalancerHealthProbeMode = string; - /** Known values of {@link IpFamily} that the service accepts. */ export enum KnownIpFamily { - /** IPv4 family */ + /** IPv4 */ IPv4 = "IPv4", - /** IPv6 family */ + /** IPv6 */ IPv6 = "IPv6", } @@ -3542,104 +2827,11 @@ export enum KnownIpFamily { * {@link KnownIpFamily} can be used interchangeably with IpFamily, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4**: IPv4 family \ - * **IPv6**: IPv6 family + * **IPv4** \ + * **IPv6** */ export type IpFamily = string; -/** Known values of {@link PodLinkLocalAccess} that the service accepts. */ -export enum KnownPodLinkLocalAccess { - /** Pods with hostNetwork=false can access Azure Instance Metadata Service (IMDS) without restriction. */ - Imds = "IMDS", - /** Pods with hostNetwork=false cannot access Azure Instance Metadata Service (IMDS). */ - None = "None", -} - -/** - * Defines values for PodLinkLocalAccess. \ - * {@link KnownPodLinkLocalAccess} can be used interchangeably with PodLinkLocalAccess, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **IMDS**: Pods with hostNetwork=false can access Azure Instance Metadata Service (IMDS) without restriction. \ - * **None**: Pods with hostNetwork=false cannot access Azure Instance Metadata Service (IMDS). - */ -export type PodLinkLocalAccess = string; - -/** Known values of {@link Mode} that the service accepts. */ -export enum KnownMode { - /** IPTables proxy mode */ - Iptables = "IPTABLES", - /** IPVS proxy mode. Must be using Kubernetes version >= 1.22. */ - Ipvs = "IPVS", -} - -/** - * Defines values for Mode. \ - * {@link KnownMode} can be used interchangeably with Mode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **IPTABLES**: IPTables proxy mode \ - * **IPVS**: IPVS proxy mode. Must be using Kubernetes version >= 1.22. - */ -export type Mode = string; - -/** Known values of {@link IpvsScheduler} that the service accepts. */ -export enum KnownIpvsScheduler { - /** Round Robin */ - RoundRobin = "RoundRobin", - /** Least Connection */ - LeastConnection = "LeastConnection", -} - -/** - * Defines values for IpvsScheduler. \ - * {@link KnownIpvsScheduler} can be used interchangeably with IpvsScheduler, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RoundRobin**: Round Robin \ - * **LeastConnection**: Least Connection - */ -export type IpvsScheduler = string; - -/** Known values of {@link AdvancedNetworkPolicies} that the service accepts. */ -export enum KnownAdvancedNetworkPolicies { - /** Enable Layer7 network policies (FQDN, HTTP\/S, Kafka). This option is a superset of the FQDN option. */ - L7 = "L7", - /** Enable FQDN based network policies */ - Fqdn = "FQDN", - /** Disable Layer 7 network policies (FQDN, HTTP\/S, Kafka) */ - None = "None", -} - -/** - * Defines values for AdvancedNetworkPolicies. \ - * {@link KnownAdvancedNetworkPolicies} can be used interchangeably with AdvancedNetworkPolicies, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **L7**: Enable Layer7 network policies (FQDN, HTTP\/S, Kafka). This option is a superset of the FQDN option. \ - * **FQDN**: Enable FQDN based network policies \ - * **None**: Disable Layer 7 network policies (FQDN, HTTP\/S, Kafka) - */ -export type AdvancedNetworkPolicies = string; - -/** Known values of {@link TransitEncryption} that the service accepts. */ -export enum KnownTransitEncryption { - /** Enable WireGuard encryption for cluster traffic */ - WireGuard = "WireGuard", - /** Disable WireGuard encryption for cluster traffic */ - None = "None", -} - -/** - * Defines values for TransitEncryption. \ - * {@link KnownTransitEncryption} can be used interchangeably with TransitEncryption, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **WireGuard**: Enable WireGuard encryption for cluster traffic \ - * **None**: Disable WireGuard encryption for cluster traffic - */ -export type TransitEncryption = string; - /** Known values of {@link UpgradeChannel} that the service accepts. */ export enum KnownUpgradeChannel { /** Automatically upgrade the cluster to the latest supported patch release on the latest supported minor version. In cases where the cluster is at a version of Kubernetes that is at an N-2 minor version where N is the latest supported minor version, the cluster first upgrades to the latest supported patch version on N-1 minor version. For example, if a cluster is running version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, your cluster first is upgraded to 1.18.6, then is upgraded to 1.19.1. */ @@ -3671,12 +2863,12 @@ export type UpgradeChannel = string; export enum KnownNodeOSUpgradeChannel { /** No attempt to update your machines OS will be made either by OS or by rolling VHDs. This means you are responsible for your security updates */ 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 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 */ + /** 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 */ 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. */ - 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. */ 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. */ + SecurityPatch = "SecurityPatch", } /** @@ -3685,9 +2877,9 @@ export enum KnownNodeOSUpgradeChannel { * this enum contains the known values that the service supports. * ### Known values supported by the service * **None**: No attempt to update your machines OS will be made either by OS or by rolling VHDs. This means you are responsible for your security updates \ - * **Unmanaged**: 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 \ - * **SecurityPatch**: 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. \ - * **NodeImage**: 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. + * **Unmanaged**: 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 \ + * **NodeImage**: 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. \ + * **SecurityPatch**: 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. */ export type NodeOSUpgradeChannel = string; @@ -3759,12 +2951,10 @@ export type NginxIngressControllerType = string; /** Known values of {@link PublicNetworkAccess} that the service accepts. */ export enum KnownPublicNetworkAccess { - /** Inbound\/Outbound to the managedCluster is allowed. */ + /** Enabled */ Enabled = "Enabled", - /** Inbound traffic to managedCluster is disabled, traffic from managedCluster is allowed. */ + /** Disabled */ Disabled = "Disabled", - /** Inbound\/Outbound traffic is managed by Microsoft.Network\/NetworkSecurityPerimeters. */ - SecuredByPerimeter = "SecuredByPerimeter", } /** @@ -3772,51 +2962,11 @@ export enum KnownPublicNetworkAccess { * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled**: Inbound\/Outbound to the managedCluster is allowed. \ - * **Disabled**: Inbound traffic to managedCluster is disabled, traffic from managedCluster is allowed. \ - * **SecuredByPerimeter**: Inbound\/Outbound traffic is managed by Microsoft.Network\/NetworkSecurityPerimeters. + * **Enabled** \ + * **Disabled** */ export type PublicNetworkAccess = string; -/** Known values of {@link AddonAutoscaling} that the service accepts. */ -export enum KnownAddonAutoscaling { - /** Feature to autoscale AKS-managed add-ons is enabled. The default VPA update mode is Initial mode. */ - Enabled = "Enabled", - /** Feature to autoscale AKS-managed add-ons is disabled. */ - Disabled = "Disabled", -} - -/** - * Defines values for AddonAutoscaling. \ - * {@link KnownAddonAutoscaling} can be used interchangeably with AddonAutoscaling, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: Feature to autoscale AKS-managed add-ons is enabled. The default VPA update mode is Initial mode. \ - * **Disabled**: Feature to autoscale AKS-managed add-ons is disabled. - */ -export type AddonAutoscaling = string; - -/** Known values of {@link Level} that the service accepts. */ -export enum KnownLevel { - /** Off */ - Off = "Off", - /** Warning */ - Warning = "Warning", - /** Enforcement */ - Enforcement = "Enforcement", -} - -/** - * Defines values for Level. \ - * {@link KnownLevel} can be used interchangeably with Level, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Off** \ - * **Warning** \ - * **Enforcement** - */ -export type Level = string; - /** Known values of {@link ServiceMeshMode} that the service accepts. */ export enum KnownServiceMeshMode { /** Istio deployed as an AKS addon. */ @@ -3853,24 +3003,6 @@ export enum KnownIstioIngressGatewayMode { */ export type IstioIngressGatewayMode = string; -/** Known values of {@link NodeProvisioningMode} that the service accepts. */ -export enum KnownNodeProvisioningMode { - /** Nodes are provisioned manually by the user */ - 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). */ - Auto = "Auto", -} - -/** - * Defines values for NodeProvisioningMode. \ - * {@link KnownNodeProvisioningMode} can be used interchangeably with NodeProvisioningMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Manual**: Nodes are provisioned manually by the user \ - * **Auto**: 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). - */ -export type NodeProvisioningMode = string; - /** Known values of {@link ArtifactSource} that the service accepts. */ export enum KnownArtifactSource { /** pull images from Azure Container Registry with cache */ @@ -3966,15 +3098,15 @@ export type WeekDay = string; /** Known values of {@link Type} that the service accepts. */ export enum KnownType { - /** First. */ + /** First week of the month. */ First = "First", - /** Second. */ + /** Second week of the month. */ Second = "Second", - /** Third. */ + /** Third week of the month. */ Third = "Third", - /** Fourth. */ + /** Fourth week of the month. */ Fourth = "Fourth", - /** Last. */ + /** Last week of the month. */ Last = "Last", } @@ -3983,104 +3115,14 @@ export enum KnownType { * {@link KnownType} can be used interchangeably with Type, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **First**: First. \ - * **Second**: Second. \ - * **Third**: Third. \ - * **Fourth**: Fourth. \ - * **Last**: Last. + * **First**: First week of the month. \ + * **Second**: Second week of the month. \ + * **Third**: Third week of the month. \ + * **Fourth**: Fourth week of the month. \ + * **Last**: Last week of the month. */ export type Type = string; -/** Known values of {@link NamespaceProvisioningState} that the service accepts. */ -export enum KnownNamespaceProvisioningState { - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", - /** Creating */ - Creating = "Creating", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", -} - -/** - * Defines values for NamespaceProvisioningState. \ - * {@link KnownNamespaceProvisioningState} can be used interchangeably with NamespaceProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Updating** \ - * **Deleting** \ - * **Creating** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** - */ -export type NamespaceProvisioningState = string; - -/** Known values of {@link PolicyRule} that the service accepts. */ -export enum KnownPolicyRule { - /** Deny all network traffic. */ - DenyAll = "DenyAll", - /** Allow all network traffic. */ - AllowAll = "AllowAll", - /** Allow traffic within the same namespace. */ - AllowSameNamespace = "AllowSameNamespace", -} - -/** - * Defines values for PolicyRule. \ - * {@link KnownPolicyRule} can be used interchangeably with PolicyRule, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **DenyAll**: Deny all network traffic. \ - * **AllowAll**: Allow all network traffic. \ - * **AllowSameNamespace**: Allow traffic within the same namespace. - */ -export type PolicyRule = string; - -/** Known values of {@link AdoptionPolicy} that the service accepts. */ -export enum KnownAdoptionPolicy { - /** If the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail. */ - Never = "Never", - /** Take over the existing namespace to be managed by ARM, if there is no difference. */ - IfIdentical = "IfIdentical", - /** Always take over the existing namespace to be managed by ARM, some fields might be overwritten. */ - Always = "Always", -} - -/** - * Defines values for AdoptionPolicy. \ - * {@link KnownAdoptionPolicy} can be used interchangeably with AdoptionPolicy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Never**: If the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail. \ - * **IfIdentical**: Take over the existing namespace to be managed by ARM, if there is no difference. \ - * **Always**: Always take over the existing namespace to be managed by ARM, some fields might be overwritten. - */ -export type AdoptionPolicy = string; - -/** Known values of {@link DeletePolicy} that the service accepts. */ -export enum KnownDeletePolicy { - /** Only delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label. */ - Keep = "Keep", - /** Delete both the ARM resource and the Kubernetes namespace together. */ - Delete = "Delete", -} - -/** - * Defines values for DeletePolicy. \ - * {@link KnownDeletePolicy} can be used interchangeably with DeletePolicy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Keep**: Only delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label. \ - * **Delete**: Delete both the ARM resource and the Kubernetes namespace together. - */ -export type DeletePolicy = string; - /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ export enum KnownPrivateEndpointConnectionProvisioningState { /** Canceled */ @@ -4136,8 +3178,6 @@ export type ConnectionStatus = string; export enum KnownSnapshotType { /** The snapshot is a snapshot of a node pool. */ NodePool = "NodePool", - /** The snapshot is a snapshot of a managed cluster. */ - ManagedCluster = "ManagedCluster", } /** @@ -4145,8 +3185,7 @@ export enum KnownSnapshotType { * {@link KnownSnapshotType} can be used interchangeably with SnapshotType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NodePool**: The snapshot is a snapshot of a node pool. \ - * **ManagedCluster**: The snapshot is a snapshot of a managed cluster. + * **NodePool**: The snapshot is a snapshot of a node pool. */ export type SnapshotType = string; @@ -4165,83 +3204,22 @@ export enum KnownTrustedAccessRoleBindingProvisioningState { } /** - * Defines values for TrustedAccessRoleBindingProvisioningState. \ - * {@link KnownTrustedAccessRoleBindingProvisioningState} can be used interchangeably with TrustedAccessRoleBindingProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Canceled** \ - * **Deleting** \ - * **Failed** \ - * **Succeeded** \ - * **Updating** - */ -export type TrustedAccessRoleBindingProvisioningState = string; - -/** Known values of {@link GuardrailsSupport} that the service accepts. */ -export enum 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. */ - Preview = "Preview", - /** The version is stable and can be used on critical production clusters. */ - Stable = "Stable", -} - -/** - * Defines values for GuardrailsSupport. \ - * {@link KnownGuardrailsSupport} can be used interchangeably with GuardrailsSupport, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Preview**: 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. \ - * **Stable**: The version is stable and can be used on critical production clusters. - */ -export type GuardrailsSupport = string; - -/** Known values of {@link SafeguardsSupport} that the service accepts. */ -export enum 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. */ - Preview = "Preview", - /** The version is stable and can be used on critical production clusters. */ - Stable = "Stable", -} - -/** - * Defines values for SafeguardsSupport. \ - * {@link KnownSafeguardsSupport} can be used interchangeably with SafeguardsSupport, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Preview**: 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. \ - * **Stable**: The version is stable and can be used on critical production clusters. - */ -export type SafeguardsSupport = string; - -/** Known values of {@link Operator} that the service accepts. */ -export enum KnownOperator { - /** The value of the key should be in the given list. */ - In = "In", - /** The value of the key should not be in the given list. */ - NotIn = "NotIn", - /** The value of the key should exist. */ - Exists = "Exists", - /** The value of the key should not exist. */ - DoesNotExist = "DoesNotExist", -} - -/** - * Defines values for Operator. \ - * {@link KnownOperator} can be used interchangeably with Operator, + * Defines values for TrustedAccessRoleBindingProvisioningState. \ + * {@link KnownTrustedAccessRoleBindingProvisioningState} can be used interchangeably with TrustedAccessRoleBindingProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **In**: The value of the key should be in the given list. \ - * **NotIn**: The value of the key should not be in the given list. \ - * **Exists**: The value of the key should exist. \ - * **DoesNotExist**: The value of the key should not exist. + * **Canceled** \ + * **Deleting** \ + * **Failed** \ + * **Succeeded** \ + * **Updating** */ -export type Operator = string; +export type TrustedAccessRoleBindingProvisioningState = string; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; /** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type OperationsListResponse = OperationListResult; @@ -4251,12 +3229,10 @@ export interface ManagedClustersListKubernetesVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listKubernetesVersions operation. */ -export type ManagedClustersListKubernetesVersionsResponse = - KubernetesVersionListResult; +export type ManagedClustersListKubernetesVersionsResponse = KubernetesVersionListResult; /** Optional parameters. */ -export interface ManagedClustersListOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedClustersListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ManagedClustersListResponse = ManagedClusterListResult; @@ -4266,24 +3242,21 @@ export interface ManagedClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ManagedClustersListByResourceGroupResponse = - ManagedClusterListResult; +export type ManagedClustersListByResourceGroupResponse = ManagedClusterListResult; /** Optional parameters. */ export interface ManagedClustersGetUpgradeProfileOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getUpgradeProfile operation. */ -export type ManagedClustersGetUpgradeProfileResponse = - ManagedClusterUpgradeProfile; +export type ManagedClustersGetUpgradeProfileResponse = ManagedClusterUpgradeProfile; /** Optional parameters. */ export interface ManagedClustersGetAccessProfileOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAccessProfile operation. */ -export type ManagedClustersGetAccessProfileResponse = - ManagedClusterAccessProfile; +export type ManagedClustersGetAccessProfileResponse = ManagedClusterAccessProfile; /** Optional parameters. */ export interface ManagedClustersListClusterAdminCredentialsOptionalParams @@ -4293,8 +3266,7 @@ export interface ManagedClustersListClusterAdminCredentialsOptionalParams } /** Contains response data for the listClusterAdminCredentials operation. */ -export type ManagedClustersListClusterAdminCredentialsResponse = - CredentialResults; +export type ManagedClustersListClusterAdminCredentialsResponse = CredentialResults; /** Optional parameters. */ export interface ManagedClustersListClusterUserCredentialsOptionalParams @@ -4306,8 +3278,7 @@ export interface ManagedClustersListClusterUserCredentialsOptionalParams } /** Contains response data for the listClusterUserCredentials operation. */ -export type ManagedClustersListClusterUserCredentialsResponse = - CredentialResults; +export type ManagedClustersListClusterUserCredentialsResponse = CredentialResults; /** Optional parameters. */ export interface ManagedClustersListClusterMonitoringUserCredentialsOptionalParams @@ -4317,19 +3288,16 @@ export interface ManagedClustersListClusterMonitoringUserCredentialsOptionalPara } /** Contains response data for the listClusterMonitoringUserCredentials operation. */ -export type ManagedClustersListClusterMonitoringUserCredentialsResponse = - CredentialResults; +export type ManagedClustersListClusterMonitoringUserCredentialsResponse = CredentialResults; /** Optional parameters. */ -export interface ManagedClustersGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedClustersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ManagedClustersGetResponse = ManagedCluster; /** Optional parameters. */ -export interface ManagedClustersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface ManagedClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** The request should only proceed if an entity matches this string. */ ifMatch?: string; /** The request should only proceed if no entity matches this string. */ @@ -4344,8 +3312,7 @@ export interface ManagedClustersCreateOrUpdateOptionalParams export type ManagedClustersCreateOrUpdateResponse = ManagedCluster; /** Optional parameters. */ -export interface ManagedClustersUpdateTagsOptionalParams - extends coreClient.OperationOptions { +export interface ManagedClustersUpdateTagsOptionalParams extends coreClient.OperationOptions { /** The request should only proceed if an entity matches this string. */ ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ @@ -4358,12 +3325,9 @@ export interface ManagedClustersUpdateTagsOptionalParams export type ManagedClustersUpdateTagsResponse = ManagedCluster; /** Optional parameters. */ -export interface ManagedClustersDeleteOptionalParams - extends coreClient.OperationOptions { +export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { /** The request should only proceed if an entity matches this string. */ ifMatch?: string; - /** ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget */ - ignorePodDisruptionBudget?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4383,8 +3347,7 @@ export interface ManagedClustersResetServicePrincipalProfileOptionalParams } /** Optional parameters. */ -export interface ManagedClustersResetAADProfileOptionalParams - extends coreClient.OperationOptions { +export interface ManagedClustersResetAADProfileOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4392,7 +3355,7 @@ export interface ManagedClustersResetAADProfileOptionalParams } /** Optional parameters. */ -export interface ManagedClustersAbortLatestOperationOptionalParams +export interface ManagedClustersRotateClusterCertificatesOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4400,12 +3363,12 @@ export interface ManagedClustersAbortLatestOperationOptionalParams resumeFrom?: string; } -/** Contains response data for the abortLatestOperation operation. */ -export type ManagedClustersAbortLatestOperationResponse = - ManagedClustersAbortLatestOperationHeaders; +/** Contains response data for the rotateClusterCertificates operation. */ +export type ManagedClustersRotateClusterCertificatesResponse = + ManagedClustersRotateClusterCertificatesHeaders; /** Optional parameters. */ -export interface ManagedClustersRotateClusterCertificatesOptionalParams +export interface ManagedClustersAbortLatestOperationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4413,9 +3376,9 @@ export interface ManagedClustersRotateClusterCertificatesOptionalParams resumeFrom?: string; } -/** Contains response data for the rotateClusterCertificates operation. */ -export type ManagedClustersRotateClusterCertificatesResponse = - ManagedClustersRotateClusterCertificatesHeaders; +/** Contains response data for the abortLatestOperation operation. */ +export type ManagedClustersAbortLatestOperationResponse = + ManagedClustersAbortLatestOperationHeaders; /** Optional parameters. */ export interface ManagedClustersRotateServiceAccountSigningKeysOptionalParams @@ -4431,8 +3394,7 @@ export type ManagedClustersRotateServiceAccountSigningKeysResponse = ManagedClustersRotateServiceAccountSigningKeysHeaders; /** Optional parameters. */ -export interface ManagedClustersStopOptionalParams - extends coreClient.OperationOptions { +export interface ManagedClustersStopOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4443,8 +3405,7 @@ export interface ManagedClustersStopOptionalParams export type ManagedClustersStopResponse = ManagedClustersStopHeaders; /** Optional parameters. */ -export interface ManagedClustersStartOptionalParams - extends coreClient.OperationOptions { +export interface ManagedClustersStartOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4455,8 +3416,7 @@ export interface ManagedClustersStartOptionalParams export type ManagedClustersStartResponse = ManagedClustersStartHeaders; /** Optional parameters. */ -export interface ManagedClustersRunCommandOptionalParams - extends coreClient.OperationOptions { +export interface ManagedClustersRunCommandOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4481,45 +3441,12 @@ export interface ManagedClustersListOutboundNetworkDependenciesEndpointsOptional export type ManagedClustersListOutboundNetworkDependenciesEndpointsResponse = OutboundEnvironmentEndpointCollection; -/** Optional parameters. */ -export interface ManagedClustersGetGuardrailsVersionsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getGuardrailsVersions operation. */ -export type ManagedClustersGetGuardrailsVersionsResponse = - GuardrailsAvailableVersion; - -/** Optional parameters. */ -export interface ManagedClustersListGuardrailsVersionsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listGuardrailsVersions operation. */ -export type ManagedClustersListGuardrailsVersionsResponse = - GuardrailsAvailableVersionsList; - -/** Optional parameters. */ -export interface ManagedClustersGetSafeguardsVersionsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getSafeguardsVersions operation. */ -export type ManagedClustersGetSafeguardsVersionsResponse = - SafeguardsAvailableVersion; - -/** Optional parameters. */ -export interface ManagedClustersListSafeguardsVersionsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listSafeguardsVersions operation. */ -export type ManagedClustersListSafeguardsVersionsResponse = - SafeguardsAvailableVersionsList; - /** Optional parameters. */ export interface ManagedClustersListMeshRevisionProfilesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listMeshRevisionProfiles operation. */ -export type ManagedClustersListMeshRevisionProfilesResponse = - MeshRevisionProfileList; +export type ManagedClustersListMeshRevisionProfilesResponse = MeshRevisionProfileList; /** Optional parameters. */ export interface ManagedClustersGetMeshRevisionProfileOptionalParams @@ -4533,8 +3460,7 @@ export interface ManagedClustersListMeshUpgradeProfilesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listMeshUpgradeProfiles operation. */ -export type ManagedClustersListMeshUpgradeProfilesResponse = - MeshUpgradeProfileList; +export type ManagedClustersListMeshUpgradeProfilesResponse = MeshUpgradeProfileList; /** Optional parameters. */ export interface ManagedClustersGetMeshUpgradeProfileOptionalParams @@ -4544,21 +3470,7 @@ export interface ManagedClustersGetMeshUpgradeProfileOptionalParams export type ManagedClustersGetMeshUpgradeProfileResponse = MeshUpgradeProfile; /** Optional parameters. */ -export interface ManagedClustersRebalanceLoadBalancersOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the rebalanceLoadBalancers operation. */ -export type ManagedClustersRebalanceLoadBalancersResponse = - ManagedClustersRebalanceLoadBalancersHeaders; - -/** Optional parameters. */ -export interface ManagedClustersListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedClustersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ManagedClustersListNextResponse = ManagedClusterListResult; @@ -4568,8 +3480,7 @@ export interface ManagedClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedClustersListByResourceGroupNextResponse = - ManagedClusterListResult; +export type ManagedClustersListByResourceGroupNextResponse = ManagedClusterListResult; /** Optional parameters. */ export interface ManagedClustersListOutboundNetworkDependenciesEndpointsNextOptionalParams @@ -4579,53 +3490,19 @@ export interface ManagedClustersListOutboundNetworkDependenciesEndpointsNextOpti export type ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse = OutboundEnvironmentEndpointCollection; -/** Optional parameters. */ -export interface ManagedClustersListGuardrailsVersionsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listGuardrailsVersionsNext operation. */ -export type ManagedClustersListGuardrailsVersionsNextResponse = - GuardrailsAvailableVersionsList; - -/** Optional parameters. */ -export interface ManagedClustersListSafeguardsVersionsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listSafeguardsVersionsNext operation. */ -export type ManagedClustersListSafeguardsVersionsNextResponse = - SafeguardsAvailableVersionsList; - /** Optional parameters. */ export interface ManagedClustersListMeshRevisionProfilesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listMeshRevisionProfilesNext operation. */ -export type ManagedClustersListMeshRevisionProfilesNextResponse = - MeshRevisionProfileList; +export type ManagedClustersListMeshRevisionProfilesNextResponse = MeshRevisionProfileList; /** Optional parameters. */ export interface ManagedClustersListMeshUpgradeProfilesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listMeshUpgradeProfilesNext operation. */ -export type ManagedClustersListMeshUpgradeProfilesNextResponse = - MeshUpgradeProfileList; - -/** Optional parameters. */ -export interface ContainerServiceListNodeImageVersionsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNodeImageVersions operation. */ -export type ContainerServiceListNodeImageVersionsResponse = - NodeImageVersionsListResult; - -/** Optional parameters. */ -export interface ContainerServiceListNodeImageVersionsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNodeImageVersionsNext operation. */ -export type ContainerServiceListNodeImageVersionsNextResponse = - NodeImageVersionsListResult; +export type ManagedClustersListMeshUpgradeProfilesNextResponse = MeshUpgradeProfileList; /** Optional parameters. */ export interface MaintenanceConfigurationsListByManagedClusterOptionalParams @@ -4636,8 +3513,7 @@ export type MaintenanceConfigurationsListByManagedClusterResponse = MaintenanceConfigurationListResult; /** Optional parameters. */ -export interface MaintenanceConfigurationsGetOptionalParams - extends coreClient.OperationOptions {} +export interface MaintenanceConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type MaintenanceConfigurationsGetResponse = MaintenanceConfiguration; @@ -4647,8 +3523,7 @@ export interface MaintenanceConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type MaintenanceConfigurationsCreateOrUpdateResponse = - MaintenanceConfiguration; +export type MaintenanceConfigurationsCreateOrUpdateResponse = MaintenanceConfiguration; /** Optional parameters. */ export interface MaintenanceConfigurationsDeleteOptionalParams @@ -4663,67 +3538,7 @@ export type MaintenanceConfigurationsListByManagedClusterNextResponse = MaintenanceConfigurationListResult; /** Optional parameters. */ -export interface NamespacesListByManagedClusterOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedCluster operation. */ -export type NamespacesListByManagedClusterResponse = NamespaceListResult; - -/** Optional parameters. */ -export interface NamespacesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type NamespacesGetResponse = Namespace; - -/** Optional parameters. */ -export interface NamespacesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type NamespacesCreateOrUpdateResponse = Namespace; - -/** Optional parameters. */ -export interface NamespacesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type NamespacesDeleteResponse = NamespacesDeleteHeaders; - -/** Optional parameters. */ -export interface NamespacesUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type NamespacesUpdateResponse = Namespace; - -/** Optional parameters. */ -export interface NamespacesListCredentialOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listCredential operation. */ -export type NamespacesListCredentialResponse = CredentialResults; - -/** Optional parameters. */ -export interface NamespacesListByManagedClusterNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedClusterNext operation. */ -export type NamespacesListByManagedClusterNextResponse = NamespaceListResult; - -/** Optional parameters. */ -export interface AgentPoolsAbortLatestOperationOptionalParams - extends coreClient.OperationOptions { +export interface AgentPoolsAbortLatestOperationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4731,26 +3546,22 @@ export interface AgentPoolsAbortLatestOperationOptionalParams } /** Contains response data for the abortLatestOperation operation. */ -export type AgentPoolsAbortLatestOperationResponse = - AgentPoolsAbortLatestOperationHeaders; +export type AgentPoolsAbortLatestOperationResponse = AgentPoolsAbortLatestOperationHeaders; /** Optional parameters. */ -export interface AgentPoolsListOptionalParams - extends coreClient.OperationOptions {} +export interface AgentPoolsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type AgentPoolsListResponse = AgentPoolListResult; /** Optional parameters. */ -export interface AgentPoolsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AgentPoolsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AgentPoolsGetResponse = AgentPool; /** Optional parameters. */ -export interface AgentPoolsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface AgentPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** The request should only proceed if an entity matches this string. */ ifMatch?: string; /** The request should only proceed if no entity matches this string. */ @@ -4765,8 +3576,7 @@ export interface AgentPoolsCreateOrUpdateOptionalParams export type AgentPoolsCreateOrUpdateResponse = AgentPool; /** Optional parameters. */ -export interface AgentPoolsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOptions { /** The request should only proceed if an entity matches this string. */ ifMatch?: string; /** ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget */ @@ -4781,15 +3591,13 @@ export interface AgentPoolsDeleteOptionalParams export type AgentPoolsDeleteResponse = AgentPoolsDeleteHeaders; /** Optional parameters. */ -export interface AgentPoolsGetUpgradeProfileOptionalParams - extends coreClient.OperationOptions {} +export interface AgentPoolsGetUpgradeProfileOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getUpgradeProfile operation. */ export type AgentPoolsGetUpgradeProfileResponse = AgentPoolUpgradeProfile; /** Optional parameters. */ -export interface AgentPoolsDeleteMachinesOptionalParams - extends coreClient.OperationOptions { +export interface AgentPoolsDeleteMachinesOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4804,8 +3612,7 @@ export interface AgentPoolsGetAvailableAgentPoolVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAvailableAgentPoolVersions operation. */ -export type AgentPoolsGetAvailableAgentPoolVersionsResponse = - AgentPoolAvailableVersions; +export type AgentPoolsGetAvailableAgentPoolVersionsResponse = AgentPoolAvailableVersions; /** Optional parameters. */ export interface AgentPoolsUpgradeNodeImageVersionOptionalParams @@ -4817,44 +3624,19 @@ export interface AgentPoolsUpgradeNodeImageVersionOptionalParams } /** Optional parameters. */ -export interface AgentPoolsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AgentPoolsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type AgentPoolsListNextResponse = AgentPoolListResult; /** Optional parameters. */ -export interface MachinesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type MachinesListResponse = MachineListResult; - -/** Optional parameters. */ -export interface MachinesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type MachinesGetResponse = Machine; - -/** Optional parameters. */ -export interface MachinesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type MachinesListNextResponse = MachineListResult; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListOptionalParams - extends coreClient.OperationOptions {} +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListResponse = - PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; @@ -4864,8 +3646,7 @@ export interface PrivateEndpointConnectionsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type PrivateEndpointConnectionsUpdateResponse = - PrivateEndpointConnection; +export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsDeleteOptionalParams @@ -4877,8 +3658,7 @@ export interface PrivateEndpointConnectionsDeleteOptionalParams } /** Optional parameters. */ -export interface PrivateLinkResourcesListOptionalParams - extends coreClient.OperationOptions {} +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type PrivateLinkResourcesListResponse = PrivateLinkResourcesListResult; @@ -4891,75 +3671,40 @@ export interface ResolvePrivateLinkServiceIdPostOptionalParams export type ResolvePrivateLinkServiceIdPostResponse = PrivateLinkResource; /** Optional parameters. */ -export interface OperationStatusResultListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationStatusResultListResponse = OperationStatusResultList; - -/** Optional parameters. */ -export interface OperationStatusResultGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type OperationStatusResultGetResponse = OperationStatusResult; - -/** Optional parameters. */ -export interface OperationStatusResultGetByAgentPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByAgentPool operation. */ -export type OperationStatusResultGetByAgentPoolResponse = OperationStatusResult; - -/** Optional parameters. */ -export interface OperationStatusResultListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationStatusResultListNextResponse = OperationStatusResultList; - -/** Optional parameters. */ -export interface SnapshotsListOptionalParams - extends coreClient.OperationOptions {} +export interface SnapshotsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SnapshotsListResponse = SnapshotListResult; /** Optional parameters. */ -export interface SnapshotsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface SnapshotsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type SnapshotsListByResourceGroupResponse = SnapshotListResult; /** Optional parameters. */ -export interface SnapshotsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SnapshotsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SnapshotsGetResponse = Snapshot; /** Optional parameters. */ -export interface SnapshotsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SnapshotsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type SnapshotsCreateOrUpdateResponse = Snapshot; /** Optional parameters. */ -export interface SnapshotsUpdateTagsOptionalParams - extends coreClient.OperationOptions {} +export interface SnapshotsUpdateTagsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the updateTags operation. */ export type SnapshotsUpdateTagsResponse = Snapshot; /** Optional parameters. */ -export interface SnapshotsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface SnapshotsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SnapshotsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SnapshotsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SnapshotsListNextResponse = SnapshotListResult; @@ -4972,88 +3717,13 @@ export interface SnapshotsListByResourceGroupNextOptionalParams export type SnapshotsListByResourceGroupNextResponse = SnapshotListResult; /** Optional parameters. */ -export interface ManagedClusterSnapshotsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ManagedClusterSnapshotsListResponse = - ManagedClusterSnapshotListResult; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ManagedClusterSnapshotsListByResourceGroupResponse = - ManagedClusterSnapshotListResult; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedClusterSnapshotsGetResponse = ManagedClusterSnapshot; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedClusterSnapshotsCreateOrUpdateResponse = - ManagedClusterSnapshot; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsUpdateTagsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the updateTags operation. */ -export type ManagedClusterSnapshotsUpdateTagsResponse = ManagedClusterSnapshot; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ManagedClusterSnapshotsListNextResponse = - ManagedClusterSnapshotListResult; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedClusterSnapshotsListByResourceGroupNextResponse = - ManagedClusterSnapshotListResult; - -/** Optional parameters. */ -export interface TrustedAccessRolesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type TrustedAccessRolesListResponse = TrustedAccessRoleListResult; - -/** Optional parameters. */ -export interface TrustedAccessRolesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type TrustedAccessRolesListNextResponse = TrustedAccessRoleListResult; - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsListOptionalParams - extends coreClient.OperationOptions {} +export interface TrustedAccessRoleBindingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type TrustedAccessRoleBindingsListResponse = - TrustedAccessRoleBindingListResult; +export type TrustedAccessRoleBindingsListResponse = TrustedAccessRoleBindingListResult; /** Optional parameters. */ -export interface TrustedAccessRoleBindingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface TrustedAccessRoleBindingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type TrustedAccessRoleBindingsGetResponse = TrustedAccessRoleBinding; @@ -5068,12 +3738,10 @@ export interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type TrustedAccessRoleBindingsCreateOrUpdateResponse = - TrustedAccessRoleBinding; +export type TrustedAccessRoleBindingsCreateOrUpdateResponse = TrustedAccessRoleBinding; /** Optional parameters. */ -export interface TrustedAccessRoleBindingsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface TrustedAccessRoleBindingsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -5081,61 +3749,47 @@ export interface TrustedAccessRoleBindingsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type TrustedAccessRoleBindingsDeleteResponse = - TrustedAccessRoleBindingsDeleteHeaders; +export type TrustedAccessRoleBindingsDeleteResponse = TrustedAccessRoleBindingsDeleteHeaders; /** Optional parameters. */ export interface TrustedAccessRoleBindingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type TrustedAccessRoleBindingsListNextResponse = - TrustedAccessRoleBindingListResult; +export type TrustedAccessRoleBindingsListNextResponse = TrustedAccessRoleBindingListResult; /** Optional parameters. */ -export interface LoadBalancersListByManagedClusterOptionalParams - extends coreClient.OperationOptions {} +export interface TrustedAccessRolesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedCluster operation. */ -export type LoadBalancersListByManagedClusterResponse = LoadBalancerListResult; +/** Contains response data for the list operation. */ +export type TrustedAccessRolesListResponse = TrustedAccessRoleListResult; /** Optional parameters. */ -export interface LoadBalancersGetOptionalParams - extends coreClient.OperationOptions {} +export interface TrustedAccessRolesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LoadBalancersGetResponse = LoadBalancer; +/** Contains response data for the listNext operation. */ +export type TrustedAccessRolesListNextResponse = TrustedAccessRoleListResult; /** Optional parameters. */ -export interface LoadBalancersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface MachinesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type LoadBalancersCreateOrUpdateResponse = LoadBalancer; +/** Contains response data for the list operation. */ +export type MachinesListResponse = MachineListResult; /** Optional parameters. */ -export interface LoadBalancersDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface MachinesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the delete operation. */ -export type LoadBalancersDeleteResponse = LoadBalancersDeleteHeaders; +/** Contains response data for the get operation. */ +export type MachinesGetResponse = Machine; /** Optional parameters. */ -export interface LoadBalancersListByManagedClusterNextOptionalParams - extends coreClient.OperationOptions {} +export interface MachinesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedClusterNext operation. */ -export type LoadBalancersListByManagedClusterNextResponse = - LoadBalancerListResult; +/** Contains response data for the listNext operation. */ +export type MachinesListNextResponse = MachineListResult; /** Optional parameters. */ -export interface ContainerServiceClientOptionalParams - extends coreClient.ServiceClientOptions { +export interface ContainerServiceClientOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; /** Api Version */ diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index e977ac9a5f20..7f60458c74fc 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type * as coreClient from "@azure/core-client"; +import * as coreClient from "@azure/core-client"; export const OperationListResult: coreClient.CompositeMapper = { type: { @@ -240,67 +240,6 @@ export const KubernetesPatchVersion: coreClient.CompositeMapper = { }, }; -export const NodeImageVersionsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NodeImageVersionsListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NodeImageVersion", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const NodeImageVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NodeImageVersion", - modelProperties: { - os: { - serializedName: "os", - type: { - name: "String", - }, - }, - sku: { - serializedName: "sku", - type: { - name: "String", - }, - }, - version: { - serializedName: "version", - type: { - name: "String", - }, - }, - fullName: { - serializedName: "fullName", - type: { - name: "String", - }, - }, - }, - }, -}; - export const ManagedClusterListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -455,29 +394,28 @@ export const DelegatedResource: coreClient.CompositeMapper = { }, }; -export const ManagedServiceIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String", - }, +export const ManagedServiceIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String", }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "String", - }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; export const PowerState: coreClient.CompositeMapper = { type: { @@ -494,414 +432,335 @@ export const PowerState: coreClient.CompositeMapper = { }, }; -export const CreationData: coreClient.CompositeMapper = { +export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreationData", + className: "ManagedClusterAgentPoolProfileProperties", modelProperties: { - sourceResourceId: { - serializedName: "sourceResourceId", + eTag: { + serializedName: "eTag", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterAgentPoolProfileProperties", - modelProperties: { - eTag: { - serializedName: "eTag", - readOnly: true, - type: { - name: "String", - }, - }, - count: { - serializedName: "count", - type: { - name: "Number", - }, + count: { + serializedName: "count", + type: { + name: "Number", }, - vmSize: { - serializedName: "vmSize", - type: { - name: "String", - }, + }, + vmSize: { + serializedName: "vmSize", + type: { + name: "String", }, - osDiskSizeGB: { - constraints: { - InclusiveMaximum: 2048, - InclusiveMinimum: 0, - }, - serializedName: "osDiskSizeGB", - type: { - name: "Number", - }, + }, + osDiskSizeGB: { + constraints: { + InclusiveMaximum: 2048, + InclusiveMinimum: 0, }, - osDiskType: { - serializedName: "osDiskType", - type: { - name: "String", - }, + serializedName: "osDiskSizeGB", + type: { + name: "Number", }, - kubeletDiskType: { - serializedName: "kubeletDiskType", - type: { - name: "String", - }, + }, + osDiskType: { + serializedName: "osDiskType", + type: { + name: "String", }, - workloadRuntime: { - serializedName: "workloadRuntime", - type: { - name: "String", - }, + }, + kubeletDiskType: { + serializedName: "kubeletDiskType", + type: { + name: "String", }, - messageOfTheDay: { - serializedName: "messageOfTheDay", - type: { - name: "String", - }, + }, + workloadRuntime: { + serializedName: "workloadRuntime", + type: { + name: "String", }, - vnetSubnetID: { - serializedName: "vnetSubnetID", - type: { - name: "String", - }, + }, + messageOfTheDay: { + serializedName: "messageOfTheDay", + type: { + name: "String", }, - podSubnetID: { - serializedName: "podSubnetID", - type: { - name: "String", - }, + }, + vnetSubnetID: { + serializedName: "vnetSubnetID", + type: { + name: "String", }, - podIPAllocationMode: { - serializedName: "podIPAllocationMode", - type: { - name: "String", - }, + }, + podSubnetID: { + serializedName: "podSubnetID", + type: { + name: "String", }, - maxPods: { - serializedName: "maxPods", - type: { - name: "Number", - }, + }, + maxPods: { + serializedName: "maxPods", + type: { + name: "Number", }, - osType: { - defaultValue: "Linux", - serializedName: "osType", - type: { - name: "String", - }, + }, + osType: { + defaultValue: "Linux", + serializedName: "osType", + type: { + name: "String", }, - osSKU: { - serializedName: "osSKU", - type: { - name: "String", - }, + }, + osSKU: { + serializedName: "osSKU", + type: { + name: "String", }, - maxCount: { - serializedName: "maxCount", - type: { - name: "Number", - }, + }, + maxCount: { + serializedName: "maxCount", + type: { + name: "Number", }, - minCount: { - serializedName: "minCount", - type: { - name: "Number", - }, + }, + minCount: { + serializedName: "minCount", + type: { + name: "Number", }, - enableAutoScaling: { - serializedName: "enableAutoScaling", - type: { - name: "Boolean", - }, + }, + enableAutoScaling: { + serializedName: "enableAutoScaling", + type: { + name: "Boolean", }, - scaleDownMode: { - serializedName: "scaleDownMode", - type: { - name: "String", - }, + }, + scaleDownMode: { + serializedName: "scaleDownMode", + type: { + name: "String", }, + }, + type: { + serializedName: "type", type: { - serializedName: "type", - type: { - name: "String", - }, + name: "String", }, - mode: { - serializedName: "mode", - type: { - name: "String", - }, + }, + mode: { + serializedName: "mode", + type: { + name: "String", }, - orchestratorVersion: { - serializedName: "orchestratorVersion", - type: { - name: "String", - }, + }, + orchestratorVersion: { + serializedName: "orchestratorVersion", + type: { + name: "String", }, - currentOrchestratorVersion: { - serializedName: "currentOrchestratorVersion", - readOnly: true, - type: { - name: "String", - }, + }, + currentOrchestratorVersion: { + serializedName: "currentOrchestratorVersion", + readOnly: true, + type: { + name: "String", }, - nodeImageVersion: { - serializedName: "nodeImageVersion", - readOnly: true, - type: { - name: "String", - }, + }, + nodeImageVersion: { + serializedName: "nodeImageVersion", + readOnly: true, + type: { + name: "String", }, - upgradeSettings: { - serializedName: "upgradeSettings", - type: { - name: "Composite", - className: "AgentPoolUpgradeSettings", - }, + }, + upgradeSettings: { + serializedName: "upgradeSettings", + type: { + name: "Composite", + className: "AgentPoolUpgradeSettings", }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", }, - powerState: { - serializedName: "powerState", - type: { - name: "Composite", - className: "PowerState", - }, + }, + powerState: { + serializedName: "powerState", + type: { + name: "Composite", + className: "PowerState", }, - availabilityZones: { - serializedName: "availabilityZones", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, + }, + availabilityZones: { + serializedName: "availabilityZones", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, - enableNodePublicIP: { - serializedName: "enableNodePublicIP", - type: { - name: "Boolean", - }, - }, - enableCustomCATrust: { - serializedName: "enableCustomCATrust", - type: { - name: "Boolean", - }, - }, - nodePublicIPPrefixID: { - serializedName: "nodePublicIPPrefixID", - type: { - name: "String", - }, + }, + enableNodePublicIP: { + serializedName: "enableNodePublicIP", + type: { + name: "Boolean", }, - scaleSetPriority: { - defaultValue: "Regular", - serializedName: "scaleSetPriority", - type: { - name: "String", - }, + }, + nodePublicIPPrefixID: { + serializedName: "nodePublicIPPrefixID", + type: { + name: "String", }, - scaleSetEvictionPolicy: { - defaultValue: "Delete", - serializedName: "scaleSetEvictionPolicy", - type: { - name: "String", - }, + }, + scaleSetPriority: { + defaultValue: "Regular", + serializedName: "scaleSetPriority", + type: { + name: "String", }, - spotMaxPrice: { - defaultValue: -1, - serializedName: "spotMaxPrice", - type: { - name: "Number", - }, + }, + scaleSetEvictionPolicy: { + defaultValue: "Delete", + serializedName: "scaleSetEvictionPolicy", + type: { + name: "String", }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, + }, + spotMaxPrice: { + defaultValue: -1, + serializedName: "spotMaxPrice", + type: { + name: "Number", }, - nodeLabels: { - serializedName: "nodeLabels", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, }, - nodeTaints: { - serializedName: "nodeTaints", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, + }, + nodeLabels: { + serializedName: "nodeLabels", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, }, - nodeInitializationTaints: { - serializedName: "nodeInitializationTaints", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, + }, + nodeTaints: { + serializedName: "nodeTaints", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, - proximityPlacementGroupID: { - serializedName: "proximityPlacementGroupID", - type: { - name: "String", - }, - }, - kubeletConfig: { - serializedName: "kubeletConfig", - type: { - name: "Composite", - className: "KubeletConfig", - }, - }, - linuxOSConfig: { - serializedName: "linuxOSConfig", - type: { - name: "Composite", - className: "LinuxOSConfig", - }, - }, - enableEncryptionAtHost: { - serializedName: "enableEncryptionAtHost", - type: { - name: "Boolean", - }, - }, - enableUltraSSD: { - serializedName: "enableUltraSSD", - type: { - name: "Boolean", - }, - }, - enableFips: { - serializedName: "enableFIPS", - type: { - name: "Boolean", - }, + }, + proximityPlacementGroupID: { + serializedName: "proximityPlacementGroupID", + type: { + name: "String", }, - gpuInstanceProfile: { - serializedName: "gpuInstanceProfile", - type: { - name: "String", - }, + }, + kubeletConfig: { + serializedName: "kubeletConfig", + type: { + name: "Composite", + className: "KubeletConfig", }, - creationData: { - serializedName: "creationData", - type: { - name: "Composite", - className: "CreationData", - }, + }, + linuxOSConfig: { + serializedName: "linuxOSConfig", + type: { + name: "Composite", + className: "LinuxOSConfig", }, - capacityReservationGroupID: { - serializedName: "capacityReservationGroupID", - type: { - name: "String", - }, + }, + enableEncryptionAtHost: { + serializedName: "enableEncryptionAtHost", + type: { + name: "Boolean", }, - hostGroupID: { - serializedName: "hostGroupID", - type: { - name: "String", - }, + }, + enableUltraSSD: { + serializedName: "enableUltraSSD", + type: { + name: "Boolean", }, - windowsProfile: { - serializedName: "windowsProfile", - type: { - name: "Composite", - className: "AgentPoolWindowsProfile", - }, + }, + enableFips: { + serializedName: "enableFIPS", + type: { + name: "Boolean", }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "AgentPoolNetworkProfile", - }, + }, + gpuInstanceProfile: { + serializedName: "gpuInstanceProfile", + type: { + name: "String", }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "AgentPoolSecurityProfile", - }, + }, + creationData: { + serializedName: "creationData", + type: { + name: "Composite", + className: "CreationData", }, - gpuProfile: { - serializedName: "gpuProfile", - type: { - name: "Composite", - className: "AgentPoolGPUProfile", - }, + }, + capacityReservationGroupID: { + serializedName: "capacityReservationGroupID", + type: { + name: "String", }, - artifactStreamingProfile: { - serializedName: "artifactStreamingProfile", - type: { - name: "Composite", - className: "AgentPoolArtifactStreamingProfile", - }, + }, + hostGroupID: { + serializedName: "hostGroupID", + type: { + name: "String", }, - virtualMachinesProfile: { - serializedName: "virtualMachinesProfile", - type: { - name: "Composite", - className: "VirtualMachinesProfile", - }, + }, + networkProfile: { + serializedName: "networkProfile", + type: { + name: "Composite", + className: "AgentPoolNetworkProfile", }, - virtualMachineNodesStatus: { - serializedName: "virtualMachineNodesStatus", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNodes", - }, - }, - }, + }, + windowsProfile: { + serializedName: "windowsProfile", + type: { + name: "Composite", + className: "AgentPoolWindowsProfile", }, - gatewayProfile: { - serializedName: "gatewayProfile", - type: { - name: "Composite", - className: "AgentPoolGatewayProfile", - }, + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "AgentPoolSecurityProfile", }, - status: { - serializedName: "status", - type: { - name: "Composite", - className: "AgentPoolStatus", - }, + }, + gpuProfile: { + serializedName: "gpuProfile", + type: { + name: "Composite", + className: "GPUProfile", }, }, }, - }; + }, +}; export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { type: { @@ -920,12 +779,6 @@ export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { name: "String", }, }, - maxBlockedNodes: { - serializedName: "maxBlockedNodes", - type: { - name: "String", - }, - }, drainTimeoutInMinutes: { constraints: { InclusiveMaximum: 1440, @@ -1035,12 +888,6 @@ export const KubeletConfig: coreClient.CompositeMapper = { name: "Number", }, }, - seccompDefault: { - serializedName: "seccompDefault", - type: { - name: "String", - }, - }, }, }, }; @@ -1268,15 +1115,15 @@ export const SysctlConfig: coreClient.CompositeMapper = { }, }; -export const AgentPoolWindowsProfile: coreClient.CompositeMapper = { +export const CreationData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolWindowsProfile", + className: "CreationData", modelProperties: { - disableOutboundNat: { - serializedName: "disableOutboundNat", + sourceResourceId: { + serializedName: "sourceResourceId", type: { - name: "Boolean", + name: "String", }, }, }, @@ -1383,17 +1230,26 @@ export const PortRange: coreClient.CompositeMapper = { }, }; -export const AgentPoolSecurityProfile: coreClient.CompositeMapper = { +export const AgentPoolWindowsProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolSecurityProfile", + className: "AgentPoolWindowsProfile", modelProperties: { - sshAccess: { - serializedName: "sshAccess", + disableOutboundNat: { + serializedName: "disableOutboundNat", type: { - name: "String", + name: "Boolean", }, }, + }, + }, +}; + +export const AgentPoolSecurityProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentPoolSecurityProfile", + modelProperties: { enableVtpm: { serializedName: "enableVTPM", type: { @@ -1410,19 +1266,13 @@ export const AgentPoolSecurityProfile: coreClient.CompositeMapper = { }, }; -export const AgentPoolGPUProfile: coreClient.CompositeMapper = { +export const GPUProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolGPUProfile", + className: "GPUProfile", modelProperties: { - installGPUDriver: { - serializedName: "installGPUDriver", - type: { - name: "Boolean", - }, - }, - driverType: { - serializedName: "driverType", + driver: { + serializedName: "driver", type: { name: "String", }, @@ -1431,147 +1281,10 @@ export const AgentPoolGPUProfile: coreClient.CompositeMapper = { }, }; -export const AgentPoolArtifactStreamingProfile: coreClient.CompositeMapper = { +export const ContainerServiceLinuxProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolArtifactStreamingProfile", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const VirtualMachinesProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinesProfile", - modelProperties: { - scale: { - serializedName: "scale", - type: { - name: "Composite", - className: "ScaleProfile", - }, - }, - }, - }, -}; - -export const ScaleProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScaleProfile", - modelProperties: { - manual: { - serializedName: "manual", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManualScaleProfile", - }, - }, - }, - }, - autoscale: { - serializedName: "autoscale", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - }, - }, -}; - -export const ManualScaleProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManualScaleProfile", - modelProperties: { - size: { - serializedName: "size", - type: { - name: "String", - }, - }, - count: { - serializedName: "count", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const VirtualMachineNodes: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineNodes", - modelProperties: { - size: { - serializedName: "size", - type: { - name: "String", - }, - }, - count: { - serializedName: "count", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AgentPoolGatewayProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolGatewayProfile", - modelProperties: { - publicIPPrefixSize: { - defaultValue: 31, - constraints: { - InclusiveMaximum: 31, - InclusiveMinimum: 28, - }, - serializedName: "publicIPPrefixSize", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AgentPoolStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolStatus", - modelProperties: { - provisioningError: { - serializedName: "provisioningError", - type: { - name: "Composite", - className: "CloudErrorBody", - }, - }, - }, - }, -}; - -export const ContainerServiceLinuxProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContainerServiceLinuxProfile", + className: "ContainerServiceLinuxProfile", modelProperties: { adminUsername: { constraints: { @@ -1700,28 +1413,27 @@ export const WindowsGmsaProfile: coreClient.CompositeMapper = { }, }; -export const ManagedClusterServicePrincipalProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterServicePrincipalProfile", - modelProperties: { - clientId: { - serializedName: "clientId", - required: true, - type: { - name: "String", - }, +export const ManagedClusterServicePrincipalProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterServicePrincipalProfile", + modelProperties: { + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "String", }, - secret: { - serializedName: "secret", - type: { - name: "String", - }, + }, + secret: { + serializedName: "secret", + type: { + name: "String", }, }, }, - }; + }, +}; export const ManagedClusterAddonProfile: coreClient.CompositeMapper = { type: { @@ -1875,79 +1587,76 @@ export const ManagedClusterPodIdentity: coreClient.CompositeMapper = { }, }; -export const ManagedClusterPodIdentityProvisioningInfo: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningInfo", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningError", - }, +export const ManagedClusterPodIdentityProvisioningInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningInfo", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningError", }, }, }, - }; + }, +}; -export const ManagedClusterPodIdentityProvisioningError: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningError", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningErrorBody", - }, +export const ManagedClusterPodIdentityProvisioningError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningError", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningErrorBody", }, }, }, - }; + }, +}; -export const ManagedClusterPodIdentityProvisioningErrorBody: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningErrorBody", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String", - }, +export const ManagedClusterPodIdentityProvisioningErrorBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningErrorBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", }, - message: { - serializedName: "message", - type: { - name: "String", - }, + }, + message: { + serializedName: "message", + type: { + name: "String", }, - target: { - serializedName: "target", - type: { - name: "String", - }, + }, + target: { + serializedName: "target", + type: { + name: "String", }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningErrorBody", - }, + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningErrorBody", }, }, }, }, }, - }; + }, +}; export const ManagedClusterPodIdentityException: coreClient.CompositeMapper = { type: { @@ -2002,21 +1711,20 @@ export const ManagedClusterOidcIssuerProfile: coreClient.CompositeMapper = { }, }; -export const ManagedClusterNodeResourceGroupProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterNodeResourceGroupProfile", - modelProperties: { - restrictionLevel: { - serializedName: "restrictionLevel", - type: { - name: "String", - }, +export const ManagedClusterNodeResourceGroupProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterNodeResourceGroupProfile", + modelProperties: { + restrictionLevel: { + serializedName: "restrictionLevel", + type: { + name: "String", }, }, }, - }; + }, +}; export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { type: { @@ -2053,12 +1761,17 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { name: "String", }, }, + advancedNetworking: { + serializedName: "advancedNetworking", + type: { + name: "Composite", + className: "AdvancedNetworking", + }, + }, podCidr: { defaultValue: "10.244.0.0/16", constraints: { - Pattern: new RegExp( - "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$", - ), + Pattern: new RegExp("^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$"), }, serializedName: "podCidr", type: { @@ -2068,9 +1781,7 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { serviceCidr: { defaultValue: "10.0.0.0/16", constraints: { - Pattern: new RegExp( - "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$", - ), + Pattern: new RegExp("^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$"), }, serializedName: "serviceCidr", type: { @@ -2116,13 +1827,6 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { className: "ManagedClusterNATGatewayProfile", }, }, - staticEgressGatewayProfile: { - serializedName: "staticEgressGatewayProfile", - type: { - name: "Composite", - className: "ManagedClusterStaticEgressGatewayProfile", - }, - }, podCidrs: { serializedName: "podCidrs", type: { @@ -2156,24 +1860,63 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { }, }, }, - podLinkLocalAccess: { - serializedName: "podLinkLocalAccess", + }, + }, +}; + +export const AdvancedNetworking: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdvancedNetworking", + modelProperties: { + enabled: { + serializedName: "enabled", type: { - name: "String", + name: "Boolean", }, }, - kubeProxyConfig: { - serializedName: "kubeProxyConfig", + observability: { + serializedName: "observability", type: { name: "Composite", - className: "ContainerServiceNetworkProfileKubeProxyConfig", + className: "AdvancedNetworkingObservability", }, }, - advancedNetworking: { - serializedName: "advancedNetworking", + security: { + serializedName: "security", type: { name: "Composite", - className: "AdvancedNetworking", + className: "AdvancedNetworkingSecurity", + }, + }, + }, + }, +}; + +export const AdvancedNetworkingObservability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdvancedNetworkingObservability", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const AdvancedNetworkingSecurity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdvancedNetworkingSecurity", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, }, @@ -2254,70 +1997,61 @@ export const ManagedClusterLoadBalancerProfile: coreClient.CompositeMapper = { name: "String", }, }, - clusterServiceLoadBalancerHealthProbeMode: { - defaultValue: "ServiceNodePort", - serializedName: "clusterServiceLoadBalancerHealthProbeMode", - type: { - name: "String", - }, - }, }, }, }; -export const ManagedClusterLoadBalancerProfileManagedOutboundIPs: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterLoadBalancerProfileManagedOutboundIPs", - modelProperties: { - count: { - defaultValue: 1, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1, - }, - serializedName: "count", - type: { - name: "Number", - }, +export const ManagedClusterLoadBalancerProfileManagedOutboundIPs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterLoadBalancerProfileManagedOutboundIPs", + modelProperties: { + count: { + defaultValue: 1, + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1, }, - countIPv6: { - defaultValue: 0, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "countIPv6", - type: { - name: "Number", - }, + serializedName: "count", + type: { + name: "Number", + }, + }, + countIPv6: { + defaultValue: 0, + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "countIPv6", + type: { + name: "Number", }, }, }, - }; + }, +}; -export const ManagedClusterLoadBalancerProfileOutboundIPPrefixes: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterLoadBalancerProfileOutboundIPPrefixes", - modelProperties: { - publicIPPrefixes: { - serializedName: "publicIPPrefixes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference", - }, +export const ManagedClusterLoadBalancerProfileOutboundIPPrefixes: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterLoadBalancerProfileOutboundIPPrefixes", + modelProperties: { + publicIPPrefixes: { + serializedName: "publicIPPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceReference", }, }, }, }, }, - }; + }, +}; export const ResourceReference: coreClient.CompositeMapper = { type: { @@ -2334,27 +2068,26 @@ export const ResourceReference: coreClient.CompositeMapper = { }, }; -export const ManagedClusterLoadBalancerProfileOutboundIPs: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterLoadBalancerProfileOutboundIPs", - modelProperties: { - publicIPs: { - serializedName: "publicIPs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference", - }, +export const ManagedClusterLoadBalancerProfileOutboundIPs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterLoadBalancerProfileOutboundIPs", + modelProperties: { + publicIPs: { + serializedName: "publicIPs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceReference", }, }, }, }, }, - }; + }, +}; export const ManagedClusterNATGatewayProfile: coreClient.CompositeMapper = { type: { @@ -2396,172 +2129,20 @@ export const ManagedClusterNATGatewayProfile: coreClient.CompositeMapper = { }, }; -export const ManagedClusterManagedOutboundIPProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterManagedOutboundIPProfile", - modelProperties: { - count: { - defaultValue: 1, - constraints: { - InclusiveMaximum: 16, - InclusiveMinimum: 1, - }, - serializedName: "count", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const ManagedClusterStaticEgressGatewayProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterStaticEgressGatewayProfile", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - }, - }, - }; - -export const ContainerServiceNetworkProfileKubeProxyConfig: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ContainerServiceNetworkProfileKubeProxyConfig", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - mode: { - serializedName: "mode", - type: { - name: "String", - }, - }, - ipvsConfig: { - serializedName: "ipvsConfig", - type: { - name: "Composite", - className: - "ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig", - }, - }, - }, - }, - }; - -export const ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig", - modelProperties: { - scheduler: { - serializedName: "scheduler", - type: { - name: "String", - }, - }, - tcpTimeoutSeconds: { - serializedName: "tcpTimeoutSeconds", - type: { - name: "Number", - }, - }, - tcpFinTimeoutSeconds: { - serializedName: "tcpFinTimeoutSeconds", - type: { - name: "Number", - }, - }, - udpTimeoutSeconds: { - serializedName: "udpTimeoutSeconds", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const AdvancedNetworking: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdvancedNetworking", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - observability: { - serializedName: "observability", - type: { - name: "Composite", - className: "AdvancedNetworkingObservability", - }, - }, - security: { - serializedName: "security", - type: { - name: "Composite", - className: "AdvancedNetworkingSecurity", - }, - }, - }, - }, -}; - -export const AdvancedNetworkingObservability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdvancedNetworkingObservability", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const AdvancedNetworkingSecurity: coreClient.CompositeMapper = { +export const ManagedClusterManagedOutboundIPProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdvancedNetworkingSecurity", + className: "ManagedClusterManagedOutboundIPProfile", modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - advancedNetworkPolicies: { - serializedName: "advancedNetworkPolicies", - type: { - name: "String", + count: { + defaultValue: 1, + constraints: { + InclusiveMaximum: 16, + InclusiveMinimum: 1, }, - }, - transitEncryption: { - serializedName: "transitEncryption", + serializedName: "count", type: { - name: "String", + name: "Number", }, }, }, @@ -2682,192 +2263,190 @@ export const UpgradeOverrideSettings: coreClient.CompositeMapper = { }, }; -export const ManagedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterPropertiesAutoScalerProfile", - modelProperties: { - balanceSimilarNodeGroups: { - serializedName: "balance-similar-node-groups", - type: { - name: "String", - }, +export const ManagedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterPropertiesAutoScalerProfile", + modelProperties: { + balanceSimilarNodeGroups: { + serializedName: "balance-similar-node-groups", + type: { + name: "String", }, - daemonsetEvictionForEmptyNodes: { - serializedName: "daemonset-eviction-for-empty-nodes", - type: { - name: "Boolean", - }, + }, + daemonsetEvictionForEmptyNodes: { + serializedName: "daemonset-eviction-for-empty-nodes", + type: { + name: "Boolean", }, - daemonsetEvictionForOccupiedNodes: { - serializedName: "daemonset-eviction-for-occupied-nodes", - type: { - name: "Boolean", - }, + }, + daemonsetEvictionForOccupiedNodes: { + serializedName: "daemonset-eviction-for-occupied-nodes", + type: { + name: "Boolean", }, - ignoreDaemonsetsUtilization: { - serializedName: "ignore-daemonsets-utilization", - type: { - name: "Boolean", - }, + }, + ignoreDaemonsetsUtilization: { + serializedName: "ignore-daemonsets-utilization", + type: { + name: "Boolean", }, - expander: { - serializedName: "expander", - type: { - name: "String", - }, + }, + expander: { + serializedName: "expander", + type: { + name: "String", }, - maxEmptyBulkDelete: { - serializedName: "max-empty-bulk-delete", - type: { - name: "String", - }, + }, + maxEmptyBulkDelete: { + serializedName: "max-empty-bulk-delete", + type: { + name: "String", }, - maxGracefulTerminationSec: { - serializedName: "max-graceful-termination-sec", - type: { - name: "String", - }, + }, + maxGracefulTerminationSec: { + serializedName: "max-graceful-termination-sec", + type: { + name: "String", }, - maxNodeProvisionTime: { - serializedName: "max-node-provision-time", - type: { - name: "String", - }, + }, + maxNodeProvisionTime: { + serializedName: "max-node-provision-time", + type: { + name: "String", }, - maxTotalUnreadyPercentage: { - serializedName: "max-total-unready-percentage", - type: { - name: "String", - }, + }, + maxTotalUnreadyPercentage: { + serializedName: "max-total-unready-percentage", + type: { + name: "String", }, - newPodScaleUpDelay: { - serializedName: "new-pod-scale-up-delay", - type: { - name: "String", - }, + }, + newPodScaleUpDelay: { + serializedName: "new-pod-scale-up-delay", + type: { + name: "String", }, - okTotalUnreadyCount: { - serializedName: "ok-total-unready-count", - type: { - name: "String", - }, + }, + okTotalUnreadyCount: { + serializedName: "ok-total-unready-count", + type: { + name: "String", }, - scanInterval: { - serializedName: "scan-interval", - type: { - name: "String", - }, + }, + scanInterval: { + serializedName: "scan-interval", + type: { + name: "String", }, - scaleDownDelayAfterAdd: { - serializedName: "scale-down-delay-after-add", - type: { - name: "String", - }, + }, + scaleDownDelayAfterAdd: { + serializedName: "scale-down-delay-after-add", + type: { + name: "String", }, - scaleDownDelayAfterDelete: { - serializedName: "scale-down-delay-after-delete", - type: { - name: "String", - }, + }, + scaleDownDelayAfterDelete: { + serializedName: "scale-down-delay-after-delete", + type: { + name: "String", }, - scaleDownDelayAfterFailure: { - serializedName: "scale-down-delay-after-failure", - type: { - name: "String", - }, + }, + scaleDownDelayAfterFailure: { + serializedName: "scale-down-delay-after-failure", + type: { + name: "String", }, - scaleDownUnneededTime: { - serializedName: "scale-down-unneeded-time", - type: { - name: "String", - }, + }, + scaleDownUnneededTime: { + serializedName: "scale-down-unneeded-time", + type: { + name: "String", }, - scaleDownUnreadyTime: { - serializedName: "scale-down-unready-time", - type: { - name: "String", - }, + }, + scaleDownUnreadyTime: { + serializedName: "scale-down-unready-time", + type: { + name: "String", }, - scaleDownUtilizationThreshold: { - serializedName: "scale-down-utilization-threshold", - type: { - name: "String", - }, + }, + scaleDownUtilizationThreshold: { + serializedName: "scale-down-utilization-threshold", + type: { + name: "String", }, - skipNodesWithLocalStorage: { - serializedName: "skip-nodes-with-local-storage", - type: { - name: "String", - }, + }, + skipNodesWithLocalStorage: { + serializedName: "skip-nodes-with-local-storage", + type: { + name: "String", }, - skipNodesWithSystemPods: { - serializedName: "skip-nodes-with-system-pods", - type: { - name: "String", - }, + }, + skipNodesWithSystemPods: { + serializedName: "skip-nodes-with-system-pods", + type: { + name: "String", }, }, }, - }; + }, +}; -export const ManagedClusterAPIServerAccessProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterAPIServerAccessProfile", - modelProperties: { - authorizedIPRanges: { - serializedName: "authorizedIPRanges", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, +export const ManagedClusterAPIServerAccessProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterAPIServerAccessProfile", + modelProperties: { + authorizedIPRanges: { + serializedName: "authorizedIPRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, - enablePrivateCluster: { - serializedName: "enablePrivateCluster", - type: { - name: "Boolean", - }, + }, + enablePrivateCluster: { + serializedName: "enablePrivateCluster", + type: { + name: "Boolean", }, - privateDNSZone: { - serializedName: "privateDNSZone", - type: { - name: "String", - }, + }, + privateDNSZone: { + serializedName: "privateDNSZone", + type: { + name: "String", }, - enablePrivateClusterPublicFqdn: { - serializedName: "enablePrivateClusterPublicFQDN", - type: { - name: "Boolean", - }, + }, + enablePrivateClusterPublicFqdn: { + serializedName: "enablePrivateClusterPublicFQDN", + type: { + name: "Boolean", }, - disableRunCommand: { - serializedName: "disableRunCommand", - type: { - name: "Boolean", - }, + }, + disableRunCommand: { + serializedName: "disableRunCommand", + type: { + name: "Boolean", }, - enableVnetIntegration: { - serializedName: "enableVnetIntegration", - type: { - name: "Boolean", - }, + }, + enableVnetIntegration: { + serializedName: "enableVnetIntegration", + type: { + name: "Boolean", }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String", - }, + }, + subnetId: { + serializedName: "subnetId", + type: { + name: "String", }, }, }, - }; + }, +}; export const PrivateLinkResource: coreClient.CompositeMapper = { type: { @@ -2948,18 +2527,6 @@ export const ManagedClusterHttpProxyConfig: coreClient.CompositeMapper = { }, }, }, - effectiveNoProxy: { - serializedName: "effectiveNoProxy", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, trustedCa: { serializedName: "trustedCa", type: { @@ -3003,20 +2570,6 @@ export const ManagedClusterSecurityProfile: coreClient.CompositeMapper = { className: "ManagedClusterSecurityProfileImageCleaner", }, }, - imageIntegrity: { - serializedName: "imageIntegrity", - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileImageIntegrity", - }, - }, - nodeRestriction: { - serializedName: "nodeRestriction", - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileNodeRestriction", - }, - }, customCATrustCertificates: { constraints: { MaxItems: 10, @@ -3035,111 +2588,42 @@ export const ManagedClusterSecurityProfile: coreClient.CompositeMapper = { }, }; -export const ManagedClusterSecurityProfileDefender: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileDefender", - modelProperties: { - logAnalyticsWorkspaceResourceId: { - serializedName: "logAnalyticsWorkspaceResourceId", - type: { - name: "String", - }, - }, - securityMonitoring: { - serializedName: "securityMonitoring", - type: { - name: "Composite", - className: - "ManagedClusterSecurityProfileDefenderSecurityMonitoring", - }, - }, - securityGating: { - serializedName: "securityGating", - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileDefenderSecurityGating", - }, - }, - }, - }, - }; - -export const ManagedClusterSecurityProfileDefenderSecurityMonitoring: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileDefenderSecurityMonitoring", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const ManagedClusterSecurityProfileDefender: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileDefender", + modelProperties: { + logAnalyticsWorkspaceResourceId: { + serializedName: "logAnalyticsWorkspaceResourceId", + type: { + name: "String", }, }, - }, - }; - -export const ManagedClusterSecurityProfileDefenderSecurityGating: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileDefenderSecurityGating", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - identities: { - serializedName: "identities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem", - }, - }, - }, - }, - allowSecretAccess: { - serializedName: "allowSecretAccess", - type: { - name: "Boolean", - }, + securityMonitoring: { + serializedName: "securityMonitoring", + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileDefenderSecurityMonitoring", }, }, }, - }; + }, +}; -export const ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem", - modelProperties: { - azureContainerRegistry: { - serializedName: "azureContainerRegistry", - type: { - name: "String", - }, - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "UserAssignedIdentity", - }, +export const ManagedClusterSecurityProfileDefenderSecurityMonitoring: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileDefenderSecurityMonitoring", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, }, - }; + }, +}; export const AzureKeyVaultKms: coreClient.CompositeMapper = { type: { @@ -3175,75 +2659,41 @@ export const AzureKeyVaultKms: coreClient.CompositeMapper = { }, }; -export const ManagedClusterSecurityProfileWorkloadIdentity: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileWorkloadIdentity", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - }, - }, - }; - -export const ManagedClusterSecurityProfileImageCleaner: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileImageCleaner", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - intervalHours: { - serializedName: "intervalHours", - type: { - name: "Number", - }, +export const ManagedClusterSecurityProfileWorkloadIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileWorkloadIdentity", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, }, - }; + }, +}; -export const ManagedClusterSecurityProfileImageIntegrity: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileImageIntegrity", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const ManagedClusterSecurityProfileImageCleaner: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileImageCleaner", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, - }, - }; - -export const ManagedClusterSecurityProfileNodeRestriction: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileNodeRestriction", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, + intervalHours: { + serializedName: "intervalHours", + type: { + name: "Number", }, }, }, - }; + }, +}; export const ManagedClusterStorageProfile: coreClient.CompositeMapper = { type: { @@ -3282,75 +2732,65 @@ export const ManagedClusterStorageProfile: coreClient.CompositeMapper = { }, }; -export const ManagedClusterStorageProfileDiskCSIDriver: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileDiskCSIDriver", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - version: { - serializedName: "version", - type: { - name: "String", - }, +export const ManagedClusterStorageProfileDiskCSIDriver: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterStorageProfileDiskCSIDriver", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, }, - }; + }, +}; -export const ManagedClusterStorageProfileFileCSIDriver: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileFileCSIDriver", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const ManagedClusterStorageProfileFileCSIDriver: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterStorageProfileFileCSIDriver", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, }, - }; + }, +}; -export const ManagedClusterStorageProfileSnapshotController: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileSnapshotController", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const ManagedClusterStorageProfileSnapshotController: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterStorageProfileSnapshotController", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, }, - }; + }, +}; -export const ManagedClusterStorageProfileBlobCSIDriver: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileBlobCSIDriver", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const ManagedClusterStorageProfileBlobCSIDriver: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterStorageProfileBlobCSIDriver", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, }, - }; + }, +}; export const ManagedClusterIngressProfile: coreClient.CompositeMapper = { type: { @@ -3368,384 +2808,175 @@ export const ManagedClusterIngressProfile: coreClient.CompositeMapper = { }, }; -export const ManagedClusterIngressProfileWebAppRouting: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterIngressProfileWebAppRouting", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - dnsZoneResourceIds: { - constraints: { - MaxItems: 5, - }, - serializedName: "dnsZoneResourceIds", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - nginx: { - serializedName: "nginx", - type: { - name: "Composite", - className: "ManagedClusterIngressProfileNginx", - }, - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "UserAssignedIdentity", - }, - }, - }, - }, - }; - -export const ManagedClusterIngressProfileNginx: coreClient.CompositeMapper = { +export const ManagedClusterIngressProfileWebAppRouting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterIngressProfileNginx", + className: "ManagedClusterIngressProfileWebAppRouting", modelProperties: { - defaultIngressControllerType: { - serializedName: "defaultIngressControllerType", + enabled: { + serializedName: "enabled", type: { - name: "String", - }, - }, - }, - }, -}; - -export const ManagedClusterWorkloadAutoScalerProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfile", - modelProperties: { - keda: { - serializedName: "keda", - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfileKeda", - }, - }, - verticalPodAutoscaler: { - serializedName: "verticalPodAutoscaler", - type: { - name: "Composite", - className: - "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", - }, - }, - }, - }, - }; - -export const ManagedClusterWorkloadAutoScalerProfileKeda: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfileKeda", - modelProperties: { - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean", - }, + name: "Boolean", }, }, - }, - }; - -export const ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", - modelProperties: { - enabled: { - defaultValue: false, - serializedName: "enabled", - required: true, - type: { - name: "Boolean", - }, - }, - addonAutoscaling: { - defaultValue: "Disabled", - serializedName: "addonAutoscaling", - type: { - name: "String", - }, + dnsZoneResourceIds: { + constraints: { + MaxItems: 5, }, - }, - }, - }; - -export const ManagedClusterAzureMonitorProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfile", - modelProperties: { - metrics: { - serializedName: "metrics", + serializedName: "dnsZoneResourceIds", type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileMetrics", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - containerInsights: { - serializedName: "containerInsights", + nginx: { + serializedName: "nginx", type: { name: "Composite", - className: "ManagedClusterAzureMonitorProfileContainerInsights", + className: "ManagedClusterIngressProfileNginx", }, }, - appMonitoring: { - serializedName: "appMonitoring", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "ManagedClusterAzureMonitorProfileAppMonitoring", + className: "UserAssignedIdentity", }, }, }, }, }; -export const ManagedClusterAzureMonitorProfileMetrics: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileMetrics", - modelProperties: { - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean", - }, - }, - kubeStateMetrics: { - serializedName: "kubeStateMetrics", - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileKubeStateMetrics", - }, - }, - }, - }, - }; - -export const ManagedClusterAzureMonitorProfileKubeStateMetrics: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileKubeStateMetrics", - modelProperties: { - metricLabelsAllowlist: { - serializedName: "metricLabelsAllowlist", - type: { - name: "String", - }, - }, - metricAnnotationsAllowList: { - serializedName: "metricAnnotationsAllowList", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const ManagedClusterAzureMonitorProfileContainerInsights: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileContainerInsights", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - logAnalyticsWorkspaceResourceId: { - serializedName: "logAnalyticsWorkspaceResourceId", - type: { - name: "String", - }, - }, - syslogPort: { - serializedName: "syslogPort", - type: { - name: "Number", - }, - }, - disableCustomMetrics: { - serializedName: "disableCustomMetrics", - type: { - name: "Boolean", - }, - }, - disablePrometheusMetricsScraping: { - serializedName: "disablePrometheusMetricsScraping", - type: { - name: "Boolean", - }, +export const ManagedClusterIngressProfileNginx: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterIngressProfileNginx", + modelProperties: { + defaultIngressControllerType: { + serializedName: "defaultIngressControllerType", + type: { + name: "String", }, }, }, - }; + }, +}; -export const ManagedClusterAzureMonitorProfileAppMonitoring: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileAppMonitoring", - modelProperties: { - autoInstrumentation: { - serializedName: "autoInstrumentation", - type: { - name: "Composite", - className: - "ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation", - }, - }, - openTelemetryMetrics: { - serializedName: "openTelemetryMetrics", - type: { - name: "Composite", - className: - "ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics", - }, +export const ManagedClusterWorkloadAutoScalerProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterWorkloadAutoScalerProfile", + modelProperties: { + keda: { + serializedName: "keda", + type: { + name: "Composite", + className: "ManagedClusterWorkloadAutoScalerProfileKeda", }, - openTelemetryLogs: { - serializedName: "openTelemetryLogs", - type: { - name: "Composite", - className: - "ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs", - }, + }, + verticalPodAutoscaler: { + serializedName: "verticalPodAutoscaler", + type: { + name: "Composite", + className: "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", }, }, }, - }; + }, +}; -export const ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const ManagedClusterWorkloadAutoScalerProfileKeda: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterWorkloadAutoScalerProfileKeda", + modelProperties: { + enabled: { + serializedName: "enabled", + required: true, + type: { + name: "Boolean", }, }, }, - }; + }, +}; -export const ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics: coreClient.CompositeMapper = +export const ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics", + className: "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", modelProperties: { enabled: { + defaultValue: false, serializedName: "enabled", + required: true, type: { name: "Boolean", }, }, - port: { - serializedName: "port", - type: { - name: "Number", - }, - }, }, }, }; -export const ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - port: { - serializedName: "port", - type: { - name: "Number", - }, +export const ManagedClusterAzureMonitorProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterAzureMonitorProfile", + modelProperties: { + metrics: { + serializedName: "metrics", + type: { + name: "Composite", + className: "ManagedClusterAzureMonitorProfileMetrics", }, }, }, - }; + }, +}; -export const SafeguardsProfile: coreClient.CompositeMapper = { +export const ManagedClusterAzureMonitorProfileMetrics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SafeguardsProfile", + className: "ManagedClusterAzureMonitorProfileMetrics", modelProperties: { - systemExcludedNamespaces: { - serializedName: "systemExcludedNamespaces", - readOnly: true, + enabled: { + serializedName: "enabled", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Boolean", }, }, - version: { - serializedName: "version", + kubeStateMetrics: { + serializedName: "kubeStateMetrics", type: { - name: "String", + name: "Composite", + className: "ManagedClusterAzureMonitorProfileKubeStateMetrics", }, }, - level: { - serializedName: "level", - required: true, + }, + }, +}; + +export const ManagedClusterAzureMonitorProfileKubeStateMetrics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterAzureMonitorProfileKubeStateMetrics", + modelProperties: { + metricLabelsAllowlist: { + serializedName: "metricLabelsAllowlist", type: { name: "String", }, }, - excludedNamespaces: { - serializedName: "excludedNamespaces", + metricAnnotationsAllowList: { + serializedName: "metricAnnotationsAllowList", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, }, @@ -3881,30 +3112,6 @@ export const IstioEgressGateway: coreClient.CompositeMapper = { name: "Boolean", }, }, - name: { - constraints: { - Pattern: new RegExp( - "[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*", - ), - }, - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - namespace: { - serializedName: "namespace", - type: { - name: "String", - }, - }, - gatewayConfigurationName: { - serializedName: "gatewayConfigurationName", - type: { - name: "String", - }, - }, }, }, }; @@ -3995,38 +3202,6 @@ export const ManagedClusterCostAnalysis: coreClient.CompositeMapper = { }, }; -export const ManagedClusterAIToolchainOperatorProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterAIToolchainOperatorProfile", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - }, - }, - }; - -export const ManagedClusterNodeProvisioningProfile: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterNodeProvisioningProfile", - modelProperties: { - mode: { - serializedName: "mode", - type: { - name: "String", - }, - }, - }, - }, - }; - export const ManagedClusterBootstrapProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4049,22 +3224,6 @@ export const ManagedClusterBootstrapProfile: coreClient.CompositeMapper = { }, }; -export const ManagedClusterStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterStatus", - modelProperties: { - provisioningError: { - serializedName: "provisioningError", - type: { - name: "Composite", - className: "CloudErrorBody", - }, - }, - }, - }, -}; - export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4181,123 +3340,56 @@ export const ManagedClusterUpgradeProfile: coreClient.CompositeMapper = { }, }, agentPoolProfiles: { - serializedName: "properties.agentPoolProfiles", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedClusterPoolUpgradeProfile", - }, - }, - }, - }, - }, - }, -}; - -export const ManagedClusterPoolUpgradeProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterPoolUpgradeProfile", - modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - required: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - osType: { - defaultValue: "Linux", - serializedName: "osType", - required: true, - type: { - name: "String", - }, - }, - upgrades: { - serializedName: "upgrades", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedClusterPoolUpgradeProfileUpgradesItem", - }, - }, - }, - }, - componentsByReleases: { - serializedName: "componentsByReleases", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentsByRelease", - }, - }, - }, - }, - }, - }, -}; - -export const ManagedClusterPoolUpgradeProfileUpgradesItem: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClusterPoolUpgradeProfileUpgradesItem", - modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - type: { - name: "String", - }, - }, - isPreview: { - serializedName: "isPreview", - type: { - name: "Boolean", - }, - }, - isOutOfSupport: { - serializedName: "isOutOfSupport", - type: { - name: "Boolean", + serializedName: "properties.agentPoolProfiles", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterPoolUpgradeProfile", + }, }, }, }, }, - }; + }, +}; -export const ComponentsByRelease: coreClient.CompositeMapper = { +export const ManagedClusterPoolUpgradeProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentsByRelease", + className: "ManagedClusterPoolUpgradeProfile", modelProperties: { kubernetesVersion: { serializedName: "kubernetesVersion", + required: true, type: { name: "String", }, }, - components: { - serializedName: "components", + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + osType: { + defaultValue: "Linux", + serializedName: "osType", + required: true, + type: { + name: "String", + }, + }, + upgrades: { + serializedName: "upgrades", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Component", + className: "ManagedClusterPoolUpgradeProfileUpgradesItem", }, }, }, @@ -4306,25 +3398,19 @@ export const ComponentsByRelease: coreClient.CompositeMapper = { }, }; -export const Component: coreClient.CompositeMapper = { +export const ManagedClusterPoolUpgradeProfileUpgradesItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Component", + className: "ManagedClusterPoolUpgradeProfileUpgradesItem", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - version: { - serializedName: "version", + kubernetesVersion: { + serializedName: "kubernetesVersion", type: { name: "String", }, }, - hasBreakingChanges: { - serializedName: "hasBreakingChanges", + isPreview: { + serializedName: "isPreview", type: { name: "Boolean", }, @@ -4586,268 +3672,34 @@ export const DailySchedule: coreClient.CompositeMapper = { InclusiveMinimum: 1, }, serializedName: "intervalDays", - required: true, - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const WeeklySchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WeeklySchedule", - modelProperties: { - intervalWeeks: { - constraints: { - InclusiveMaximum: 4, - InclusiveMinimum: 1, - }, - serializedName: "intervalWeeks", - required: true, - type: { - name: "Number", - }, - }, - dayOfWeek: { - serializedName: "dayOfWeek", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AbsoluteMonthlySchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AbsoluteMonthlySchedule", - modelProperties: { - intervalMonths: { - constraints: { - InclusiveMaximum: 6, - InclusiveMinimum: 1, - }, - serializedName: "intervalMonths", - required: true, - type: { - name: "Number", - }, - }, - dayOfMonth: { - constraints: { - InclusiveMaximum: 31, - InclusiveMinimum: 1, - }, - serializedName: "dayOfMonth", - required: true, - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const RelativeMonthlySchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RelativeMonthlySchedule", - modelProperties: { - intervalMonths: { - constraints: { - InclusiveMaximum: 6, - InclusiveMinimum: 1, - }, - serializedName: "intervalMonths", - required: true, - type: { - name: "Number", - }, - }, - weekIndex: { - serializedName: "weekIndex", - required: true, - type: { - name: "String", - }, - }, - dayOfWeek: { - serializedName: "dayOfWeek", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DateSpan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DateSpan", - modelProperties: { - start: { - serializedName: "start", - required: true, - type: { - name: "Date", - }, - }, - end: { - serializedName: "end", - required: true, - type: { - name: "Date", - }, - }, - }, - }, -}; - -export const SubResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const NamespaceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NamespaceListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Namespace", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const NamespaceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NamespaceProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - labels: { - serializedName: "labels", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - annotations: { - serializedName: "annotations", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - defaultResourceQuota: { - serializedName: "defaultResourceQuota", - type: { - name: "Composite", - className: "ResourceQuota", - }, - }, - defaultNetworkPolicy: { - serializedName: "defaultNetworkPolicy", - type: { - name: "Composite", - className: "NetworkPolicies", - }, - }, - adoptionPolicy: { - serializedName: "adoptionPolicy", - type: { - name: "String", - }, - }, - deletePolicy: { - serializedName: "deletePolicy", + required: true, type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ResourceQuota: coreClient.CompositeMapper = { +export const WeeklySchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceQuota", + className: "WeeklySchedule", modelProperties: { - cpuRequest: { - serializedName: "cpuRequest", - type: { - name: "String", - }, - }, - cpuLimit: { - serializedName: "cpuLimit", - type: { - name: "String", + intervalWeeks: { + constraints: { + InclusiveMaximum: 4, + InclusiveMinimum: 1, }, - }, - memoryRequest: { - serializedName: "memoryRequest", + serializedName: "intervalWeeks", + required: true, type: { - name: "String", + name: "Number", }, }, - memoryLimit: { - serializedName: "memoryLimit", + dayOfWeek: { + serializedName: "dayOfWeek", + required: true, type: { name: "String", }, @@ -4856,117 +3708,118 @@ export const ResourceQuota: coreClient.CompositeMapper = { }, }; -export const NetworkPolicies: coreClient.CompositeMapper = { +export const AbsoluteMonthlySchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkPolicies", + className: "AbsoluteMonthlySchedule", modelProperties: { - ingress: { - serializedName: "ingress", - type: { - name: "String", + intervalMonths: { + constraints: { + InclusiveMaximum: 6, + InclusiveMinimum: 1, }, - }, - egress: { - serializedName: "egress", + serializedName: "intervalMonths", + required: true, type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", + dayOfMonth: { + constraints: { + InclusiveMaximum: 31, + InclusiveMinimum: 1, + }, + serializedName: "dayOfMonth", + required: true, type: { - name: "Composite", - className: "ErrorDetail", + name: "Number", }, }, }, }, }; -export const ErrorDetail: coreClient.CompositeMapper = { +export const RelativeMonthlySchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetail", + className: "RelativeMonthlySchedule", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + intervalMonths: { + constraints: { + InclusiveMaximum: 6, + InclusiveMinimum: 1, + }, + serializedName: "intervalMonths", + required: true, type: { - name: "String", + name: "Number", }, }, - message: { - serializedName: "message", - readOnly: true, + weekIndex: { + serializedName: "weekIndex", + required: true, type: { name: "String", }, }, - target: { - serializedName: "target", - readOnly: true, + dayOfWeek: { + serializedName: "dayOfWeek", + required: true, type: { name: "String", }, }, - details: { - serializedName: "details", - readOnly: true, + }, + }, +}; + +export const DateSpan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DateSpan", + modelProperties: { + start: { + serializedName: "start", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail", - }, - }, + name: "Date", }, }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, + end: { + serializedName: "end", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - }, - }, + name: "Date", }, }, }, }, }; -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { +export const SubResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorAdditionalInfo", + className: "SubResource", modelProperties: { - type: { - serializedName: "type", + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - info: { - serializedName: "info", + name: { + serializedName: "name", readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", }, }, }, @@ -5054,18 +3907,6 @@ export const AgentPoolUpgradeProfile: coreClient.CompositeMapper = { }, }, }, - componentsByReleases: { - serializedName: "properties.componentsByReleases", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentsByRelease", - }, - }, - }, - }, latestNodeImageVersion: { serializedName: "properties.latestNodeImageVersion", type: { @@ -5076,33 +3917,26 @@ export const AgentPoolUpgradeProfile: coreClient.CompositeMapper = { }, }; -export const AgentPoolUpgradeProfilePropertiesUpgradesItem: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AgentPoolUpgradeProfilePropertiesUpgradesItem", - modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - type: { - name: "String", - }, - }, - isPreview: { - serializedName: "isPreview", - type: { - name: "Boolean", - }, +export const AgentPoolUpgradeProfilePropertiesUpgradesItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentPoolUpgradeProfilePropertiesUpgradesItem", + modelProperties: { + kubernetesVersion: { + serializedName: "kubernetesVersion", + type: { + name: "String", }, - isOutOfSupport: { - serializedName: "isOutOfSupport", - type: { - name: "Boolean", - }, + }, + isPreview: { + serializedName: "isPreview", + type: { + name: "Boolean", }, }, }, - }; + }, +}; export const AgentPoolDeleteMachinesParameter: coreClient.CompositeMapper = { type: { @@ -5125,71 +3959,70 @@ export const AgentPoolDeleteMachinesParameter: coreClient.CompositeMapper = { }, }; -export const MachineListResult: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MachineListResult", + className: "ErrorResponse", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Machine", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + error: { + serializedName: "error", type: { - name: "String", + name: "Composite", + className: "ErrorDetail", }, }, }, }, }; -export const MachineProperties: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MachineProperties", + className: "ErrorDetail", modelProperties: { - network: { - serializedName: "network", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Composite", - className: "MachineNetworkProperties", + name: "String", }, }, - resourceId: { - serializedName: "resourceId", + message: { + serializedName: "message", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const MachineNetworkProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MachineNetworkProperties", - modelProperties: { - ipAddresses: { - serializedName: "ipAddresses", + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MachineIpAddress", + className: "ErrorAdditionalInfo", }, }, }, @@ -5198,23 +4031,24 @@ export const MachineNetworkProperties: coreClient.CompositeMapper = { }, }; -export const MachineIpAddress: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MachineIpAddress", + className: "ErrorAdditionalInfo", modelProperties: { - family: { - serializedName: "family", + type: { + serializedName: "type", readOnly: true, type: { name: "String", }, }, - ip: { - serializedName: "ip", + info: { + serializedName: "info", readOnly: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, @@ -5254,8 +4088,7 @@ export const AgentPoolAvailableVersions: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: - "AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem", + className: "AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem", }, }, }, @@ -5507,137 +4340,20 @@ export const RunCommandResult: coreClient.CompositeMapper = { }, }; -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpointCollection", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpoint", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpoint", - modelProperties: { - category: { - serializedName: "category", - type: { - name: "String", - }, - }, - endpoints: { - serializedName: "endpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointDependency", - }, - }, - }, - }, - }, - }, -}; - -export const EndpointDependency: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointDependency", - modelProperties: { - domainName: { - serializedName: "domainName", - type: { - name: "String", - }, - }, - endpointDetails: { - serializedName: "endpointDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointDetail", - }, - }, - }, - }, - }, - }, -}; - -export const EndpointDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointDetail", - modelProperties: { - ipAddress: { - serializedName: "ipAddress", - type: { - name: "String", - }, - }, - port: { - serializedName: "port", - type: { - name: "Number", - }, - }, - protocol: { - serializedName: "protocol", - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OperationStatusResultList: coreClient.CompositeMapper = { +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationStatusResultList", + className: "OutboundEnvironmentEndpointCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "OperationStatusResult", + className: "OutboundEnvironmentEndpoint", }, }, }, @@ -5653,204 +4369,85 @@ export const OperationStatusResultList: coreClient.CompositeMapper = { }, }; -export const OperationStatusResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationStatusResult", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String", - }, - }, - resourceId: { - serializedName: "resourceId", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - status: { - serializedName: "status", - required: true, - type: { - name: "String", - }, - }, - percentComplete: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "percentComplete", - type: { - name: "Number", - }, - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime", - }, - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime", - }, - }, - operations: { - serializedName: "operations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationStatusResult", - }, - }, - }, - }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail", - }, - }, - }, - }, -}; - -export const SnapshotListResult: coreClient.CompositeMapper = { +export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotListResult", + className: "OutboundEnvironmentEndpoint", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Snapshot", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + category: { + serializedName: "category", type: { name: "String", }, }, - }, - }, -}; - -export const ManagedClusterSnapshotListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSnapshotListResult", - modelProperties: { - value: { - serializedName: "value", + endpoints: { + serializedName: "endpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedClusterSnapshot", + className: "EndpointDependency", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, }; -export const ManagedClusterPropertiesForSnapshot: coreClient.CompositeMapper = { +export const EndpointDependency: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterPropertiesForSnapshot", + className: "EndpointDependency", modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", + domainName: { + serializedName: "domainName", type: { name: "String", }, }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "ManagedClusterSKU", - }, - }, - enableRbac: { - serializedName: "enableRbac", - type: { - name: "Boolean", - }, - }, - networkProfile: { - serializedName: "networkProfile", + endpointDetails: { + serializedName: "endpointDetails", type: { - name: "Composite", - className: "NetworkProfileForSnapshot", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDetail", + }, + }, }, }, }, }, }; -export const NetworkProfileForSnapshot: coreClient.CompositeMapper = { +export const EndpointDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkProfileForSnapshot", + className: "EndpointDetail", modelProperties: { - networkPlugin: { - serializedName: "networkPlugin", - type: { - name: "String", - }, - }, - networkPluginMode: { - serializedName: "networkPluginMode", + ipAddress: { + serializedName: "ipAddress", type: { name: "String", }, }, - networkPolicy: { - serializedName: "networkPolicy", + port: { + serializedName: "port", type: { - name: "String", + name: "Number", }, }, - networkMode: { - serializedName: "networkMode", + protocol: { + serializedName: "protocol", type: { name: "String", }, }, - loadBalancerSku: { - serializedName: "loadBalancerSku", + description: { + serializedName: "description", type: { name: "String", }, @@ -5859,20 +4456,19 @@ export const NetworkProfileForSnapshot: coreClient.CompositeMapper = { }, }; -export const TrustedAccessRoleListResult: coreClient.CompositeMapper = { +export const SnapshotListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrustedAccessRoleListResult", + className: "SnapshotListResult", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "TrustedAccessRole", + className: "Snapshot", }, }, }, @@ -5888,34 +4484,47 @@ export const TrustedAccessRoleListResult: coreClient.CompositeMapper = { }, }; -export const TrustedAccessRole: coreClient.CompositeMapper = { +export const MeshRevisionProfileList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrustedAccessRole", + className: "MeshRevisionProfileList", modelProperties: { - sourceResourceType: { - serializedName: "sourceResourceType", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MeshRevisionProfile", + }, + }, }, }, - name: { - serializedName: "name", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", }, }, - rules: { - serializedName: "rules", - readOnly: true, + }, + }, +}; + +export const MeshRevisionProfileProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MeshRevisionProfileProperties", + modelProperties: { + meshRevisions: { + serializedName: "meshRevisions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TrustedAccessRoleRule", + className: "MeshRevision", }, }, }, @@ -5924,26 +4533,19 @@ export const TrustedAccessRole: coreClient.CompositeMapper = { }, }; -export const TrustedAccessRoleRule: coreClient.CompositeMapper = { +export const MeshRevision: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrustedAccessRoleRule", + className: "MeshRevision", modelProperties: { - verbs: { - serializedName: "verbs", - readOnly: true, + revision: { + serializedName: "revision", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - apiGroups: { - serializedName: "apiGroups", - readOnly: true, + upgrades: { + serializedName: "upgrades", type: { name: "Sequence", element: { @@ -5953,33 +4555,35 @@ export const TrustedAccessRoleRule: coreClient.CompositeMapper = { }, }, }, - resources: { - serializedName: "resources", - readOnly: true, + compatibleWith: { + serializedName: "compatibleWith", type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "CompatibleVersions", }, }, }, }, - resourceNames: { - serializedName: "resourceNames", - readOnly: true, + }, + }, +}; + +export const CompatibleVersions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CompatibleVersions", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - nonResourceURLs: { - serializedName: "nonResourceURLs", - readOnly: true, + versions: { + serializedName: "versions", type: { name: "Sequence", element: { @@ -5993,10 +4597,10 @@ export const TrustedAccessRoleRule: coreClient.CompositeMapper = { }, }; -export const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper = { +export const MeshUpgradeProfileList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrustedAccessRoleBindingListResult", + className: "MeshUpgradeProfileList", modelProperties: { value: { serializedName: "value", @@ -6005,7 +4609,7 @@ export const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TrustedAccessRoleBinding", + className: "MeshUpgradeProfile", }, }, }, @@ -6021,34 +4625,10 @@ export const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper = { }, }; -export const GuardrailsAvailableVersionsProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GuardrailsAvailableVersionsProperties", - modelProperties: { - isDefaultVersion: { - serializedName: "isDefaultVersion", - readOnly: true, - type: { - name: "Boolean", - }, - }, - support: { - serializedName: "support", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const GuardrailsAvailableVersionsList: coreClient.CompositeMapper = { +export const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GuardrailsAvailableVersionsList", + className: "TrustedAccessRoleBindingListResult", modelProperties: { value: { serializedName: "value", @@ -6057,7 +4637,7 @@ export const GuardrailsAvailableVersionsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GuardrailsAvailableVersion", + className: "TrustedAccessRoleBinding", }, }, }, @@ -6073,43 +4653,20 @@ export const GuardrailsAvailableVersionsList: coreClient.CompositeMapper = { }, }; -export const SafeguardsAvailableVersionsProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SafeguardsAvailableVersionsProperties", - modelProperties: { - isDefaultVersion: { - serializedName: "isDefaultVersion", - readOnly: true, - type: { - name: "Boolean", - }, - }, - support: { - serializedName: "support", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const SafeguardsAvailableVersionsList: coreClient.CompositeMapper = { +export const TrustedAccessRoleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SafeguardsAvailableVersionsList", + className: "TrustedAccessRoleListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SafeguardsAvailableVersion", + className: "TrustedAccessRole", }, }, }, @@ -6125,47 +4682,34 @@ export const SafeguardsAvailableVersionsList: coreClient.CompositeMapper = { }, }; -export const MeshRevisionProfileList: coreClient.CompositeMapper = { +export const TrustedAccessRole: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MeshRevisionProfileList", + className: "TrustedAccessRole", modelProperties: { - value: { - serializedName: "value", + sourceResourceType: { + serializedName: "sourceResourceType", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MeshRevisionProfile", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const MeshRevisionProfileProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MeshRevisionProfileProperties", - modelProperties: { - meshRevisions: { - serializedName: "meshRevisions", + rules: { + serializedName: "rules", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MeshRevision", + className: "TrustedAccessRoleRule", }, }, }, @@ -6174,19 +4718,14 @@ export const MeshRevisionProfileProperties: coreClient.CompositeMapper = { }, }; -export const MeshRevision: coreClient.CompositeMapper = { +export const TrustedAccessRoleRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MeshRevision", + className: "TrustedAccessRoleRule", modelProperties: { - revision: { - serializedName: "revision", - type: { - name: "String", - }, - }, - upgrades: { - serializedName: "upgrades", + verbs: { + serializedName: "verbs", + readOnly: true, type: { name: "Sequence", element: { @@ -6196,35 +4735,9 @@ export const MeshRevision: coreClient.CompositeMapper = { }, }, }, - compatibleWith: { - serializedName: "compatibleWith", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CompatibleVersions", - }, - }, - }, - }, - }, - }, -}; - -export const CompatibleVersions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CompatibleVersions", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - versions: { - serializedName: "versions", + apiGroups: { + serializedName: "apiGroups", + readOnly: true, type: { name: "Sequence", element: { @@ -6234,90 +4747,66 @@ export const CompatibleVersions: coreClient.CompositeMapper = { }, }, }, - }, - }, -}; - -export const MeshUpgradeProfileList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MeshUpgradeProfileList", - modelProperties: { - value: { - serializedName: "value", + resources: { + serializedName: "resources", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MeshUpgradeProfile", + name: "String", }, }, }, }, - nextLink: { - serializedName: "nextLink", + resourceNames: { + serializedName: "resourceNames", readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const LoadBalancerListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadBalancerListResult", - modelProperties: { - value: { - serializedName: "value", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "LoadBalancer", + name: "String", }, }, }, }, - nextLink: { - serializedName: "nextLink", + nonResourceURLs: { + serializedName: "nonResourceURLs", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const LabelSelector: coreClient.CompositeMapper = { +export const MachineListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LabelSelector", + className: "MachineListResult", modelProperties: { - matchLabels: { - serializedName: "matchLabels", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - matchExpressions: { - serializedName: "matchExpressions", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LabelSelectorRequirement", + className: "Machine", }, }, }, @@ -6326,50 +4815,43 @@ export const LabelSelector: coreClient.CompositeMapper = { }, }; -export const LabelSelectorRequirement: coreClient.CompositeMapper = { +export const MachineProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LabelSelectorRequirement", + className: "MachineProperties", modelProperties: { - key: { - serializedName: "key", + network: { + serializedName: "network", type: { - name: "String", + name: "Composite", + className: "MachineNetworkProperties", }, }, - operator: { - serializedName: "operator", + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { name: "String", }, }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, }, }, }; -export const RebalanceLoadBalancersRequestBody: coreClient.CompositeMapper = { +export const MachineNetworkProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RebalanceLoadBalancersRequestBody", + className: "MachineNetworkProperties", modelProperties: { - loadBalancerNames: { - serializedName: "loadBalancerNames", + ipAddresses: { + serializedName: "ipAddresses", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "MachineIpAddress", }, }, }, @@ -6378,27 +4860,23 @@ export const RebalanceLoadBalancersRequestBody: coreClient.CompositeMapper = { }, }; -export const AutoScaleProfile: coreClient.CompositeMapper = { +export const MachineIpAddress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoScaleProfile", + className: "MachineIpAddress", modelProperties: { - size: { - serializedName: "size", + family: { + serializedName: "family", + readOnly: true, type: { name: "String", }, }, - minCount: { - serializedName: "minCount", - type: { - name: "Number", - }, - }, - maxCount: { - serializedName: "maxCount", + ip: { + serializedName: "ip", + readOnly: true, type: { - name: "Number", + name: "String", }, }, }, @@ -6459,6 +4937,16 @@ export const TrackedResource: coreClient.CompositeMapper = { }, }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, +}; + export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6495,50 +4983,6 @@ export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { }, }; -export const GuardrailsAvailableVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GuardrailsAvailableVersion", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "GuardrailsAvailableVersionsProperties", - }, - }, - }, - }, -}; - -export const SafeguardsAvailableVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SafeguardsAvailableVersion", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "SafeguardsAvailableVersionsProperties", - }, - }, - }, - }, -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties, - }, - }, -}; - export const MaintenanceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6587,50 +5031,6 @@ export const MaintenanceConfiguration: coreClient.CompositeMapper = { }, }; -export const Namespace: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Namespace", - modelProperties: { - ...SubResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - eTag: { - serializedName: "eTag", - readOnly: true, - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "NamespaceProperties", - }, - }, - }, - }, -}; - export const AgentPool: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6702,12 +5102,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "String", }, }, - podIPAllocationMode: { - serializedName: "properties.podIPAllocationMode", - type: { - name: "String", - }, - }, maxPods: { serializedName: "properties.maxPods", type: { @@ -6821,12 +5215,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "Boolean", }, }, - enableCustomCATrust: { - serializedName: "properties.enableCustomCATrust", - type: { - name: "Boolean", - }, - }, nodePublicIPPrefixID: { serializedName: "properties.nodePublicIPPrefixID", type: { @@ -6879,17 +5267,6 @@ export const AgentPool: coreClient.CompositeMapper = { }, }, }, - nodeInitializationTaints: { - serializedName: "properties.nodeInitializationTaints", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, proximityPlacementGroupID: { serializedName: "properties.proximityPlacementGroupID", type: { @@ -6953,13 +5330,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "String", }, }, - windowsProfile: { - serializedName: "properties.windowsProfile", - type: { - name: "Composite", - className: "AgentPoolWindowsProfile", - }, - }, networkProfile: { serializedName: "properties.networkProfile", type: { @@ -6967,58 +5337,25 @@ export const AgentPool: coreClient.CompositeMapper = { className: "AgentPoolNetworkProfile", }, }, - securityProfile: { - serializedName: "properties.securityProfile", - type: { - name: "Composite", - className: "AgentPoolSecurityProfile", - }, - }, - gpuProfile: { - serializedName: "properties.gpuProfile", - type: { - name: "Composite", - className: "AgentPoolGPUProfile", - }, - }, - artifactStreamingProfile: { - serializedName: "properties.artifactStreamingProfile", - type: { - name: "Composite", - className: "AgentPoolArtifactStreamingProfile", - }, - }, - virtualMachinesProfile: { - serializedName: "properties.virtualMachinesProfile", + windowsProfile: { + serializedName: "properties.windowsProfile", type: { name: "Composite", - className: "VirtualMachinesProfile", - }, - }, - virtualMachineNodesStatus: { - serializedName: "properties.virtualMachineNodesStatus", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNodes", - }, - }, + className: "AgentPoolWindowsProfile", }, }, - gatewayProfile: { - serializedName: "properties.gatewayProfile", + securityProfile: { + serializedName: "properties.securityProfile", type: { name: "Composite", - className: "AgentPoolGatewayProfile", + className: "AgentPoolSecurityProfile", }, }, - status: { - serializedName: "properties.status", + gpuProfile: { + serializedName: "properties.gpuProfile", type: { name: "Composite", - className: "AgentPoolStatus", + className: "GPUProfile", }, }, }, @@ -7086,12 +5423,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterIdentity", }, }, - kind: { - serializedName: "kind", - type: { - name: "String", - }, - }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -7106,13 +5437,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "PowerState", }, }, - creationData: { - serializedName: "properties.creationData", - type: { - name: "Composite", - className: "CreationData", - }, - }, maxAgentPools: { serializedName: "properties.maxAgentPools", readOnly: true, @@ -7250,18 +5574,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { name: "String", }, }, - enablePodSecurityPolicy: { - serializedName: "properties.enablePodSecurityPolicy", - type: { - name: "Boolean", - }, - }, - enableNamespaceResources: { - serializedName: "properties.enableNamespaceResources", - type: { - name: "Boolean", - }, - }, networkProfile: { serializedName: "properties.networkProfile", type: { @@ -7385,13 +5697,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterAzureMonitorProfile", }, }, - safeguardsProfile: { - serializedName: "properties.safeguardsProfile", - type: { - name: "Composite", - className: "SafeguardsProfile", - }, - }, serviceMeshProfile: { serializedName: "properties.serviceMeshProfile", type: { @@ -7413,20 +5718,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterMetricsProfile", }, }, - aiToolchainOperatorProfile: { - serializedName: "properties.aiToolchainOperatorProfile", - type: { - name: "Composite", - className: "ManagedClusterAIToolchainOperatorProfile", - }, - }, - nodeProvisioningProfile: { - serializedName: "properties.nodeProvisioningProfile", - type: { - name: "Composite", - className: "ManagedClusterNodeProvisioningProfile", - }, - }, bootstrapProfile: { serializedName: "properties.bootstrapProfile", type: { @@ -7434,13 +5725,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterBootstrapProfile", }, }, - status: { - serializedName: "properties.status", - type: { - name: "Composite", - className: "ManagedClusterStatus", - }, - }, }, }, }; @@ -7528,37 +5812,6 @@ export const Snapshot: coreClient.CompositeMapper = { }, }; -export const ManagedClusterSnapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSnapshot", - modelProperties: { - ...TrackedResource.type.modelProperties, - creationData: { - serializedName: "properties.creationData", - type: { - name: "Composite", - className: "CreationData", - }, - }, - snapshotType: { - defaultValue: "NodePool", - serializedName: "properties.snapshotType", - type: { - name: "String", - }, - }, - managedClusterPropertiesReadOnly: { - serializedName: "properties.managedClusterPropertiesReadOnly", - type: { - name: "Composite", - className: "ManagedClusterPropertiesForSnapshot", - }, - }, - }, - }, -}; - export const MeshRevisionProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7593,48 +5846,13 @@ export const MeshUpgradeProfile: coreClient.CompositeMapper = { }, }; -export const LoadBalancer: coreClient.CompositeMapper = { +export const ManagedClustersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancer", + className: "ManagedClustersDeleteHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - primaryAgentPoolName: { - serializedName: "properties.primaryAgentPoolName", - type: { - name: "String", - }, - }, - allowServicePlacement: { - serializedName: "properties.allowServicePlacement", - type: { - name: "Boolean", - }, - }, - serviceLabelSelector: { - serializedName: "properties.serviceLabelSelector", - type: { - name: "Composite", - className: "LabelSelector", - }, - }, - serviceNamespaceSelector: { - serializedName: "properties.serviceNamespaceSelector", - type: { - name: "Composite", - className: "LabelSelector", - }, - }, - nodeSelector: { - serializedName: "properties.nodeSelector", - type: { - name: "Composite", - className: "LabelSelector", - }, - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + location: { + serializedName: "location", type: { name: "String", }, @@ -7643,10 +5861,10 @@ export const LoadBalancer: coreClient.CompositeMapper = { }, }; -export const ManagedClustersDeleteHeaders: coreClient.CompositeMapper = { +export const ManagedClustersResetServicePrincipalProfileHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClustersDeleteHeaders", + className: "ManagedClustersResetServicePrincipalProfileHeaders", modelProperties: { location: { serializedName: "location", @@ -7658,91 +5876,71 @@ export const ManagedClustersDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const ManagedClustersResetServicePrincipalProfileHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClustersResetServicePrincipalProfileHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const ManagedClustersResetAADProfileHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClustersResetAADProfileHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; -export const ManagedClustersResetAADProfileHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClustersResetAADProfileHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const ManagedClustersRotateClusterCertificatesHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClustersRotateClusterCertificatesHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; -export const ManagedClustersAbortLatestOperationHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClustersAbortLatestOperationHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, +export const ManagedClustersAbortLatestOperationHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClustersAbortLatestOperationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, - }, - }; - -export const ManagedClustersRotateClusterCertificatesHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClustersRotateClusterCertificatesHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", }, }, }, - }; + }, +}; -export const ManagedClustersRotateServiceAccountSigningKeysHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClustersRotateServiceAccountSigningKeysHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const ManagedClustersRotateServiceAccountSigningKeysHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClustersRotateServiceAccountSigningKeysHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; export const ManagedClustersStopHeaders: coreClient.CompositeMapper = { type: { @@ -7789,42 +5987,10 @@ export const ManagedClustersRunCommandHeaders: coreClient.CompositeMapper = { }, }; -export const ManagedClustersGetCommandResultHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClustersGetCommandResultHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const ManagedClustersRebalanceLoadBalancersHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClustersRebalanceLoadBalancersHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const NamespacesDeleteHeaders: coreClient.CompositeMapper = { +export const ManagedClustersGetCommandResultHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NamespacesDeleteHeaders", + className: "ManagedClustersGetCommandResultHeaders", modelProperties: { location: { serializedName: "location", @@ -7836,27 +6002,26 @@ export const NamespacesDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const AgentPoolsAbortLatestOperationHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AgentPoolsAbortLatestOperationHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const AgentPoolsAbortLatestOperationHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentPoolsAbortLatestOperationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", }, }, }, - }; + }, +}; export const AgentPoolsDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -7888,42 +6053,25 @@ export const AgentPoolsDeleteMachinesHeaders: coreClient.CompositeMapper = { }, }; -export const AgentPoolsUpgradeNodeImageVersionHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AgentPoolsUpgradeNodeImageVersionHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const TrustedAccessRoleBindingsDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "TrustedAccessRoleBindingsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const AgentPoolsUpgradeNodeImageVersionHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentPoolsUpgradeNodeImageVersionHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", }, }, }, - }; + }, +}; -export const LoadBalancersDeleteHeaders: coreClient.CompositeMapper = { +export const TrustedAccessRoleBindingsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancersDeleteHeaders", + className: "TrustedAccessRoleBindingsDeleteHeaders", modelProperties: { location: { serializedName: "location", diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index 0d7037190e9e..9951a2384d7d 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { +import { OperationParameter, OperationURLParameter, OperationQueryParameter, @@ -17,17 +17,13 @@ import { ManagedClusterServicePrincipalProfile as ManagedClusterServicePrincipalProfileMapper, ManagedClusterAADProfile as ManagedClusterAADProfileMapper, RunCommandRequest as RunCommandRequestMapper, - RebalanceLoadBalancersRequestBody as RebalanceLoadBalancersRequestBodyMapper, MaintenanceConfiguration as MaintenanceConfigurationMapper, - Namespace as NamespaceMapper, 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.js"; export const accept: OperationParameter = { @@ -57,7 +53,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2025-02-02-preview", + defaultValue: "2025-03-01", isConstant: true, serializedName: "api-version", type: { @@ -110,9 +106,7 @@ export const resourceName: OperationURLParameter = { parameterPath: "resourceName", mapper: { constraints: { - Pattern: new RegExp( - "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), + Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"), MaxLength: 63, MinLength: 1, }, @@ -197,16 +191,6 @@ export const parameters1: OperationParameter = { mapper: TagsObjectMapper, }; -export const ignorePodDisruptionBudget: OperationQueryParameter = { - parameterPath: ["options", "ignorePodDisruptionBudget"], - mapper: { - serializedName: "ignore-pod-disruption-budget", - type: { - name: "Boolean", - }, - }, -}; - export const parameters2: OperationParameter = { parameterPath: "parameters", mapper: ManagedClusterServicePrincipalProfileMapper, @@ -233,28 +217,11 @@ export const commandId: OperationURLParameter = { }, }; -export const version: OperationURLParameter = { - parameterPath: "version", - mapper: { - constraints: { - MaxLength: 24, - MinLength: 1, - }, - serializedName: "version", - required: true, - type: { - name: "String", - }, - }, -}; - export const mode: OperationURLParameter = { parameterPath: "mode", mapper: { constraints: { - Pattern: new RegExp( - "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", - ), + Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"), MaxLength: 24, MinLength: 1, }, @@ -266,11 +233,6 @@ export const mode: OperationURLParameter = { }, }; -export const parameters4: OperationParameter = { - parameterPath: "parameters", - mapper: RebalanceLoadBalancersRequestBodyMapper, -}; - export const nextLink: OperationURLParameter = { parameterPath: "nextLink", mapper: { @@ -294,32 +256,11 @@ export const configName: OperationURLParameter = { }, }; -export const parameters5: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", mapper: MaintenanceConfigurationMapper, }; -export const namespaceName: OperationURLParameter = { - parameterPath: "namespaceName", - mapper: { - constraints: { - Pattern: new RegExp("[a-z0-9]([-a-z0-9]*[a-z0-9])?"), - MaxLength: 63, - MinLength: 1, - }, - serializedName: "namespaceName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: NamespaceMapper, -}; - export const agentPoolName: OperationURLParameter = { parameterPath: "agentPoolName", mapper: { @@ -336,30 +277,26 @@ export const agentPoolName: OperationURLParameter = { }, }; -export const parameters7: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: AgentPoolMapper, }; -export const machines: OperationParameter = { - parameterPath: "machines", - mapper: AgentPoolDeleteMachinesParameterMapper, -}; - -export const machineName: OperationURLParameter = { - parameterPath: "machineName", +export const ignorePodDisruptionBudget: OperationQueryParameter = { + parameterPath: ["options", "ignorePodDisruptionBudget"], mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][-_a-zA-Z0-9]{0,39}$"), - }, - serializedName: "machineName", - required: true, + serializedName: "ignore-pod-disruption-budget", type: { - name: "String", + name: "Boolean", }, }, }; +export const machines: OperationParameter = { + parameterPath: "machines", + mapper: AgentPoolDeleteMachinesParameterMapper, +}; + export const privateEndpointConnectionName: OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -371,40 +308,21 @@ export const privateEndpointConnectionName: OperationURLParameter = { }, }; -export const parameters8: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper, }; -export const parameters9: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: PrivateLinkResourceMapper, }; -export const operationId: OperationURLParameter = { - parameterPath: "operationId", - mapper: { - constraints: { - MinLength: 1, - }, - serializedName: "operationId", - required: true, - type: { - name: "String", - }, - }, -}; - -export const parameters10: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: SnapshotMapper, }; -export const parameters11: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedClusterSnapshotMapper, -}; - export const trustedAccessRoleBindingName: OperationURLParameter = { parameterPath: "trustedAccessRoleBindingName", mapper: { @@ -426,23 +344,16 @@ export const trustedAccessRoleBinding: OperationParameter = { mapper: TrustedAccessRoleBindingMapper, }; -export const loadBalancerName: OperationURLParameter = { - parameterPath: "loadBalancerName", +export const machineName: OperationURLParameter = { + parameterPath: "machineName", mapper: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]{0,11}$"), - MaxLength: 12, - MinLength: 1, + Pattern: new RegExp("^[a-zA-Z0-9][-_a-zA-Z0-9]{0,39}$"), }, - serializedName: "loadBalancerName", + serializedName: "machineName", required: true, type: { name: "String", }, }, }; - -export const parameters12: OperationParameter = { - parameterPath: "parameters", - mapper: LoadBalancerMapper, -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts index 35f57e49db48..06dde28e2319 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts @@ -6,21 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper.js"; -import type { AgentPools } from "../operationsInterfaces/index.js"; +import { AgentPools } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - SimplePollerLike, - OperationState} from "@azure/core-lro"; -import { - createHttpPoller, -} from "@azure/core-lro"; +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; -import type { +import { AgentPool, AgentPoolsListNextOptionalParams, AgentPoolsListOptionalParams, @@ -80,12 +75,7 @@ export class AgentPoolsImpl implements AgentPools { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - resourceName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, resourceName, options, settings); }, }; } @@ -100,20 +90,15 @@ export class AgentPoolsImpl implements AgentPools { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._list(resourceGroupName, resourceName, options); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - resourceName, - continuationToken, - options, - ); + result = await this._listNext(resourceGroupName, resourceName, continuationToken, options); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -124,11 +109,7 @@ export class AgentPoolsImpl implements AgentPools { resourceName: string, options?: AgentPoolsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - resourceName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) { yield* page; } } @@ -136,7 +117,7 @@ export class AgentPoolsImpl implements AgentPools { /** * 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. + * completes before cancellation can take place, a 409 error code is returned. * @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. @@ -163,8 +144,7 @@ export class AgentPoolsImpl implements AgentPools { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -211,7 +191,7 @@ export class AgentPoolsImpl implements AgentPools { /** * 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. + * completes before cancellation can take place, a 409 error code is returned. * @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. @@ -298,8 +278,7 @@ export class AgentPoolsImpl implements AgentPools { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -385,12 +364,7 @@ export class AgentPoolsImpl implements AgentPools { resourceName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AgentPoolsDeleteResponse - > - > { + ): Promise, AgentPoolsDeleteResponse>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, @@ -401,8 +375,7 @@ export class AgentPoolsImpl implements AgentPools { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -458,12 +431,7 @@ export class AgentPoolsImpl implements AgentPools { agentPoolName: string, options?: AgentPoolsDeleteOptionalParams, ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - resourceName, - agentPoolName, - options, - ); + const poller = await this.beginDelete(resourceGroupName, resourceName, agentPoolName, options); return poller.pollUntilDone(); } @@ -516,8 +484,7 @@ export class AgentPoolsImpl implements AgentPools { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -635,8 +602,7 @@ export class AgentPoolsImpl implements AgentPools { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -817,7 +783,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -855,10 +821,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.ignorePodDisruptionBudget, - ], + queryParameters: [Parameters.apiVersion, Parameters.ignorePodDisruptionBudget], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerservice/arm-containerservice/src/operations/containerService.ts b/sdk/containerservice/arm-containerservice/src/operations/containerService.ts deleted file mode 100644 index 73510aeb4ed7..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/containerService.ts +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import type { ContainerService } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - NodeImageVersion, - ContainerServiceListNodeImageVersionsNextOptionalParams, - ContainerServiceListNodeImageVersionsOptionalParams, - ContainerServiceListNodeImageVersionsResponse, - ContainerServiceListNodeImageVersionsNextResponse, -} from "../models/index.js"; - -/// -/** Class containing ContainerService operations. */ -export class ContainerServiceImpl implements ContainerService { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class ContainerService class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible - * in this list. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listNodeImageVersions( - location: string, - options?: ContainerServiceListNodeImageVersionsOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listNodeImageVersionsPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listNodeImageVersionsPagingPage( - location, - options, - settings, - ); - }, - }; - } - - private async *listNodeImageVersionsPagingPage( - location: string, - options?: ContainerServiceListNodeImageVersionsOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ContainerServiceListNodeImageVersionsResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listNodeImageVersions(location, options); - const page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNodeImageVersionsNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - const page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listNodeImageVersionsPagingAll( - location: string, - options?: ContainerServiceListNodeImageVersionsOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listNodeImageVersionsPagingPage( - location, - options, - )) { - yield* page; - } - } - - /** - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible - * in this list. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listNodeImageVersions( - location: string, - options?: ContainerServiceListNodeImageVersionsOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listNodeImageVersionsOperationSpec, - ); - } - - /** - * ListNodeImageVersionsNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListNodeImageVersions method. - * @param options The options parameters. - */ - private _listNodeImageVersionsNext( - location: string, - nextLink: string, - options?: ContainerServiceListNodeImageVersionsNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listNodeImageVersionsNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listNodeImageVersionsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/nodeImageVersions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NodeImageVersionsListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listNodeImageVersionsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NodeImageVersionsListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/index.ts b/sdk/containerservice/arm-containerservice/src/operations/index.ts index f078534a5afc..f11b5235190f 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/index.ts @@ -8,17 +8,12 @@ export * from "./operations.js"; export * from "./managedClusters.js"; -export * from "./containerService.js"; export * from "./maintenanceConfigurations.js"; -export * from "./namespaces.js"; export * from "./agentPools.js"; -export * from "./machines.js"; export * from "./privateEndpointConnections.js"; export * from "./privateLinkResources.js"; export * from "./resolvePrivateLinkServiceId.js"; -export * from "./operationStatusResultOperations.js"; export * from "./snapshots.js"; -export * from "./managedClusterSnapshots.js"; -export * from "./trustedAccessRoles.js"; export * from "./trustedAccessRoleBindings.js"; -export * from "./loadBalancers.js"; +export * from "./trustedAccessRoles.js"; +export * from "./machines.js"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/loadBalancers.ts b/sdk/containerservice/arm-containerservice/src/operations/loadBalancers.ts deleted file mode 100644 index 385367763759..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/loadBalancers.ts +++ /dev/null @@ -1,434 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import type { LoadBalancers } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - SimplePollerLike, - OperationState} from "@azure/core-lro"; -import { - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl.js"; -import type { - LoadBalancer, - LoadBalancersListByManagedClusterNextOptionalParams, - LoadBalancersListByManagedClusterOptionalParams, - LoadBalancersListByManagedClusterResponse, - LoadBalancersGetOptionalParams, - LoadBalancersGetResponse, - LoadBalancersCreateOrUpdateOptionalParams, - LoadBalancersCreateOrUpdateResponse, - LoadBalancersDeleteOptionalParams, - LoadBalancersDeleteResponse, - LoadBalancersListByManagedClusterNextResponse, -} from "../models/index.js"; - -/// -/** Class containing LoadBalancers operations. */ -export class LoadBalancersImpl implements LoadBalancers { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class LoadBalancers class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * Gets a list of load balancers in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - public listByManagedCluster( - resourceGroupName: string, - resourceName: string, - options?: LoadBalancersListByManagedClusterOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByManagedClusterPagingAll( - resourceGroupName, - resourceName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByManagedClusterPagingPage( - resourceGroupName, - resourceName, - options, - settings, - ); - }, - }; - } - - private async *listByManagedClusterPagingPage( - resourceGroupName: string, - resourceName: string, - options?: LoadBalancersListByManagedClusterOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: LoadBalancersListByManagedClusterResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByManagedCluster( - resourceGroupName, - resourceName, - options, - ); - const page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByManagedClusterNext( - resourceGroupName, - resourceName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - const page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByManagedClusterPagingAll( - resourceGroupName: string, - resourceName: string, - options?: LoadBalancersListByManagedClusterOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByManagedClusterPagingPage( - resourceGroupName, - resourceName, - options, - )) { - yield* page; - } - } - - /** - * Gets a list of load balancers in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - private _listByManagedCluster( - resourceGroupName: string, - resourceName: string, - options?: LoadBalancersListByManagedClusterOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - listByManagedClusterOperationSpec, - ); - } - - /** - * Gets the specified load balancer. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - loadBalancerName: string, - options?: LoadBalancersGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, loadBalancerName, options }, - getOperationSpec, - ); - } - - /** - * Creates or updates a load balancer in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - loadBalancerName: string, - parameters: LoadBalancer, - options?: LoadBalancersCreateOrUpdateOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - loadBalancerName, - parameters, - options, - }, - createOrUpdateOperationSpec, - ); - } - - /** - * Deletes a load balancer in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - resourceName: string, - loadBalancerName: string, - options?: LoadBalancersDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - LoadBalancersDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - 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, loadBalancerName, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - LoadBalancersDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Deletes a load balancer in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - resourceName: string, - loadBalancerName: string, - options?: LoadBalancersDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - resourceName, - loadBalancerName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListByManagedClusterNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param nextLink The nextLink from the previous successful call to the ListByManagedCluster method. - * @param options The options parameters. - */ - private _listByManagedClusterNext( - resourceGroupName: string, - resourceName: string, - nextLink: string, - options?: LoadBalancersListByManagedClusterNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, nextLink, options }, - listByManagedClusterNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByManagedClusterOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LoadBalancerListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LoadBalancer, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.loadBalancerName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.LoadBalancer, - }, - 201: { - bodyMapper: Mappers.LoadBalancer, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.parameters12, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.loadBalancerName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.LoadBalancersDeleteHeaders, - }, - 201: { - headersMapper: Mappers.LoadBalancersDeleteHeaders, - }, - 202: { - headersMapper: Mappers.LoadBalancersDeleteHeaders, - }, - 204: { - headersMapper: Mappers.LoadBalancersDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.loadBalancerName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByManagedClusterNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LoadBalancerListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/machines.ts b/sdk/containerservice/arm-containerservice/src/operations/machines.ts index 4d1eae0a07b1..5e7111f4aa60 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/machines.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/machines.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper.js"; -import type { Machines } from "../operationsInterfaces/index.js"; +import { Machines } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { Machine, MachinesListNextOptionalParams, MachinesListOptionalParams, @@ -49,12 +49,7 @@ export class MachinesImpl implements Machines { agentPoolName: string, options?: MachinesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - resourceName, - agentPoolName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, resourceName, agentPoolName, options); return { next() { return iter.next(); @@ -87,13 +82,8 @@ export class MachinesImpl implements Machines { let result: MachinesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - resourceName, - agentPoolName, - options, - ); - const page = result.value || []; + result = await this._list(resourceGroupName, resourceName, agentPoolName, options); + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; @@ -107,7 +97,7 @@ export class MachinesImpl implements Machines { options, ); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } diff --git a/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts b/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts index bf689128d71e..cedcbb24145e 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper.js"; -import type { MaintenanceConfigurations } from "../operationsInterfaces/index.js"; +import { MaintenanceConfigurations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { MaintenanceConfiguration, MaintenanceConfigurationsListByManagedClusterNextOptionalParams, MaintenanceConfigurationsListByManagedClusterOptionalParams, @@ -28,9 +28,7 @@ import type { /// /** Class containing MaintenanceConfigurations operations. */ -export class MaintenanceConfigurationsImpl - implements MaintenanceConfigurations -{ +export class MaintenanceConfigurationsImpl implements MaintenanceConfigurations { private readonly client: ContainerServiceClient; /** @@ -52,11 +50,7 @@ export class MaintenanceConfigurationsImpl resourceName: string, options?: MaintenanceConfigurationsListByManagedClusterOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listByManagedClusterPagingAll( - resourceGroupName, - resourceName, - options, - ); + const iter = this.listByManagedClusterPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -87,12 +81,8 @@ export class MaintenanceConfigurationsImpl let result: MaintenanceConfigurationsListByManagedClusterResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByManagedCluster( - resourceGroupName, - resourceName, - options, - ); - const page = result.value || []; + result = await this._listByManagedCluster(resourceGroupName, resourceName, options); + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; @@ -105,7 +95,7 @@ export class MaintenanceConfigurationsImpl options, ); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -280,7 +270,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts deleted file mode 100644 index b3046079b810..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts +++ /dev/null @@ -1,468 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import type { ManagedClusterSnapshots } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - ManagedClusterSnapshot, - ManagedClusterSnapshotsListNextOptionalParams, - ManagedClusterSnapshotsListOptionalParams, - ManagedClusterSnapshotsListResponse, - ManagedClusterSnapshotsListByResourceGroupNextOptionalParams, - ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ManagedClusterSnapshotsListByResourceGroupResponse, - ManagedClusterSnapshotsGetOptionalParams, - ManagedClusterSnapshotsGetResponse, - ManagedClusterSnapshotsCreateOrUpdateOptionalParams, - ManagedClusterSnapshotsCreateOrUpdateResponse, - TagsObject, - ManagedClusterSnapshotsUpdateTagsOptionalParams, - ManagedClusterSnapshotsUpdateTagsResponse, - ManagedClusterSnapshotsDeleteOptionalParams, - ManagedClusterSnapshotsListNextResponse, - ManagedClusterSnapshotsListByResourceGroupNextResponse, -} from "../models/index.js"; - -/// -/** Class containing ManagedClusterSnapshots operations. */ -export class ManagedClusterSnapshotsImpl implements ManagedClusterSnapshots { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class ManagedClusterSnapshots class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * @param options The options parameters. - */ - public list( - options?: ManagedClusterSnapshotsListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(options, settings); - }, - }; - } - - private async *listPagingPage( - options?: ManagedClusterSnapshotsListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ManagedClusterSnapshotsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - const page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - const page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: ManagedClusterSnapshotsListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); - }, - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ManagedClusterSnapshotsListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - const page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - const page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { - yield* page; - } - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * @param options The options parameters. - */ - private _list( - options?: ManagedClusterSnapshotsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec, - ); - } - - /** - * Gets a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - options?: ManagedClusterSnapshotsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - getOperationSpec, - ); - } - - /** - * Creates or updates a managed cluster snapshot. - * @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 managed cluster snapshot to create or update. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - parameters: ManagedClusterSnapshot, - options?: ManagedClusterSnapshotsCreateOrUpdateOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, parameters, options }, - createOrUpdateOperationSpec, - ); - } - - /** - * Updates tags on a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. - * @param options The options parameters. - */ - updateTags( - resourceGroupName: string, - resourceName: string, - parameters: TagsObject, - options?: ManagedClusterSnapshotsUpdateTagsOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, parameters, options }, - updateTagsOperationSpec, - ); - } - - /** - * Deletes a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - options?: ManagedClusterSnapshotsDeleteOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - deleteOperationSpec, - ); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: ManagedClusterSnapshotsListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: ManagedClusterSnapshotsListByResourceGroupNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshotListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshotListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshot, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshot, - }, - 201: { - bodyMapper: Mappers.ManagedClusterSnapshot, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.parameters11, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateTagsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshot, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshotListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshotListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index 1c71cac388fc..d6991694ffa1 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -6,21 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper.js"; -import type { ManagedClusters } from "../operationsInterfaces/index.js"; +import { ManagedClusters } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - SimplePollerLike, - OperationState} from "@azure/core-lro"; -import { - createHttpPoller, -} from "@azure/core-lro"; +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; -import type { +import { ManagedCluster, ManagedClustersListNextOptionalParams, ManagedClustersListOptionalParams, @@ -32,14 +27,6 @@ import type { ManagedClustersListOutboundNetworkDependenciesEndpointsNextOptionalParams, ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, ManagedClustersListOutboundNetworkDependenciesEndpointsResponse, - GuardrailsAvailableVersion, - ManagedClustersListGuardrailsVersionsNextOptionalParams, - ManagedClustersListGuardrailsVersionsOptionalParams, - ManagedClustersListGuardrailsVersionsResponse, - SafeguardsAvailableVersion, - ManagedClustersListSafeguardsVersionsNextOptionalParams, - ManagedClustersListSafeguardsVersionsOptionalParams, - ManagedClustersListSafeguardsVersionsResponse, MeshRevisionProfile, ManagedClustersListMeshRevisionProfilesNextOptionalParams, ManagedClustersListMeshRevisionProfilesOptionalParams, @@ -73,10 +60,10 @@ import type { ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, - ManagedClustersAbortLatestOperationOptionalParams, - ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, + ManagedClustersAbortLatestOperationOptionalParams, + ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, @@ -88,22 +75,13 @@ import type { ManagedClustersRunCommandResponse, ManagedClustersGetCommandResultOptionalParams, ManagedClustersGetCommandResultResponse, - ManagedClustersGetGuardrailsVersionsOptionalParams, - ManagedClustersGetGuardrailsVersionsResponse, - ManagedClustersGetSafeguardsVersionsOptionalParams, - ManagedClustersGetSafeguardsVersionsResponse, ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, ManagedClustersGetMeshUpgradeProfileResponse, - RebalanceLoadBalancersRequestBody, - ManagedClustersRebalanceLoadBalancersOptionalParams, - ManagedClustersRebalanceLoadBalancersResponse, ManagedClustersListNextResponse, ManagedClustersListByResourceGroupNextResponse, ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse, - ManagedClustersListGuardrailsVersionsNextResponse, - ManagedClustersListSafeguardsVersionsNextResponse, ManagedClustersListMeshRevisionProfilesNextResponse, ManagedClustersListMeshUpgradeProfilesNextResponse, } from "../models/index.js"; @@ -153,7 +131,7 @@ export class ManagedClustersImpl implements ManagedClusters { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._list(options); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; @@ -161,7 +139,7 @@ export class ManagedClustersImpl implements ManagedClusters { while (continuationToken) { result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -196,11 +174,7 @@ export class ManagedClustersImpl implements ManagedClusters { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -214,19 +188,15 @@ export class ManagedClustersImpl implements ManagedClusters { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByResourceGroup(resourceGroupName, options); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -236,10 +206,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, options?: ManagedClustersListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -296,7 +263,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceName, options, ); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; @@ -309,7 +276,7 @@ export class ManagedClustersImpl implements ManagedClusters { options, ); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -329,144 +296,6 @@ export 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. - */ - public listGuardrailsVersions( - location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listGuardrailsVersionsPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listGuardrailsVersionsPagingPage( - location, - options, - settings, - ); - }, - }; - } - - private async *listGuardrailsVersionsPagingPage( - location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ManagedClustersListGuardrailsVersionsResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listGuardrailsVersions(location, options); - const page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listGuardrailsVersionsNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - const page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listGuardrailsVersionsPagingAll( - location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listGuardrailsVersionsPagingPage( - location, - options, - )) { - yield* page; - } - } - - /** - * 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. - */ - public listSafeguardsVersions( - location: string, - options?: ManagedClustersListSafeguardsVersionsOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listSafeguardsVersionsPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listSafeguardsVersionsPagingPage( - location, - options, - settings, - ); - }, - }; - } - - private async *listSafeguardsVersionsPagingPage( - location: string, - options?: ManagedClustersListSafeguardsVersionsOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ManagedClustersListSafeguardsVersionsResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listSafeguardsVersions(location, options); - const page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listSafeguardsVersionsNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - const page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listSafeguardsVersionsPagingAll( - location: string, - options?: ManagedClustersListSafeguardsVersionsOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listSafeguardsVersionsPagingPage( - location, - options, - )) { - yield* page; - } - } - /** * Contains extra metadata on each revision, including supported revisions, cluster compatibility and * available upgrades @@ -489,11 +318,7 @@ export class ManagedClustersImpl implements ManagedClusters { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listMeshRevisionProfilesPagingPage( - location, - options, - settings, - ); + return this.listMeshRevisionProfilesPagingPage(location, options, settings); }, }; } @@ -507,19 +332,15 @@ export class ManagedClustersImpl implements ManagedClusters { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listMeshRevisionProfiles(location, options); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listMeshRevisionProfilesNext( - location, - continuationToken, - options, - ); + result = await this._listMeshRevisionProfilesNext(location, continuationToken, options); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -529,10 +350,7 @@ export class ManagedClustersImpl implements ManagedClusters { location: string, options?: ManagedClustersListMeshRevisionProfilesOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listMeshRevisionProfilesPagingPage( - location, - options, - )) { + for await (const page of this.listMeshRevisionProfilesPagingPage(location, options)) { yield* page; } } @@ -548,11 +366,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceName: string, options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listMeshUpgradeProfilesPagingAll( - resourceGroupName, - resourceName, - options, - ); + const iter = this.listMeshUpgradeProfilesPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -583,12 +397,8 @@ export class ManagedClustersImpl implements ManagedClusters { let result: ManagedClustersListMeshUpgradeProfilesResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listMeshUpgradeProfiles( - resourceGroupName, - resourceName, - options, - ); - const page = result.value || []; + result = await this._listMeshUpgradeProfiles(resourceGroupName, resourceName, options); + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; @@ -601,7 +411,7 @@ export class ManagedClustersImpl implements ManagedClusters { options, ); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -641,9 +451,7 @@ export class ManagedClustersImpl implements ManagedClusters { * Gets a list of managed clusters in the specified subscription. * @param options The options parameters. */ - private _list( - options?: ManagedClustersListOptionalParams, - ): Promise { + private _list(options?: ManagedClustersListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -798,8 +606,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -892,8 +699,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -949,12 +755,7 @@ export class ManagedClustersImpl implements ManagedClusters { parameters: TagsObject, options?: ManagedClustersUpdateTagsOptionalParams, ): Promise { - const poller = await this.beginUpdateTags( - resourceGroupName, - resourceName, - parameters, - options, - ); + const poller = await this.beginUpdateTags(resourceGroupName, resourceName, parameters, options); return poller.pollUntilDone(); } @@ -969,10 +770,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceName: string, options?: ManagedClustersDeleteOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - ManagedClustersDeleteResponse - > + SimplePollerLike, ManagedClustersDeleteResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -984,8 +782,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1039,11 +836,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceName: string, options?: ManagedClustersDeleteOptionalParams, ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - resourceName, - options, - ); + const poller = await this.beginDelete(resourceGroupName, resourceName, options); return poller.pollUntilDone(); } @@ -1070,8 +863,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1158,8 +950,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1224,35 +1015,33 @@ export class ManagedClustersImpl implements ManagedClusters { } /** - * 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. + * 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. * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - async beginAbortLatestOperation( + async beginRotateClusterCertificates( resourceGroupName: string, resourceName: string, - options?: ManagedClustersAbortLatestOperationOptionalParams, + options?: ManagedClustersRotateClusterCertificatesOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ManagedClustersAbortLatestOperationResponse + OperationState, + ManagedClustersRotateClusterCertificatesResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1282,11 +1071,11 @@ export class ManagedClustersImpl implements ManagedClusters { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: abortLatestOperationOperationSpec, + spec: rotateClusterCertificatesOperationSpec, }); const poller = await createHttpPoller< - ManagedClustersAbortLatestOperationResponse, - OperationState + ManagedClustersRotateClusterCertificatesResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -1297,19 +1086,18 @@ export class ManagedClustersImpl implements ManagedClusters { } /** - * 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. + * 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. * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - async beginAbortLatestOperationAndWait( + async beginRotateClusterCertificatesAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersAbortLatestOperationOptionalParams, - ): Promise { - const poller = await this.beginAbortLatestOperation( + options?: ManagedClustersRotateClusterCertificatesOptionalParams, + ): Promise { + const poller = await this.beginRotateClusterCertificates( resourceGroupName, resourceName, options, @@ -1318,34 +1106,34 @@ export class ManagedClustersImpl implements ManagedClusters { } /** - * 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, a 409 error code is returned. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - async beginRotateClusterCertificates( + async beginAbortLatestOperation( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateClusterCertificatesOptionalParams, + options?: ManagedClustersAbortLatestOperationOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ManagedClustersRotateClusterCertificatesResponse + OperationState, + ManagedClustersAbortLatestOperationResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1375,11 +1163,11 @@ export class ManagedClustersImpl implements ManagedClusters { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: rotateClusterCertificatesOperationSpec, + spec: abortLatestOperationOperationSpec, }); const poller = await createHttpPoller< - ManagedClustersRotateClusterCertificatesResponse, - OperationState + ManagedClustersAbortLatestOperationResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -1390,22 +1178,19 @@ export class ManagedClustersImpl implements ManagedClusters { } /** - * 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, a 409 error code is returned. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - async beginRotateClusterCertificatesAndWait( + async beginAbortLatestOperationAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateClusterCertificatesOptionalParams, - ): Promise { - const poller = await this.beginRotateClusterCertificates( - resourceGroupName, - resourceName, - options, - ); + options?: ManagedClustersAbortLatestOperationOptionalParams, + ): Promise { + const poller = await this.beginAbortLatestOperation(resourceGroupName, resourceName, options); return poller.pollUntilDone(); } @@ -1435,8 +1220,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1514,10 +1298,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceName: string, options?: ManagedClustersStopOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - ManagedClustersStopResponse - > + SimplePollerLike, ManagedClustersStopResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -1529,8 +1310,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1589,11 +1369,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceName: string, options?: ManagedClustersStopOptionalParams, ): Promise { - const poller = await this.beginStop( - resourceGroupName, - resourceName, - options, - ); + const poller = await this.beginStop(resourceGroupName, resourceName, options); return poller.pollUntilDone(); } @@ -1609,10 +1385,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceName: string, options?: ManagedClustersStartOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - ManagedClustersStartResponse - > + SimplePollerLike, ManagedClustersStartResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -1624,8 +1397,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1681,11 +1453,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceName: string, options?: ManagedClustersStartOptionalParams, ): Promise { - const poller = await this.beginStart( - resourceGroupName, - resourceName, - options, - ); + const poller = await this.beginStart(resourceGroupName, resourceName, options); return poller.pollUntilDone(); } @@ -1719,8 +1487,7 @@ export class ManagedClustersImpl implements ManagedClusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1826,125 +1593,61 @@ export class ManagedClustersImpl implements ManagedClusters { } /** - * Contains Guardrails version along with its support info and whether it is a default version. + * Contains extra metadata on each revision, including supported revisions, cluster compatibility and + * available upgrades * @param location The name of the Azure region. - * @param version Safeguards version * @param options The options parameters. */ - getGuardrailsVersions( + private _listMeshRevisionProfiles( location: string, - version: string, - options?: ManagedClustersGetGuardrailsVersionsOptionalParams, - ): Promise { + options?: ManagedClustersListMeshRevisionProfilesOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { location, version, options }, - getGuardrailsVersionsOperationSpec, + { location, options }, + listMeshRevisionProfilesOperationSpec, ); } /** - * Contains list of Guardrails version along with its support info and whether it is a default version. + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and + * available upgrades * @param location The name of the Azure region. + * @param mode The mode of the mesh. * @param options The options parameters. */ - private _listGuardrailsVersions( + getMeshRevisionProfile( location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams, - ): Promise { + mode: string, + options?: ManagedClustersGetMeshRevisionProfileOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { location, options }, - listGuardrailsVersionsOperationSpec, + { location, mode, options }, + getMeshRevisionProfileOperationSpec, ); } /** - * 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 + * Lists available upgrades for all service meshes in a specific cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - getSafeguardsVersions( - location: string, - version: string, - options?: ManagedClustersGetSafeguardsVersionsOptionalParams, - ): Promise { + private _listMeshUpgradeProfiles( + resourceGroupName: string, + resourceName: string, + options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { location, version, options }, - getSafeguardsVersionsOperationSpec, + { resourceGroupName, resourceName, options }, + listMeshUpgradeProfilesOperationSpec, ); } /** - * 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( - location: string, - options?: ManagedClustersListSafeguardsVersionsOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listSafeguardsVersionsOperationSpec, - ); - } - - /** - * Contains extra metadata on each revision, including supported revisions, cluster compatibility and - * available upgrades - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listMeshRevisionProfiles( - location: string, - options?: ManagedClustersListMeshRevisionProfilesOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listMeshRevisionProfilesOperationSpec, - ); - } - - /** - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and - * available upgrades - * @param location The name of the Azure region. - * @param mode The mode of the mesh. - * @param options The options parameters. - */ - getMeshRevisionProfile( - location: string, - mode: string, - options?: ManagedClustersGetMeshRevisionProfileOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, mode, options }, - getMeshRevisionProfileOperationSpec, - ); - } - - /** - * Lists available upgrades for all service meshes in a specific cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - private _listMeshUpgradeProfiles( - resourceGroupName: string, - resourceName: string, - options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - listMeshUpgradeProfilesOperationSpec, - ); - } - - /** - * Gets available upgrades for a service mesh in a cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param mode The mode of the mesh. + * Gets available upgrades for a service mesh in a cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param mode The mode of the mesh. * @param options The options parameters. */ getMeshUpgradeProfile( @@ -1959,102 +1662,6 @@ export class ManagedClustersImpl implements ManagedClusters { ); } - /** - * 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. - */ - async beginRebalanceLoadBalancers( - resourceGroupName: string, - resourceName: string, - parameters: RebalanceLoadBalancersRequestBody, - options?: ManagedClustersRebalanceLoadBalancersOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ManagedClustersRebalanceLoadBalancersResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - 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, parameters, options }, - spec: rebalanceLoadBalancersOperationSpec, - }); - const poller = await createHttpPoller< - ManagedClustersRebalanceLoadBalancersResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * 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. - */ - async beginRebalanceLoadBalancersAndWait( - resourceGroupName: string, - resourceName: string, - parameters: RebalanceLoadBalancersRequestBody, - options?: ManagedClustersRebalanceLoadBalancersOptionalParams, - ): Promise { - const poller = await this.beginRebalanceLoadBalancers( - resourceGroupName, - resourceName, - parameters, - options, - ); - return poller.pollUntilDone(); - } - /** * ListNext * @param nextLink The nextLink from the previous successful call to the List method. @@ -2064,10 +1671,7 @@ export class ManagedClustersImpl implements ManagedClusters { nextLink: string, options?: ManagedClustersListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -2107,40 +1711,6 @@ export class ManagedClustersImpl implements ManagedClusters { ); } - /** - * 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( - location: string, - nextLink: string, - options?: ManagedClustersListGuardrailsVersionsNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listGuardrailsVersionsNextOperationSpec, - ); - } - - /** - * 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( - location: string, - nextLink: string, - options?: ManagedClustersListSafeguardsVersionsNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listSafeguardsVersionsNextOperationSpec, - ); - } - /** * ListMeshRevisionProfilesNext * @param location The name of the Azure region. @@ -2194,11 +1764,7 @@ const listKubernetesVersionsOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location], headerParameters: [Parameters.accept], serializer, }; @@ -2230,11 +1796,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -2313,11 +1875,7 @@ const listClusterUserCredentialsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.serverFqdn, - Parameters.format, - ], + queryParameters: [Parameters.apiVersion, Parameters.serverFqdn, Parameters.format], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -2327,28 +1885,27 @@ const listClusterUserCredentialsOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const listClusterMonitoringUserCredentialsOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CredentialResults, - }, - default: { - bodyMapper: Mappers.CloudError, - }, +const listClusterMonitoringUserCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CredentialResults, + }, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion, Parameters.serverFqdn], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + queryParameters: [Parameters.apiVersion, Parameters.serverFqdn], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", httpMethod: "GET", @@ -2435,11 +1992,7 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, ], - headerParameters: [ - Parameters.accept, - Parameters.contentType, - Parameters.ifMatch, - ], + headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch], mediaType: "json", serializer, }; @@ -2463,10 +2016,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.ignorePodDisruptionBudget, - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -2524,21 +2074,21 @@ const resetAADProfileOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const abortLatestOperationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort", +const rotateClusterCertificatesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, + headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, }, 201: { - headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, + headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, }, 202: { - headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, + headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, }, 204: { - headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, + headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, }, default: { bodyMapper: Mappers.CloudError, @@ -2554,21 +2104,21 @@ const abortLatestOperationOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const rotateClusterCertificatesOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", +const abortLatestOperationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, + headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, }, 201: { - headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, + headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, }, 202: { - headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, + headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, }, 204: { - headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, + headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, }, default: { bodyMapper: Mappers.CloudError, @@ -2589,20 +2139,16 @@ const rotateServiceAccountSigningKeysOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: - Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, + headersMapper: Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, }, 201: { - headersMapper: - Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, + headersMapper: Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, }, 202: { - headersMapper: - Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, + headersMapper: Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, }, 204: { - headersMapper: - Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, + headersMapper: Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, }, default: { bodyMapper: Mappers.CloudError, @@ -2735,96 +2281,12 @@ const getCommandResultOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const getGuardrailsVersionsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions/{version}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GuardrailsAvailableVersion, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.version, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listGuardrailsVersionsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GuardrailsAvailableVersionsList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getSafeguardsVersionsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/safeguardsVersions/{version}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SafeguardsAvailableVersion, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.version, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listSafeguardsVersionsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/safeguardsVersions", +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SafeguardsAvailableVersionsList, + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, }, default: { bodyMapper: Mappers.CloudError, @@ -2834,7 +2296,8 @@ const listSafeguardsVersionsOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], serializer, @@ -2851,11 +2314,7 @@ const listMeshRevisionProfilesOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location], headerParameters: [Parameters.accept], serializer, }; @@ -2923,38 +2382,6 @@ const getMeshUpgradeProfileOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const rebalanceLoadBalancersOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rebalanceLoadBalancers", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.ManagedClustersRebalanceLoadBalancersHeaders, - }, - 201: { - headersMapper: Mappers.ManagedClustersRebalanceLoadBalancersHeaders, - }, - 202: { - headersMapper: Mappers.ManagedClustersRebalanceLoadBalancersHeaders, - }, - 204: { - headersMapper: Mappers.ManagedClustersRebalanceLoadBalancersHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -2966,11 +2393,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; @@ -2994,54 +2417,12 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const listGuardrailsVersionsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GuardrailsAvailableVersionsList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listSafeguardsVersionsNextOperationSpec: coreClient.OperationSpec = { +const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SafeguardsAvailableVersionsList, + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, }, default: { bodyMapper: Mappers.CloudError, @@ -3050,7 +2431,8 @@ const listSafeguardsVersionsNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.nextLink, ], headerParameters: [Parameters.accept], diff --git a/sdk/containerservice/arm-containerservice/src/operations/namespaces.ts b/sdk/containerservice/arm-containerservice/src/operations/namespaces.ts deleted file mode 100644 index 7c76d93d051c..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/namespaces.ts +++ /dev/null @@ -1,610 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import type { Namespaces } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - SimplePollerLike, - OperationState} from "@azure/core-lro"; -import { - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl.js"; -import type { - Namespace, - NamespacesListByManagedClusterNextOptionalParams, - NamespacesListByManagedClusterOptionalParams, - NamespacesListByManagedClusterResponse, - NamespacesGetOptionalParams, - NamespacesGetResponse, - NamespacesCreateOrUpdateOptionalParams, - NamespacesCreateOrUpdateResponse, - NamespacesDeleteOptionalParams, - NamespacesDeleteResponse, - TagsObject, - NamespacesUpdateOptionalParams, - NamespacesUpdateResponse, - NamespacesListCredentialOptionalParams, - NamespacesListCredentialResponse, - NamespacesListByManagedClusterNextResponse, -} from "../models/index.js"; - -/// -/** Class containing Namespaces operations. */ -export class NamespacesImpl implements Namespaces { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class Namespaces class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * Gets a list of managed namespaces in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - public listByManagedCluster( - resourceGroupName: string, - resourceName: string, - options?: NamespacesListByManagedClusterOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByManagedClusterPagingAll( - resourceGroupName, - resourceName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByManagedClusterPagingPage( - resourceGroupName, - resourceName, - options, - settings, - ); - }, - }; - } - - private async *listByManagedClusterPagingPage( - resourceGroupName: string, - resourceName: string, - options?: NamespacesListByManagedClusterOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: NamespacesListByManagedClusterResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByManagedCluster( - resourceGroupName, - resourceName, - options, - ); - const page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByManagedClusterNext( - resourceGroupName, - resourceName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - const page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByManagedClusterPagingAll( - resourceGroupName: string, - resourceName: string, - options?: NamespacesListByManagedClusterOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByManagedClusterPagingPage( - resourceGroupName, - resourceName, - options, - )) { - yield* page; - } - } - - /** - * Gets a list of managed namespaces in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - private _listByManagedCluster( - resourceGroupName: string, - resourceName: string, - options?: NamespacesListByManagedClusterOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - listByManagedClusterOperationSpec, - ); - } - - /** - * Gets the specified namespace of a managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - options?: NamespacesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, namespaceName, options }, - getOperationSpec, - ); - } - - /** - * Creates or updates a namespace in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param parameters The namespace to create or update. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - parameters: Namespace, - options?: NamespacesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - NamespacesCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - 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, - namespaceName, - parameters, - options, - }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - NamespacesCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Creates or updates a namespace in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param parameters The namespace to create or update. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - parameters: Namespace, - options?: NamespacesCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - resourceName, - namespaceName, - parameters, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Deletes a namespace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - options?: NamespacesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - NamespacesDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - 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, namespaceName, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - NamespacesDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Deletes a namespace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - options?: NamespacesDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - resourceName, - namespaceName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Updates tags on a namespace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param parameters Parameters supplied to the patch namespace operation, we only support patch tags - * for now. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - parameters: TagsObject, - options?: NamespacesUpdateOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, namespaceName, parameters, options }, - updateOperationSpec, - ); - } - - /** - * Lists the credentials of a namespace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param options The options parameters. - */ - listCredential( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - options?: NamespacesListCredentialOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, namespaceName, options }, - listCredentialOperationSpec, - ); - } - - /** - * ListByManagedClusterNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param nextLink The nextLink from the previous successful call to the ListByManagedCluster method. - * @param options The options parameters. - */ - private _listByManagedClusterNext( - resourceGroupName: string, - resourceName: string, - nextLink: string, - options?: NamespacesListByManagedClusterNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, nextLink, options }, - listByManagedClusterNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByManagedClusterOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/namespaces", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NamespaceListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/namespaces/{namespaceName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Namespace, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.namespaceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/namespaces/{namespaceName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Namespace, - }, - 201: { - bodyMapper: Mappers.Namespace, - }, - 202: { - bodyMapper: Mappers.Namespace, - }, - 204: { - bodyMapper: Mappers.Namespace, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.namespaceName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/namespaces/{namespaceName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.NamespacesDeleteHeaders, - }, - 201: { - headersMapper: Mappers.NamespacesDeleteHeaders, - }, - 202: { - headersMapper: Mappers.NamespacesDeleteHeaders, - }, - 204: { - headersMapper: Mappers.NamespacesDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.namespaceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/namespaces/{namespaceName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Namespace, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.namespaceName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const listCredentialOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/namespaces/{namespaceName}/listCredential", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CredentialResults, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.namespaceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByManagedClusterNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NamespaceListResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/operationStatusResultOperations.ts b/sdk/containerservice/arm-containerservice/src/operations/operationStatusResultOperations.ts deleted file mode 100644 index 4893ece2539d..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/operationStatusResultOperations.ts +++ /dev/null @@ -1,284 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import type { OperationStatusResultOperations } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - OperationStatusResult, - OperationStatusResultListNextOptionalParams, - OperationStatusResultListOptionalParams, - OperationStatusResultListResponse, - OperationStatusResultGetOptionalParams, - OperationStatusResultGetResponse, - OperationStatusResultGetByAgentPoolOptionalParams, - OperationStatusResultGetByAgentPoolResponse, - OperationStatusResultListNextResponse, -} from "../models/index.js"; - -/// -/** Class containing OperationStatusResultOperations operations. */ -export class OperationStatusResultOperationsImpl - implements OperationStatusResultOperations -{ - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class OperationStatusResultOperations class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * Gets a list of operations in the specified managedCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - resourceName: string, - options?: OperationStatusResultListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, resourceName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage( - resourceGroupName, - resourceName, - options, - settings, - ); - }, - }; - } - - private async *listPagingPage( - resourceGroupName: string, - resourceName: string, - options?: OperationStatusResultListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: OperationStatusResultListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, resourceName, options); - const page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - resourceName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - const page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - resourceName: string, - options?: OperationStatusResultListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - resourceName, - options, - )) { - yield* page; - } - } - - /** - * Gets a list of operations in the specified managedCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - resourceName: string, - options?: OperationStatusResultListOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - listOperationSpec, - ); - } - - /** - * Get the status of a specific operation in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param operationId The ID of an ongoing async operation. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - operationId: string, - options?: OperationStatusResultGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, operationId, options }, - getOperationSpec, - ); - } - - /** - * Get the status of a specific operation in the specified 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 operationId The ID of an ongoing async operation. - * @param options The options parameters. - */ - getByAgentPool( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - operationId: string, - options?: OperationStatusResultGetByAgentPoolOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, agentPoolName, operationId, options }, - getByAgentPoolOperationSpec, - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - resourceName: string, - nextLink: string, - options?: OperationStatusResultListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationStatusResultList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations/{operationId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationStatusResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.operationId, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getByAgentPoolOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/operations/{operationId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationStatusResult, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.agentPoolName, - Parameters.operationId, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationStatusResultList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/operations.ts b/sdk/containerservice/arm-containerservice/src/operations/operations.ts index 16b6fd8bacda..f106113b3bb8 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/operations.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/operations.ts @@ -6,13 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import type { Operations } from "../operationsInterfaces/index.js"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { OperationValue, OperationsListOptionalParams, OperationsListResponse, @@ -35,9 +35,7 @@ export class OperationsImpl implements Operations { * Gets a list of operations. * @param options The options parameters. */ - public list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -76,9 +74,7 @@ export class OperationsImpl implements Operations { * Gets a list of operations. * @param options The options parameters. */ - private _list( - options?: OperationsListOptionalParams, - ): Promise { + private _list(options?: OperationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } } diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts index d5a5d8318e7e..22fc6bcf74f8 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts @@ -6,19 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PrivateEndpointConnections } from "../operationsInterfaces/index.js"; +import { PrivateEndpointConnections } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - SimplePollerLike, - OperationState} from "@azure/core-lro"; -import { - createHttpPoller, -} from "@azure/core-lro"; +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; -import type { +import { PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsListResponse, PrivateEndpointConnectionsGetOptionalParams, @@ -30,9 +25,7 @@ import type { } from "../models/index.js"; /** Class containing PrivateEndpointConnections operations. */ -export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections -{ +export class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections { private readonly client: ContainerServiceClient; /** @@ -134,8 +127,7 @@ export class PrivateEndpointConnectionsImpl args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -262,7 +254,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts b/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts index d05ed5e064b9..3699d656804e 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PrivateLinkResources } from "../operationsInterfaces/index.js"; +import { PrivateLinkResources } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, } from "../models/index.js"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts b/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts index 5d8905df8fb8..3ad3417c82c8 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts @@ -6,21 +6,19 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { ResolvePrivateLinkServiceId } from "../operationsInterfaces/index.js"; +import { ResolvePrivateLinkServiceId } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { PrivateLinkResource, ResolvePrivateLinkServiceIdPostOptionalParams, ResolvePrivateLinkServiceIdPostResponse, } from "../models/index.js"; /** Class containing ResolvePrivateLinkServiceId operations. */ -export class ResolvePrivateLinkServiceIdImpl - implements ResolvePrivateLinkServiceId -{ +export class ResolvePrivateLinkServiceIdImpl implements ResolvePrivateLinkServiceId { private readonly client: ContainerServiceClient; /** @@ -64,7 +62,7 @@ const postOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts b/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts index 1e62efc030dc..193bd36690b7 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper.js"; -import type { Snapshots } from "../operationsInterfaces/index.js"; +import { Snapshots } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { Snapshot, SnapshotsListNextOptionalParams, SnapshotsListOptionalParams, @@ -50,9 +50,7 @@ export class SnapshotsImpl implements Snapshots { * Gets a list of snapshots in the specified subscription. * @param options The options parameters. */ - public list( - options?: SnapshotsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: SnapshotsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -78,7 +76,7 @@ export class SnapshotsImpl implements Snapshots { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._list(options); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; @@ -86,7 +84,7 @@ export class SnapshotsImpl implements Snapshots { while (continuationToken) { result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -121,11 +119,7 @@ export class SnapshotsImpl implements Snapshots { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -139,19 +133,15 @@ export class SnapshotsImpl implements Snapshots { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByResourceGroup(resourceGroupName, options); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -161,10 +151,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, options?: SnapshotsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -173,9 +160,7 @@ export class SnapshotsImpl implements Snapshots { * Gets a list of snapshots in the specified subscription. * @param options The options parameters. */ - private _list( - options?: SnapshotsListOptionalParams, - ): Promise { + private _list(options?: SnapshotsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -275,10 +260,7 @@ export class SnapshotsImpl implements Snapshots { nextLink: string, options?: SnapshotsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -329,11 +311,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -372,7 +350,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -438,11 +416,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts index 72f354c978fc..30b262c9d9c3 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts @@ -6,21 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper.js"; -import type { TrustedAccessRoleBindings } from "../operationsInterfaces/index.js"; +import { TrustedAccessRoleBindings } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { - SimplePollerLike, - OperationState} from "@azure/core-lro"; -import { - createHttpPoller, -} from "@azure/core-lro"; +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; -import type { +import { TrustedAccessRoleBinding, TrustedAccessRoleBindingsListNextOptionalParams, TrustedAccessRoleBindingsListOptionalParams, @@ -36,9 +31,7 @@ import type { /// /** Class containing TrustedAccessRoleBindings operations. */ -export class TrustedAccessRoleBindingsImpl - implements TrustedAccessRoleBindings -{ +export class TrustedAccessRoleBindingsImpl implements TrustedAccessRoleBindings { private readonly client: ContainerServiceClient; /** @@ -72,12 +65,7 @@ export class TrustedAccessRoleBindingsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - resourceName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, resourceName, options, settings); }, }; } @@ -92,20 +80,15 @@ export class TrustedAccessRoleBindingsImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._list(resourceGroupName, resourceName, options); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - resourceName, - continuationToken, - options, - ); + result = await this._listNext(resourceGroupName, resourceName, continuationToken, options); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -116,11 +99,7 @@ export class TrustedAccessRoleBindingsImpl resourceName: string, options?: TrustedAccessRoleBindingsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - resourceName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) { yield* page; } } @@ -196,8 +175,7 @@ export class TrustedAccessRoleBindingsImpl args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -299,8 +277,7 @@ export class TrustedAccessRoleBindingsImpl args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts index 16fcf7f6653f..614dcbf32b2d 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper.js"; -import type { TrustedAccessRoles } from "../operationsInterfaces/index.js"; +import { TrustedAccessRoles } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; -import type { ContainerServiceClient } from "../containerServiceClient.js"; -import type { +import { ContainerServiceClient } from "../containerServiceClient.js"; +import { TrustedAccessRole, TrustedAccessRolesListNextOptionalParams, TrustedAccessRolesListOptionalParams, @@ -69,7 +69,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._list(location, options); - const page = result.value || []; + let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; @@ -77,7 +77,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { while (continuationToken) { result = await this._listNext(location, continuationToken, options); continuationToken = result.nextLink; - const page = result.value || []; + let page = result.value || []; setContinuationToken(page, continuationToken); yield page; } @@ -101,10 +101,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { location: string, options?: TrustedAccessRolesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ location, options }, listOperationSpec); } /** @@ -118,10 +115,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { nextLink: string, options?: TrustedAccessRolesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -139,11 +133,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts index d9d5036957a1..88911614755a 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import type { +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { AgentPool, AgentPoolsListOptionalParams, AgentPoolsAbortLatestOperationOptionalParams, @@ -46,7 +46,7 @@ export interface AgentPools { /** * 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. + * completes before cancellation can take place, a 409 error code is returned. * @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. @@ -66,7 +66,7 @@ export interface AgentPools { /** * 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. + * completes before cancellation can take place, a 409 error code is returned. * @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. @@ -138,12 +138,7 @@ export interface AgentPools { resourceName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AgentPoolsDeleteResponse - > - >; + ): Promise, AgentPoolsDeleteResponse>>; /** * Deletes an agent pool in the specified managed cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/containerService.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/containerService.ts deleted file mode 100644 index 3090fc176711..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/containerService.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { - NodeImageVersion, - ContainerServiceListNodeImageVersionsOptionalParams, -} from "../models/index.js"; - -/// -/** Interface representing a ContainerService. */ -export interface ContainerService { - /** - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible - * in this list. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listNodeImageVersions( - location: string, - options?: ContainerServiceListNodeImageVersionsOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts index f078534a5afc..f11b5235190f 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts @@ -8,17 +8,12 @@ export * from "./operations.js"; export * from "./managedClusters.js"; -export * from "./containerService.js"; export * from "./maintenanceConfigurations.js"; -export * from "./namespaces.js"; export * from "./agentPools.js"; -export * from "./machines.js"; export * from "./privateEndpointConnections.js"; export * from "./privateLinkResources.js"; export * from "./resolvePrivateLinkServiceId.js"; -export * from "./operationStatusResultOperations.js"; export * from "./snapshots.js"; -export * from "./managedClusterSnapshots.js"; -export * from "./trustedAccessRoles.js"; export * from "./trustedAccessRoleBindings.js"; -export * from "./loadBalancers.js"; +export * from "./trustedAccessRoles.js"; +export * from "./machines.js"; diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/loadBalancers.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/loadBalancers.ts deleted file mode 100644 index ccc670ee2a23..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/loadBalancers.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import type { - LoadBalancer, - LoadBalancersListByManagedClusterOptionalParams, - LoadBalancersGetOptionalParams, - LoadBalancersGetResponse, - LoadBalancersCreateOrUpdateOptionalParams, - LoadBalancersCreateOrUpdateResponse, - LoadBalancersDeleteOptionalParams, - LoadBalancersDeleteResponse, -} from "../models/index.js"; - -/// -/** Interface representing a LoadBalancers. */ -export interface LoadBalancers { - /** - * Gets a list of load balancers in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - listByManagedCluster( - resourceGroupName: string, - resourceName: string, - options?: LoadBalancersListByManagedClusterOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Gets the specified load balancer. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - loadBalancerName: string, - options?: LoadBalancersGetOptionalParams, - ): Promise; - /** - * Creates or updates a load balancer in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - loadBalancerName: string, - parameters: LoadBalancer, - options?: LoadBalancersCreateOrUpdateOptionalParams, - ): Promise; - /** - * Deletes a load balancer in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - resourceName: string, - loadBalancerName: string, - options?: LoadBalancersDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - LoadBalancersDeleteResponse - > - >; - /** - * Deletes a load balancer in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - resourceName: string, - loadBalancerName: string, - options?: LoadBalancersDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts index 581d78c8d1b6..71648ff1d9c9 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts @@ -6,8 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Machine, MachinesListOptionalParams, MachinesGetOptionalParams, diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts index b6f07deb05ec..36394d108115 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts @@ -6,8 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { MaintenanceConfiguration, MaintenanceConfigurationsListByManagedClusterOptionalParams, MaintenanceConfigurationsGetOptionalParams, diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts deleted file mode 100644 index e74852860f45..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { - ManagedClusterSnapshot, - ManagedClusterSnapshotsListOptionalParams, - ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ManagedClusterSnapshotsGetOptionalParams, - ManagedClusterSnapshotsGetResponse, - ManagedClusterSnapshotsCreateOrUpdateOptionalParams, - ManagedClusterSnapshotsCreateOrUpdateResponse, - TagsObject, - ManagedClusterSnapshotsUpdateTagsOptionalParams, - ManagedClusterSnapshotsUpdateTagsResponse, - ManagedClusterSnapshotsDeleteOptionalParams, -} from "../models/index.js"; - -/// -/** Interface representing a ManagedClusterSnapshots. */ -export interface ManagedClusterSnapshots { - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * @param options The options parameters. - */ - list( - options?: ManagedClusterSnapshotsListOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Gets a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - options?: ManagedClusterSnapshotsGetOptionalParams, - ): Promise; - /** - * Creates or updates a managed cluster snapshot. - * @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 managed cluster snapshot to create or update. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - parameters: ManagedClusterSnapshot, - options?: ManagedClusterSnapshotsCreateOrUpdateOptionalParams, - ): Promise; - /** - * Updates tags on a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. - * @param options The options parameters. - */ - updateTags( - resourceGroupName: string, - resourceName: string, - parameters: TagsObject, - options?: ManagedClusterSnapshotsUpdateTagsOptionalParams, - ): Promise; - /** - * Deletes a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - options?: ManagedClusterSnapshotsDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts index 2f48d0d29a72..7a035739c8f7 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts @@ -6,18 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import type { +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { ManagedCluster, ManagedClustersListOptionalParams, ManagedClustersListByResourceGroupOptionalParams, OutboundEnvironmentEndpoint, ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, - GuardrailsAvailableVersion, - ManagedClustersListGuardrailsVersionsOptionalParams, - SafeguardsAvailableVersion, - ManagedClustersListSafeguardsVersionsOptionalParams, MeshRevisionProfile, ManagedClustersListMeshRevisionProfilesOptionalParams, MeshUpgradeProfile, @@ -47,10 +43,10 @@ import type { ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, - ManagedClustersAbortLatestOperationOptionalParams, - ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, + ManagedClustersAbortLatestOperationOptionalParams, + ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, @@ -62,17 +58,10 @@ import type { ManagedClustersRunCommandResponse, ManagedClustersGetCommandResultOptionalParams, ManagedClustersGetCommandResultResponse, - ManagedClustersGetGuardrailsVersionsOptionalParams, - ManagedClustersGetGuardrailsVersionsResponse, - ManagedClustersGetSafeguardsVersionsOptionalParams, - ManagedClustersGetSafeguardsVersionsResponse, ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, ManagedClustersGetMeshUpgradeProfileResponse, - RebalanceLoadBalancersRequestBody, - ManagedClustersRebalanceLoadBalancersOptionalParams, - ManagedClustersRebalanceLoadBalancersResponse, } from "../models/index.js"; /// @@ -82,9 +71,7 @@ export interface ManagedClusters { * Gets a list of managed clusters in the specified subscription. * @param options The options parameters. */ - list( - options?: ManagedClustersListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: ManagedClustersListOptionalParams): PagedAsyncIterableIterator; /** * Lists managed clusters in the specified subscription and resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -106,24 +93,6 @@ export interface ManagedClusters { resourceName: string, options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator; - /** - * 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; - /** - * 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; /** * Contains extra metadata on each revision, including supported revisions, cluster compatibility and * available upgrades @@ -300,10 +269,7 @@ export interface ManagedClusters { resourceName: string, options?: ManagedClustersDeleteOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - ManagedClustersDeleteResponse - > + SimplePollerLike, ManagedClustersDeleteResponse> >; /** * Deletes a managed cluster. @@ -371,65 +337,65 @@ export interface ManagedClusters { options?: ManagedClustersResetAADProfileOptionalParams, ): Promise; /** - * 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. + * 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. * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - beginAbortLatestOperation( + beginRotateClusterCertificates( resourceGroupName: string, resourceName: string, - options?: ManagedClustersAbortLatestOperationOptionalParams, + options?: ManagedClustersRotateClusterCertificatesOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ManagedClustersAbortLatestOperationResponse + OperationState, + 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, an error 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. * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - beginAbortLatestOperationAndWait( + beginRotateClusterCertificatesAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersAbortLatestOperationOptionalParams, - ): Promise; + options?: ManagedClustersRotateClusterCertificatesOptionalParams, + ): Promise; /** - * 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, a 409 error code is returned. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - beginRotateClusterCertificates( + beginAbortLatestOperation( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateClusterCertificatesOptionalParams, + options?: ManagedClustersAbortLatestOperationOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ManagedClustersRotateClusterCertificatesResponse + OperationState, + 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, a 409 error code is returned. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param options The options parameters. */ - beginRotateClusterCertificatesAndWait( + beginAbortLatestOperationAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateClusterCertificatesOptionalParams, - ): Promise; + options?: ManagedClustersAbortLatestOperationOptionalParams, + ): Promise; /** * Rotates the service account signing keys of a managed cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -472,10 +438,7 @@ export interface ManagedClusters { resourceName: string, options?: ManagedClustersStopOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - ManagedClustersStopResponse - > + SimplePollerLike, ManagedClustersStopResponse> >; /** * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster @@ -504,10 +467,7 @@ export interface ManagedClusters { resourceName: string, options?: ManagedClustersStartOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - ManagedClustersStartResponse - > + SimplePollerLike, ManagedClustersStartResponse> >; /** * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details @@ -569,28 +529,6 @@ export interface ManagedClusters { commandId: string, options?: ManagedClustersGetCommandResultOptionalParams, ): Promise; - /** - * 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; - /** - * 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; /** * Contains extra metadata on the revision, including supported revisions, cluster compatibility and * available upgrades @@ -616,37 +554,4 @@ export interface ManagedClusters { mode: string, options?: ManagedClustersGetMeshUpgradeProfileOptionalParams, ): Promise; - /** - * 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 - > - >; - /** - * 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; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/namespaces.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/namespaces.ts deleted file mode 100644 index 99ccb447bbde..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/namespaces.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import type { - Namespace, - NamespacesListByManagedClusterOptionalParams, - NamespacesGetOptionalParams, - NamespacesGetResponse, - NamespacesCreateOrUpdateOptionalParams, - NamespacesCreateOrUpdateResponse, - NamespacesDeleteOptionalParams, - NamespacesDeleteResponse, - TagsObject, - NamespacesUpdateOptionalParams, - NamespacesUpdateResponse, - NamespacesListCredentialOptionalParams, - NamespacesListCredentialResponse, -} from "../models/index.js"; - -/// -/** Interface representing a Namespaces. */ -export interface Namespaces { - /** - * Gets a list of managed namespaces in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - listByManagedCluster( - resourceGroupName: string, - resourceName: string, - options?: NamespacesListByManagedClusterOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Gets the specified namespace of a managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - options?: NamespacesGetOptionalParams, - ): Promise; - /** - * Creates or updates a namespace in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param parameters The namespace to create or update. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - parameters: Namespace, - options?: NamespacesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - NamespacesCreateOrUpdateResponse - > - >; - /** - * Creates or updates a namespace in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param parameters The namespace to create or update. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - parameters: Namespace, - options?: NamespacesCreateOrUpdateOptionalParams, - ): Promise; - /** - * Deletes a namespace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - options?: NamespacesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - NamespacesDeleteResponse - > - >; - /** - * Deletes a namespace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - options?: NamespacesDeleteOptionalParams, - ): Promise; - /** - * Updates tags on a namespace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param parameters Parameters supplied to the patch namespace operation, we only support patch tags - * for now. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - parameters: TagsObject, - options?: NamespacesUpdateOptionalParams, - ): Promise; - /** - * Lists the credentials of a namespace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param namespaceName The name of the namespace. - * @param options The options parameters. - */ - listCredential( - resourceGroupName: string, - resourceName: string, - namespaceName: string, - options?: NamespacesListCredentialOptionalParams, - ): Promise; -} diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operationStatusResultOperations.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operationStatusResultOperations.ts deleted file mode 100644 index c92a978995bb..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operationStatusResultOperations.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { - OperationStatusResult, - OperationStatusResultListOptionalParams, - OperationStatusResultGetOptionalParams, - OperationStatusResultGetResponse, - OperationStatusResultGetByAgentPoolOptionalParams, - OperationStatusResultGetByAgentPoolResponse, -} from "../models/index.js"; - -/// -/** Interface representing a OperationStatusResultOperations. */ -export interface OperationStatusResultOperations { - /** - * Gets a list of operations in the specified managedCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - resourceName: string, - options?: OperationStatusResultListOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get the status of a specific operation in the specified managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param operationId The ID of an ongoing async operation. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - operationId: string, - options?: OperationStatusResultGetOptionalParams, - ): Promise; - /** - * Get the status of a specific operation in the specified 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 operationId The ID of an ongoing async operation. - * @param options The options parameters. - */ - getByAgentPool( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - operationId: string, - options?: OperationStatusResultGetByAgentPoolOptionalParams, - ): Promise; -} diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts index a43f0e5795ea..9cb1003f085d 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts @@ -6,8 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { OperationValue, OperationsListOptionalParams } from "../models/index.js"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { OperationValue, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ @@ -16,7 +16,5 @@ export interface Operations { * Gets a list of operations. * @param options The options parameters. */ - list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts index 86d7622b4c59..176528a186d1 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts @@ -6,8 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import type { +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsListResponse, PrivateEndpointConnectionsGetOptionalParams, diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts index 2f2dd12a0d11..6fb80f13ef55 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { +import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, } from "../models/index.js"; diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts index df3464b9a7c6..bef361a7c1a6 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { +import { PrivateLinkResource, ResolvePrivateLinkServiceIdPostOptionalParams, ResolvePrivateLinkServiceIdPostResponse, diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts index 4b4da1076dbf..540384fb0a31 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts @@ -6,8 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Snapshot, SnapshotsListOptionalParams, SnapshotsListByResourceGroupOptionalParams, @@ -28,9 +28,7 @@ export interface Snapshots { * Gets a list of snapshots in the specified subscription. * @param options The options parameters. */ - list( - options?: SnapshotsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SnapshotsListOptionalParams): PagedAsyncIterableIterator; /** * Lists snapshots in the specified subscription and resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts index a13110427869..b6a6d84ba26e 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { SimplePollerLike, OperationState } from "@azure/core-lro"; -import type { +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { TrustedAccessRoleBinding, TrustedAccessRoleBindingsListOptionalParams, TrustedAccessRoleBindingsGetOptionalParams, diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts index 34cd1dc4caa9..74d862783af1 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts @@ -6,11 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import type { - TrustedAccessRole, - TrustedAccessRolesListOptionalParams, -} from "../models/index.js"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { TrustedAccessRole, TrustedAccessRolesListOptionalParams } from "../models/index.js"; /// /** Interface representing a TrustedAccessRoles. */ diff --git a/sdk/containerservice/arm-containerservice/src/pagingHelper.ts b/sdk/containerservice/arm-containerservice/src/pagingHelper.ts index 205cccc26592..e362819bdfc4 100644 --- a/sdk/containerservice/arm-containerservice/src/pagingHelper.ts +++ b/sdk/containerservice/arm-containerservice/src/pagingHelper.ts @@ -26,10 +26,7 @@ export function getContinuationToken(page: unknown): string | undefined { return pageMap.get(page)?.continuationToken; } -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined, -): void { +export function setContinuationToken(page: unknown, continuationToken: string | undefined): void { if (typeof page !== "object" || page === null || !continuationToken) { return; } diff --git a/sdk/containerservice/arm-containerservice/test/sampleTest.spec.ts b/sdk/containerservice/arm-containerservice/test/sampleTest.spec.ts new file mode 100644 index 000000000000..90b3c8a868b4 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/test/sampleTest.spec.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { Recorder, RecorderStartOptions } from "@azure-tools/test-recorder"; +import { afterEach, beforeEach, describe, it, assert } from "vitest"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async () => { + recorder = new Recorder(); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async () => { + assert(true); + }); +}); diff --git a/sdk/containerservice/arm-containerservice/test/snippets.spec.ts b/sdk/containerservice/arm-containerservice/test/snippets.spec.ts index 87571319a304..6434095d843b 100644 --- a/sdk/containerservice/arm-containerservice/test/snippets.spec.ts +++ b/sdk/containerservice/arm-containerservice/test/snippets.spec.ts @@ -7,20 +7,14 @@ */ import { ContainerServiceClient } from "../src/index.js"; -import { - DefaultAzureCredential, - InteractiveBrowserCredential, -} from "@azure/identity"; +import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; import { setLogLevel } from "@azure/logger"; import { describe, it } from "vitest"; describe("snippets", () => { it("ReadmeSampleCreateClient_Node", async () => { const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const client = new ContainerServiceClient( - new DefaultAzureCredential(), - subscriptionId, - ); + const client = new ContainerServiceClient(new DefaultAzureCredential(), subscriptionId); }); it("ReadmeSampleCreateClient_Browser", async () => { diff --git a/sdk/containerservice/arm-containerservice/tsconfig.browser.config.json b/sdk/containerservice/arm-containerservice/tsconfig.browser.config.json index 0c8bafa97126..75871518e3a0 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.browser.config.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.browser.config.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.test.json", - "../../../tsconfig.browser.base.json" - ] + "extends": ["./tsconfig.test.json", "../../../tsconfig.browser.base.json"] } diff --git a/sdk/containerservice/arm-containerservice/tsconfig.json b/sdk/containerservice/arm-containerservice/tsconfig.json index f55ad563a063..59ea83c046bf 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.json @@ -3,9 +3,6 @@ { "path": "./tsconfig.src.json" }, - { - "path": "./tsconfig.samples.json" - }, { "path": "./tsconfig.test.json" } diff --git a/sdk/containerservice/arm-containerservice/tsconfig.samples.json b/sdk/containerservice/arm-containerservice/tsconfig.samples.json index 6b5291589906..9623a8e74dd9 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.samples.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.samples.json @@ -2,9 +2,7 @@ "extends": "../../../tsconfig.samples.base.json", "compilerOptions": { "paths": { - "@azure/arm-containerservice": [ - "./dist/esm" - ] + "@azure/arm-containerservice": ["./dist/esm"] } } } diff --git a/sdk/containerservice/arm-containerservice/tsconfig.test.json b/sdk/containerservice/arm-containerservice/tsconfig.test.json index 3c2b783a8c1b..290ca214aebc 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.test.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.test.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.src.json", - "../../../tsconfig.test.base.json" - ] + "extends": ["./tsconfig.src.json", "../../../tsconfig.test.base.json"] }