From 737c8d0af97041adb22da072bef47f394287e820 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Oct 2023 07:14:25 +0000 Subject: [PATCH] CodeGen from PR 26351 in Azure/azure-rest-api-specs Merge 2f78bb098c0023af8003ed520ebb8a8d8ec0ed44 into 567409e726635c1d4915ff9d752aa93a75fa9cb5 --- common/config/rush/pnpm-lock.yaml | 57 +- .../arm-containerservice/CHANGELOG.md | 312 +--- .../arm-containerservice/README.md | 2 +- .../arm-containerservice/_meta.json | 6 +- .../arm-containerservice/package.json | 27 +- .../review/arm-containerservice.api.md | 448 +----- .../arm-containerservice/rollup.config.js | 122 ++ .../src/containerServiceClient.ts | 26 +- .../arm-containerservice/src/models/index.ts | 978 ++----------- .../src/models/mappers.ts | 1284 ++--------------- .../src/models/parameters.ts | 52 +- .../src/operations/agentPools.ts | 9 +- .../src/operations/index.ts | 4 +- .../src/operations/machines.ts | 264 ---- .../src/operations/managedClusterSnapshots.ts | 474 ------ .../src/operations/managedClusters.ts | 301 +--- .../src/operations/trustedAccessRoles.ts | 6 +- .../src/operationsInterfaces/agentPools.ts | 4 +- .../src/operationsInterfaces/index.ts | 4 +- .../src/operationsInterfaces/machines.ts | 48 - .../managedClusterSnapshots.ts | 91 -- .../operationsInterfaces/managedClusters.ts | 84 +- .../trustedAccessRoles.ts | 2 +- .../arm-containerservice/test/sampleTest.ts | 43 + .../arm-containerservice/tsconfig.json | 10 +- 25 files changed, 627 insertions(+), 4031 deletions(-) create mode 100644 sdk/containerservice/arm-containerservice/rollup.config.js delete mode 100644 sdk/containerservice/arm-containerservice/src/operations/machines.ts delete mode 100644 sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts delete mode 100644 sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts delete mode 100644 sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts create mode 100644 sdk/containerservice/arm-containerservice/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 341432f49346..193e5cc821ec 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2900,7 +2900,7 @@ packages: /@types/is-buffer@2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 16.18.58 + '@types/node': 18.18.6 dev: false /@types/istanbul-lib-coverage@2.0.5: @@ -2918,13 +2918,13 @@ packages: /@types/jsonwebtoken@9.0.3: resolution: {integrity: sha512-b0jGiOgHtZ2jqdPgPnP6WLCXZk1T8p06A/vPGzUvxpFGgKMbjXJDjC5m52ErqBnIuWZFgGoIJyRdeG5AyreJjA==} dependencies: - '@types/node': 16.18.58 + '@types/node': 18.18.6 dev: false /@types/jws@3.2.6: resolution: {integrity: sha512-SVbs88FPvGVMj19JYVOV+NpWu3HO5LUjz0+z6ks/rdRbrWlxs6fBz6Qxb/PKalZaweJisPyfikeoPu8VlpljQQ==} dependencies: - '@types/node': 16.18.58 + '@types/node': 18.18.6 dev: false /@types/linkify-it@3.0.3: @@ -2975,7 +2975,7 @@ packages: /@types/mysql@2.15.22: resolution: {integrity: sha512-wK1pzsJVVAjYCSZWQoWHziQZbNggXFDUEIGf54g4ZM/ERuP86uGdWeKZWMYlqTPMZfHJJvLPyogXGvCOg87yLQ==} dependencies: - '@types/node': 16.18.58 + '@types/node': 18.18.6 dev: false /@types/node-fetch@2.6.6: @@ -3006,7 +3006,7 @@ packages: /@types/pg@8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 16.18.58 + '@types/node': 18.18.6 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -3085,7 +3085,7 @@ packages: /@types/stoppable@1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 16.18.58 + '@types/node': 18.18.6 dev: false /@types/through@0.0.31: @@ -8847,6 +8847,37 @@ packages: code-block-writer: 12.0.0 dev: false + /ts-node@10.9.1(@types/node@16.18.58)(typescript@5.0.4): + resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 16.18.58 + acorn: 8.10.0 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.0.4 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: false + /ts-node@10.9.1(@types/node@16.18.58)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true @@ -11357,22 +11388,30 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-qrAEdA7rP1MyqbEe+PBnvQmvsDGIVFHwjS1jeG783Yu51ZnVaXODNa+jCfTsvAiCiQma1fexVi56zr7MFF63uA==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-xyXm8zYmPybsqJAuVD5DTCSP62igbOJlXfV3cED8B3EOR1ntapteo5kHyTzKrghsLcB8gM1Re+4QHw07V1MiDg==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: '@microsoft/api-extractor': 7.38.0(@types/node@16.18.58) + '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) + '@rollup/plugin-json': 6.0.1(rollup@2.79.1) + '@rollup/plugin-multi-entry': 6.0.1(rollup@2.79.1) + '@rollup/plugin-node-resolve': 13.3.0(rollup@2.79.1) '@types/chai': 4.3.9 + '@types/mocha': 10.0.2 '@types/node': 16.18.58 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.2.0 rimraf: 5.0.5 - ts-node: 10.9.1(@types/node@16.18.58)(typescript@5.2.2) + rollup: 2.79.1 + rollup-plugin-sourcemaps: 0.6.3(@types/node@16.18.58)(rollup@2.79.1) + ts-node: 10.9.1(@types/node@16.18.58)(typescript@5.0.4) tslib: 2.6.2 - typescript: 5.2.2 + typescript: 5.0.4 uglify-js: 3.17.4 transitivePeerDependencies: - '@swc/core' diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index dc641891f8ce..ffa713c2a216 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,79 +1,31 @@ # Release History -## 19.4.0-beta.2 (2023-10-10) +## 19.4.0 (2023-10-24) **Features** - - Added operation group Machines - - Added operation group ManagedClusterSnapshots - Added operation group TrustedAccessRoleBindings - Added operation group TrustedAccessRoles - - Added operation ManagedClusters.getGuardrailsVersions - Added operation ManagedClusters.getMeshRevisionProfile - Added operation ManagedClusters.getMeshUpgradeProfile - - Added operation ManagedClusters.listGuardrailsVersions - Added operation ManagedClusters.listMeshRevisionProfiles - Added operation ManagedClusters.listMeshUpgradeProfiles - - Added Interface AgentPoolNetworkProfile - - Added Interface AgentPoolSecurityProfile - - Added Interface AgentPoolWindowsProfile - Added Interface CompatibleVersions - - Added Interface ContainerServiceNetworkProfileKubeProxyConfig - - Added Interface ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig - Added Interface ErrorAdditionalInfo - Added Interface ErrorDetail - Added Interface ErrorResponse - - Added Interface GuardrailsAvailableVersion - - Added Interface GuardrailsAvailableVersionsList - - Added Interface GuardrailsAvailableVersionsProperties - - Added Interface GuardrailsProfile - - Added Interface IPTag - Added Interface IstioCertificateAuthority - Added Interface IstioComponents - Added Interface IstioEgressGateway - Added Interface IstioIngressGateway - Added Interface IstioPluginCertificateAuthority - Added Interface IstioServiceMesh - - Added Interface Machine - - Added Interface MachineIpAddress - - Added Interface MachineListResult - - Added Interface MachineNetworkProperties - - Added Interface MachineProperties - - Added Interface MachinesGetOptionalParams - - Added Interface MachinesListNextOptionalParams - - Added Interface MachinesListOptionalParams - - Added Interface ManagedClusterAzureMonitorProfileAppMonitoring - - Added Interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics - - Added Interface ManagedClusterAzureMonitorProfileContainerInsights - - Added Interface ManagedClusterAzureMonitorProfileLogs - - Added Interface ManagedClusterAzureMonitorProfileWindowsHostLogs - - Added Interface ManagedClusterCostAnalysis - - Added Interface ManagedClusterIngressProfile - - Added Interface ManagedClusterIngressProfileWebAppRouting - - Added Interface ManagedClusterMetricsProfile - - Added Interface ManagedClusterNodeResourceGroupProfile - - Added Interface ManagedClusterPropertiesForSnapshot - - Added Interface ManagedClusterSecurityProfileImageIntegrity - - Added Interface ManagedClusterSecurityProfileNodeRestriction - - Added Interface ManagedClustersGetGuardrailsVersionsOptionalParams - Added Interface ManagedClustersGetMeshRevisionProfileOptionalParams - Added Interface ManagedClustersGetMeshUpgradeProfileOptionalParams - - Added Interface ManagedClustersListGuardrailsVersionsNextOptionalParams - - Added Interface ManagedClustersListGuardrailsVersionsOptionalParams - Added Interface ManagedClustersListMeshRevisionProfilesNextOptionalParams - Added Interface ManagedClustersListMeshRevisionProfilesOptionalParams - Added Interface ManagedClustersListMeshUpgradeProfilesNextOptionalParams - Added Interface ManagedClustersListMeshUpgradeProfilesOptionalParams - - 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 MeshRevision - Added Interface MeshRevisionProfile - Added Interface MeshRevisionProfileList @@ -81,9 +33,6 @@ - Added Interface MeshUpgradeProfile - Added Interface MeshUpgradeProfileList - Added Interface MeshUpgradeProfileProperties - - Added Interface NetworkMonitoring - - Added Interface NetworkProfileForSnapshot - - Added Interface PortRange - Added Interface ProxyResource - Added Interface ServiceMeshProfile - Added Interface TrustedAccessRole @@ -99,35 +48,13 @@ - Added Interface TrustedAccessRoleRule - Added Interface TrustedAccessRolesListNextOptionalParams - Added Interface TrustedAccessRolesListOptionalParams - - Added Type Alias AddonAutoscaling - - Added Type Alias AgentPoolSSHAccess - - Added Type Alias BackendPoolType - - Added Type Alias GuardrailsSupport - - Added Type Alias IpvsScheduler - Added Type Alias IstioIngressGatewayMode - - Added Type Alias Level - - Added Type Alias MachinesGetResponse - - Added Type Alias MachinesListNextResponse - - Added Type Alias MachinesListResponse - - Added Type Alias ManagedClustersGetGuardrailsVersionsResponse - Added Type Alias ManagedClustersGetMeshRevisionProfileResponse - Added Type Alias ManagedClustersGetMeshUpgradeProfileResponse - - Added Type Alias ManagedClustersListGuardrailsVersionsNextResponse - - Added Type Alias ManagedClustersListGuardrailsVersionsResponse - Added Type Alias ManagedClustersListMeshRevisionProfilesNextResponse - Added Type Alias ManagedClustersListMeshRevisionProfilesResponse - Added Type Alias ManagedClustersListMeshUpgradeProfilesNextResponse - Added Type Alias ManagedClustersListMeshUpgradeProfilesResponse - - 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 Protocol - - Added Type Alias RestrictionLevel - Added Type Alias ServiceMeshMode - Added Type Alias TrustedAccessRoleBindingProvisioningState - Added Type Alias TrustedAccessRoleBindingsCreateOrUpdateResponse @@ -137,248 +64,13 @@ - Added Type Alias TrustedAccessRoleBindingsListResponse - Added Type Alias TrustedAccessRolesListNextResponse - Added Type Alias TrustedAccessRolesListResponse - - 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 securityProfile - - 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 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 metricsProfile - - Interface ManagedCluster has a new optional parameter nodeResourceGroupProfile - Interface ManagedCluster has a new optional parameter resourceUID - Interface ManagedCluster has a new optional parameter serviceMeshProfile - - 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 securityProfile - - 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 ManagedClusterAzureMonitorProfile has a new optional parameter logs - - Interface ManagedClusterAzureMonitorProfileMetrics has a new optional parameter appMonitoringOpenTelemetryMetrics - - Interface ManagedClusterHttpProxyConfig has a new optional parameter effectiveNoProxy - - Interface ManagedClusterLoadBalancerProfile has a new optional parameter backendPoolType - - Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter daemonsetEvictionForEmptyNodes - - Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter daemonsetEvictionForOccupiedNodes - - Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter expanders - - Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter ignoreDaemonsetsUtilization - - Interface ManagedClustersDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget - - Interface ManagedClusterSecurityProfile has a new optional parameter customCATrustCertificates - - Interface ManagedClusterSecurityProfile has a new optional parameter imageIntegrity - - Interface ManagedClusterSecurityProfile has a new optional parameter nodeRestriction - - Interface ManagedClusterStorageProfileDiskCSIDriver has a new optional parameter version - - Interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler has a new optional parameter addonAutoscaling - - Added Enum KnownAddonAutoscaling - - Added Enum KnownAgentPoolSSHAccess - - Added Enum KnownBackendPoolType - - Added Enum KnownGuardrailsSupport - - Added Enum KnownIpvsScheduler - Added Enum KnownIstioIngressGatewayMode - - Added Enum KnownLevel - - Added Enum KnownMode - - Added Enum KnownProtocol - - Added Enum KnownRestrictionLevel - Added Enum KnownServiceMeshMode - Added Enum KnownTrustedAccessRoleBindingProvisioningState - - Enum KnownNetworkPolicy has a new value None - - Enum KnownNodeOSUpgradeChannel has a new value SecurityPatch - - 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.4.0-beta.1 (2023-09-01) - -**Features** - - - Added operation group Machines - - Added operation group ManagedClusterSnapshots - - Added operation group TrustedAccessRoleBindings - - Added operation group TrustedAccessRoles - - Added operation ManagedClusters.getGuardrailsVersions - - Added operation ManagedClusters.getMeshRevisionProfile - - Added operation ManagedClusters.getMeshUpgradeProfile - - Added operation ManagedClusters.listGuardrailsVersions - - Added operation ManagedClusters.listMeshRevisionProfiles - - Added operation ManagedClusters.listMeshUpgradeProfiles - - Added Interface AgentPoolNetworkProfile - - Added Interface AgentPoolSecurityProfile - - Added Interface AgentPoolWindowsProfile - - Added Interface CompatibleVersions - - Added Interface ContainerServiceNetworkProfileKubeProxyConfig - - Added Interface ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig - - Added Interface GuardrailsAvailableVersion - - Added Interface GuardrailsAvailableVersionsList - - Added Interface GuardrailsAvailableVersionsProperties - - Added Interface GuardrailsProfile - - Added Interface IPTag - - Added Interface IstioCertificateAuthority - - Added Interface IstioComponents - - Added Interface IstioEgressGateway - - Added Interface IstioIngressGateway - - Added Interface IstioPluginCertificateAuthority - - Added Interface IstioServiceMesh - - Added Interface Machine - - Added Interface MachineIpAddress - - Added Interface MachineListResult - - Added Interface MachineNetworkProperties - - Added Interface MachineProperties - - Added Interface MachinesGetOptionalParams - - Added Interface MachinesListNextOptionalParams - - Added Interface MachinesListOptionalParams - - Added Interface ManagedClusterAzureMonitorProfileAppMonitoring - - Added Interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics - - Added Interface ManagedClusterAzureMonitorProfileContainerInsights - - Added Interface ManagedClusterAzureMonitorProfileLogs - - Added Interface ManagedClusterAzureMonitorProfileWindowsHostLogs - - Added Interface ManagedClusterCostAnalysis - - Added Interface ManagedClusterIngressProfile - - Added Interface ManagedClusterIngressProfileWebAppRouting - - Added Interface ManagedClusterMetricsProfile - - Added Interface ManagedClusterNodeResourceGroupProfile - - Added Interface ManagedClusterPropertiesForSnapshot - - Added Interface ManagedClusterSecurityProfileImageIntegrity - - Added Interface ManagedClusterSecurityProfileNodeRestriction - - Added Interface ManagedClustersGetGuardrailsVersionsOptionalParams - - Added Interface ManagedClustersGetMeshRevisionProfileOptionalParams - - Added Interface ManagedClustersGetMeshUpgradeProfileOptionalParams - - Added Interface ManagedClustersListGuardrailsVersionsNextOptionalParams - - Added Interface ManagedClustersListGuardrailsVersionsOptionalParams - - Added Interface ManagedClustersListMeshRevisionProfilesNextOptionalParams - - Added Interface ManagedClustersListMeshRevisionProfilesOptionalParams - - Added Interface ManagedClustersListMeshUpgradeProfilesNextOptionalParams - - Added Interface ManagedClustersListMeshUpgradeProfilesOptionalParams - - 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 MeshRevision - - Added Interface MeshRevisionProfile - - Added Interface MeshRevisionProfileList - - Added Interface MeshRevisionProfileProperties - - Added Interface MeshUpgradeProfile - - Added Interface MeshUpgradeProfileList - - Added Interface MeshUpgradeProfileProperties - - Added Interface NetworkMonitoring - - Added Interface NetworkProfileForSnapshot - - Added Interface PortRange - - Added Interface ProxyResource - - 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 Type Alias AgentPoolSSHAccess - - Added Type Alias BackendPoolType - - Added Type Alias GuardrailsSupport - - Added Type Alias IpvsScheduler - - Added Type Alias IstioIngressGatewayMode - - Added Type Alias Level - - Added Type Alias MachinesGetResponse - - Added Type Alias MachinesListNextResponse - - Added Type Alias MachinesListResponse - - Added Type Alias ManagedClustersGetGuardrailsVersionsResponse - - Added Type Alias ManagedClustersGetMeshRevisionProfileResponse - - Added Type Alias ManagedClustersGetMeshUpgradeProfileResponse - - Added Type Alias ManagedClustersListGuardrailsVersionsNextResponse - - Added Type Alias ManagedClustersListGuardrailsVersionsResponse - - Added Type Alias ManagedClustersListMeshRevisionProfilesNextResponse - - Added Type Alias ManagedClustersListMeshRevisionProfilesResponse - - Added Type Alias ManagedClustersListMeshUpgradeProfilesNextResponse - - Added Type Alias ManagedClustersListMeshUpgradeProfilesResponse - - 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 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 - - 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 securityProfile - - 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 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 metricsProfile - - Interface ManagedCluster has a new optional parameter nodeResourceGroupProfile - - Interface ManagedCluster has a new optional parameter resourceUID - - Interface ManagedCluster has a new optional parameter serviceMeshProfile - - 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 securityProfile - - 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 ManagedClusterAzureMonitorProfile has a new optional parameter logs - - Interface ManagedClusterAzureMonitorProfileMetrics has a new optional parameter appMonitoringOpenTelemetryMetrics - - 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 imageIntegrity - - Interface ManagedClusterSecurityProfile has a new optional parameter nodeRestriction - - Interface ManagedClusterStorageProfileDiskCSIDriver has a new optional parameter version - - Added Enum KnownAgentPoolSSHAccess - - Added Enum KnownBackendPoolType - - Added Enum KnownGuardrailsSupport - - Added Enum KnownIpvsScheduler - - Added Enum KnownIstioIngressGatewayMode - - Added Enum KnownLevel - - Added Enum KnownMode - - Added Enum KnownProtocol - - Added Enum KnownRestrictionLevel - - Added Enum KnownServiceMeshMode - - Added Enum KnownTrustedAccessRoleBindingProvisioningState - - Enum KnownNodeOSUpgradeChannel has a new value SecurityPatch - - 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.3.0 (2023-08-21) **Features** @@ -619,4 +311,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). 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 dc913ef0ad5c..23163b119977 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "e1017d9ab49f41296177b4f4c9ac741fb7de044d", + "commit": "5de3e8898b0574c6e8a8db4fbb6fbe129328a8e0", "readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --use=@autorest/typescript@^6.0.11", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.9" + "use": "@autorest/typescript@^6.0.11" } \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index 513ec6923cd5..b90c7e973760 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.4.0-beta.2", + "version": "19.4.0", "engines": { "node": ">=16.0.0" }, @@ -29,8 +29,14 @@ "types": "./types/arm-containerservice.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", + "@rollup/plugin-commonjs": "^24.0.0", + "@rollup/plugin-json": "^6.0.0", + "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^2.1.2", - "typescript": "~5.2.0", + "rollup": "^2.66.1", + "rollup-plugin-sourcemaps": "^0.6.3", + "typescript": "~5.0.0", "uglify-js": "^3.4.9", "rimraf": "^5.0.0", "dotenv": "^16.0.0", @@ -38,6 +44,8 @@ "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", @@ -64,13 +72,14 @@ "src/**/*.ts", "README.md", "LICENSE", + "rollup.config.js", "tsconfig.json", "review/*", "CHANGELOG.md", "types/*" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api", + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "prepack": "npm run build", "pack": "npm pack 2>&1", @@ -105,13 +114,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 b5e5f9345766..5a4c240b416a 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -16,18 +16,13 @@ export interface AbsoluteMonthlySchedule { intervalMonths: number; } -// @public -export type AddonAutoscaling = string; - // @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; @@ -39,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; @@ -61,7 +54,6 @@ export interface AgentPool extends SubResource { scaleDownMode?: ScaleDownMode; scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; scaleSetPriority?: ScaleSetPriority; - securityProfile?: AgentPoolSecurityProfile; spotMaxPrice?: number; tags?: { [propertyName: string]: string; @@ -70,7 +62,6 @@ export interface AgentPool extends SubResource { upgradeSettings?: AgentPoolUpgradeSettings; vmSize?: string; vnetSubnetID?: string; - windowsProfile?: AgentPoolWindowsProfile; workloadRuntime?: WorkloadRuntime; } @@ -98,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>>; @@ -152,7 +136,6 @@ export interface AgentPoolsDeleteHeaders { // @public export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOptions { - ignorePodDisruptionBudget?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -160,11 +143,6 @@ export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOpti // @public export type AgentPoolsDeleteResponse = AgentPoolsDeleteHeaders; -// @public -export interface AgentPoolSecurityProfile { - sshAccess?: AgentPoolSSHAccess; -} - // @public export interface AgentPoolsGetAvailableAgentPoolVersionsOptionalParams extends coreClient.OperationOptions { } @@ -200,9 +178,6 @@ export interface AgentPoolsListOptionalParams extends coreClient.OperationOption // @public export type AgentPoolsListResponse = AgentPoolListResult; -// @public -export type AgentPoolSSHAccess = string; - // @public export interface AgentPoolsUpgradeNodeImageVersionHeaders { azureAsyncOperation?: string; @@ -240,11 +215,6 @@ export interface AgentPoolUpgradeSettings { maxSurge?: string; } -// @public -export interface AgentPoolWindowsProfile { - disableOutboundNat?: boolean; -} - // @public export interface AzureKeyVaultKms { enabled?: boolean; @@ -253,9 +223,6 @@ export interface AzureKeyVaultKms { keyVaultResourceId?: string; } -// @public -export type BackendPoolType = string; - // @public export interface CloudError { error?: CloudErrorBody; @@ -296,14 +263,10 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) - machines: Machines; - // (undocumented) maintenanceConfigurations: MaintenanceConfigurations; // (undocumented) managedClusters: ManagedClusters; // (undocumented) - managedClusterSnapshots: ManagedClusterSnapshots; - // (undocumented) operations: Operations; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -338,10 +301,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; @@ -355,21 +316,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[]; @@ -473,46 +419,9 @@ export function getContinuationToken(page: unknown): string | undefined; // @public export type GPUInstanceProfile = string; -// @public -export interface GuardrailsAvailableVersion extends Resource { - properties: GuardrailsAvailableVersionsProperties; -} - -// @public -export interface GuardrailsAvailableVersionsList { - readonly nextLink?: string; - value?: GuardrailsAvailableVersion[]; -} - -// @public -export interface GuardrailsAvailableVersionsProperties { - readonly isDefaultVersion?: boolean; - readonly support?: GuardrailsSupport; -} - -// @public -export interface GuardrailsProfile { - excludedNamespaces?: string[]; - level: Level; - readonly systemExcludedNamespaces?: string[]; - version?: string; -} - -// @public -export type GuardrailsSupport = string; - // @public export type IpFamily = string; -// @public -export interface IPTag { - ipTagType?: string; - tag?: string; -} - -// @public -export type IpvsScheduler = string; - // @public export interface IstioCertificateAuthority { plugin?: IstioPluginCertificateAuthority; @@ -560,36 +469,18 @@ export interface IstioServiceMesh { // @public export type KeyVaultNetworkAccessTypes = string; -// @public -export enum KnownAddonAutoscaling { - Disabled = "Disabled", - Enabled = "Enabled" -} - // @public export enum KnownAgentPoolMode { System = "System", User = "User" } -// @public -export enum KnownAgentPoolSSHAccess { - Disabled = "Disabled", - LocalUser = "LocalUser" -} - // @public export enum KnownAgentPoolType { AvailabilitySet = "AvailabilitySet", VirtualMachineScaleSets = "VirtualMachineScaleSets" } -// @public -export enum KnownBackendPoolType { - NodeIP = "NodeIP", - NodeIPConfiguration = "NodeIPConfiguration" -} - // @public export enum KnownCode { Running = "Running", @@ -640,24 +531,12 @@ export enum KnownGPUInstanceProfile { MIG7G = "MIG7g" } -// @public -export enum KnownGuardrailsSupport { - Preview = "Preview", - Stable = "Stable" -} - // @public export enum KnownIpFamily { IPv4 = "IPv4", IPv6 = "IPv6" } -// @public -export enum KnownIpvsScheduler { - LeastConnection = "LeastConnection", - RoundRobin = "RoundRobin" -} - // @public export enum KnownIstioIngressGatewayMode { External = "External", @@ -682,13 +561,6 @@ export enum KnownKubernetesSupportPlan { KubernetesOfficial = "KubernetesOfficial" } -// @public -export enum KnownLevel { - Enforcement = "Enforcement", - Off = "Off", - Warning = "Warning" -} - // @public export enum KnownLicenseType { None = "None", @@ -723,12 +595,6 @@ export enum KnownManagedClusterSKUTier { Standard = "Standard" } -// @public -export enum KnownMode { - Iptables = "IPTABLES", - Ipvs = "IPVS" -} - // @public export enum KnownNetworkDataplane { Azure = "azure", @@ -757,15 +623,13 @@ export enum KnownNetworkPluginMode { export enum KnownNetworkPolicy { Azure = "azure", Calico = "calico", - Cilium = "cilium", - None = "none" + Cilium = "cilium" } // @public export enum KnownNodeOSUpgradeChannel { NodeImage = "NodeImage", None = "None", - SecurityPatch = "SecurityPatch", Unmanaged = "Unmanaged" } @@ -779,7 +643,6 @@ export enum KnownOSDiskType { export enum KnownOssku { AzureLinux = "AzureLinux", CBLMariner = "CBLMariner", - Mariner = "Mariner", Ubuntu = "Ubuntu", Windows2019 = "Windows2019", Windows2022 = "Windows2022" @@ -808,23 +671,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 @@ -853,7 +703,6 @@ export enum KnownServiceMeshMode { // @public export enum KnownSnapshotType { - ManagedCluster = "ManagedCluster", NodePool = "NodePool" } @@ -897,7 +746,6 @@ export enum KnownWeekDay { // @public export enum KnownWorkloadRuntime { - KataMshvVmIsolation = "KataMshvVmIsolation", OCIContainer = "OCIContainer", WasmWasi = "WasmWasi" } @@ -949,9 +797,6 @@ export interface KubernetesVersionListResult { values?: KubernetesVersion[]; } -// @public -export type Level = string; - // @public export type LicenseType = string; @@ -966,61 +811,6 @@ export interface LinuxOSConfig { // @public export type LoadBalancerSku = string; -// @public -export interface Machine extends SubResource { - readonly properties?: MachineProperties; -} - -// @public -export interface MachineIpAddress { - readonly family?: IpFamily; - readonly ip?: string; -} - -// @public -export interface MachineListResult { - readonly nextLink?: string; - value?: Machine[]; -} - -// @public -export interface MachineNetworkProperties { - readonly ipAddresses?: MachineIpAddress[]; -} - -// @public -export interface MachineProperties { - readonly network?: MachineNetworkProperties; - readonly resourceId?: string; -} - -// @public -export interface Machines { - get(resourceGroupName: string, resourceName: string, agentPoolName: string, machineName: string, options?: MachinesGetOptionalParams): Promise; - list(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: MachinesListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface MachinesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type MachinesGetResponse = Machine; - -// @public -export interface MachinesListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type MachinesListNextResponse = MachineListResult; - -// @public -export interface MachinesListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type MachinesListResponse = MachineListResult; - // @public export interface MaintenanceConfiguration extends SubResource { maintenanceWindow?: MaintenanceWindow; @@ -1097,31 +887,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; - metricsProfile?: ManagedClusterMetricsProfile; networkProfile?: ContainerServiceNetworkProfile; nodeResourceGroup?: string; - nodeResourceGroupProfile?: ManagedClusterNodeResourceGroupProfile; oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; podIdentityProfile?: ManagedClusterPodIdentityProfile; readonly powerState?: PowerState; @@ -1178,12 +962,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; @@ -1195,10 +977,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; @@ -1217,7 +997,6 @@ export interface ManagedClusterAgentPoolProfileProperties { scaleDownMode?: ScaleDownMode; scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; scaleSetPriority?: ScaleSetPriority; - securityProfile?: AgentPoolSecurityProfile; spotMaxPrice?: number; tags?: { [propertyName: string]: string; @@ -1226,7 +1005,6 @@ export interface ManagedClusterAgentPoolProfileProperties { upgradeSettings?: AgentPoolUpgradeSettings; vmSize?: string; vnetSubnetID?: string; - windowsProfile?: AgentPoolWindowsProfile; workloadRuntime?: WorkloadRuntime; } @@ -1236,9 +1014,7 @@ export interface ManagedClusterAPIServerAccessProfile { disableRunCommand?: boolean; enablePrivateCluster?: boolean; enablePrivateClusterPublicFqdn?: boolean; - enableVnetIntegration?: boolean; privateDNSZone?: string; - subnetId?: string; } // @public @@ -1249,59 +1025,23 @@ export interface ManagedClusterAutoUpgradeProfile { // @public export interface ManagedClusterAzureMonitorProfile { - logs?: ManagedClusterAzureMonitorProfileLogs; metrics?: ManagedClusterAzureMonitorProfileMetrics; } -// @public -export interface ManagedClusterAzureMonitorProfileAppMonitoring { - enabled?: boolean; -} - -// @public -export interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics { - enabled?: boolean; -} - -// @public -export interface ManagedClusterAzureMonitorProfileContainerInsights { - enabled?: boolean; - logAnalyticsWorkspaceResourceId?: string; - windowsHostLogs?: ManagedClusterAzureMonitorProfileWindowsHostLogs; -} - // @public export interface ManagedClusterAzureMonitorProfileKubeStateMetrics { metricAnnotationsAllowList?: string; metricLabelsAllowlist?: string; } -// @public -export interface ManagedClusterAzureMonitorProfileLogs { - appMonitoring?: ManagedClusterAzureMonitorProfileAppMonitoring; - containerInsights?: ManagedClusterAzureMonitorProfileContainerInsights; -} - // @public export interface ManagedClusterAzureMonitorProfileMetrics { - appMonitoringOpenTelemetryMetrics?: ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics; enabled: boolean; kubeStateMetrics?: ManagedClusterAzureMonitorProfileKubeStateMetrics; } -// @public -export interface ManagedClusterAzureMonitorProfileWindowsHostLogs { - enabled?: boolean; -} - -// @public -export interface ManagedClusterCostAnalysis { - enabled?: boolean; -} - // @public export interface ManagedClusterHttpProxyConfig { - readonly effectiveNoProxy?: string[]; httpProxy?: string; httpsProxy?: string; noProxy?: string[]; @@ -1321,18 +1061,6 @@ export interface ManagedClusterIdentity { }; } -// @public -export interface ManagedClusterIngressProfile { - webAppRouting?: ManagedClusterIngressProfileWebAppRouting; -} - -// @public -export interface ManagedClusterIngressProfileWebAppRouting { - dnsZoneResourceIds?: string[]; - enabled?: boolean; - readonly identity?: UserAssignedIdentity; -} - // @public export interface ManagedClusterListResult { readonly nextLink?: string; @@ -1342,7 +1070,6 @@ export interface ManagedClusterListResult { // @public export interface ManagedClusterLoadBalancerProfile { allocatedOutboundPorts?: number; - backendPoolType?: BackendPoolType; effectiveOutboundIPs?: ResourceReference[]; enableMultipleStandardLoadBalancers?: boolean; idleTimeoutInMinutes?: number; @@ -1372,11 +1099,6 @@ export interface ManagedClusterManagedOutboundIPProfile { count?: number; } -// @public -export interface ManagedClusterMetricsProfile { - costAnalysis?: ManagedClusterCostAnalysis; -} - // @public export interface ManagedClusterNATGatewayProfile { effectiveOutboundIPs?: ResourceReference[]; @@ -1384,11 +1106,6 @@ export interface ManagedClusterNATGatewayProfile { managedOutboundIPProfile?: ManagedClusterManagedOutboundIPProfile; } -// @public -export interface ManagedClusterNodeResourceGroupProfile { - restrictionLevel?: RestrictionLevel; -} - // @public export interface ManagedClusterOidcIssuerProfile { enabled?: boolean; @@ -1460,11 +1177,7 @@ export interface ManagedClusterPoolUpgradeProfileUpgradesItem { // @public export interface ManagedClusterPropertiesAutoScalerProfile { balanceSimilarNodeGroups?: string; - daemonsetEvictionForEmptyNodes?: boolean; - daemonsetEvictionForOccupiedNodes?: boolean; expander?: Expander; - expanders?: Expander[]; - ignoreDaemonsetsUtilization?: boolean; maxEmptyBulkDelete?: string; maxGracefulTerminationSec?: string; maxNodeProvisionTime?: string; @@ -1482,14 +1195,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>>; @@ -1517,7 +1222,6 @@ export interface ManagedClusters { get(resourceGroupName: string, resourceName: string, options?: ManagedClustersGetOptionalParams): Promise; getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: ManagedClustersGetAccessProfileOptionalParams): Promise; getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, options?: ManagedClustersGetCommandResultOptionalParams): Promise; - getGuardrailsVersions(location: string, version: string, options?: ManagedClustersGetGuardrailsVersionsOptionalParams): Promise; getMeshRevisionProfile(location: string, mode: string, options?: ManagedClustersGetMeshRevisionProfileOptionalParams): Promise; getMeshUpgradeProfile(resourceGroupName: string, resourceName: string, mode: string, options?: ManagedClustersGetMeshUpgradeProfileOptionalParams): Promise; getOSOptions(location: string, options?: ManagedClustersGetOSOptionsOptionalParams): Promise; @@ -1527,7 +1231,6 @@ export interface ManagedClusters { listClusterAdminCredentials(resourceGroupName: string, resourceName: string, options?: ManagedClustersListClusterAdminCredentialsOptionalParams): Promise; listClusterMonitoringUserCredentials(resourceGroupName: string, resourceName: string, options?: ManagedClustersListClusterMonitoringUserCredentialsOptionalParams): Promise; listClusterUserCredentials(resourceGroupName: string, resourceName: string, options?: ManagedClustersListClusterUserCredentialsOptionalParams): Promise; - listGuardrailsVersions(location: string, options?: ManagedClustersListGuardrailsVersionsOptionalParams): PagedAsyncIterableIterator; listKubernetesVersions(location: string, options?: ManagedClustersListKubernetesVersionsOptionalParams): Promise; listMeshRevisionProfiles(location: string, options?: ManagedClustersListMeshRevisionProfilesOptionalParams): PagedAsyncIterableIterator; listMeshUpgradeProfiles(resourceGroupName: string, resourceName: string, options?: ManagedClustersListMeshUpgradeProfilesOptionalParams): PagedAsyncIterableIterator; @@ -1565,7 +1268,6 @@ export interface ManagedClustersDeleteHeaders { // @public export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { - ignorePodDisruptionBudget?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1576,11 +1278,8 @@ export type ManagedClustersDeleteResponse = ManagedClustersDeleteHeaders; // @public export interface ManagedClusterSecurityProfile { azureKeyVaultKms?: AzureKeyVaultKms; - customCATrustCertificates?: Uint8Array[]; defender?: ManagedClusterSecurityProfileDefender; imageCleaner?: ManagedClusterSecurityProfileImageCleaner; - imageIntegrity?: ManagedClusterSecurityProfileImageIntegrity; - nodeRestriction?: ManagedClusterSecurityProfileNodeRestriction; workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; } @@ -1601,16 +1300,6 @@ export interface ManagedClusterSecurityProfileImageCleaner { intervalHours?: number; } -// @public -export interface ManagedClusterSecurityProfileImageIntegrity { - enabled?: boolean; -} - -// @public -export interface ManagedClusterSecurityProfileNodeRestriction { - enabled?: boolean; -} - // @public export interface ManagedClusterSecurityProfileWorkloadIdentity { enabled?: boolean; @@ -1641,13 +1330,6 @@ export interface ManagedClustersGetCommandResultOptionalParams extends coreClien // @public export type ManagedClustersGetCommandResultResponse = RunCommandResult; -// @public -export interface ManagedClustersGetGuardrailsVersionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersGetGuardrailsVersionsResponse = GuardrailsAvailableVersion; - // @public export interface ManagedClustersGetMeshRevisionProfileOptionalParams extends coreClient.OperationOptions { } @@ -1735,20 +1417,6 @@ export interface ManagedClustersListClusterUserCredentialsOptionalParams extends // @public export type ManagedClustersListClusterUserCredentialsResponse = CredentialResults; -// @public -export interface ManagedClustersListGuardrailsVersionsNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersListGuardrailsVersionsNextResponse = GuardrailsAvailableVersionsList; - -// @public -export interface ManagedClustersListGuardrailsVersionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClustersListGuardrailsVersionsResponse = GuardrailsAvailableVersionsList; - // @public export interface ManagedClustersListKubernetesVersionsOptionalParams extends coreClient.OperationOptions { } @@ -1812,82 +1480,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; @@ -1926,6 +1518,7 @@ export type ManagedClustersRotateClusterCertificatesResponse = ManagedClustersRo // @public export interface ManagedClustersRotateServiceAccountSigningKeysHeaders { + // (undocumented) location?: string; } @@ -1996,7 +1589,6 @@ export interface ManagedClusterStorageProfileBlobCSIDriver { // @public export interface ManagedClusterStorageProfileDiskCSIDriver { enabled?: boolean; - version?: string; } // @public @@ -2039,7 +1631,6 @@ export interface ManagedClusterWindowsProfile { // @public export interface ManagedClusterWorkloadAutoScalerProfile { keda?: ManagedClusterWorkloadAutoScalerProfileKeda; - // (undocumented) verticalPodAutoscaler?: ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler; } @@ -2048,9 +1639,8 @@ export interface ManagedClusterWorkloadAutoScalerProfileKeda { enabled: boolean; } -// @public (undocumented) +// @public export interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler { - addonAutoscaling?: AddonAutoscaling; enabled: boolean; } @@ -2099,20 +1689,12 @@ export interface MeshUpgradeProfileList { export interface MeshUpgradeProfileProperties extends MeshRevision { } -// @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; @@ -2122,15 +1704,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; @@ -2199,13 +1772,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; @@ -2303,9 +1869,6 @@ export interface PrivateLinkServiceConnectionState { status?: ConnectionStatus; } -// @public -export type Protocol = string; - // @public export interface ProxyResource extends Resource { } @@ -2348,9 +1911,6 @@ export interface ResourceReference { id?: string; } -// @public -export type RestrictionLevel = string; - // @public export interface RunCommandRequest { clusterToken?: string; diff --git a/sdk/containerservice/arm-containerservice/rollup.config.js b/sdk/containerservice/arm-containerservice/rollup.config.js new file mode 100644 index 000000000000..3f89d7309da5 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/rollup.config.js @@ -0,0 +1,122 @@ +/* + * 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 nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +// #region Warning Handler + +/** + * A function that can determine whether a rollup warning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEval(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependency(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"] + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"] + }), + cjs(), + json(), + sourcemaps() + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false +}; + +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}) + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies) + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index e83ef1ec2268..9d0e68efdf92 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -19,28 +19,24 @@ import { ManagedClustersImpl, MaintenanceConfigurationsImpl, AgentPoolsImpl, - MachinesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ResolvePrivateLinkServiceIdImpl, SnapshotsImpl, - ManagedClusterSnapshotsImpl, - TrustedAccessRolesImpl, - TrustedAccessRoleBindingsImpl + TrustedAccessRoleBindingsImpl, + TrustedAccessRolesImpl } from "./operations"; import { Operations, ManagedClusters, MaintenanceConfigurations, AgentPools, - Machines, PrivateEndpointConnections, PrivateLinkResources, ResolvePrivateLinkServiceId, Snapshots, - ManagedClusterSnapshots, - TrustedAccessRoles, - TrustedAccessRoleBindings + TrustedAccessRoleBindings, + TrustedAccessRoles } from "./operationsInterfaces"; import { ContainerServiceClientOptionalParams } from "./models"; @@ -52,7 +48,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ContainerServiceClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( @@ -76,7 +72,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-containerservice/19.4.0-beta.2`; + const packageDetails = `azsdk-js-arm-containerservice/19.4.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -129,21 +125,19 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-08-02-preview"; + this.apiVersion = options.apiVersion || "2023-09-01"; this.operations = new OperationsImpl(this); this.managedClusters = new ManagedClustersImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this); this.agentPools = new AgentPoolsImpl(this); - this.machines = new MachinesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.resolvePrivateLinkServiceId = new ResolvePrivateLinkServiceIdImpl( this ); this.snapshots = new SnapshotsImpl(this); - this.managedClusterSnapshots = new ManagedClusterSnapshotsImpl(this); - this.trustedAccessRoles = new TrustedAccessRolesImpl(this); this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this); + this.trustedAccessRoles = new TrustedAccessRolesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -179,12 +173,10 @@ export class ContainerServiceClient extends coreClient.ServiceClient { managedClusters: ManagedClusters; maintenanceConfigurations: MaintenanceConfigurations; agentPools: AgentPools; - machines: Machines; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; resolvePrivateLinkServiceId: ResolvePrivateLinkServiceId; snapshots: Snapshots; - managedClusterSnapshots: ManagedClusterSnapshots; - trustedAccessRoles: TrustedAccessRoles; trustedAccessRoleBindings: TrustedAccessRoleBindings; + trustedAccessRoles: TrustedAccessRoles; } diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index a5673c638b4e..334efca67397 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -207,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. */ @@ -227,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} */ @@ -237,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; @@ -251,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; @@ -276,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'. */ @@ -308,16 +298,8 @@ 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; - /** The security settings of an agent pool. */ - securityProfile?: AgentPoolSecurityProfile; } /** Settings for upgrading an agentpool */ @@ -426,44 +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; -} - -/** The security settings of an agent pool. */ -export interface AgentPoolSecurityProfile { - /** SSH access method of an agent pool. */ - sshAccess?: AgentPoolSSHAccess; +/** 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. */ @@ -616,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; @@ -654,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. */ @@ -676,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. */ @@ -722,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. */ @@ -772,7 +680,7 @@ export interface ManagedClusterAADProfile { export interface ManagedClusterAutoUpgradeProfile { /** For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). */ upgradeChannel?: UpgradeChannel; - /** The default is Unmanaged, but may change to either NodeImage or SecurityPatch at GA. */ + /** Manner in which the OS on your nodes is updated. The default is NodeImage. */ nodeOSUpgradeChannel?: NodeOSUpgradeChannel; } @@ -794,16 +702,8 @@ export interface UpgradeOverrideSettings { export interface ManagedClusterPropertiesAutoScalerProfile { /** Valid values are 'true' and 'false' */ balanceSimilarNodeGroups?: string; - /** If set to true, all daemonset pods on empty nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. */ - daemonsetEvictionForEmptyNodes?: boolean; - /** If set to true, all daemonset pods on occupied nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. */ - daemonsetEvictionForOccupiedNodes?: boolean; - /** If set to true, the resources used by daemonset will be taken into account when making scaling down decisions. */ - ignoreDaemonsetsUtilization?: boolean; - /** Available values are: 'least-waste', 'most-pods', 'priority', 'random'. */ + /** If not specified, the default is 'random'. See [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) for more information. */ expander?: Expander; - /** Available values are: 'least-waste', 'most-pods', 'priority', 'random'. If multiple expanders are configured, they will be considered in the order in which they are listed, with the first one being considered first. */ - expanders?: Expander[]; /** The default is 10. */ maxEmptyBulkDelete?: string; /** The default is 600. */ @@ -848,10 +748,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 */ @@ -881,11 +777,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; } @@ -900,12 +791,6 @@ export interface ManagedClusterSecurityProfile { workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; /** Image Cleaner settings for the security profile. */ imageCleaner?: ManagedClusterSecurityProfileImageCleaner; - /** Image integrity is a feature that works with Azure Policy to verify image integrity by signature. This will not have any effect unless Azure Policy is applied to enforce image signatures. See https://aka.ms/aks/image-integrity for how to use this feature via policy. */ - imageIntegrity?: ManagedClusterSecurityProfileImageIntegrity; - /** [Node Restriction](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#noderestriction) settings for the security profile. */ - nodeRestriction?: ManagedClusterSecurityProfileNodeRestriction; - /** A list of up to 10 base64 encoded CAs that will be added to the trust store on 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. */ @@ -948,18 +833,6 @@ export interface ManagedClusterSecurityProfileImageCleaner { intervalHours?: number; } -/** Image integrity related settings for the security profile. */ -export interface ManagedClusterSecurityProfileImageIntegrity { - /** Whether to enable image integrity. The default value is false. */ - enabled?: boolean; -} - -/** Node Restriction settings for the security profile. */ -export interface ManagedClusterSecurityProfileNodeRestriction { - /** Whether to enable Node Restriction */ - enabled?: boolean; -} - /** Storage profile for the container service cluster. */ export interface ManagedClusterStorageProfile { /** AzureDisk CSI Driver settings for the storage profile. */ @@ -976,8 +849,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. */ @@ -998,29 +869,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 IDs of the public DNS zones to be associated with the Web App Routing add-on. Used only when Web App Routing is enabled. All public DNS zones must be in the same resource group. */ - dnsZoneResourceIds?: 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; } @@ -1030,90 +883,34 @@ export interface ManagedClusterWorkloadAutoScalerProfileKeda { enabled: boolean; } +/** VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile. */ export interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler { - /** Whether to enable VPA add-on in cluster. Default value is false. */ + /** Whether to enable VPA. Default value is false. */ enabled: boolean; - /** Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. */ - addonAutoscaling?: AddonAutoscaling; } -/** Prometheus addon profile for the container service cluster */ +/** Azure Monitor addon profiles for monitoring the managed cluster. */ export interface ManagedClusterAzureMonitorProfile { - /** Metrics profile for the prometheus service addon */ + /** Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview. */ metrics?: ManagedClusterAzureMonitorProfileMetrics; - /** Logs profile for the Azure Monitor Infrastructure and Application Logs. Collect out-of-the-box Kubernetes infrastructure & application logs to send to Azure Monitor. See aka.ms/AzureMonitorContainerInsights for an overview. */ - logs?: ManagedClusterAzureMonitorProfileLogs; } -/** Metrics profile for the prometheus service addon */ +/** Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview. */ export interface ManagedClusterAzureMonitorProfileMetrics { - /** Whether to enable the Prometheus collector */ + /** Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling. */ enabled: boolean; - /** Kube State Metrics for prometheus addon profile for the container service cluster */ + /** Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details. */ kubeStateMetrics?: ManagedClusterAzureMonitorProfileKubeStateMetrics; - /** Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Metrics. Collects OpenTelemetry metrics through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ - appMonitoringOpenTelemetryMetrics?: ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics; } -/** Kube State Metrics for prometheus addon profile for the container service cluster */ +/** Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details. */ export interface ManagedClusterAzureMonitorProfileKubeStateMetrics { - /** Comma-separated list of Kubernetes annotations keys that will be used in the resource's labels metric. */ + /** Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric (Example: 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). By default the metric contains only resource name and namespace labels. */ metricLabelsAllowlist?: string; - /** Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric. */ + /** Comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric (Example: 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). By default the metric contains only resource name and namespace labels. */ metricAnnotationsAllowList?: string; } -/** Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Metrics. Collects OpenTelemetry metrics through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ -export interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics { - /** Indicates if Application Monitoring Open Telemetry Metrics is enabled or not. */ - enabled?: boolean; -} - -/** Logs profile for the Azure Monitor Infrastructure and Application Logs. Collect out-of-the-box Kubernetes infrastructure & application logs to send to Azure Monitor. See aka.ms/AzureMonitorContainerInsights for an overview. */ -export interface ManagedClusterAzureMonitorProfileLogs { - /** Azure Monitor Container Insights Profile for Kubernetes Events, Inventory and Container stdout & stderr logs etc. See aka.ms/AzureMonitorContainerInsights for an overview. */ - containerInsights?: ManagedClusterAzureMonitorProfileContainerInsights; - /** Application Monitoring Profile for Kubernetes Application Container. Collects application logs, metrics and traces through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ - appMonitoring?: ManagedClusterAzureMonitorProfileAppMonitoring; -} - -/** Azure Monitor Container Insights Profile for Kubernetes Events, Inventory and Container stdout & stderr logs etc. See aka.ms/AzureMonitorContainerInsights for an overview. */ -export interface ManagedClusterAzureMonitorProfileContainerInsights { - /** Indicates if Azure Monitor Container Insights Logs Addon is enabled or not. */ - enabled?: boolean; - /** Fully Qualified ARM Resource Id of Azure Log Analytics Workspace for storing Azure Monitor Container Insights Logs. */ - logAnalyticsWorkspaceResourceId?: string; - /** Windows Host Logs Profile for Kubernetes Windows Nodes Log Collection. Collects ETW, Event Logs and Text logs etc. See aka.ms/AzureMonitorContainerInsights for an overview. */ - windowsHostLogs?: ManagedClusterAzureMonitorProfileWindowsHostLogs; -} - -/** Windows Host Logs Profile for Kubernetes Windows Nodes Log Collection. Collects ETW, Event Logs and Text logs etc. See aka.ms/AzureMonitorContainerInsights for an overview. */ -export interface ManagedClusterAzureMonitorProfileWindowsHostLogs { - /** Indicates if Windows Host Log Collection is enabled or not for Azure Monitor Container Insights Logs Addon. */ - enabled?: boolean; -} - -/** Application Monitoring Profile for Kubernetes Application Container. Collects application logs, metrics and traces through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. */ -export interface ManagedClusterAzureMonitorProfileAppMonitoring { - /** Indicates if Application Monitoring enabled or not. */ - enabled?: boolean; -} - -/** The Guardrails profile. */ -export interface GuardrailsProfile { - /** - * List of namespaces specified by AKS to be excluded from Guardrails - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemExcludedNamespaces?: string[]; - /** The version of constraints to use */ - version?: string; - /** The guardrails level to be used. By default, Guardrails is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces */ - level: Level; - /** List of namespaces excluded from guardrails checks */ - excludedNamespaces?: string[]; -} - /** Service mesh profile for a managed cluster. */ export interface ServiceMeshProfile { /** Mode of the service mesh. */ @@ -1176,22 +973,10 @@ export interface IstioPluginCertificateAuthority { certChainObjectName?: string; } -/** The metrics profile for the ManagedCluster. */ -export interface ManagedClusterMetricsProfile { - /** The cost analysis configuration for the cluster */ - costAnalysis?: ManagedClusterCostAnalysis; -} - -/** The cost analysis configuration for the cluster */ -export interface ManagedClusterCostAnalysis { - /** The Managed Cluster sku.tier must be set to 'Standard' to enable this feature. Enabling this will add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. If not specified, the default is false. For more information see aka.ms/aks/docs/cost-analysis. */ - enabled?: boolean; -} - /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -1380,7 +1165,7 @@ export interface AbsoluteMonthlySchedule { export interface RelativeMonthlySchedule { /** Specifies the number of months between each set of occurrences. */ intervalMonths: number; - /** Specifies on which instance of the allowed days specified in daysOfWeek the maintenance occurs. */ + /** Specifies on which week of the month the dayOfWeek applies. */ weekIndex: Type; /** Specifies on which day of the week the maintenance occurs. */ dayOfWeek: WeekDay; @@ -1458,54 +1243,6 @@ export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { isPreview?: boolean; } -/** The response from the List Machines operation. */ -export interface MachineListResult { - /** The list of Machines in cluster. */ - value?: Machine[]; - /** - * The URL to get the next set of machine results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The properties of the machine */ -export interface MachineProperties { - /** - * network properties of the machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly network?: MachineNetworkProperties; - /** - * Arm resource id of the machine. It can be used to GET underlying VM Instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceId?: string; -} - -/** network properties of the machine */ -export interface MachineNetworkProperties { - /** - * IPv4, IPv6 addresses of the machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ipAddresses?: MachineIpAddress[]; -} - -/** The machine IP address details. */ -export interface MachineIpAddress { - /** - * IPv4 or IPv6 address of the machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ip?: string; - /** - * To determine if address belongs IPv4 or IPv6 family. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly family?: IpFamily; -} - /** The list of available versions for an agent pool. */ export interface AgentPoolAvailableVersions { /** @@ -1689,106 +1426,49 @@ export interface SnapshotListResult { readonly nextLink?: string; } -/** The response from the List Managed Cluster Snapshots operation. */ -export interface ManagedClusterSnapshotListResult { - /** The list of managed cluster snapshots. */ - value?: ManagedClusterSnapshot[]; +/** Holds an array of MeshRevisionsProfiles */ +export interface MeshRevisionProfileList { + /** Array of service mesh add-on revision profiles for all supported mesh modes. */ + value?: MeshRevisionProfile[]; /** - * The URL to get the next set of managed cluster snapshot results. + * The URL to get the next set of mesh revision profile. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** managed cluster properties for snapshot, these properties are read only. */ -export interface ManagedClusterPropertiesForSnapshot { - /** The current kubernetes version. */ - kubernetesVersion?: string; - /** The current managed cluster sku. */ - sku?: ManagedClusterSKU; - /** Whether the cluster has enabled Kubernetes Role-Based Access Control or not. */ - enableRbac?: boolean; - /** - * The current network profile. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly networkProfile?: NetworkProfileForSnapshot; -} - -/** network profile for managed cluster snapshot, these properties are read only. */ -export interface NetworkProfileForSnapshot { - /** networkPlugin for managed cluster snapshot. */ - networkPlugin?: NetworkPlugin; - /** NetworkPluginMode for managed cluster snapshot. */ - networkPluginMode?: NetworkPluginMode; - /** networkPolicy for managed cluster snapshot. */ - networkPolicy?: NetworkPolicy; - /** networkMode for managed cluster snapshot. */ - networkMode?: NetworkMode; - /** loadBalancerSku for managed cluster snapshot. */ - loadBalancerSku?: LoadBalancerSku; +/** Mesh revision profile properties for a mesh */ +export interface MeshRevisionProfileProperties { + meshRevisions?: MeshRevision[]; } -/** List of trusted access roles */ -export interface TrustedAccessRoleListResult { - /** - * Role list - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: TrustedAccessRole[]; - /** - * Link to next page of resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** Holds information on upgrades and compatibility for given major.minor mesh release. */ +export interface MeshRevision { + /** The revision of the mesh release. */ + revision?: string; + /** List of revisions available for upgrade of a specific mesh revision */ + upgrades?: string[]; + /** List of items this revision of service mesh is compatible with, and their associated versions. */ + compatibleWith?: CompatibleVersions[]; } -/** Trusted access role definition. */ -export interface TrustedAccessRole { - /** - * Resource type of Azure resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceResourceType?: string; - /** - * Name of role, name is unique under a source resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * List of rules for the role. This maps to 'rules' property of [Kubernetes Cluster Role](https://kubernetes.io/docs/reference/kubernetes-api/authorization-resources/cluster-role-v1/#ClusterRole). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly rules?: TrustedAccessRoleRule[]; +/** Version information about a product/service that is compatible with a service mesh revision. */ +export interface CompatibleVersions { + /** The product/service name. */ + name?: string; + /** Product/service versions compatible with a service mesh add-on revision. */ + versions?: string[]; } -/** Rule for trusted access role */ -export interface TrustedAccessRoleRule { - /** - * List of allowed verbs - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly verbs?: string[]; - /** - * List of allowed apiGroups - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly apiGroups?: string[]; - /** - * List of allowed resources - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resources?: string[]; - /** - * List of allowed names - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceNames?: string[]; +/** Holds an array of MeshUpgradeProfiles */ +export interface MeshUpgradeProfileList { + /** Array of supported service mesh add-on upgrade profiles. */ + value?: MeshUpgradeProfile[]; /** - * List of allowed nonResourceURLs + * The URL to get the next set of mesh upgrade profile. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nonResourceURLs?: string[]; + readonly nextLink?: string; } /** List of trusted access role bindings */ @@ -1851,71 +1531,66 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** Whether the version is default or not and support info. */ -export interface GuardrailsAvailableVersionsProperties { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefaultVersion?: boolean; +/** List of trusted access roles */ +export interface TrustedAccessRoleListResult { /** - * Whether the version is preview or stable. + * Role list * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly support?: GuardrailsSupport; -} - -/** Hold values properties, which is array of GuardrailsVersions */ -export interface GuardrailsAvailableVersionsList { - /** Array of AKS supported Guardrails versions. */ - value?: GuardrailsAvailableVersion[]; + readonly value?: TrustedAccessRole[]; /** - * The URL to get the next Guardrails available version. + * Link to next page of resources. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** Holds an array of MeshRevisionsProfiles */ -export interface MeshRevisionProfileList { - /** Array of service mesh add-on revision profiles for all supported mesh modes. */ - value?: MeshRevisionProfile[]; +/** Trusted access role definition. */ +export interface TrustedAccessRole { /** - * The URL to get the next set of mesh revision profile. + * Resource type of Azure resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Mesh revision profile properties for a mesh */ -export interface MeshRevisionProfileProperties { - meshRevisions?: MeshRevision[]; -} - -/** Holds information on upgrades and compatibility for given major.minor mesh release. */ -export interface MeshRevision { - /** The revision of the mesh release. */ - revision?: string; - /** List of revisions available for upgrade of a specific mesh revision */ - upgrades?: string[]; - /** List of items this revision of service mesh is compatible with, and their associated versions. */ - compatibleWith?: CompatibleVersions[]; -} - -/** Version information about a product/service that is compatible with a service mesh revision. */ -export interface CompatibleVersions { - /** The product/service name. */ - name?: string; - /** Product/service versions compatible with a service mesh add-on revision. */ - versions?: string[]; + readonly sourceResourceType?: string; + /** + * Name of role, name is unique under a source resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * List of rules for the role. This maps to 'rules' property of [Kubernetes Cluster Role](https://kubernetes.io/docs/reference/kubernetes-api/authorization-resources/cluster-role-v1/#ClusterRole). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rules?: TrustedAccessRoleRule[]; } -/** Holds an array of MeshUpgradeProfiles */ -export interface MeshUpgradeProfileList { - /** Array of supported service mesh add-on upgrade profiles. */ - value?: MeshUpgradeProfile[]; +/** Rule for trusted access role */ +export interface TrustedAccessRoleRule { /** - * The URL to get the next set of mesh upgrade profile. + * List of allowed verbs * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly verbs?: string[]; + /** + * List of allowed apiGroups + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly apiGroups?: string[]; + /** + * List of allowed resources + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resources?: string[]; + /** + * List of allowed names + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceNames?: string[]; + /** + * List of allowed nonResourceURLs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nonResourceURLs?: string[]; } /** Profile for the container service agent pool. */ @@ -1937,6 +1612,9 @@ export interface TrackedResource extends Resource { location: string; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + /** Defines binding between a resource and role */ export interface TrustedAccessRoleBinding extends Resource { /** @@ -1950,15 +1628,6 @@ export interface TrustedAccessRoleBinding extends Resource { roles: string[]; } -/** Available Guardrails Version */ -export interface GuardrailsAvailableVersion extends Resource { - /** Whether the version is default or not and support info. */ - properties: GuardrailsAvailableVersionsProperties; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - /** See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. */ export interface MaintenanceConfiguration extends SubResource { /** @@ -1988,8 +1657,6 @@ export interface AgentPool extends SubResource { 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} */ @@ -1998,7 +1665,7 @@ export interface AgentPool extends SubResource { 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; @@ -2012,10 +1679,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; @@ -2037,8 +1704,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'. */ @@ -2069,25 +1734,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; - /** The security settings of an agent pool. */ - securityProfile?: AgentPoolSecurityProfile; -} - -/** A machine. Contains details about the underlying virtual machine. A machine may be visible here but not in kubectl get nodes; if so it may be because the machine has not been registered with the Kubernetes API Server yet. */ -export interface Machine extends SubResource { - /** - * The properties of the machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly properties?: MachineProperties; } /** Mesh upgrade profile properties for a major.minor release. */ @@ -2111,17 +1759,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; @@ -2160,16 +1806,12 @@ export interface ManagedCluster extends TrackedResource { oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; /** The name of the resource group containing agent pool nodes. */ nodeResourceGroup?: string; - /** The node resource group configuration profile. */ - 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. */ @@ -2196,16 +1838,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; /** @@ -2213,8 +1851,6 @@ export interface ManagedCluster extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resourceUID?: string; - /** Optional cluster metrics configuration. */ - metricsProfile?: ManagedClusterMetricsProfile; } /** Managed cluster Access Profile. */ @@ -2245,7 +1881,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; @@ -2261,19 +1897,6 @@ export interface Snapshot extends TrackedResource { readonly enableFips?: boolean; } -/** A managed cluster snapshot resource. */ -export interface ManagedClusterSnapshot extends TrackedResource { - /** CreationData to be used to specify the source resource ID to create this snapshot. */ - creationData?: CreationData; - /** The type of a snapshot. The default is NodePool. */ - snapshotType?: SnapshotType; - /** - * What the properties will be showed when getting managed cluster snapshot. Those properties are read-only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managedClusterPropertiesReadOnly?: ManagedClusterPropertiesForSnapshot; -} - /** Mesh revision profile for a mesh. */ export interface MeshRevisionProfile extends ProxyResource { /** Mesh revision profile properties for a mesh */ @@ -2304,23 +1927,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; } @@ -2502,9 +2124,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" } /** @@ -2513,8 +2133,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; @@ -2540,8 +2159,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. */ @@ -2558,7 +2175,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. \ @@ -2683,42 +2299,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 AgentPoolSSHAccess} that the service accepts. */ -export enum KnownAgentPoolSSHAccess { - /** Can SSH onto the node as a local user using private key. */ - LocalUser = "LocalUser", - /** SSH service will be turned off on the node. */ - Disabled = "Disabled" -} - -/** - * Defines values for AgentPoolSSHAccess. \ - * {@link KnownAgentPoolSSHAccess} can be used interchangeably with AgentPoolSSHAccess, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LocalUser**: Can SSH onto the node as a local user using private key. \ - * **Disabled**: SSH service will be turned off on the node. - */ -export type AgentPoolSSHAccess = string; - /** Known values of {@link LicenseType} that the service accepts. */ export enum KnownLicenseType { /** No additional licensing is applied. */ @@ -2767,31 +2347,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" } @@ -2802,13 +2364,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" } @@ -2817,14 +2379,12 @@ 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; /** Known values of {@link NetworkPolicy} that the service accepts. */ export enum KnownNetworkPolicy { - /** Network policies will not be enforced. This is the default value when NetworkPolicy is not specified. */ - None = "none", /** Use Calico network policies. See [differences between Azure and Calico policies](https:\//docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. */ Calico = "calico", /** Use Azure network policies. See [differences between Azure and Calico policies](https:\//docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. */ @@ -2838,7 +2398,6 @@ export enum KnownNetworkPolicy { * {@link KnownNetworkPolicy} can be used interchangeably with NetworkPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **none**: Network policies will not be enforced. This is the default value when NetworkPolicy is not specified. \ * **calico**: Use Calico network policies. See [differences between Azure and Calico policies](https:\/\/docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. \ * **azure**: Use Azure network policies. See [differences between Azure and Calico policies](https:\/\/docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. \ * **cilium**: Use Cilium to enforce network policies. This requires networkDataplane to be 'cilium'. @@ -2923,29 +2482,11 @@ 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 family */ + /** IPv4 */ IPv4 = "IPv4", - /** IPv6 family */ + /** IPv6 */ IPv6 = "IPv6" } @@ -2954,47 +2495,11 @@ export enum KnownIpFamily { * {@link KnownIpFamily} can be used interchangeably with IpFamily, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4**: IPv4 family \ - * **IPv6**: IPv6 family + * **IPv4** \ + * **IPv6** */ export type IpFamily = string; -/** Known values of {@link 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. */ @@ -3026,10 +2531,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" } @@ -3040,8 +2543,7 @@ 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; @@ -3090,12 +2592,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" } /** @@ -3103,51 +2603,11 @@ export enum KnownPublicNetworkAccess { * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled**: Inbound\/Outbound to the managedCluster is allowed. \ - * **Disabled**: Inbound traffic to managedCluster is disabled, traffic from managedCluster is allowed. \ - * **SecuredByPerimeter**: Inbound\/Outbound traffic is managed by Microsoft.Network\/NetworkSecurityPerimeters. + * **Enabled** \ + * **Disabled** */ export type PublicNetworkAccess = string; -/** Known values of {@link AddonAutoscaling} that the service accepts. */ -export enum KnownAddonAutoscaling { - /** Feature to autoscale AKS-managed add-ons is enabled. The default VPA update mode is Initial mode. */ - Enabled = "Enabled", - /** Feature to autoscale AKS-managed add-ons is disabled. */ - Disabled = "Disabled" -} - -/** - * Defines values for AddonAutoscaling. \ - * {@link KnownAddonAutoscaling} can be used interchangeably with AddonAutoscaling, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: Feature to autoscale AKS-managed add-ons is enabled. The default VPA update mode is Initial mode. \ - * **Disabled**: Feature to autoscale AKS-managed add-ons is disabled. - */ -export type AddonAutoscaling = string; - -/** Known values of {@link Level} that the service accepts. */ -export enum KnownLevel { - /** Off */ - Off = "Off", - /** Warning */ - Warning = "Warning", - /** Enforcement */ - Enforcement = "Enforcement" -} - -/** - * Defines values for Level. \ - * {@link KnownLevel} can be used interchangeably with Level, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Off** \ - * **Warning** \ - * **Enforcement** - */ -export type Level = string; - /** Known values of {@link ServiceMeshMode} that the service accepts. */ export enum KnownServiceMeshMode { /** Istio deployed as an AKS addon. */ @@ -3261,15 +2721,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" } @@ -3278,11 +2738,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; @@ -3340,9 +2800,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" } /** @@ -3350,8 +2808,7 @@ export enum KnownSnapshotType { * {@link KnownSnapshotType} can be used interchangeably with SnapshotType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NodePool**: The snapshot is a snapshot of a node pool. \ - * **ManagedCluster**: The snapshot is a snapshot of a managed cluster. + * **NodePool**: The snapshot is a snapshot of a node pool. */ export type SnapshotType = string; @@ -3381,24 +2838,6 @@ export enum KnownTrustedAccessRoleBindingProvisioningState { * **Updating** */ export type TrustedAccessRoleBindingProvisioningState = string; - -/** Known values of {@link GuardrailsSupport} that the service accepts. */ -export enum KnownGuardrailsSupport { - /** The version is preview. It is not recommended to use preview versions on critical production clusters. The preview version may not support all use-cases. */ - Preview = "Preview", - /** The version is stable and can be used on critical production clusters. */ - Stable = "Stable" -} - -/** - * Defines values for GuardrailsSupport. \ - * {@link KnownGuardrailsSupport} can be used interchangeably with GuardrailsSupport, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Preview**: The version is preview. It is not recommended to use preview versions on critical production clusters. The preview version may not support all use-cases. \ - * **Stable**: The version is stable and can be used on critical production clusters. - */ -export type GuardrailsSupport = string; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; @@ -3520,8 +2959,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. */ @@ -3550,7 +2987,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; @@ -3558,11 +2995,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; @@ -3570,8 +3007,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 @@ -3635,20 +3072,6 @@ export interface ManagedClustersListOutboundNetworkDependenciesEndpointsOptional /** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ export type ManagedClustersListOutboundNetworkDependenciesEndpointsResponse = OutboundEnvironmentEndpointCollection; -/** Optional parameters. */ -export interface ManagedClustersGetGuardrailsVersionsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getGuardrailsVersions operation. */ -export type ManagedClustersGetGuardrailsVersionsResponse = GuardrailsAvailableVersion; - -/** Optional parameters. */ -export interface ManagedClustersListGuardrailsVersionsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listGuardrailsVersions operation. */ -export type ManagedClustersListGuardrailsVersionsResponse = GuardrailsAvailableVersionsList; - /** Optional parameters. */ export interface ManagedClustersListMeshRevisionProfilesOptionalParams extends coreClient.OperationOptions {} @@ -3698,13 +3121,6 @@ export interface ManagedClustersListOutboundNetworkDependenciesEndpointsNextOpti /** Contains response data for the listOutboundNetworkDependenciesEndpointsNext operation. */ export type ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse = OutboundEnvironmentEndpointCollection; -/** Optional parameters. */ -export interface ManagedClustersListGuardrailsVersionsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listGuardrailsVersionsNext operation. */ -export type ManagedClustersListGuardrailsVersionsNextResponse = GuardrailsAvailableVersionsList; - /** Optional parameters. */ export interface ManagedClustersListMeshRevisionProfilesNextOptionalParams extends coreClient.OperationOptions {} @@ -3792,8 +3208,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. */ @@ -3833,27 +3247,6 @@ export interface AgentPoolsListNextOptionalParams /** Contains response data for the listNext operation. */ export type AgentPoolsListNextResponse = AgentPoolListResult; -/** Optional parameters. */ -export interface MachinesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type MachinesListResponse = MachineListResult; - -/** Optional parameters. */ -export interface MachinesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type MachinesGetResponse = Machine; - -/** Optional parameters. */ -export interface MachinesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type MachinesListNextResponse = MachineListResult; - /** Optional parameters. */ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} @@ -3951,73 +3344,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 {} @@ -4063,6 +3389,20 @@ export interface TrustedAccessRoleBindingsListNextOptionalParams /** Contains response data for the listNext operation. */ export type TrustedAccessRoleBindingsListNextResponse = TrustedAccessRoleBindingListResult; +/** 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 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 58d23a2dc1d2..b8fd0e79c650 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -490,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", @@ -550,12 +535,6 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe name: "String" } }, - messageOfTheDay: { - serializedName: "messageOfTheDay", - type: { - name: "String" - } - }, vnetSubnetID: { serializedName: "vnetSubnetID", type: { @@ -681,12 +660,6 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe name: "Boolean" } }, - enableCustomCATrust: { - serializedName: "enableCustomCATrust", - type: { - name: "Boolean" - } - }, nodePublicIPPrefixID: { serializedName: "nodePublicIPPrefixID", type: { @@ -790,38 +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" - } - }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "AgentPoolSecurityProfile" - } } } } @@ -1158,128 +1104,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 = { - type: { - name: "Composite", - className: "PortRange", - 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", - type: { - name: "String" - } - } - } - } -}; - -export const AgentPoolSecurityProfile: coreClient.CompositeMapper = { +export const CreationData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolSecurityProfile", + className: "CreationData", modelProperties: { - sshAccess: { - serializedName: "sshAccess", + sourceResourceId: { + serializedName: "sourceResourceId", type: { name: "String" } @@ -1718,21 +1549,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", @@ -1864,20 +1680,6 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { } } } - }, - kubeProxyConfig: { - serializedName: "kubeProxyConfig", - type: { - name: "Composite", - className: "ContainerServiceNetworkProfileKubeProxyConfig" - } - }, - monitoring: { - serializedName: "monitoring", - type: { - name: "Composite", - className: "NetworkMonitoring" - } } } } @@ -1948,13 +1750,6 @@ export const ManagedClusterLoadBalancerProfile: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - backendPoolType: { - defaultValue: "NodeIPConfiguration", - serializedName: "backendPoolType", - type: { - name: "String" - } } } } @@ -2107,82 +1902,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", @@ -2308,41 +2027,12 @@ export const ManagedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapp name: "String" } }, - daemonsetEvictionForEmptyNodes: { - serializedName: "daemonset-eviction-for-empty-nodes", - type: { - name: "Boolean" - } - }, - daemonsetEvictionForOccupiedNodes: { - serializedName: "daemonset-eviction-for-occupied-nodes", - type: { - name: "Boolean" - } - }, - ignoreDaemonsetsUtilization: { - serializedName: "ignore-daemonsets-utilization", - type: { - name: "Boolean" - } - }, expander: { serializedName: "expander", type: { name: "String" } }, - expanders: { - serializedName: "expanders", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, maxEmptyBulkDelete: { serializedName: "max-empty-bulk-delete", type: { @@ -2476,18 +2166,6 @@ export const ManagedClusterAPIServerAccessProfile: coreClient.CompositeMapper = type: { name: "Boolean" } - }, - enableVnetIntegration: { - serializedName: "enableVnetIntegration", - type: { - name: "Boolean" - } - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String" - } } } } @@ -2572,18 +2250,6 @@ export const ManagedClusterHttpProxyConfig: coreClient.CompositeMapper = { } } }, - effectiveNoProxy: { - serializedName: "effectiveNoProxy", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, trustedCa: { serializedName: "trustedCa", type: { @@ -2626,34 +2292,6 @@ export const ManagedClusterSecurityProfile: coreClient.CompositeMapper = { name: "Composite", className: "ManagedClusterSecurityProfileImageCleaner" } - }, - imageIntegrity: { - serializedName: "imageIntegrity", - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileImageIntegrity" - } - }, - nodeRestriction: { - serializedName: "nodeRestriction", - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileNodeRestriction" - } - }, - customCATrustCertificates: { - constraints: { - MaxItems: 10 - }, - serializedName: "customCATrustCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "ByteArray" - } - } - } } } } @@ -2766,36 +2404,6 @@ export const ManagedClusterSecurityProfileImageCleaner: coreClient.CompositeMapp } }; -export const ManagedClusterSecurityProfileImageIntegrity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileImageIntegrity", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -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", @@ -2843,12 +2451,6 @@ export const ManagedClusterStorageProfileDiskCSIDriver: coreClient.CompositeMapp type: { name: "Boolean" } - }, - version: { - serializedName: "version", - type: { - name: "String" - } } } } @@ -2899,58 +2501,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" - } - }, - dnsZoneResourceIds: { - constraints: { - MaxItems: 5 - }, - serializedName: "dnsZoneResourceIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "UserAssignedIdentity" - } - } - } - } -}; - export const ManagedClusterWorkloadAutoScalerProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3003,13 +2553,6 @@ export const ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler: coreC type: { name: "Boolean" } - }, - addonAutoscaling: { - defaultValue: "Disabled", - serializedName: "addonAutoscaling", - type: { - name: "String" - } } } } @@ -3026,13 +2569,6 @@ export const ManagedClusterAzureMonitorProfile: coreClient.CompositeMapper = { name: "Composite", className: "ManagedClusterAzureMonitorProfileMetrics" } - }, - logs: { - serializedName: "logs", - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileLogs" - } } } } @@ -3056,14 +2592,6 @@ export const ManagedClusterAzureMonitorProfileMetrics: coreClient.CompositeMappe name: "Composite", className: "ManagedClusterAzureMonitorProfileKubeStateMetrics" } - }, - appMonitoringOpenTelemetryMetrics: { - serializedName: "appMonitoringOpenTelemetryMetrics", - type: { - name: "Composite", - className: - "ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics" - } } } } @@ -3090,148 +2618,6 @@ export const ManagedClusterAzureMonitorProfileKubeStateMetrics: coreClient.Compo } }; -export const ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterAzureMonitorProfileLogs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileLogs", - modelProperties: { - containerInsights: { - serializedName: "containerInsights", - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileContainerInsights" - } - }, - appMonitoring: { - serializedName: "appMonitoring", - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileAppMonitoring" - } - } - } - } -}; - -export const ManagedClusterAzureMonitorProfileContainerInsights: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileContainerInsights", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - logAnalyticsWorkspaceResourceId: { - serializedName: "logAnalyticsWorkspaceResourceId", - type: { - name: "String" - } - }, - windowsHostLogs: { - serializedName: "windowsHostLogs", - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileWindowsHostLogs" - } - } - } - } -}; - -export const ManagedClusterAzureMonitorProfileWindowsHostLogs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileWindowsHostLogs", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterAzureMonitorProfileAppMonitoring: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileAppMonitoring", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -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", - 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", @@ -3427,37 +2813,6 @@ export const IstioPluginCertificateAuthority: coreClient.CompositeMapper = { } }; -export const ManagedClusterMetricsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterMetricsProfile", - modelProperties: { - costAnalysis: { - serializedName: "costAnalysis", - type: { - name: "Composite", - className: "ManagedClusterCostAnalysis" - } - } - } - } -}; - -export const ManagedClusterCostAnalysis: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterCostAnalysis", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4172,112 +3527,16 @@ export const AgentPoolUpgradeProfilePropertiesUpgradesItem: coreClient.Composite } }; -export const MachineListResult: coreClient.CompositeMapper = { +export const AgentPoolAvailableVersions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MachineListResult", + className: "AgentPoolAvailableVersions", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Machine" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const MachineProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MachineProperties", - modelProperties: { - network: { - serializedName: "network", - type: { - name: "Composite", - className: "MachineNetworkProperties" - } - }, - resourceId: { - serializedName: "resourceId", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const MachineNetworkProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MachineNetworkProperties", - modelProperties: { - ipAddresses: { - serializedName: "ipAddresses", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MachineIpAddress" - } - } - } - } - } - } -}; - -export const MachineIpAddress: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MachineIpAddress", - modelProperties: { - ip: { - serializedName: "ip", - readOnly: true, - type: { - name: "String" - } - }, - family: { - serializedName: "family", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const AgentPoolAvailableVersions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolAvailableVersions", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" + name: "String" } }, name: { @@ -4697,10 +3956,10 @@ export const SnapshotListResult: coreClient.CompositeMapper = { } }; -export const ManagedClusterSnapshotListResult: coreClient.CompositeMapper = { +export const MeshRevisionProfileList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterSnapshotListResult", + className: "MeshRevisionProfileList", modelProperties: { value: { serializedName: "value", @@ -4709,7 +3968,7 @@ export const ManagedClusterSnapshotListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedClusterSnapshot" + className: "MeshRevisionProfile" } } } @@ -4725,138 +3984,83 @@ export const ManagedClusterSnapshotListResult: coreClient.CompositeMapper = { } }; -export const ManagedClusterPropertiesForSnapshot: coreClient.CompositeMapper = { +export const MeshRevisionProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterPropertiesForSnapshot", + className: "MeshRevisionProfileProperties", modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "ManagedClusterSKU" - } - }, - enableRbac: { - serializedName: "enableRbac", - type: { - name: "Boolean" - } - }, - networkProfile: { - serializedName: "networkProfile", + meshRevisions: { + serializedName: "meshRevisions", type: { - name: "Composite", - className: "NetworkProfileForSnapshot" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MeshRevision" + } + } } } } } }; -export const NetworkProfileForSnapshot: coreClient.CompositeMapper = { +export const MeshRevision: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkProfileForSnapshot", + className: "MeshRevision", modelProperties: { - networkPlugin: { - defaultValue: "kubenet", - serializedName: "networkPlugin", - type: { - name: "String" - } - }, - networkPluginMode: { - serializedName: "networkPluginMode", - type: { - name: "String" - } - }, - networkPolicy: { - serializedName: "networkPolicy", + revision: { + serializedName: "revision", type: { name: "String" } }, - networkMode: { - serializedName: "networkMode", + upgrades: { + serializedName: "upgrades", type: { - name: "String" + name: "Sequence", + element: { + 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, + compatibleWith: { + serializedName: "compatibleWith", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TrustedAccessRole" + className: "CompatibleVersions" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const TrustedAccessRole: coreClient.CompositeMapper = { +export const CompatibleVersions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrustedAccessRole", + className: "CompatibleVersions", modelProperties: { - sourceResourceType: { - serializedName: "sourceResourceType", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - rules: { - serializedName: "rules", - readOnly: true, + versions: { + serializedName: "versions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "TrustedAccessRoleRule" + name: "String" } } } @@ -4865,69 +4069,28 @@ export const TrustedAccessRole: coreClient.CompositeMapper = { } }; -export const TrustedAccessRoleRule: coreClient.CompositeMapper = { +export const MeshUpgradeProfileList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrustedAccessRoleRule", + className: "MeshUpgradeProfileList", 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, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MeshUpgradeProfile" } } } }, - nonResourceURLs: { - serializedName: "nonResourceURLs", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } @@ -5058,70 +4221,20 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { } }; -export const GuardrailsAvailableVersionsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GuardrailsAvailableVersionsProperties", - modelProperties: { - isDefaultVersion: { - serializedName: "isDefaultVersion", - readOnly: true, - type: { - name: "Boolean" - } - }, - support: { - serializedName: "support", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const GuardrailsAvailableVersionsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GuardrailsAvailableVersionsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GuardrailsAvailableVersion" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const MeshRevisionProfileList: coreClient.CompositeMapper = { +export const TrustedAccessRoleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MeshRevisionProfileList", + className: "TrustedAccessRoleListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MeshRevisionProfile" + className: "TrustedAccessRole" } } } @@ -5137,19 +4250,34 @@ export const MeshRevisionProfileList: coreClient.CompositeMapper = { } }; -export const MeshRevisionProfileProperties: coreClient.CompositeMapper = { +export const TrustedAccessRole: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MeshRevisionProfileProperties", + className: "TrustedAccessRole", modelProperties: { - meshRevisions: { - serializedName: "meshRevisions", + 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: "MeshRevision" + className: "TrustedAccessRoleRule" } } } @@ -5158,19 +4286,14 @@ export const MeshRevisionProfileProperties: coreClient.CompositeMapper = { } }; -export const MeshRevision: coreClient.CompositeMapper = { +export const TrustedAccessRoleRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MeshRevision", + className: "TrustedAccessRoleRule", modelProperties: { - revision: { - serializedName: "revision", - type: { - name: "String" - } - }, - upgrades: { - serializedName: "upgrades", + verbs: { + serializedName: "verbs", + readOnly: true, type: { name: "Sequence", element: { @@ -5180,35 +4303,21 @@ export const MeshRevision: coreClient.CompositeMapper = { } } }, - compatibleWith: { - serializedName: "compatibleWith", + apiGroups: { + serializedName: "apiGroups", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CompatibleVersions" + name: "String" } } } - } - } - } -}; - -export const CompatibleVersions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CompatibleVersions", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } }, - versions: { - serializedName: "versions", + resources: { + serializedName: "resources", + readOnly: true, type: { name: "Sequence", element: { @@ -5217,33 +4326,29 @@ export const CompatibleVersions: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const MeshUpgradeProfileList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MeshUpgradeProfileList", - modelProperties: { - value: { - serializedName: "value", + }, + resourceNames: { + serializedName: "resourceNames", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MeshUpgradeProfile" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + nonResourceURLs: { + serializedName: "nonResourceURLs", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -5304,6 +4409,16 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5340,33 +4455,6 @@ export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { } }; -export const GuardrailsAvailableVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GuardrailsAvailableVersion", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "GuardrailsAvailableVersionsProperties" - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - export const MaintenanceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5461,12 +4549,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "String" } }, - messageOfTheDay: { - serializedName: "properties.messageOfTheDay", - type: { - name: "String" - } - }, vnetSubnetID: { serializedName: "properties.vnetSubnetID", type: { @@ -5592,12 +4674,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "Boolean" } }, - enableCustomCATrust: { - serializedName: "properties.enableCustomCATrust", - type: { - name: "Boolean" - } - }, nodePublicIPPrefixID: { serializedName: "properties.nodePublicIPPrefixID", type: { @@ -5701,55 +4777,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" - } - }, - securityProfile: { - serializedName: "properties.securityProfile", - type: { - name: "Composite", - className: "AgentPoolSecurityProfile" - } - } - } - } -}; - -export const Machine: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Machine", - modelProperties: { - ...SubResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "MachineProperties" - } } } } @@ -5806,13 +4838,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "PowerState" } }, - creationData: { - serializedName: "properties.creationData", - type: { - name: "Composite", - className: "CreationData" - } - }, maxAgentPools: { serializedName: "properties.maxAgentPools", readOnly: true, @@ -5928,13 +4953,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { name: "String" } }, - nodeResourceGroupProfile: { - serializedName: "properties.nodeResourceGroupProfile", - type: { - name: "Composite", - className: "ManagedClusterNodeResourceGroupProfile" - } - }, enableRbac: { serializedName: "properties.enableRBAC", type: { @@ -5953,12 +4971,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { name: "Boolean" } }, - enableNamespaceResources: { - serializedName: "properties.enableNamespaceResources", - type: { - name: "Boolean" - } - }, networkProfile: { serializedName: "properties.networkProfile", type: { @@ -6055,13 +5067,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterStorageProfile" } }, - ingressProfile: { - serializedName: "properties.ingressProfile", - type: { - name: "Composite", - className: "ManagedClusterIngressProfile" - } - }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { @@ -6082,13 +5087,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterAzureMonitorProfile" } }, - guardrailsProfile: { - serializedName: "properties.guardrailsProfile", - type: { - name: "Composite", - className: "GuardrailsProfile" - } - }, serviceMeshProfile: { serializedName: "properties.serviceMeshProfile", type: { @@ -6102,13 +5100,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { type: { name: "String" } - }, - metricsProfile: { - serializedName: "properties.metricsProfile", - type: { - name: "Composite", - className: "ManagedClusterMetricsProfile" - } } } } @@ -6197,37 +5188,6 @@ export const Snapshot: coreClient.CompositeMapper = { } }; -export const ManagedClusterSnapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSnapshot", - modelProperties: { - ...TrackedResource.type.modelProperties, - creationData: { - serializedName: "properties.creationData", - type: { - name: "Composite", - className: "CreationData" - } - }, - snapshotType: { - defaultValue: "NodePool", - serializedName: "properties.snapshotType", - type: { - name: "String" - } - }, - managedClusterPropertiesReadOnly: { - serializedName: "properties.managedClusterPropertiesReadOnly", - type: { - name: "Composite", - className: "ManagedClusterPropertiesForSnapshot" - } - } - } - } -}; - export const MeshRevisionProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6307,37 +5267,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 46ffd1299ba8..5b3c73657ee4 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -22,7 +22,6 @@ import { PrivateEndpointConnection as PrivateEndpointConnectionMapper, PrivateLinkResource as PrivateLinkResourceMapper, Snapshot as SnapshotMapper, - ManagedClusterSnapshot as ManagedClusterSnapshotMapper, TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper } from "../models/mappers"; @@ -53,7 +52,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-08-02-preview", + defaultValue: "2023-09-01", isConstant: true, serializedName: "api-version", type: { @@ -65,13 +64,10 @@ export const apiVersion: OperationQueryParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { - constraints: { - MinLength: 1 - }, serializedName: "subscriptionId", required: true, type: { - name: "String" + name: "Uuid" } } }; @@ -186,16 +182,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 @@ -222,21 +208,6 @@ export const commandId: OperationURLParameter = { } }; -export const version: OperationURLParameter = { - parameterPath: "version", - mapper: { - constraints: { - MaxLength: 24, - MinLength: 1 - }, - serializedName: "version", - required: true, - type: { - name: "String" - } - } -}; - export const mode: OperationURLParameter = { parameterPath: "mode", mapper: { @@ -304,20 +275,6 @@ export const parameters5: OperationParameter = { mapper: AgentPoolMapper }; -export const machineName: OperationURLParameter = { - parameterPath: "machineName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][-_a-zA-Z0-9]{0,39}$") - }, - serializedName: "machineName", - required: true, - type: { - name: "String" - } - } -}; - export const privateEndpointConnectionName: OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -344,11 +301,6 @@ export const parameters8: OperationParameter = { mapper: SnapshotMapper }; -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedClusterSnapshotMapper -}; - export const trustedAccessRoleBindingName: OperationURLParameter = { parameterPath: "trustedAccessRoleBindingName", mapper: { diff --git a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts index ca61b3c6c405..93a09ecc6cf9 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 eec2d44c034b..efffc02a7d44 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/index.ts @@ -10,11 +10,9 @@ export * from "./operations"; export * from "./managedClusters"; export * from "./maintenanceConfigurations"; export * from "./agentPools"; -export * from "./machines"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./resolvePrivateLinkServiceId"; export * from "./snapshots"; -export * from "./managedClusterSnapshots"; -export * from "./trustedAccessRoles"; export * from "./trustedAccessRoleBindings"; +export * from "./trustedAccessRoles"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/machines.ts b/sdk/containerservice/arm-containerservice/src/operations/machines.ts deleted file mode 100644 index c79f7ecb8deb..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/machines.ts +++ /dev/null @@ -1,264 +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 { Machines } 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 { - Machine, - MachinesListNextOptionalParams, - MachinesListOptionalParams, - MachinesListResponse, - MachinesGetOptionalParams, - MachinesGetResponse, - MachinesListNextResponse -} from "../models"; - -/// -/** Class containing Machines operations. */ -export class MachinesImpl implements Machines { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class Machines class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * Gets a list of machines in the specified agent pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param agentPoolName The name of the agent pool. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - options?: MachinesListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - resourceName, - agentPoolName, - 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, - agentPoolName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - options?: MachinesListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: MachinesListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list( - resourceGroupName, - resourceName, - agentPoolName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - resourceName, - agentPoolName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - options?: MachinesListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - resourceName, - agentPoolName, - options - )) { - yield* page; - } - } - - /** - * Gets a list of machines in the specified agent pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param agentPoolName The name of the agent pool. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - options?: MachinesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, agentPoolName, options }, - listOperationSpec - ); - } - - /** - * Get a specific machine in the specified agent pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param agentPoolName The name of the agent pool. - * @param machineName host name of the machine - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - machineName: string, - options?: MachinesGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, agentPoolName, machineName, options }, - getOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param agentPoolName The name of the agent pool. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - nextLink: string, - options?: MachinesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, agentPoolName, 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}/agentPools/{agentPoolName}/machines", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MachineListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.agentPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/machines/{machineName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Machine - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.agentPoolName, - Parameters.machineName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MachineListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.nextLink, - Parameters.agentPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; 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 b4683f5059cb..77b621d7d4a8 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -31,10 +31,6 @@ import { ManagedClustersListOutboundNetworkDependenciesEndpointsNextOptionalParams, ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, ManagedClustersListOutboundNetworkDependenciesEndpointsResponse, - GuardrailsAvailableVersion, - ManagedClustersListGuardrailsVersionsNextOptionalParams, - ManagedClustersListGuardrailsVersionsOptionalParams, - ManagedClustersListGuardrailsVersionsResponse, MeshRevisionProfile, ManagedClustersListMeshRevisionProfilesNextOptionalParams, ManagedClustersListMeshRevisionProfilesOptionalParams, @@ -70,10 +66,10 @@ import { ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, - ManagedClustersAbortLatestOperationOptionalParams, - ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, + ManagedClustersAbortLatestOperationOptionalParams, + ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, @@ -85,8 +81,6 @@ import { ManagedClustersRunCommandResponse, ManagedClustersGetCommandResultOptionalParams, ManagedClustersGetCommandResultResponse, - ManagedClustersGetGuardrailsVersionsOptionalParams, - ManagedClustersGetGuardrailsVersionsResponse, ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, @@ -94,7 +88,6 @@ import { ManagedClustersListNextResponse, ManagedClustersListByResourceGroupNextResponse, ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse, - ManagedClustersListGuardrailsVersionsNextResponse, ManagedClustersListMeshRevisionProfilesNextResponse, ManagedClustersListMeshUpgradeProfilesNextResponse } from "../models"; @@ -320,79 +313,10 @@ export class ManagedClustersImpl implements ManagedClusters { } } - /** - * Contains list of Guardrails version along with its support info and whether it is a default version. - * @param location The name of Azure region. - * @param options The options parameters. - */ - public listGuardrailsVersions( - location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listGuardrailsVersionsPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listGuardrailsVersionsPagingPage( - location, - options, - settings - ); - } - }; - } - - private async *listGuardrailsVersionsPagingPage( - location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: ManagedClustersListGuardrailsVersionsResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listGuardrailsVersions(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listGuardrailsVersionsNext( - location, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listGuardrailsVersionsPagingAll( - location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listGuardrailsVersionsPagingPage( - location, - options - )) { - yield* page; - } - } - /** * Contains extra metadata on each revision, including supported revisions, cluster compatibility and * available upgrades - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ public listMeshRevisionProfiles( @@ -545,7 +469,7 @@ export class ManagedClustersImpl implements ManagedClusters { /** * Gets supported OS options in the specified subscription. - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ getOSOptions( @@ -561,7 +485,7 @@ export class ManagedClustersImpl implements ManagedClusters { /** * Contains extra metadata on the version, including supported patch versions, capabilities, available * upgrades, and details on preview status of the version - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ listKubernetesVersions( @@ -1166,27 +1090,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 ( @@ -1225,11 +1148,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, @@ -1240,19 +1163,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 @@ -1261,26 +1183,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 ( @@ -1319,11 +1242,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, @@ -1334,18 +1257,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 @@ -1773,42 +1697,10 @@ export class ManagedClustersImpl implements ManagedClusters { ); } - /** - * Contains Guardrails version along with its support info and whether it is a default version. - * @param location The name of Azure region. - * @param version Guardrails version - * @param options The options parameters. - */ - getGuardrailsVersions( - location: string, - version: string, - options?: ManagedClustersGetGuardrailsVersionsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, version, options }, - getGuardrailsVersionsOperationSpec - ); - } - - /** - * Contains list of Guardrails version along with its support info and whether it is a default version. - * @param location The name of Azure region. - * @param options The options parameters. - */ - private _listGuardrailsVersions( - location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listGuardrailsVersionsOperationSpec - ); - } - /** * Contains extra metadata on each revision, including supported revisions, cluster compatibility and * available upgrades - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ private _listMeshRevisionProfiles( @@ -1824,7 +1716,7 @@ export class ManagedClustersImpl implements ManagedClusters { /** * Contains extra metadata on the revision, including supported revisions, cluster compatibility and * available upgrades - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param mode The mode of the mesh. * @param options The options parameters. */ @@ -1929,26 +1821,9 @@ export class ManagedClustersImpl implements ManagedClusters { ); } - /** - * ListGuardrailsVersionsNext - * @param location The name of Azure region. - * @param nextLink The nextLink from the previous successful call to the ListGuardrailsVersions method. - * @param options The options parameters. - */ - private _listGuardrailsVersionsNext( - location: string, - nextLink: string, - options?: ManagedClustersListGuardrailsVersionsNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listGuardrailsVersionsNextOperationSpec - ); - } - /** * ListMeshRevisionProfilesNext - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param nextLink The nextLink from the previous successful call to the ListMeshRevisionProfiles * method. * @param options The options parameters. @@ -2291,10 +2166,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.ignorePodDisruptionBudget - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -2354,22 +2226,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 @@ -2385,22 +2257,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 @@ -2594,49 +2466,6 @@ const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.Operatio headerParameters: [Parameters.accept], serializer }; -const getGuardrailsVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions/{version}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GuardrailsAvailableVersion - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.version - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGuardrailsVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GuardrailsAvailableVersionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; const listMeshRevisionProfilesOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles", @@ -2785,26 +2614,6 @@ const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.Oper headerParameters: [Parameters.accept], serializer }; -const listGuardrailsVersionsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GuardrailsAvailableVersionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; const listMeshRevisionProfilesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts index 1290c01a6b2b..e9c174c32a18 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts @@ -36,7 +36,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { /** * List supported trusted access roles. - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ public list( @@ -94,7 +94,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { /** * List supported trusted access roles. - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ private _list( @@ -109,7 +109,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { /** * ListNext - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ 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 eec2d44c034b..efffc02a7d44 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts @@ -10,11 +10,9 @@ export * from "./operations"; export * from "./managedClusters"; export * from "./maintenanceConfigurations"; export * from "./agentPools"; -export * from "./machines"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./resolvePrivateLinkServiceId"; export * from "./snapshots"; -export * from "./managedClusterSnapshots"; -export * from "./trustedAccessRoles"; export * from "./trustedAccessRoleBindings"; +export * from "./trustedAccessRoles"; diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts deleted file mode 100644 index 93e5a2ddaf58..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts +++ /dev/null @@ -1,48 +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 { - Machine, - MachinesListOptionalParams, - MachinesGetOptionalParams, - MachinesGetResponse -} from "../models"; - -/// -/** Interface representing a Machines. */ -export interface Machines { - /** - * Gets a list of machines in the specified agent pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param agentPoolName The name of the agent pool. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - options?: MachinesListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get a specific machine in the specified agent pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param agentPoolName The name of the agent pool. - * @param machineName host name of the machine - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - agentPoolName: string, - machineName: string, - options?: MachinesGetOptionalParams - ): Promise; -} 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 9413996b8a10..532578092db8 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts @@ -14,8 +14,6 @@ import { ManagedClustersListByResourceGroupOptionalParams, OutboundEnvironmentEndpoint, ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, - GuardrailsAvailableVersion, - ManagedClustersListGuardrailsVersionsOptionalParams, MeshRevisionProfile, ManagedClustersListMeshRevisionProfilesOptionalParams, MeshUpgradeProfile, @@ -47,10 +45,10 @@ import { ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, - ManagedClustersAbortLatestOperationOptionalParams, - ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateClusterCertificatesResponse, + ManagedClustersAbortLatestOperationOptionalParams, + ManagedClustersAbortLatestOperationResponse, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersRotateServiceAccountSigningKeysResponse, ManagedClustersStopOptionalParams, @@ -62,8 +60,6 @@ import { ManagedClustersRunCommandResponse, ManagedClustersGetCommandResultOptionalParams, ManagedClustersGetCommandResultResponse, - ManagedClustersGetGuardrailsVersionsOptionalParams, - ManagedClustersGetGuardrailsVersionsResponse, ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, @@ -101,19 +97,10 @@ export interface ManagedClusters { resourceName: string, options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams ): PagedAsyncIterableIterator; - /** - * Contains list of Guardrails version along with its support info and whether it is a default version. - * @param location The name of Azure region. - * @param options The options parameters. - */ - listGuardrailsVersions( - location: string, - options?: ManagedClustersListGuardrailsVersionsOptionalParams - ): PagedAsyncIterableIterator; /** * Contains extra metadata on each revision, including supported revisions, cluster compatibility and * available upgrades - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ listMeshRevisionProfiles( @@ -133,7 +120,7 @@ export interface ManagedClusters { ): PagedAsyncIterableIterator; /** * Gets supported OS options in the specified subscription. - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ getOSOptions( @@ -143,7 +130,7 @@ export interface ManagedClusters { /** * Contains extra metadata on the version, including supported patch versions, capabilities, available * upgrades, and details on preview status of the version - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ listKubernetesVersions( @@ -366,65 +353,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. @@ -564,21 +551,10 @@ export interface ManagedClusters { commandId: string, options?: ManagedClustersGetCommandResultOptionalParams ): Promise; - /** - * Contains Guardrails version along with its support info and whether it is a default version. - * @param location The name of Azure region. - * @param version Guardrails version - * @param options The options parameters. - */ - getGuardrailsVersions( - location: string, - version: string, - options?: ManagedClustersGetGuardrailsVersionsOptionalParams - ): Promise; /** * Contains extra metadata on the revision, including supported revisions, cluster compatibility and * available upgrades - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param mode The mode of the mesh. * @param options The options parameters. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts index 48bad47db1b5..6186e604d8c9 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts @@ -17,7 +17,7 @@ import { export interface TrustedAccessRoles { /** * List supported trusted access roles. - * @param location The name of Azure region. + * @param location The name of the Azure region. * @param options The options parameters. */ list( 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"