diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index 7705d909500b..4d4178079c96 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,148 +1,27 @@ # Release History - -## 19.1.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 19.1.0-beta.1 (2023-06-12) + +## 19.1.0 (2023-07-20) **Features** - - Added operation group ManagedClusterSnapshots - - Added operation group TrustedAccessRoleBindings - - Added operation group TrustedAccessRoles - Added Interface AbsoluteMonthlySchedule - - Added Interface AgentPoolNetworkProfile - - Added Interface AgentPoolWindowsProfile - - Added Interface ClusterUpgradeSettings - - Added Interface ContainerServiceNetworkProfileKubeProxyConfig - - Added Interface ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig - Added Interface DailySchedule - Added Interface DateSpan - - Added Interface GuardrailsProfile - - Added Interface IPTag - - Added Interface IstioComponents - - Added Interface IstioIngressGateway - - Added Interface IstioServiceMesh + - Added Interface DelegatedResource - Added Interface MaintenanceWindow - - Added Interface ManagedClusterIngressProfile - - Added Interface ManagedClusterIngressProfileWebAppRouting - - Added Interface ManagedClusterNodeResourceGroupProfile - - Added Interface ManagedClusterPropertiesForSnapshot - - Added Interface ManagedClusterSecurityProfileNodeRestriction - - Added Interface ManagedClusterSnapshot - - Added Interface ManagedClusterSnapshotListResult - - Added Interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams - - Added Interface ManagedClusterSnapshotsDeleteOptionalParams - - Added Interface ManagedClusterSnapshotsGetOptionalParams - - Added Interface ManagedClusterSnapshotsListByResourceGroupNextOptionalParams - - Added Interface ManagedClusterSnapshotsListByResourceGroupOptionalParams - - Added Interface ManagedClusterSnapshotsListNextOptionalParams - - Added Interface ManagedClusterSnapshotsListOptionalParams - - Added Interface ManagedClusterSnapshotsUpdateTagsOptionalParams - Added Interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler - - Added Interface NetworkMonitoring - - Added Interface NetworkProfileForSnapshot - - Added Interface PortRange - Added Interface RelativeMonthlySchedule - Added Interface Schedule - - Added Interface ServiceMeshProfile - - Added Interface TrustedAccessRole - - Added Interface TrustedAccessRoleBinding - - Added Interface TrustedAccessRoleBindingListResult - - Added Interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - - Added Interface TrustedAccessRoleBindingsDeleteOptionalParams - - Added Interface TrustedAccessRoleBindingsGetOptionalParams - - Added Interface TrustedAccessRoleBindingsListNextOptionalParams - - Added Interface TrustedAccessRoleBindingsListOptionalParams - - Added Interface TrustedAccessRoleListResult - - Added Interface TrustedAccessRoleRule - - Added Interface TrustedAccessRolesListNextOptionalParams - - Added Interface TrustedAccessRolesListOptionalParams - - Added Interface UpgradeOverrideSettings - Added Interface WeeklySchedule - - Added Type Alias BackendPoolType - - Added Type Alias ControlledValues - - Added Type Alias ControlPlaneUpgradeOverride - - Added Type Alias IpvsScheduler - - Added Type Alias IstioIngressGatewayMode - - Added Type Alias Level - - Added Type Alias ManagedClusterSnapshotsCreateOrUpdateResponse - - Added Type Alias ManagedClusterSnapshotsGetResponse - - Added Type Alias ManagedClusterSnapshotsListByResourceGroupNextResponse - - Added Type Alias ManagedClusterSnapshotsListByResourceGroupResponse - - Added Type Alias ManagedClusterSnapshotsListNextResponse - - Added Type Alias ManagedClusterSnapshotsListResponse - - Added Type Alias ManagedClusterSnapshotsUpdateTagsResponse - - Added Type Alias Mode - Added Type Alias NodeOSUpgradeChannel - - Added Type Alias Protocol - - Added Type Alias RestrictionLevel - - Added Type Alias ServiceMeshMode - - Added Type Alias TrustedAccessRoleBindingProvisioningState - - Added Type Alias TrustedAccessRoleBindingsCreateOrUpdateResponse - - Added Type Alias TrustedAccessRoleBindingsGetResponse - - Added Type Alias TrustedAccessRoleBindingsListNextResponse - - Added Type Alias TrustedAccessRoleBindingsListResponse - - Added Type Alias TrustedAccessRolesListNextResponse - - Added Type Alias TrustedAccessRolesListResponse - Added Type Alias Type - - Added Type Alias UpdateMode - - Interface AgentPool has a new optional parameter capacityReservationGroupID - - Interface AgentPool has a new optional parameter enableCustomCATrust - - Interface AgentPool has a new optional parameter messageOfTheDay - - Interface AgentPool has a new optional parameter networkProfile - - Interface AgentPool has a new optional parameter windowsProfile - - Interface AgentPoolsDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget - - Interface ContainerServiceNetworkProfile has a new optional parameter kubeProxyConfig - - Interface ContainerServiceNetworkProfile has a new optional parameter monitoring + - Interface AgentPoolUpgradeSettings has a new optional parameter drainTimeoutInMinutes - Interface MaintenanceConfiguration has a new optional parameter maintenanceWindow - - Interface ManagedCluster has a new optional parameter creationData - - Interface ManagedCluster has a new optional parameter enableNamespaceResources - - Interface ManagedCluster has a new optional parameter guardrailsProfile - - Interface ManagedCluster has a new optional parameter ingressProfile - - Interface ManagedCluster has a new optional parameter nodeResourceGroupProfile - - Interface ManagedCluster has a new optional parameter serviceMeshProfile - - Interface ManagedCluster has a new optional parameter upgradeSettings - - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter capacityReservationGroupID - - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter enableCustomCATrust - - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter messageOfTheDay - - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter networkProfile - - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter windowsProfile - - Interface ManagedClusterAPIServerAccessProfile has a new optional parameter enableVnetIntegration - - Interface ManagedClusterAPIServerAccessProfile has a new optional parameter subnetId - Interface ManagedClusterAutoUpgradeProfile has a new optional parameter nodeOSUpgradeChannel - - Interface ManagedClusterHttpProxyConfig has a new optional parameter effectiveNoProxy - - Interface ManagedClusterLoadBalancerProfile has a new optional parameter backendPoolType - - Interface ManagedClustersDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget - - Interface ManagedClusterSecurityProfile has a new optional parameter customCATrustCertificates - - Interface ManagedClusterSecurityProfile has a new optional parameter nodeRestriction - - Interface ManagedClusterStorageProfileDiskCSIDriver has a new optional parameter version + - Interface ManagedClusterIdentity has a new optional parameter delegatedResources - Interface ManagedClusterWorkloadAutoScalerProfile has a new optional parameter verticalPodAutoscaler - - Added Enum KnownBackendPoolType - - Added Enum KnownControlledValues - - Added Enum KnownControlPlaneUpgradeOverride - - Added Enum KnownIpvsScheduler - - Added Enum KnownIstioIngressGatewayMode - - Added Enum KnownLevel - - Added Enum KnownMode - Added Enum KnownNodeOSUpgradeChannel - - Added Enum KnownProtocol - - Added Enum KnownRestrictionLevel - - Added Enum KnownServiceMeshMode - - Added Enum KnownTrustedAccessRoleBindingProvisioningState - Added Enum KnownType - - Added Enum KnownUpdateMode - - Enum KnownOssku has a new value Mariner - - Enum KnownPublicNetworkAccess has a new value SecuredByPerimeter - - Enum KnownSnapshotType has a new value ManagedCluster - - Enum KnownWorkloadRuntime has a new value KataMshvVmIsolation ## 19.0.0 (2023-05-19) diff --git a/sdk/containerservice/arm-containerservice/README.md b/sdk/containerservice/arm-containerservice/README.md index ce081835bfbd..286d376f7c22 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://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/containerservice/arm-containerservice/_meta.json b/sdk/containerservice/arm-containerservice/_meta.json index 0ab3b516e60b..94161b916d70 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1b33e81bbdc28fcd6644a1315b8d7b1b6d030590", + "commit": "e413760a8ba680c5d71dea6a47ce021af5dab6e2", "readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", - "autorest_command": "autorest --version=3.9.3 --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.2 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --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.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.2" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index 45fa94c115aa..c3f56a8d5659 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerServiceClient.", - "version": "19.1.0-beta.2", + "version": "19.1.0", "engines": { "node": ">=14.0.0" }, @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice" +} \ 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 93fd18e46d0d..31e7f6e93385 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -19,12 +19,10 @@ export interface AbsoluteMonthlySchedule { // @public export interface AgentPool extends SubResource { availabilityZones?: string[]; - capacityReservationGroupID?: string; count?: number; creationData?: CreationData; readonly currentOrchestratorVersion?: string; enableAutoScaling?: boolean; - enableCustomCATrust?: boolean; enableEncryptionAtHost?: boolean; enableFips?: boolean; enableNodePublicIP?: boolean; @@ -36,10 +34,8 @@ export interface AgentPool extends SubResource { linuxOSConfig?: LinuxOSConfig; maxCount?: number; maxPods?: number; - messageOfTheDay?: string; minCount?: number; mode?: AgentPoolMode; - networkProfile?: AgentPoolNetworkProfile; readonly nodeImageVersion?: string; nodeLabels?: { [propertyName: string]: string; @@ -66,7 +62,6 @@ export interface AgentPool extends SubResource { upgradeSettings?: AgentPoolUpgradeSettings; vmSize?: string; vnetSubnetID?: string; - windowsProfile?: AgentPoolWindowsProfile; workloadRuntime?: WorkloadRuntime; } @@ -94,13 +89,6 @@ export interface AgentPoolListResult { // @public export type AgentPoolMode = string; -// @public -export interface AgentPoolNetworkProfile { - allowedHostPorts?: PortRange[]; - applicationSecurityGroups?: string[]; - nodePublicIPTags?: IPTag[]; -} - // @public export interface AgentPools { beginAbortLatestOperation(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: AgentPoolsAbortLatestOperationOptionalParams): Promise, AgentPoolsAbortLatestOperationResponse>>; @@ -148,7 +136,6 @@ export interface AgentPoolsDeleteHeaders { // @public export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOptions { - ignorePodDisruptionBudget?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -224,14 +211,10 @@ export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { // @public export interface AgentPoolUpgradeSettings { + drainTimeoutInMinutes?: number; maxSurge?: string; } -// @public -export interface AgentPoolWindowsProfile { - disableOutboundNat?: boolean; -} - // @public export interface AzureKeyVaultKms { enabled?: boolean; @@ -240,9 +223,6 @@ export interface AzureKeyVaultKms { keyVaultResourceId?: string; } -// @public -export type BackendPoolType = string; - // @public export interface CloudError { error?: CloudErrorBody; @@ -256,11 +236,6 @@ export interface CloudErrorBody { target?: string; } -// @public -export interface ClusterUpgradeSettings { - overrideSettings?: UpgradeOverrideSettings; -} - // @public export type Code = string; @@ -281,8 +256,6 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // (undocumented) managedClusters: ManagedClusters; // (undocumented) - managedClusterSnapshots: ManagedClusterSnapshots; - // (undocumented) operations: Operations; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -294,10 +267,6 @@ export class ContainerServiceClient extends coreClient.ServiceClient { snapshots: Snapshots; // (undocumented) subscriptionId: string; - // (undocumented) - trustedAccessRoleBindings: TrustedAccessRoleBindings; - // (undocumented) - trustedAccessRoles: TrustedAccessRoles; } // @public @@ -317,10 +286,8 @@ export interface ContainerServiceLinuxProfile { export interface ContainerServiceNetworkProfile { dnsServiceIP?: string; ipFamilies?: IpFamily[]; - kubeProxyConfig?: ContainerServiceNetworkProfileKubeProxyConfig; loadBalancerProfile?: ManagedClusterLoadBalancerProfile; loadBalancerSku?: LoadBalancerSku; - monitoring?: NetworkMonitoring; natGatewayProfile?: ManagedClusterNATGatewayProfile; networkDataplane?: NetworkDataplane; networkMode?: NetworkMode; @@ -334,21 +301,6 @@ export interface ContainerServiceNetworkProfile { serviceCidrs?: string[]; } -// @public -export interface ContainerServiceNetworkProfileKubeProxyConfig { - enabled?: boolean; - ipvsConfig?: ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig; - mode?: Mode; -} - -// @public -export interface ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig { - scheduler?: IpvsScheduler; - tcpFinTimeoutSeconds?: number; - tcpTimeoutSeconds?: number; - udpTimeoutSeconds?: number; -} - // @public export interface ContainerServiceSshConfiguration { publicKeys: ContainerServiceSshPublicKey[]; @@ -359,12 +311,6 @@ export interface ContainerServiceSshPublicKey { keyData: string; } -// @public -export type ControlledValues = string; - -// @public -export type ControlPlaneUpgradeOverride = string; - // @public export type CreatedByType = string; @@ -395,6 +341,14 @@ export interface DateSpan { start: Date; } +// @public +export interface DelegatedResource { + location?: string; + referralResource?: string; + resourceId?: string; + tenantId?: string; +} + // @public export interface EndpointDependency { domainName?: string; @@ -430,45 +384,9 @@ export function getContinuationToken(page: unknown): string | undefined; // @public export type GPUInstanceProfile = string; -// @public -export interface GuardrailsProfile { - excludedNamespaces?: string[]; - level: Level; - readonly systemExcludedNamespaces?: string[]; - version: string; -} - // @public export type IpFamily = string; -// @public -export interface IPTag { - ipTagType?: string; - tag?: string; -} - -// @public -export type IpvsScheduler = string; - -// @public -export interface IstioComponents { - ingressGateways?: IstioIngressGateway[]; -} - -// @public -export interface IstioIngressGateway { - enabled: boolean; - mode: IstioIngressGatewayMode; -} - -// @public -export type IstioIngressGatewayMode = string; - -// @public -export interface IstioServiceMesh { - components?: IstioComponents; -} - // @public export type KeyVaultNetworkAccessTypes = string; @@ -484,12 +402,6 @@ export enum KnownAgentPoolType { VirtualMachineScaleSets = "VirtualMachineScaleSets" } -// @public -export enum KnownBackendPoolType { - NodeIP = "NodeIP", - NodeIPConfiguration = "NodeIPConfiguration" -} - // @public export enum KnownCode { Running = "Running", @@ -504,17 +416,6 @@ export enum KnownConnectionStatus { Rejected = "Rejected" } -// @public -export enum KnownControlledValues { - RequestsAndLimits = "RequestsAndLimits", - RequestsOnly = "RequestsOnly" -} - -// @public -export enum KnownControlPlaneUpgradeOverride { - IgnoreKubernetesDeprecations = "IgnoreKubernetesDeprecations" -} - // @public export enum KnownCreatedByType { Application = "Application", @@ -557,18 +458,6 @@ export enum KnownIpFamily { IPv6 = "IPv6" } -// @public -export enum KnownIpvsScheduler { - LeastConnection = "LeastConnection", - RoundRobin = "RoundRobin" -} - -// @public -export enum KnownIstioIngressGatewayMode { - External = "External", - Internal = "Internal" -} - // @public export enum KnownKeyVaultNetworkAccessTypes { Private = "Private", @@ -587,13 +476,6 @@ export enum KnownKubernetesSupportPlan { KubernetesOfficial = "KubernetesOfficial" } -// @public -export enum KnownLevel { - Enforcement = "Enforcement", - Off = "Off", - Warning = "Warning" -} - // @public export enum KnownLicenseType { None = "None", @@ -628,12 +510,6 @@ export enum KnownManagedClusterSKUTier { Standard = "Standard" } -// @public -export enum KnownMode { - Iptables = "IPTABLES", - Ipvs = "IPVS" -} - // @public export enum KnownNetworkDataplane { Azure = "azure", @@ -669,7 +545,6 @@ export enum KnownNetworkPolicy { export enum KnownNodeOSUpgradeChannel { NodeImage = "NodeImage", None = "None", - SecurityPatch = "SecurityPatch", Unmanaged = "Unmanaged" } @@ -683,7 +558,6 @@ export enum KnownOSDiskType { export enum KnownOssku { AzureLinux = "AzureLinux", CBLMariner = "CBLMariner", - Mariner = "Mariner", Ubuntu = "Ubuntu", Windows2019 = "Windows2019", Windows2022 = "Windows2022" @@ -712,23 +586,10 @@ export enum KnownPrivateEndpointConnectionProvisioningState { Succeeded = "Succeeded" } -// @public -export enum KnownProtocol { - TCP = "TCP", - UDP = "UDP" -} - // @public export enum KnownPublicNetworkAccess { Disabled = "Disabled", - Enabled = "Enabled", - SecuredByPerimeter = "SecuredByPerimeter" -} - -// @public -export enum KnownRestrictionLevel { - ReadOnly = "ReadOnly", - Unrestricted = "Unrestricted" + Enabled = "Enabled" } // @public @@ -749,27 +610,11 @@ export enum KnownScaleSetPriority { Spot = "Spot" } -// @public -export enum KnownServiceMeshMode { - Disabled = "Disabled", - Istio = "Istio" -} - // @public export enum KnownSnapshotType { - ManagedCluster = "ManagedCluster", NodePool = "NodePool" } -// @public -export enum KnownTrustedAccessRoleBindingProvisioningState { - Canceled = "Canceled", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - // @public export enum KnownType { First = "First", @@ -779,14 +624,6 @@ export enum KnownType { Third = "Third" } -// @public -export enum KnownUpdateMode { - Auto = "Auto", - Initial = "Initial", - Off = "Off", - Recreate = "Recreate" -} - // @public export enum KnownUpgradeChannel { NodeImage = "node-image", @@ -809,7 +646,6 @@ export enum KnownWeekDay { // @public export enum KnownWorkloadRuntime { - KataMshvVmIsolation = "KataMshvVmIsolation", OCIContainer = "OCIContainer", WasmWasi = "WasmWasi" } @@ -861,9 +697,6 @@ export interface KubernetesVersionListResult { values?: KubernetesVersion[]; } -// @public -export type Level = string; - // @public export type LicenseType = string; @@ -954,30 +787,25 @@ export interface ManagedCluster extends TrackedResource { autoUpgradeProfile?: ManagedClusterAutoUpgradeProfile; azureMonitorProfile?: ManagedClusterAzureMonitorProfile; readonly azurePortalFqdn?: string; - creationData?: CreationData; readonly currentKubernetesVersion?: string; disableLocalAccounts?: boolean; diskEncryptionSetID?: string; dnsPrefix?: string; - enableNamespaceResources?: boolean; enablePodSecurityPolicy?: boolean; enableRbac?: boolean; extendedLocation?: ExtendedLocation; readonly fqdn?: string; fqdnSubdomain?: string; - guardrailsProfile?: GuardrailsProfile; httpProxyConfig?: ManagedClusterHttpProxyConfig; identity?: ManagedClusterIdentity; identityProfile?: { [propertyName: string]: UserAssignedIdentity; }; - ingressProfile?: ManagedClusterIngressProfile; kubernetesVersion?: string; linuxProfile?: ContainerServiceLinuxProfile; readonly maxAgentPools?: number; networkProfile?: ContainerServiceNetworkProfile; nodeResourceGroup?: string; - nodeResourceGroupProfile?: ManagedClusterNodeResourceGroupProfile; oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; podIdentityProfile?: ManagedClusterPodIdentityProfile; readonly powerState?: PowerState; @@ -986,12 +814,10 @@ export interface ManagedCluster extends TrackedResource { readonly provisioningState?: string; publicNetworkAccess?: PublicNetworkAccess; securityProfile?: ManagedClusterSecurityProfile; - serviceMeshProfile?: ServiceMeshProfile; servicePrincipalProfile?: ManagedClusterServicePrincipalProfile; sku?: ManagedClusterSKU; storageProfile?: ManagedClusterStorageProfile; supportPlan?: KubernetesSupportPlan; - upgradeSettings?: ClusterUpgradeSettings; windowsProfile?: ManagedClusterWindowsProfile; workloadAutoScalerProfile?: ManagedClusterWorkloadAutoScalerProfile; } @@ -1033,12 +859,10 @@ export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolP // @public export interface ManagedClusterAgentPoolProfileProperties { availabilityZones?: string[]; - capacityReservationGroupID?: string; count?: number; creationData?: CreationData; readonly currentOrchestratorVersion?: string; enableAutoScaling?: boolean; - enableCustomCATrust?: boolean; enableEncryptionAtHost?: boolean; enableFips?: boolean; enableNodePublicIP?: boolean; @@ -1050,10 +874,8 @@ export interface ManagedClusterAgentPoolProfileProperties { linuxOSConfig?: LinuxOSConfig; maxCount?: number; maxPods?: number; - messageOfTheDay?: string; minCount?: number; mode?: AgentPoolMode; - networkProfile?: AgentPoolNetworkProfile; readonly nodeImageVersion?: string; nodeLabels?: { [propertyName: string]: string; @@ -1080,7 +902,6 @@ export interface ManagedClusterAgentPoolProfileProperties { upgradeSettings?: AgentPoolUpgradeSettings; vmSize?: string; vnetSubnetID?: string; - windowsProfile?: AgentPoolWindowsProfile; workloadRuntime?: WorkloadRuntime; } @@ -1090,9 +911,7 @@ export interface ManagedClusterAPIServerAccessProfile { disableRunCommand?: boolean; enablePrivateCluster?: boolean; enablePrivateClusterPublicFqdn?: boolean; - enableVnetIntegration?: boolean; privateDNSZone?: string; - subnetId?: string; } // @public @@ -1120,7 +939,6 @@ export interface ManagedClusterAzureMonitorProfileMetrics { // @public export interface ManagedClusterHttpProxyConfig { - readonly effectiveNoProxy?: string[]; httpProxy?: string; httpsProxy?: string; noProxy?: string[]; @@ -1129,6 +947,9 @@ export interface ManagedClusterHttpProxyConfig { // @public export interface ManagedClusterIdentity { + delegatedResources?: { + [propertyName: string]: DelegatedResource; + }; readonly principalId?: string; readonly tenantId?: string; type?: ResourceIdentityType; @@ -1137,18 +958,6 @@ export interface ManagedClusterIdentity { }; } -// @public -export interface ManagedClusterIngressProfile { - webAppRouting?: ManagedClusterIngressProfileWebAppRouting; -} - -// @public -export interface ManagedClusterIngressProfileWebAppRouting { - dnsZoneResourceId?: string; - enabled?: boolean; - readonly identity?: UserAssignedIdentity; -} - // @public export interface ManagedClusterListResult { readonly nextLink?: string; @@ -1158,7 +967,6 @@ export interface ManagedClusterListResult { // @public export interface ManagedClusterLoadBalancerProfile { allocatedOutboundPorts?: number; - backendPoolType?: BackendPoolType; effectiveOutboundIPs?: ResourceReference[]; enableMultipleStandardLoadBalancers?: boolean; idleTimeoutInMinutes?: number; @@ -1195,11 +1003,6 @@ export interface ManagedClusterNATGatewayProfile { managedOutboundIPProfile?: ManagedClusterManagedOutboundIPProfile; } -// @public -export interface ManagedClusterNodeResourceGroupProfile { - restrictionLevel?: RestrictionLevel; -} - // @public export interface ManagedClusterOidcIssuerProfile { enabled?: boolean; @@ -1289,14 +1092,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>>; @@ -1366,7 +1161,6 @@ export interface ManagedClustersDeleteHeaders { // @public export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { - ignorePodDisruptionBudget?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1377,10 +1171,8 @@ export type ManagedClustersDeleteResponse = ManagedClustersDeleteHeaders; // @public export interface ManagedClusterSecurityProfile { azureKeyVaultKms?: AzureKeyVaultKms; - customCATrustCertificates?: Uint8Array[]; defender?: ManagedClusterSecurityProfileDefender; imageCleaner?: ManagedClusterSecurityProfileImageCleaner; - nodeRestriction?: ManagedClusterSecurityProfileNodeRestriction; workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; } @@ -1401,11 +1193,6 @@ export interface ManagedClusterSecurityProfileImageCleaner { intervalHours?: number; } -// @public -export interface ManagedClusterSecurityProfileNodeRestriction { - enabled?: boolean; -} - // @public export interface ManagedClusterSecurityProfileWorkloadIdentity { enabled?: boolean; @@ -1544,82 +1331,6 @@ export type ManagedClustersListOutboundNetworkDependenciesEndpointsResponse = Ou // @public export type ManagedClustersListResponse = ManagedClusterListResult; -// @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 ManagedClustersResetAADProfileHeaders { location?: string; @@ -1658,6 +1369,7 @@ export type ManagedClustersRotateClusterCertificatesResponse = ManagedClustersRo // @public export interface ManagedClustersRotateServiceAccountSigningKeysHeaders { + // (undocumented) location?: string; } @@ -1728,7 +1440,6 @@ export interface ManagedClusterStorageProfileBlobCSIDriver { // @public export interface ManagedClusterStorageProfileDiskCSIDriver { enabled?: boolean; - version?: string; } // @public @@ -1771,7 +1482,6 @@ export interface ManagedClusterWindowsProfile { // @public export interface ManagedClusterWorkloadAutoScalerProfile { keda?: ManagedClusterWorkloadAutoScalerProfileKeda; - // (undocumented) verticalPodAutoscaler?: ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler; } @@ -1780,11 +1490,9 @@ export interface ManagedClusterWorkloadAutoScalerProfileKeda { enabled: boolean; } -// @public (undocumented) +// @public export interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler { - controlledValues: ControlledValues; enabled: boolean; - updateMode: UpdateMode; } // @public (undocumented) @@ -1793,20 +1501,12 @@ export interface ManagedServiceIdentityUserAssignedIdentitiesValue { readonly principalId?: string; } -// @public -export type Mode = string; - // @public export type NetworkDataplane = string; // @public export type NetworkMode = string; -// @public -export interface NetworkMonitoring { - enabled?: boolean; -} - // @public export type NetworkPlugin = string; @@ -1816,15 +1516,6 @@ export type NetworkPluginMode = string; // @public export type NetworkPolicy = string; -// @public -export interface NetworkProfileForSnapshot { - loadBalancerSku?: LoadBalancerSku; - networkMode?: NetworkMode; - networkPlugin?: NetworkPlugin; - networkPluginMode?: NetworkPluginMode; - networkPolicy?: NetworkPolicy; -} - // @public export type NodeOSUpgradeChannel = string; @@ -1893,13 +1584,6 @@ export interface OutboundEnvironmentEndpointCollection { // @public export type OutboundType = string; -// @public -export interface PortRange { - portEnd?: number; - portStart?: number; - protocol?: Protocol; -} - // @public export interface PowerState { code?: Code; @@ -1997,9 +1681,6 @@ export interface PrivateLinkServiceConnectionState { status?: ConnectionStatus; } -// @public -export type Protocol = string; - // @public export type PublicNetworkAccess = string; @@ -2038,9 +1719,6 @@ export interface ResourceReference { id?: string; } -// @public -export type RestrictionLevel = string; - // @public export interface RunCommandRequest { clusterToken?: string; @@ -2076,15 +1754,6 @@ export interface Schedule { weekly?: WeeklySchedule; } -// @public -export type ServiceMeshMode = string; - -// @public -export interface ServiceMeshProfile { - istio?: IstioServiceMesh; - mode: ServiceMeshMode; -} - // @public export interface Snapshot extends TrackedResource { creationData?: CreationData; @@ -2245,118 +1914,12 @@ export interface TrackedResource extends Resource { }; } -// @public -export interface TrustedAccessRole { - readonly name?: string; - readonly rules?: TrustedAccessRoleRule[]; - readonly sourceResourceType?: string; -} - -// @public -export interface TrustedAccessRoleBinding extends Resource { - readonly provisioningState?: TrustedAccessRoleBindingProvisioningState; - roles: string[]; - sourceResourceId: string; -} - -// @public -export interface TrustedAccessRoleBindingListResult { - readonly nextLink?: string; - value?: TrustedAccessRoleBinding[]; -} - -// @public -export type TrustedAccessRoleBindingProvisioningState = string; - -// @public -export interface TrustedAccessRoleBindings { - createOrUpdate(resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, trustedAccessRoleBinding: TrustedAccessRoleBinding, options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, options?: TrustedAccessRoleBindingsDeleteOptionalParams): Promise; - get(resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, options?: TrustedAccessRoleBindingsGetOptionalParams): Promise; - list(resourceGroupName: string, resourceName: string, options?: TrustedAccessRoleBindingsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRoleBindingsCreateOrUpdateResponse = TrustedAccessRoleBinding; - -// @public -export interface TrustedAccessRoleBindingsDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface TrustedAccessRoleBindingsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRoleBindingsGetResponse = TrustedAccessRoleBinding; - -// @public -export interface TrustedAccessRoleBindingsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRoleBindingsListNextResponse = TrustedAccessRoleBindingListResult; - -// @public -export interface TrustedAccessRoleBindingsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRoleBindingsListResponse = TrustedAccessRoleBindingListResult; - -// @public -export interface TrustedAccessRoleListResult { - readonly nextLink?: string; - readonly value?: TrustedAccessRole[]; -} - -// @public -export interface TrustedAccessRoleRule { - readonly apiGroups?: string[]; - readonly nonResourceURLs?: string[]; - readonly resourceNames?: string[]; - readonly resources?: string[]; - readonly verbs?: string[]; -} - -// @public -export interface TrustedAccessRoles { - list(location: string, options?: TrustedAccessRolesListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface TrustedAccessRolesListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRolesListNextResponse = TrustedAccessRoleListResult; - -// @public -export interface TrustedAccessRolesListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRolesListResponse = TrustedAccessRoleListResult; - // @public export type Type = string; -// @public -export type UpdateMode = string; - // @public export type UpgradeChannel = string; -// @public -export interface UpgradeOverrideSettings { - controlPlaneOverrides?: ControlPlaneUpgradeOverride[]; - until?: Date; -} - // @public export interface UserAssignedIdentity { clientId?: string; diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index d43ad6173a6f..ac2270df6a93 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -22,10 +22,7 @@ import { PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ResolvePrivateLinkServiceIdImpl, - SnapshotsImpl, - ManagedClusterSnapshotsImpl, - TrustedAccessRolesImpl, - TrustedAccessRoleBindingsImpl + SnapshotsImpl } from "./operations"; import { Operations, @@ -35,10 +32,7 @@ import { PrivateEndpointConnections, PrivateLinkResources, ResolvePrivateLinkServiceId, - Snapshots, - ManagedClusterSnapshots, - TrustedAccessRoles, - TrustedAccessRoleBindings + Snapshots } from "./operationsInterfaces"; import { ContainerServiceClientOptionalParams } from "./models"; @@ -74,7 +68,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-containerservice/19.1.0-beta.2`; + const packageDetails = `azsdk-js-arm-containerservice/19.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -127,7 +121,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-05-02-preview"; + this.apiVersion = options.apiVersion || "2023-06-01"; this.operations = new OperationsImpl(this); this.managedClusters = new ManagedClustersImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this); @@ -138,9 +132,6 @@ export class ContainerServiceClient extends coreClient.ServiceClient { this ); this.snapshots = new SnapshotsImpl(this); - this.managedClusterSnapshots = new ManagedClusterSnapshotsImpl(this); - this.trustedAccessRoles = new TrustedAccessRolesImpl(this); - this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -180,7 +171,4 @@ export class ContainerServiceClient extends coreClient.ServiceClient { privateLinkResources: PrivateLinkResources; resolvePrivateLinkServiceId: ResolvePrivateLinkServiceId; snapshots: Snapshots; - managedClusterSnapshots: ManagedClusterSnapshots; - trustedAccessRoles: TrustedAccessRoles; - trustedAccessRoleBindings: TrustedAccessRoleBindings; } diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index 97f1012d50e8..f50f1437d9c4 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -168,12 +168,26 @@ export interface ManagedClusterIdentity { readonly tenantId?: string; /** For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity). */ type?: ResourceIdentityType; + /** The delegated identity resources assigned to this managed cluster. This can only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. Internal use only. */ + delegatedResources?: { [propertyName: string]: DelegatedResource }; /** The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue; }; } +/** Delegated resource properties - internal use only. */ +export interface DelegatedResource { + /** The ARM resource id of the delegated resource - internal use only. */ + resourceId?: string; + /** The tenant id of the delegated resource - internal use only. */ + tenantId?: string; + /** The delegation id of the referral delegation (optional) - internal use only. */ + referralResource?: string; + /** The source resource location - internal use only. */ + location?: string; +} + export interface ManagedServiceIdentityUserAssignedIdentitiesValue { /** * The principal id of user assigned identity. @@ -193,12 +207,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 { /** Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. */ @@ -213,8 +221,6 @@ export interface ManagedClusterAgentPoolProfileProperties { kubeletDiskType?: KubeletDiskType; /** Determines the type of workload a node can run. */ workloadRuntime?: WorkloadRuntime; - /** A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). */ - messageOfTheDay?: string; /** If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */ 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} */ @@ -223,7 +229,7 @@ export interface ManagedClusterAgentPoolProfileProperties { 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; @@ -237,10 +243,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; @@ -262,8 +268,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'. */ @@ -294,20 +298,16 @@ export interface ManagedClusterAgentPoolProfileProperties { gpuInstanceProfile?: GPUInstanceProfile; /** CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. */ creationData?: CreationData; - /** AKS will associate the specified agent pool with the Capacity Reservation Group. */ - 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; } /** Settings for upgrading an agentpool */ export interface AgentPoolUpgradeSettings { /** 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 1. For more information, including best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade */ maxSurge?: 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; } /** See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details. */ @@ -408,38 +408,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; -} - -/** Network settings of an agent pool. */ -export interface AgentPoolNetworkProfile { - /** IPTags of instance-level public IPs. */ - nodePublicIPTags?: IPTag[]; - /** The port ranges that are allowed to access. The specified ranges are allowed to overlap. */ - allowedHostPorts?: PortRange[]; - /** The IDs of the application security groups which agent pool will associate when created. */ - applicationSecurityGroups?: string[]; -} - -/** Contains the IPTag associated with the object. */ -export interface IPTag { - /** The IP tag type. Example: RoutingPreference. */ - ipTagType?: string; - /** The value of the IP tag associated with the public IP. Example: Internet. */ - tag?: string; -} - -/** The port range. */ -export interface PortRange { - /** The minimum port that is included in the range. It should be ranged from 1 to 65535, and be less than or equal to portEnd. */ - portStart?: number; - /** The maximum port that is included in the range. It should be ranged from 1 to 65535, and be greater than or equal to portStart. */ - portEnd?: number; - /** The network protocol of the port. */ - protocol?: Protocol; +/** 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; } /** Profile for Linux VMs in the container service cluster. */ @@ -592,17 +564,11 @@ export interface ManagedClusterOidcIssuerProfile { enabled?: boolean; } -/** Node resource group lockdown profile for a managed cluster. */ -export interface ManagedClusterNodeResourceGroupProfile { - /** The restriction level applied to the cluster's node resource group */ - restrictionLevel?: RestrictionLevel; -} - /** Profile of network configuration. */ 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; @@ -630,10 +596,6 @@ export interface ContainerServiceNetworkProfile { 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[]; - /** 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; - /** This addon can be used to configure network monitoring and generate network monitoring data in Prometheus format */ - monitoring?: NetworkMonitoring; } /** Profile of the managed cluster load balancer. */ @@ -652,8 +614,6 @@ export interface ManagedClusterLoadBalancerProfile { idleTimeoutInMinutes?: number; /** Enable multiple standard load balancers per AKS cluster or not. */ enableMultipleStandardLoadBalancers?: boolean; - /** The type of the managed inbound Load Balancer BackendPool. */ - backendPoolType?: BackendPoolType; } /** Desired managed outbound IPs for the cluster load balancer. */ @@ -698,34 +658,6 @@ export interface ManagedClusterManagedOutboundIPProfile { count?: number; } -/** 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; -} - -/** This addon can be used to configure network monitoring and generate network monitoring data in Prometheus format */ -export interface NetworkMonitoring { - /** Enable or disable the network monitoring plugin on the cluster */ - enabled?: boolean; -} - /** For more details see [managed AAD on AKS](https://docs.microsoft.com/azure/aks/managed-aad). */ export interface ManagedClusterAADProfile { /** Whether to enable managed AAD. */ @@ -748,24 +680,10 @@ 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; } -/** Settings for upgrading a cluster. */ -export interface ClusterUpgradeSettings { - /** Settings for overrides. */ - overrideSettings?: UpgradeOverrideSettings; -} - -/** Settings for overrides when upgrading a cluster. */ -export interface UpgradeOverrideSettings { - /** List of upgrade overrides when upgrading a cluster's control plane. */ - controlPlaneOverrides?: ControlPlaneUpgradeOverride[]; - /** Until when the overrides are effective. Note that this only matches the start time of an upgrade, and the effectiveness won't change once an upgrade starts even if the `until` expires as upgrade proceeds. This field is not set by default. It must be set for the overrides to take effect. */ - until?: Date; -} - /** Parameters to be applied to the cluster-autoscaler when enabled */ export interface ManagedClusterPropertiesAutoScalerProfile { /** Valid values are 'true' and 'false' */ @@ -816,10 +734,6 @@ 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. */ - enableVnetIntegration?: boolean; - /** It is required when: 1. creating a new cluster with BYO Vnet; 2. updating an existing cluster to enable apiserver vnet integration. */ - subnetId?: string; } /** A private link resource */ @@ -849,11 +763,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; } @@ -868,10 +777,6 @@ export interface ManagedClusterSecurityProfile { workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; /** Image Cleaner settings for the security profile. */ imageCleaner?: ManagedClusterSecurityProfileImageCleaner; - /** [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 nodes with the Custom CA Trust feature enabled. For more information see [Custom CA Trust Certificates](https://learn.microsoft.com/en-us/azure/aks/custom-certificate-authority) */ - customCATrustCertificates?: Uint8Array[]; } /** Microsoft Defender settings for the security profile. */ @@ -914,12 +819,6 @@ export interface ManagedClusterSecurityProfileImageCleaner { intervalHours?: number; } -/** 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. */ @@ -936,8 +835,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. */ @@ -958,29 +855,11 @@ export interface ManagedClusterStorageProfileBlobCSIDriver { enabled?: boolean; } -/** Ingress profile for the container service cluster. */ -export interface ManagedClusterIngressProfile { - /** Web App Routing settings for the ingress profile. */ - webAppRouting?: ManagedClusterIngressProfileWebAppRouting; -} - -/** Web App Routing settings for the ingress profile. */ -export interface ManagedClusterIngressProfileWebAppRouting { - /** Whether to enable Web App Routing. */ - enabled?: boolean; - /** Resource ID of the DNS Zone to be associated with the web app. Used only when Web App Routing is enabled. */ - dnsZoneResourceId?: string; - /** - * 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. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly identity?: UserAssignedIdentity; -} - /** Workload Auto-scaler profile for the managed cluster. */ 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; } @@ -990,80 +869,34 @@ export interface ManagedClusterWorkloadAutoScalerProfileKeda { enabled: boolean; } +/** VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile. */ export interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler { /** Whether to enable VPA. Default value is false. */ enabled: boolean; - /** Controls which resource value autoscaler will change. Default value is RequestsAndLimits. */ - controlledValues: ControlledValues; - /** Each update mode level is a superset of the lower levels. Off= 1.25 if OSType is Windows. */ osSKU?: Ossku; /** The maximum number of nodes for auto-scaling */ maxCount?: number; @@ -1715,10 +1420,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; @@ -1740,8 +1445,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'. */ @@ -1772,14 +1475,8 @@ export interface AgentPool extends SubResource { gpuInstanceProfile?: GPUInstanceProfile; /** CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. */ creationData?: CreationData; - /** AKS will associate the specified agent pool with the Capacity Reservation Group. */ - 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; } /** Managed cluster. */ @@ -1800,17 +1497,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; @@ -1849,24 +1544,18 @@ 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. */ - 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. */ aadProfile?: ManagedClusterAADProfile; /** The auto upgrade configuration. */ autoUpgradeProfile?: ManagedClusterAutoUpgradeProfile; - /** Settings for upgrading a cluster. */ - upgradeSettings?: ClusterUpgradeSettings; /** Parameters to be applied to the cluster-autoscaler when enabled */ autoScalerProfile?: ManagedClusterPropertiesAutoScalerProfile; /** The access profile for managed cluster API server. */ @@ -1885,18 +1574,12 @@ export interface ManagedCluster extends TrackedResource { securityProfile?: ManagedClusterSecurityProfile; /** Storage profile for the managed cluster. */ storageProfile?: ManagedClusterStorageProfile; - /** Ingress profile for the managed cluster. */ - ingressProfile?: ManagedClusterIngressProfile; /** Allow or deny public network access for AKS */ 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 guardrails profile holds all the guardrails information for a given cluster */ - guardrailsProfile?: GuardrailsProfile; - /** Service mesh profile for a managed cluster. */ - serviceMeshProfile?: ServiceMeshProfile; } /** Managed cluster Access Profile. */ @@ -1927,7 +1610,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; @@ -1943,19 +1626,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; -} - /** Defines headers for ManagedClusters_delete operation. */ export interface ManagedClustersDeleteHeaders { /** URL to query for status of the operation. */ @@ -1974,23 +1644,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; } @@ -2166,9 +1835,7 @@ export enum KnownWorkloadRuntime { /** Nodes will use Kubelet to run standard OCI container workloads. */ 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" + WasmWasi = "WasmWasi" } /** @@ -2177,8 +1844,7 @@ 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; @@ -2204,8 +1870,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. */ @@ -2222,7 +1886,6 @@ 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. \ @@ -2347,24 +2010,6 @@ export enum KnownGPUInstanceProfile { */ export type GPUInstanceProfile = string; -/** Known values of {@link Protocol} that the service accepts. */ -export enum KnownProtocol { - /** TCP protocol. */ - TCP = "TCP", - /** UDP protocol. */ - UDP = "UDP" -} - -/** - * Defines values for Protocol. \ - * {@link KnownProtocol} can be used interchangeably with Protocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **TCP**: TCP protocol. \ - * **UDP**: UDP protocol. - */ -export type Protocol = string; - /** Known values of {@link LicenseType} that the service accepts. */ export enum KnownLicenseType { /** No additional licensing is applied. */ @@ -2413,31 +2058,13 @@ export enum KnownManagedClusterPodIdentityProvisioningState { */ export type ManagedClusterPodIdentityProvisioningState = string; -/** Known values of {@link RestrictionLevel} that the service accepts. */ -export enum KnownRestrictionLevel { - /** All RBAC permissions are allowed on the managed node resource group */ - Unrestricted = "Unrestricted", - /** Only *\/read RBAC permissions allowed on the managed node resource group */ - ReadOnly = "ReadOnly" -} - -/** - * Defines values for RestrictionLevel. \ - * {@link KnownRestrictionLevel} can be used interchangeably with RestrictionLevel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unrestricted**: All RBAC permissions are allowed on the managed node resource group \ - * **ReadOnly**: Only *\/read RBAC permissions allowed on the managed node resource group - */ -export type RestrictionLevel = string; - /** Known values of {@link NetworkPlugin} that the service accepts. */ export enum KnownNetworkPlugin { /** 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. */ 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" } @@ -2448,13 +2075,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" } @@ -2463,7 +2090,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; @@ -2566,24 +2193,6 @@ export enum KnownLoadBalancerSku { */ export type LoadBalancerSku = string; -/** Known values of {@link BackendPoolType} that the service accepts. */ -export enum KnownBackendPoolType { - /** The type of the managed inbound Load Balancer BackendPool. https:\//cloud-provider-azure.sigs.k8s.io\/topics\/loadbalancer\/#configure-load-balancer-backend. */ - NodeIPConfiguration = "NodeIPConfiguration", - /** The type of the managed inbound Load Balancer BackendPool. https:\//cloud-provider-azure.sigs.k8s.io\/topics\/loadbalancer\/#configure-load-balancer-backend. */ - NodeIP = "NodeIP" -} - -/** - * Defines values for BackendPoolType. \ - * {@link KnownBackendPoolType} can be used interchangeably with BackendPoolType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NodeIPConfiguration**: The type of the managed inbound Load Balancer BackendPool. https:\/\/cloud-provider-azure.sigs.k8s.io\/topics\/loadbalancer\/#configure-load-balancer-backend. \ - * **NodeIP**: The type of the managed inbound Load Balancer BackendPool. https:\/\/cloud-provider-azure.sigs.k8s.io\/topics\/loadbalancer\/#configure-load-balancer-backend. - */ -export type BackendPoolType = string; - /** Known values of {@link IpFamily} that the service accepts. */ export enum KnownIpFamily { /** IPv4 */ @@ -2602,42 +2211,6 @@ export enum KnownIpFamily { */ export type IpFamily = 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 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. */ @@ -2669,10 +2242,8 @@ 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 will update the nodes VHD with patches from the image maintainer labelled "security only" on a regular basis. Where possible, patches will also be applied without reimaging to existing nodes. Some patches, such as kernel patches, cannot be applied to existing nodes without disruption. For such patches, the VHD will be updated, and machines will be rolling reimaged to that VHD following maintenance windows and surge settings. This option incurs the extra cost of hosting the VHDs in your node resource group. */ - 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" } @@ -2683,27 +2254,11 @@ 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 will update the nodes VHD with patches from the image maintainer labelled "security only" on a regular basis. Where possible, patches will also be applied without reimaging to existing nodes. Some patches, such as kernel patches, cannot be applied to existing nodes without disruption. For such patches, the VHD will be updated, and machines will be rolling reimaged to that VHD following maintenance windows and surge settings. This option incurs the extra cost of hosting the VHDs in your node resource group. \ + * **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. */ export type NodeOSUpgradeChannel = string; -/** Known values of {@link ControlPlaneUpgradeOverride} that the service accepts. */ -export enum KnownControlPlaneUpgradeOverride { - /** Upgrade the cluster control plane version without checking for recent Kubernetes deprecations usage. */ - IgnoreKubernetesDeprecations = "IgnoreKubernetesDeprecations" -} - -/** - * Defines values for ControlPlaneUpgradeOverride. \ - * {@link KnownControlPlaneUpgradeOverride} can be used interchangeably with ControlPlaneUpgradeOverride, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **IgnoreKubernetesDeprecations**: Upgrade the cluster control plane version without checking for recent Kubernetes deprecations usage. - */ -export type ControlPlaneUpgradeOverride = string; - /** Known values of {@link Expander} that the service accepts. */ export enum KnownExpander { /** Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up. This is useful when you have different classes of nodes, for example, high CPU or high memory nodes, and only want to expand those when there are pending pods that need a lot of those resources. */ @@ -2748,12 +2303,10 @@ export type KeyVaultNetworkAccessTypes = 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", - /** Inbound\/Outbound traffic is managed by Microsoft.Network\/NetworkSecurityPerimeters. */ - SecuredByPerimeter = "SecuredByPerimeter" + /** Disabled */ + Disabled = "Disabled" } /** @@ -2761,111 +2314,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 ControlledValues} that the service accepts. */ -export enum KnownControlledValues { - /** Autoscaler will control resource requests and limits. */ - RequestsAndLimits = "RequestsAndLimits", - /** Autoscaler will control resource requests only. */ - RequestsOnly = "RequestsOnly" -} - -/** - * Defines values for ControlledValues. \ - * {@link KnownControlledValues} can be used interchangeably with ControlledValues, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RequestsAndLimits**: Autoscaler will control resource requests and limits. \ - * **RequestsOnly**: Autoscaler will control resource requests only. - */ -export type ControlledValues = string; - -/** Known values of {@link UpdateMode} that the service accepts. */ -export enum KnownUpdateMode { - /** Autoscaler never changes pod resources but provides recommendations. */ - Off = "Off", - /** Autoscaler only assigns resources on pod creation and doesn't change them during the lifetime of the pod. */ - Initial = "Initial", - /** Autoscaler assigns resources on pod creation and updates pods that need further scaling during their lifetime by deleting and recreating. */ - Recreate = "Recreate", - /** Autoscaler chooses the update mode. Autoscaler currently does the same as Recreate. In the future, it may take advantage of restart-free mechanisms once they are available. */ - Auto = "Auto" -} - -/** - * Defines values for UpdateMode. \ - * {@link KnownUpdateMode} can be used interchangeably with UpdateMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Off**: Autoscaler never changes pod resources but provides recommendations. \ - * **Initial**: Autoscaler only assigns resources on pod creation and doesn't change them during the lifetime of the pod. \ - * **Recreate**: Autoscaler assigns resources on pod creation and updates pods that need further scaling during their lifetime by deleting and recreating. \ - * **Auto**: Autoscaler chooses the update mode. Autoscaler currently does the same as Recreate. In the future, it may take advantage of restart-free mechanisms once they are available. - */ -export type UpdateMode = 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. */ - Istio = "Istio", - /** Mesh is disabled. */ - Disabled = "Disabled" -} - -/** - * Defines values for ServiceMeshMode. \ - * {@link KnownServiceMeshMode} can be used interchangeably with ServiceMeshMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Istio**: Istio deployed as an AKS addon. \ - * **Disabled**: Mesh is disabled. - */ -export type ServiceMeshMode = string; - -/** Known values of {@link IstioIngressGatewayMode} that the service accepts. */ -export enum KnownIstioIngressGatewayMode { - /** The ingress gateway is assigned a public IP address and is publicly accessible. */ - External = "External", - /** The ingress gateway is assigned an internal IP address and cannot is accessed publicly. */ - Internal = "Internal" -} - -/** - * Defines values for IstioIngressGatewayMode. \ - * {@link KnownIstioIngressGatewayMode} can be used interchangeably with IstioIngressGatewayMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **External**: The ingress gateway is assigned a public IP address and is publicly accessible. \ - * **Internal**: The ingress gateway is assigned an internal IP address and cannot is accessed publicly. - */ -export type IstioIngressGatewayMode = string; - /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -2943,15 +2396,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" } @@ -2960,11 +2413,11 @@ 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; @@ -3022,9 +2475,7 @@ export type ConnectionStatus = string; /** Known values of {@link SnapshotType} that the service accepts. */ 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" + NodePool = "NodePool" } /** @@ -3032,37 +2483,9 @@ 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; - -/** Known values of {@link TrustedAccessRoleBindingProvisioningState} that the service accepts. */ -export enum KnownTrustedAccessRoleBindingProvisioningState { - /** Canceled */ - Canceled = "Canceled", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed", - /** Succeeded */ - Succeeded = "Succeeded", - /** Updating */ - Updating = "Updating" -} - -/** - * 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; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; @@ -3184,8 +2607,6 @@ export type ManagedClustersUpdateTagsResponse = ManagedCluster; /** Optional parameters. */ export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { - /** 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. */ @@ -3214,7 +2635,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; @@ -3222,11 +2643,11 @@ 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; @@ -3234,8 +2655,8 @@ 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 @@ -3393,8 +2814,6 @@ export type AgentPoolsCreateOrUpdateResponse = AgentPool; /** Optional parameters. */ export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOptions { - /** 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. */ @@ -3531,105 +2950,6 @@ export interface SnapshotsListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ 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 {} - -/** Contains response data for the list operation. */ -export type TrustedAccessRoleBindingsListResponse = TrustedAccessRoleBindingListResult; - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type TrustedAccessRoleBindingsGetResponse = TrustedAccessRoleBinding; - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type TrustedAccessRoleBindingsCreateOrUpdateResponse = TrustedAccessRoleBinding; - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type TrustedAccessRoleBindingsListNextResponse = TrustedAccessRoleBindingListResult; - /** Optional parameters. */ export interface ContainerServiceClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index c6e27dbe23fd..d1d4a6210704 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -396,6 +396,13 @@ export const ManagedClusterIdentity: coreClient.CompositeMapper = { allowedValues: ["SystemAssigned", "UserAssigned", "None"] } }, + delegatedResources: { + serializedName: "delegatedResources", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DelegatedResource" } } + } + }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { @@ -412,6 +419,39 @@ export const ManagedClusterIdentity: coreClient.CompositeMapper = { } }; +export const DelegatedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DelegatedResource", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "Uuid" + } + }, + referralResource: { + serializedName: "referralResource", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const ManagedServiceIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { type: { name: "Composite", @@ -450,21 +490,6 @@ export const PowerState: coreClient.CompositeMapper = { } }; -export const CreationData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CreationData", - modelProperties: { - sourceResourceId: { - serializedName: "sourceResourceId", - type: { - name: "String" - } - } - } - } -}; - export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -510,12 +535,6 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe name: "String" } }, - messageOfTheDay: { - serializedName: "messageOfTheDay", - type: { - name: "String" - } - }, vnetSubnetID: { serializedName: "vnetSubnetID", type: { @@ -641,12 +660,6 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe name: "Boolean" } }, - enableCustomCATrust: { - serializedName: "enableCustomCATrust", - type: { - name: "Boolean" - } - }, nodePublicIPPrefixID: { serializedName: "nodePublicIPPrefixID", type: { @@ -750,31 +763,11 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe className: "CreationData" } }, - capacityReservationGroupID: { - serializedName: "capacityReservationGroupID", - type: { - name: "String" - } - }, hostGroupID: { serializedName: "hostGroupID", type: { name: "String" } - }, - windowsProfile: { - serializedName: "windowsProfile", - type: { - name: "Composite", - className: "AgentPoolWindowsProfile" - } - }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "AgentPoolNetworkProfile" - } } } } @@ -790,6 +783,16 @@ export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { type: { name: "String" } + }, + drainTimeoutInMinutes: { + constraints: { + InclusiveMaximum: 1440, + InclusiveMinimum: 1 + }, + serializedName: "drainTimeoutInMinutes", + type: { + name: "Number" + } } } } @@ -1089,113 +1092,13 @@ export const SysctlConfig: coreClient.CompositeMapper = { } }; -export const AgentPoolWindowsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolWindowsProfile", - modelProperties: { - disableOutboundNat: { - serializedName: "disableOutboundNat", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AgentPoolNetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolNetworkProfile", - modelProperties: { - nodePublicIPTags: { - serializedName: "nodePublicIPTags", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPTag" - } - } - } - }, - allowedHostPorts: { - serializedName: "allowedHostPorts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PortRange" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const IPTag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IPTag", - modelProperties: { - ipTagType: { - serializedName: "ipTagType", - type: { - name: "String" - } - }, - tag: { - serializedName: "tag", - type: { - name: "String" - } - } - } - } -}; - -export const PortRange: coreClient.CompositeMapper = { +export const CreationData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PortRange", + className: "CreationData", modelProperties: { - portStart: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "portStart", - type: { - name: "Number" - } - }, - portEnd: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "portEnd", - type: { - name: "Number" - } - }, - protocol: { - serializedName: "protocol", + sourceResourceId: { + serializedName: "sourceResourceId", type: { name: "String" } @@ -1634,21 +1537,6 @@ export const ManagedClusterOidcIssuerProfile: coreClient.CompositeMapper = { } }; -export const ManagedClusterNodeResourceGroupProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterNodeResourceGroupProfile", - modelProperties: { - restrictionLevel: { - serializedName: "restrictionLevel", - type: { - name: "String" - } - } - } - } -}; - export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1780,20 +1668,6 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { } } } - }, - kubeProxyConfig: { - serializedName: "kubeProxyConfig", - type: { - name: "Composite", - className: "ContainerServiceNetworkProfileKubeProxyConfig" - } - }, - monitoring: { - serializedName: "monitoring", - type: { - name: "Composite", - className: "NetworkMonitoring" - } } } } @@ -1864,13 +1738,6 @@ export const ManagedClusterLoadBalancerProfile: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - backendPoolType: { - defaultValue: "NodeIPConfiguration", - serializedName: "backendPoolType", - type: { - name: "String" - } } } } @@ -2023,82 +1890,6 @@ export const ManagedClusterManagedOutboundIPProfile: coreClient.CompositeMapper } }; -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 NetworkMonitoring: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkMonitoring", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - export const ManagedClusterAADProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2176,61 +1967,19 @@ export const ManagedClusterAutoUpgradeProfile: coreClient.CompositeMapper = { } }; -export const ClusterUpgradeSettings: coreClient.CompositeMapper = { +export const ManagedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpgradeSettings", + className: "ManagedClusterPropertiesAutoScalerProfile", modelProperties: { - overrideSettings: { - serializedName: "overrideSettings", + balanceSimilarNodeGroups: { + serializedName: "balance-similar-node-groups", type: { - name: "Composite", - className: "UpgradeOverrideSettings" + name: "String" } - } - } - } -}; - -export const UpgradeOverrideSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpgradeOverrideSettings", - modelProperties: { - controlPlaneOverrides: { - serializedName: "controlPlaneOverrides", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - until: { - serializedName: "until", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ManagedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterPropertiesAutoScalerProfile", - modelProperties: { - balanceSimilarNodeGroups: { - serializedName: "balance-similar-node-groups", - type: { - name: "String" - } - }, - expander: { - serializedName: "expander", + }, + expander: { + serializedName: "expander", type: { name: "String" } @@ -2368,18 +2117,6 @@ export const ManagedClusterAPIServerAccessProfile: coreClient.CompositeMapper = type: { name: "Boolean" } - }, - enableVnetIntegration: { - serializedName: "enableVnetIntegration", - type: { - name: "Boolean" - } - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String" - } } } } @@ -2464,18 +2201,6 @@ export const ManagedClusterHttpProxyConfig: coreClient.CompositeMapper = { } } }, - effectiveNoProxy: { - serializedName: "effectiveNoProxy", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, trustedCa: { serializedName: "trustedCa", type: { @@ -2518,27 +2243,6 @@ export const ManagedClusterSecurityProfile: coreClient.CompositeMapper = { name: "Composite", className: "ManagedClusterSecurityProfileImageCleaner" } - }, - nodeRestriction: { - serializedName: "nodeRestriction", - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileNodeRestriction" - } - }, - customCATrustCertificates: { - constraints: { - MaxItems: 10 - }, - serializedName: "customCATrustCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "ByteArray" - } - } - } } } } @@ -2651,21 +2355,6 @@ export const ManagedClusterSecurityProfileImageCleaner: coreClient.CompositeMapp } }; -export const ManagedClusterSecurityProfileNodeRestriction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileNodeRestriction", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - export const ManagedClusterStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2713,12 +2402,6 @@ export const ManagedClusterStorageProfileDiskCSIDriver: coreClient.CompositeMapp type: { name: "Boolean" } - }, - version: { - serializedName: "version", - type: { - name: "String" - } } } } @@ -2769,50 +2452,6 @@ export const ManagedClusterStorageProfileBlobCSIDriver: coreClient.CompositeMapp } }; -export const ManagedClusterIngressProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterIngressProfile", - modelProperties: { - webAppRouting: { - serializedName: "webAppRouting", - type: { - name: "Composite", - className: "ManagedClusterIngressProfileWebAppRouting" - } - } - } - } -}; - -export const ManagedClusterIngressProfileWebAppRouting: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterIngressProfileWebAppRouting", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - dnsZoneResourceId: { - serializedName: "dnsZoneResourceId", - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "UserAssignedIdentity" - } - } - } - } -}; - export const ManagedClusterWorkloadAutoScalerProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2865,22 +2504,6 @@ export const ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler: coreC type: { name: "Boolean" } - }, - controlledValues: { - defaultValue: "RequestsAndLimits", - serializedName: "controlledValues", - required: true, - type: { - name: "String" - } - }, - updateMode: { - defaultValue: "Off", - serializedName: "updateMode", - required: true, - type: { - name: "String" - } } } } @@ -2946,135 +2569,6 @@ export const ManagedClusterAzureMonitorProfileKubeStateMetrics: coreClient.Compo } }; -export const GuardrailsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GuardrailsProfile", - modelProperties: { - systemExcludedNamespaces: { - serializedName: "systemExcludedNamespaces", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - version: { - serializedName: "version", - required: true, - type: { - name: "String" - } - }, - level: { - serializedName: "level", - required: true, - type: { - name: "String" - } - }, - excludedNamespaces: { - serializedName: "excludedNamespaces", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ServiceMeshProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceMeshProfile", - modelProperties: { - mode: { - serializedName: "mode", - required: true, - type: { - name: "String" - } - }, - istio: { - serializedName: "istio", - type: { - name: "Composite", - className: "IstioServiceMesh" - } - } - } - } -}; - -export const IstioServiceMesh: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IstioServiceMesh", - modelProperties: { - components: { - serializedName: "components", - type: { - name: "Composite", - className: "IstioComponents" - } - } - } - } -}; - -export const IstioComponents: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IstioComponents", - modelProperties: { - ingressGateways: { - serializedName: "ingressGateways", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IstioIngressGateway" - } - } - } - } - } - } -}; - -export const IstioIngressGateway: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IstioIngressGateway", - modelProperties: { - mode: { - serializedName: "mode", - required: true, - type: { - name: "String" - } - }, - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean" - } - } - } - } -}; - export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4218,26 +3712,18 @@ export const SnapshotListResult: coreClient.CompositeMapper = { } }; -export const ManagedClusterSnapshotListResult: coreClient.CompositeMapper = { +export const ManagedClusterAgentPoolProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterSnapshotListResult", + className: "ManagedClusterAgentPoolProfile", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedClusterSnapshot" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + ...ManagedClusterAgentPoolProfileProperties.type.modelProperties, + name: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]{0,11}$") + }, + serializedName: "name", + required: true, type: { name: "String" } @@ -4246,267 +3732,10 @@ export const ManagedClusterSnapshotListResult: coreClient.CompositeMapper = { } }; -export const ManagedClusterPropertiesForSnapshot: coreClient.CompositeMapper = { +export const ManagedClusterAddonProfileIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterPropertiesForSnapshot", - modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "ManagedClusterSKU" - } - }, - enableRbac: { - serializedName: "enableRbac", - type: { - name: "Boolean" - } - }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "NetworkProfileForSnapshot" - } - } - } - } -}; - -export const NetworkProfileForSnapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProfileForSnapshot", - modelProperties: { - networkPlugin: { - defaultValue: "kubenet", - serializedName: "networkPlugin", - type: { - name: "String" - } - }, - networkPluginMode: { - serializedName: "networkPluginMode", - type: { - name: "String" - } - }, - networkPolicy: { - serializedName: "networkPolicy", - type: { - name: "String" - } - }, - networkMode: { - serializedName: "networkMode", - type: { - name: "String" - } - }, - loadBalancerSku: { - serializedName: "loadBalancerSku", - type: { - name: "String" - } - } - } - } -}; - -export const TrustedAccessRoleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrustedAccessRole" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const TrustedAccessRole: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRole", - modelProperties: { - sourceResourceType: { - serializedName: "sourceResourceType", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - rules: { - serializedName: "rules", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrustedAccessRoleRule" - } - } - } - } - } - } -}; - -export const TrustedAccessRoleRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleRule", - modelProperties: { - verbs: { - serializedName: "verbs", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiGroups: { - serializedName: "apiGroups", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - resources: { - serializedName: "resources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - resourceNames: { - serializedName: "resourceNames", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - nonResourceURLs: { - serializedName: "nonResourceURLs", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleBindingListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrustedAccessRoleBinding" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterAgentPoolProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAgentPoolProfile", - modelProperties: { - ...ManagedClusterAgentPoolProfileProperties.type.modelProperties, - name: { - constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]{0,11}$") - }, - serializedName: "name", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterAddonProfileIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAddonProfileIdentity", + className: "ManagedClusterAddonProfileIdentity", modelProperties: { ...UserAssignedIdentity.type.modelProperties } @@ -4537,42 +3766,6 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; -export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleBinding", - modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - sourceResourceId: { - serializedName: "properties.sourceResourceId", - required: true, - type: { - name: "String" - } - }, - roles: { - serializedName: "properties.roles", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const MaintenanceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4667,12 +3860,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "String" } }, - messageOfTheDay: { - serializedName: "properties.messageOfTheDay", - type: { - name: "String" - } - }, vnetSubnetID: { serializedName: "properties.vnetSubnetID", type: { @@ -4798,12 +3985,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "Boolean" } }, - enableCustomCATrust: { - serializedName: "properties.enableCustomCATrust", - type: { - name: "Boolean" - } - }, nodePublicIPPrefixID: { serializedName: "properties.nodePublicIPPrefixID", type: { @@ -4907,31 +4088,11 @@ export const AgentPool: coreClient.CompositeMapper = { className: "CreationData" } }, - capacityReservationGroupID: { - serializedName: "properties.capacityReservationGroupID", - type: { - name: "String" - } - }, hostGroupID: { serializedName: "properties.hostGroupID", type: { name: "String" } - }, - windowsProfile: { - serializedName: "properties.windowsProfile", - type: { - name: "Composite", - className: "AgentPoolWindowsProfile" - } - }, - networkProfile: { - serializedName: "properties.networkProfile", - type: { - name: "Composite", - className: "AgentPoolNetworkProfile" - } } } } @@ -4978,13 +4139,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "PowerState" } }, - creationData: { - serializedName: "properties.creationData", - type: { - name: "Composite", - className: "CreationData" - } - }, maxAgentPools: { serializedName: "properties.maxAgentPools", readOnly: true, @@ -5100,13 +4254,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { name: "String" } }, - nodeResourceGroupProfile: { - serializedName: "properties.nodeResourceGroupProfile", - type: { - name: "Composite", - className: "ManagedClusterNodeResourceGroupProfile" - } - }, enableRbac: { serializedName: "properties.enableRBAC", type: { @@ -5125,12 +4272,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { name: "Boolean" } }, - enableNamespaceResources: { - serializedName: "properties.enableNamespaceResources", - type: { - name: "Boolean" - } - }, networkProfile: { serializedName: "properties.networkProfile", type: { @@ -5152,13 +4293,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterAutoUpgradeProfile" } }, - upgradeSettings: { - serializedName: "properties.upgradeSettings", - type: { - name: "Composite", - className: "ClusterUpgradeSettings" - } - }, autoScalerProfile: { serializedName: "properties.autoScalerProfile", type: { @@ -5227,13 +4361,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterStorageProfile" } }, - ingressProfile: { - serializedName: "properties.ingressProfile", - type: { - name: "Composite", - className: "ManagedClusterIngressProfile" - } - }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { @@ -5253,20 +4380,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { name: "Composite", className: "ManagedClusterAzureMonitorProfile" } - }, - guardrailsProfile: { - serializedName: "properties.guardrailsProfile", - type: { - name: "Composite", - className: "GuardrailsProfile" - } - }, - serviceMeshProfile: { - serializedName: "properties.serviceMeshProfile", - type: { - name: "Composite", - className: "ServiceMeshProfile" - } } } } @@ -5355,37 +4468,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 ManagedClustersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5431,37 +4513,37 @@ export const ManagedClustersResetAADProfileHeaders: coreClient.CompositeMapper = } }; -export const ManagedClustersAbortLatestOperationHeaders: coreClient.CompositeMapper = { +export const ManagedClustersRotateClusterCertificatesHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClustersAbortLatestOperationHeaders", + className: "ManagedClustersRotateClusterCertificatesHeaders", modelProperties: { location: { serializedName: "location", type: { name: "String" } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } } } } }; -export const ManagedClustersRotateClusterCertificatesHeaders: coreClient.CompositeMapper = { +export const ManagedClustersAbortLatestOperationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClustersRotateClusterCertificatesHeaders", + className: "ManagedClustersAbortLatestOperationHeaders", modelProperties: { location: { serializedName: "location", type: { name: "String" } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } } } } diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index 9876ccfb05e1..fbb1335d1704 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -21,9 +21,7 @@ import { AgentPool as AgentPoolMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, PrivateLinkResource as PrivateLinkResourceMapper, - Snapshot as SnapshotMapper, - ManagedClusterSnapshot as ManagedClusterSnapshotMapper, - TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper + Snapshot as SnapshotMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -53,7 +51,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-05-02-preview", + defaultValue: "2023-06-01", isConstant: true, serializedName: "api-version", type: { @@ -186,16 +184,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 @@ -307,29 +295,3 @@ export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: SnapshotMapper }; - -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedClusterSnapshotMapper -}; - -export const trustedAccessRoleBindingName: OperationURLParameter = { - parameterPath: "trustedAccessRoleBindingName", - mapper: { - constraints: { - Pattern: new RegExp("^([A-Za-z0-9-])+$"), - MaxLength: 24, - MinLength: 1 - }, - serializedName: "trustedAccessRoleBindingName", - required: true, - type: { - name: "String" - } - } -}; - -export const trustedAccessRoleBinding: OperationParameter = { - parameterPath: "trustedAccessRoleBinding", - mapper: TrustedAccessRoleBindingMapper -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts index eff92bc5c930..a2be6e4f909c 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts @@ -132,7 +132,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. @@ -208,7 +208,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. @@ -750,10 +750,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.ignorePodDisruptionBudget - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerservice/arm-containerservice/src/operations/index.ts b/sdk/containerservice/arm-containerservice/src/operations/index.ts index 9266846c2a40..6d786ed8c56d 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/index.ts @@ -14,6 +14,3 @@ export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./resolvePrivateLinkServiceId"; export * from "./snapshots"; -export * from "./managedClusterSnapshots"; -export * from "./trustedAccessRoles"; -export * from "./trustedAccessRoleBindings"; 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 316748067f5d..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts +++ /dev/null @@ -1,474 +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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ManagedClusterSnapshots } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; -import { - ManagedClusterSnapshot, - ManagedClusterSnapshotsListNextOptionalParams, - ManagedClusterSnapshotsListOptionalParams, - ManagedClusterSnapshotsListResponse, - ManagedClusterSnapshotsListByResourceGroupNextOptionalParams, - ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ManagedClusterSnapshotsListByResourceGroupResponse, - ManagedClusterSnapshotsGetOptionalParams, - ManagedClusterSnapshotsGetResponse, - ManagedClusterSnapshotsCreateOrUpdateOptionalParams, - ManagedClusterSnapshotsCreateOrUpdateResponse, - TagsObject, - ManagedClusterSnapshotsUpdateTagsOptionalParams, - ManagedClusterSnapshotsUpdateTagsResponse, - ManagedClusterSnapshotsDeleteOptionalParams, - ManagedClusterSnapshotsListNextResponse, - ManagedClusterSnapshotsListByResourceGroupNextResponse -} from "../models"; - -/// -/** 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); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let 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); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let 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.parameters9, - 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 9f19bbbfa7f1..c36e830011c9 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -58,10 +58,10 @@ import { ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, - ManagedClustersAbortLatestOperationOptionalParams, - ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, + ManagedClustersAbortLatestOperationOptionalParams, + ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, @@ -922,27 +922,26 @@ 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 ( @@ -981,11 +980,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, @@ -996,19 +995,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 @@ -1017,26 +1015,27 @@ 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 ( @@ -1075,11 +1074,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, @@ -1090,18 +1089,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( + options?: ManagedClustersAbortLatestOperationOptionalParams + ): Promise { + const poller = await this.beginAbortLatestOperation( resourceGroupName, resourceName, options @@ -1890,10 +1890,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.ignorePodDisruptionBudget - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1953,22 +1950,22 @@ const resetAADProfileOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const abortLatestOperationOperationSpec: coreClient.OperationSpec = { +const rotateClusterCertificatesOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort", + "/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 @@ -1984,22 +1981,22 @@ const abortLatestOperationOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const rotateClusterCertificatesOperationSpec: coreClient.OperationSpec = { +const abortLatestOperationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", + "/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 diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts deleted file mode 100644 index f6429c6526df..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts +++ /dev/null @@ -1,348 +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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { TrustedAccessRoleBindings } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; -import { - TrustedAccessRoleBinding, - TrustedAccessRoleBindingsListNextOptionalParams, - TrustedAccessRoleBindingsListOptionalParams, - TrustedAccessRoleBindingsListResponse, - TrustedAccessRoleBindingsGetOptionalParams, - TrustedAccessRoleBindingsGetResponse, - TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, - TrustedAccessRoleBindingsCreateOrUpdateResponse, - TrustedAccessRoleBindingsDeleteOptionalParams, - TrustedAccessRoleBindingsListNextResponse -} from "../models"; - -/// -/** Class containing TrustedAccessRoleBindings operations. */ -export class TrustedAccessRoleBindingsImpl - implements TrustedAccessRoleBindings { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class TrustedAccessRoleBindings class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * List trusted access role bindings. - * @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?: TrustedAccessRoleBindingsListOptionalParams - ): 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?: TrustedAccessRoleBindingsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: TrustedAccessRoleBindingsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, resourceName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - resourceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - resourceName, - options - )) { - yield* page; - } - } - - /** - * List trusted access role bindings. - * @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?: TrustedAccessRoleBindingsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - listOperationSpec - ); - } - - /** - * Get a trusted access role binding. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - trustedAccessRoleBindingName, - options - }, - getOperationSpec - ); - } - - /** - * Create or update a trusted access role binding - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param trustedAccessRoleBinding A trusted access role binding - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - trustedAccessRoleBinding: TrustedAccessRoleBinding, - options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - trustedAccessRoleBindingName, - trustedAccessRoleBinding, - options - }, - createOrUpdateOperationSpec - ); - } - - /** - * Delete a trusted access role binding. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - trustedAccessRoleBindingName, - options - }, - deleteOperationSpec - ); - } - - /** - * 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?: TrustedAccessRoleBindingsListNextOptionalParams - ): 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}/trustedAccessRoleBindings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleBindingListResult - }, - 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}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleBinding - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.trustedAccessRoleBindingName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleBinding - }, - 201: { - bodyMapper: Mappers.TrustedAccessRoleBinding - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.trustedAccessRoleBinding, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.trustedAccessRoleBindingName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.trustedAccessRoleBindingName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleBindingListResult - }, - 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/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts deleted file mode 100644 index 1290c01a6b2b..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts +++ /dev/null @@ -1,170 +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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { TrustedAccessRoles } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; -import { - TrustedAccessRole, - TrustedAccessRolesListNextOptionalParams, - TrustedAccessRolesListOptionalParams, - TrustedAccessRolesListResponse, - TrustedAccessRolesListNextResponse -} from "../models"; - -/// -/** Class containing TrustedAccessRoles operations. */ -export class TrustedAccessRolesImpl implements TrustedAccessRoles { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class TrustedAccessRoles class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * List supported trusted access roles. - * @param location The name of Azure region. - * @param options The options parameters. - */ - public list( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(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.listPagingPage(location, options, settings); - } - }; - } - - private async *listPagingPage( - location: string, - options?: TrustedAccessRolesListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: TrustedAccessRolesListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(location, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(location, options)) { - yield* page; - } - } - - /** - * List supported trusted access roles. - * @param location The name of Azure region. - * @param options The options parameters. - */ - private _list( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param location The name of Azure region. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - location: string, - nextLink: string, - options?: TrustedAccessRolesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleListResult - }, - 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/operationsInterfaces/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts index 334d9fc95009..23803fbd6c74 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts @@ -43,7 +43,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. @@ -63,7 +63,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. diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts index 9266846c2a40..6d786ed8c56d 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts @@ -14,6 +14,3 @@ export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./resolvePrivateLinkServiceId"; export * from "./snapshots"; -export * from "./managedClusterSnapshots"; -export * from "./trustedAccessRoles"; -export * from "./trustedAccessRoleBindings"; 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 bec60709a6e4..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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ManagedClusterSnapshot, - ManagedClusterSnapshotsListOptionalParams, - ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ManagedClusterSnapshotsGetOptionalParams, - ManagedClusterSnapshotsGetResponse, - ManagedClusterSnapshotsCreateOrUpdateOptionalParams, - ManagedClusterSnapshotsCreateOrUpdateResponse, - TagsObject, - ManagedClusterSnapshotsUpdateTagsOptionalParams, - ManagedClusterSnapshotsUpdateTagsResponse, - ManagedClusterSnapshotsDeleteOptionalParams -} from "../models"; - -/// -/** 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 d336c303c4f6..f051e5544730 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts @@ -41,10 +41,10 @@ import { ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, - ManagedClustersAbortLatestOperationOptionalParams, - ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, + ManagedClustersAbortLatestOperationOptionalParams, + ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, @@ -324,65 +324,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. diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts deleted file mode 100644 index a1849299cbd5..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts +++ /dev/null @@ -1,75 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - TrustedAccessRoleBinding, - TrustedAccessRoleBindingsListOptionalParams, - TrustedAccessRoleBindingsGetOptionalParams, - TrustedAccessRoleBindingsGetResponse, - TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, - TrustedAccessRoleBindingsCreateOrUpdateResponse, - TrustedAccessRoleBindingsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a TrustedAccessRoleBindings. */ -export interface TrustedAccessRoleBindings { - /** - * List trusted access role bindings. - * @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?: TrustedAccessRoleBindingsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get a trusted access role binding. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsGetOptionalParams - ): Promise; - /** - * Create or update a trusted access role binding - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param trustedAccessRoleBinding A trusted access role binding - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - trustedAccessRoleBinding: TrustedAccessRoleBinding, - options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete a trusted access role binding. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts deleted file mode 100644 index 48bad47db1b5..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts +++ /dev/null @@ -1,27 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - TrustedAccessRole, - TrustedAccessRolesListOptionalParams -} from "../models"; - -/// -/** Interface representing a TrustedAccessRoles. */ -export interface TrustedAccessRoles { - /** - * List supported trusted access roles. - * @param location The name of Azure region. - * @param options The options parameters. - */ - list( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/containerservice/arm-containerservice/test/sampleTest.ts b/sdk/containerservice/arm-containerservice/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * 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, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +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 function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/containerservice/arm-containerservice/tsconfig.json b/sdk/containerservice/arm-containerservice/tsconfig.json index 5bad5556bbfd..3e6ae96443f3 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-containerservice": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"