diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 7ece47c88025..0da9a937babc 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2258,7 +2258,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/chai-as-promised/7.1.5: @@ -2280,7 +2280,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/cookie/0.4.1: @@ -2290,7 +2290,7 @@ packages: /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/debug/4.1.7: @@ -2302,7 +2302,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/eslint/8.4.10: @@ -2323,7 +2323,7 @@ packages: /@types/express-serve-static-core/4.17.33: resolution: {integrity: sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 dev: false @@ -2340,13 +2340,13 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/inquirer/8.2.6: @@ -2359,7 +2359,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/json-schema/7.0.11: @@ -2373,13 +2373,13 @@ packages: /@types/jsonwebtoken/9.0.1: resolution: {integrity: sha512-c5ltxazpWabia/4UzhIoaDcIza4KViOQhdbjRlfcIGVnsE3c3brkz9Z+F/EeJIECOQP7W7US2hNE930cWWkPiw==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/linkify-it/3.0.2: @@ -2426,7 +2426,7 @@ packages: /@types/node-fetch/2.6.2: resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 form-data: 3.0.1 dev: false @@ -2473,7 +2473,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/semaphore/1.1.1: @@ -2488,7 +2488,7 @@ packages: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/sinon/10.0.13: @@ -2510,13 +2510,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/tough-cookie/4.0.2: @@ -2530,13 +2530,13 @@ packages: /@types/tunnel/0.0.1: resolution: {integrity: sha512-AOqu6bQu5MSWwYvehMXLukFHnupHrpZ8nvgae5Ggie9UwzDR1CCwoXgSSWNZJuyOlCdfdsWMA5F2LlmvyoTv8A==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/underscore/1.11.4: @@ -2554,19 +2554,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/ws/8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false /@types/yargs-parser/21.0.0: @@ -2583,7 +2583,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.38 + '@types/node': 18.15.3 dev: false optional: true @@ -3653,7 +3653,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -3942,7 +3942,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 14.18.38 + '@types/node': 18.15.3 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -4966,7 +4966,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -7370,7 +7370,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 14.18.38 + '@types/node': 18.15.3 long: 5.2.1 dev: false @@ -11079,10 +11079,11 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-9pvYZGlEjkxECFsQR+85oXAp4AId/RmdRbOaKxLLvveT8xg8/PqanUjfziILdNnJbSCdKK1Sk2zqhrLxQaWKXQ==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-jQO/4BzOUfgbxjBY18G+69OHuSzVL0RAv1WiOzC4tzOm0rRzT/svU/ufcIuoqZc+AHJFpBA8RKNp7EzmHotM2A==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: + '@azure-tools/test-recorder': 2.0.0 '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.34.4_@types+node@14.18.38 '@rollup/plugin-commonjs': 24.0.1_rollup@2.79.1 @@ -11103,6 +11104,7 @@ packages: typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: + - encoding - supports-color dev: false diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index ae5e867833f3..debfc5edfdee 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,15 +1,29 @@ # Release History + +## 18.0.0 (2023-03-21) + +**Features** -## 17.4.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface ManagedClusterSecurityProfileImageCleaner + - Added Interface ManagedClusterSecurityProfileWorkloadIdentity + - Added Type Alias NetworkDataplane + - Added Type Alias NetworkPluginMode + - Interface ContainerServiceNetworkProfile has a new optional parameter networkDataplane + - Interface ContainerServiceNetworkProfile has a new optional parameter networkPluginMode + - Interface ManagedClusterSecurityProfile has a new optional parameter imageCleaner + - Interface ManagedClusterSecurityProfile has a new optional parameter workloadIdentity + - Added Enum KnownNetworkDataplane + - Added Enum KnownNetworkPluginMode + - Enum KnownNetworkPolicy has a new value Cilium -### Other Changes +**Breaking Changes** + - Removed Enum KnownContainerServiceStorageProfileTypes + - Removed Enum KnownContainerServiceVMSizeTypes + - Enum KnownManagedClusterSKUName no longer has value Basic + - Enum KnownManagedClusterSKUTier no longer has value Paid + + ## 17.4.0 (2023-03-09) **Features** diff --git a/sdk/containerservice/arm-containerservice/_meta.json b/sdk/containerservice/arm-containerservice/_meta.json index 965a1276b7f2..a0ea804f87b6 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,7 +1,7 @@ { - "commit": "4f4044394791773e6e7e82a9bd90d3935caaca1b", + "commit": "5c7044848f820bcde3ffe6003f3c6f2b300fe0e4", "readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.0-rc.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --use=@autorest/typescript@6.0.0-rc.9", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", "use": "@autorest/typescript@6.0.0-rc.9" diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index 54ba3a463c84..218070abe2d5 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": "17.4.1", + "version": "18.0.0", "engines": { "node": ">=14.0.0" }, @@ -41,7 +41,7 @@ "rimraf": "^3.0.0", "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", "@types/chai": "^4.2.8", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice" +} \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md index d10957237c6a..2c74c21ff6fb 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -269,29 +269,12 @@ export interface ContainerServiceClientOptionalParams extends coreClient.Service endpoint?: string; } -// @public -export interface ContainerServiceDiagnosticsProfile { - vmDiagnostics: ContainerServiceVMDiagnostics; -} - // @public export interface ContainerServiceLinuxProfile { adminUsername: string; ssh: ContainerServiceSshConfiguration; } -// @public -export interface ContainerServiceMasterProfile { - count?: Count; - dnsPrefix: string; - firstConsecutiveStaticIP?: string; - readonly fqdn?: string; - osDiskSizeGB?: number; - storageProfile?: ContainerServiceStorageProfileTypes; - vmSize: ContainerServiceVMSizeTypes; - vnetSubnetID?: string; -} - // @public export interface ContainerServiceNetworkProfile { dnsServiceIP?: string; @@ -300,8 +283,10 @@ export interface ContainerServiceNetworkProfile { loadBalancerProfile?: ManagedClusterLoadBalancerProfile; loadBalancerSku?: LoadBalancerSku; natGatewayProfile?: ManagedClusterNATGatewayProfile; + networkDataplane?: NetworkDataplane; networkMode?: NetworkMode; networkPlugin?: NetworkPlugin; + networkPluginMode?: NetworkPluginMode; networkPolicy?: NetworkPolicy; outboundType?: OutboundType; podCidr?: string; @@ -320,21 +305,6 @@ export interface ContainerServiceSshPublicKey { keyData: string; } -// @public -export type ContainerServiceStorageProfileTypes = string; - -// @public -export interface ContainerServiceVMDiagnostics { - enabled: boolean; - readonly storageUri?: string; -} - -// @public -export type ContainerServiceVMSizeTypes = string; - -// @public -export type Count = 1 | 3 | 5; - // @public export type CreatedByType = string; @@ -421,190 +391,6 @@ export enum KnownConnectionStatus { Rejected = "Rejected" } -// @public -export enum KnownContainerServiceStorageProfileTypes { - ManagedDisks = "ManagedDisks", - StorageAccount = "StorageAccount" -} - -// @public -export enum KnownContainerServiceVMSizeTypes { - StandardA1 = "Standard_A1", - StandardA10 = "Standard_A10", - StandardA11 = "Standard_A11", - StandardA1V2 = "Standard_A1_v2", - StandardA2 = "Standard_A2", - StandardA2MV2 = "Standard_A2m_v2", - StandardA2V2 = "Standard_A2_v2", - StandardA3 = "Standard_A3", - StandardA4 = "Standard_A4", - StandardA4MV2 = "Standard_A4m_v2", - StandardA4V2 = "Standard_A4_v2", - StandardA5 = "Standard_A5", - StandardA6 = "Standard_A6", - StandardA7 = "Standard_A7", - StandardA8 = "Standard_A8", - StandardA8MV2 = "Standard_A8m_v2", - StandardA8V2 = "Standard_A8_v2", - StandardA9 = "Standard_A9", - StandardB2Ms = "Standard_B2ms", - StandardB2S = "Standard_B2s", - StandardB4Ms = "Standard_B4ms", - StandardB8Ms = "Standard_B8ms", - StandardD1 = "Standard_D1", - StandardD11 = "Standard_D11", - StandardD11V2 = "Standard_D11_v2", - StandardD11V2Promo = "Standard_D11_v2_Promo", - StandardD12 = "Standard_D12", - StandardD12V2 = "Standard_D12_v2", - StandardD12V2Promo = "Standard_D12_v2_Promo", - StandardD13 = "Standard_D13", - StandardD13V2 = "Standard_D13_v2", - StandardD13V2Promo = "Standard_D13_v2_Promo", - StandardD14 = "Standard_D14", - StandardD14V2 = "Standard_D14_v2", - StandardD14V2Promo = "Standard_D14_v2_Promo", - StandardD15V2 = "Standard_D15_v2", - StandardD16SV3 = "Standard_D16s_v3", - StandardD16V3 = "Standard_D16_v3", - StandardD1V2 = "Standard_D1_v2", - StandardD2 = "Standard_D2", - StandardD2SV3 = "Standard_D2s_v3", - StandardD2V2 = "Standard_D2_v2", - StandardD2V2Promo = "Standard_D2_v2_Promo", - StandardD2V3 = "Standard_D2_v3", - StandardD3 = "Standard_D3", - StandardD32SV3 = "Standard_D32s_v3", - StandardD32V3 = "Standard_D32_v3", - StandardD3V2 = "Standard_D3_v2", - StandardD3V2Promo = "Standard_D3_v2_Promo", - StandardD4 = "Standard_D4", - StandardD4SV3 = "Standard_D4s_v3", - StandardD4V2 = "Standard_D4_v2", - StandardD4V2Promo = "Standard_D4_v2_Promo", - StandardD4V3 = "Standard_D4_v3", - StandardD5V2 = "Standard_D5_v2", - StandardD5V2Promo = "Standard_D5_v2_Promo", - StandardD64SV3 = "Standard_D64s_v3", - StandardD64V3 = "Standard_D64_v3", - StandardD8SV3 = "Standard_D8s_v3", - StandardD8V3 = "Standard_D8_v3", - StandardDS1 = "Standard_DS1", - StandardDS11 = "Standard_DS11", - StandardDS11V2 = "Standard_DS11_v2", - StandardDS11V2Promo = "Standard_DS11_v2_Promo", - StandardDS12 = "Standard_DS12", - StandardDS12V2 = "Standard_DS12_v2", - StandardDS12V2Promo = "Standard_DS12_v2_Promo", - StandardDS13 = "Standard_DS13", - StandardDS132V2 = "Standard_DS13-2_v2", - StandardDS134V2 = "Standard_DS13-4_v2", - StandardDS13V2 = "Standard_DS13_v2", - StandardDS13V2Promo = "Standard_DS13_v2_Promo", - StandardDS14 = "Standard_DS14", - StandardDS144V2 = "Standard_DS14-4_v2", - StandardDS148V2 = "Standard_DS14-8_v2", - StandardDS14V2 = "Standard_DS14_v2", - StandardDS14V2Promo = "Standard_DS14_v2_Promo", - StandardDS15V2 = "Standard_DS15_v2", - StandardDS1V2 = "Standard_DS1_v2", - StandardDS2 = "Standard_DS2", - StandardDS2V2 = "Standard_DS2_v2", - StandardDS2V2Promo = "Standard_DS2_v2_Promo", - StandardDS3 = "Standard_DS3", - StandardDS3V2 = "Standard_DS3_v2", - StandardDS3V2Promo = "Standard_DS3_v2_Promo", - StandardDS4 = "Standard_DS4", - StandardDS4V2 = "Standard_DS4_v2", - StandardDS4V2Promo = "Standard_DS4_v2_Promo", - StandardDS5V2 = "Standard_DS5_v2", - StandardDS5V2Promo = "Standard_DS5_v2_Promo", - StandardE16SV3 = "Standard_E16s_v3", - StandardE16V3 = "Standard_E16_v3", - StandardE2SV3 = "Standard_E2s_v3", - StandardE2V3 = "Standard_E2_v3", - StandardE3216SV3 = "Standard_E32-16s_v3", - StandardE328SV3 = "Standard_E32-8s_v3", - StandardE32SV3 = "Standard_E32s_v3", - StandardE32V3 = "Standard_E32_v3", - StandardE4SV3 = "Standard_E4s_v3", - StandardE4V3 = "Standard_E4_v3", - StandardE6416SV3 = "Standard_E64-16s_v3", - StandardE6432SV3 = "Standard_E64-32s_v3", - StandardE64SV3 = "Standard_E64s_v3", - StandardE64V3 = "Standard_E64_v3", - StandardE8SV3 = "Standard_E8s_v3", - StandardE8V3 = "Standard_E8_v3", - StandardF1 = "Standard_F1", - StandardF16 = "Standard_F16", - StandardF16S = "Standard_F16s", - StandardF16SV2 = "Standard_F16s_v2", - StandardF1S = "Standard_F1s", - StandardF2 = "Standard_F2", - StandardF2S = "Standard_F2s", - StandardF2SV2 = "Standard_F2s_v2", - StandardF32SV2 = "Standard_F32s_v2", - StandardF4 = "Standard_F4", - StandardF4S = "Standard_F4s", - StandardF4SV2 = "Standard_F4s_v2", - StandardF64SV2 = "Standard_F64s_v2", - StandardF72SV2 = "Standard_F72s_v2", - StandardF8 = "Standard_F8", - StandardF8S = "Standard_F8s", - StandardF8SV2 = "Standard_F8s_v2", - StandardG1 = "Standard_G1", - StandardG2 = "Standard_G2", - StandardG3 = "Standard_G3", - StandardG4 = "Standard_G4", - StandardG5 = "Standard_G5", - StandardGS1 = "Standard_GS1", - StandardGS2 = "Standard_GS2", - StandardGS3 = "Standard_GS3", - StandardGS4 = "Standard_GS4", - StandardGS44 = "Standard_GS4-4", - StandardGS48 = "Standard_GS4-8", - StandardGS5 = "Standard_GS5", - StandardGS516 = "Standard_GS5-16", - StandardGS58 = "Standard_GS5-8", - StandardH16 = "Standard_H16", - StandardH16M = "Standard_H16m", - StandardH16Mr = "Standard_H16mr", - StandardH16R = "Standard_H16r", - StandardH8 = "Standard_H8", - StandardH8M = "Standard_H8m", - StandardL16S = "Standard_L16s", - StandardL32S = "Standard_L32s", - StandardL4S = "Standard_L4s", - StandardL8S = "Standard_L8s", - StandardM12832Ms = "Standard_M128-32ms", - StandardM12864Ms = "Standard_M128-64ms", - StandardM128Ms = "Standard_M128ms", - StandardM128S = "Standard_M128s", - StandardM6416Ms = "Standard_M64-16ms", - StandardM6432Ms = "Standard_M64-32ms", - StandardM64Ms = "Standard_M64ms", - StandardM64S = "Standard_M64s", - StandardNC12 = "Standard_NC12", - StandardNC12SV2 = "Standard_NC12s_v2", - StandardNC12SV3 = "Standard_NC12s_v3", - StandardNC24 = "Standard_NC24", - StandardNC24R = "Standard_NC24r", - StandardNC24RsV2 = "Standard_NC24rs_v2", - StandardNC24RsV3 = "Standard_NC24rs_v3", - StandardNC24SV2 = "Standard_NC24s_v2", - StandardNC24SV3 = "Standard_NC24s_v3", - StandardNC6 = "Standard_NC6", - StandardNC6SV2 = "Standard_NC6s_v2", - StandardNC6SV3 = "Standard_NC6s_v3", - StandardND12S = "Standard_ND12s", - StandardND24Rs = "Standard_ND24rs", - StandardND24S = "Standard_ND24s", - StandardND6S = "Standard_ND6s", - StandardNV12 = "Standard_NV12", - StandardNV24 = "Standard_NV24", - StandardNV6 = "Standard_NV6" -} - // @public export enum KnownCreatedByType { Application = "Application", @@ -683,17 +469,21 @@ export enum KnownManagedClusterPodIdentityProvisioningState { // @public export enum KnownManagedClusterSKUName { - Base = "Base", - Basic = "Basic" + Base = "Base" } // @public export enum KnownManagedClusterSKUTier { Free = "Free", - Paid = "Paid", Standard = "Standard" } +// @public +export enum KnownNetworkDataplane { + Azure = "azure", + Cilium = "cilium" +} + // @public export enum KnownNetworkMode { Bridge = "bridge", @@ -707,10 +497,16 @@ export enum KnownNetworkPlugin { None = "none" } +// @public +export enum KnownNetworkPluginMode { + Overlay = "overlay" +} + // @public export enum KnownNetworkPolicy { Azure = "azure", - Calico = "calico" + Calico = "calico", + Cilium = "cilium" } // @public @@ -1281,6 +1077,8 @@ export type ManagedClustersDeleteResponse = ManagedClustersDeleteHeaders; export interface ManagedClusterSecurityProfile { azureKeyVaultKms?: AzureKeyVaultKms; defender?: ManagedClusterSecurityProfileDefender; + imageCleaner?: ManagedClusterSecurityProfileImageCleaner; + workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; } // @public @@ -1294,6 +1092,17 @@ export interface ManagedClusterSecurityProfileDefenderSecurityMonitoring { enabled?: boolean; } +// @public +export interface ManagedClusterSecurityProfileImageCleaner { + enabled?: boolean; + intervalHours?: number; +} + +// @public +export interface ManagedClusterSecurityProfileWorkloadIdentity { + enabled?: boolean; +} + // @public export interface ManagedClusterServicePrincipalProfile { clientId: string; @@ -1584,12 +1393,18 @@ export interface ManagedServiceIdentityUserAssignedIdentitiesValue { readonly principalId?: string; } +// @public +export type NetworkDataplane = string; + // @public export type NetworkMode = string; // @public export type NetworkPlugin = string; +// @public +export type NetworkPluginMode = string; + // @public export type NetworkPolicy = string; diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index e84390e00739..850866d9d4fb 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -68,7 +68,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-containerservice/17.4.1`; + const packageDetails = `azsdk-js-arm-containerservice/18.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -121,7 +121,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-01-01"; + this.apiVersion = options.apiVersion || "2023-02-01"; this.operations = new OperationsImpl(this); this.managedClusters = new ManagedClustersImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this); diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index 43641ca642a1..7e59c551c239 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -523,10 +523,14 @@ export interface ManagedClusterOidcIssuerProfile { export interface ContainerServiceNetworkProfile { /** Network plugin used for building the Kubernetes network. */ networkPlugin?: NetworkPlugin; + /** The mode the network plugin should use. */ + networkPluginMode?: NetworkPluginMode; /** Network policy used for building the Kubernetes network. */ networkPolicy?: NetworkPolicy; /** This cannot be specified if networkPlugin is anything other than 'azure'. */ networkMode?: NetworkMode; + /** Network dataplane used in the Kubernetes cluster. */ + networkDataplane?: NetworkDataplane; /** A CIDR notation IP range from which to assign pod IPs when kubenet is used. */ podCidr?: string; /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ @@ -724,6 +728,10 @@ export interface ManagedClusterSecurityProfile { defender?: ManagedClusterSecurityProfileDefender; /** Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile. */ azureKeyVaultKms?: AzureKeyVaultKms; + /** Workload identity settings for the security profile. Workload identity enables Kubernetes applications to access Azure cloud resources securely with Azure AD. See https://aka.ms/aks/wi for more details. */ + workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; + /** Image Cleaner settings for the security profile. */ + imageCleaner?: ManagedClusterSecurityProfileImageCleaner; } /** Microsoft Defender settings for the security profile. */ @@ -752,6 +760,20 @@ export interface AzureKeyVaultKms { keyVaultResourceId?: string; } +/** Workload identity settings for the security profile. */ +export interface ManagedClusterSecurityProfileWorkloadIdentity { + /** Whether to enable workload identity. */ + enabled?: boolean; +} + +/** Image Cleaner removes unused images from nodes, freeing up disk space and helping to reduce attack surface area. Here are settings for the security profile. */ +export interface ManagedClusterSecurityProfileImageCleaner { + /** Whether to enable Image Cleaner on AKS cluster. */ + enabled?: boolean; + /** Image Cleaner scanning interval in hours. */ + intervalHours?: number; +} + /** Storage profile for the container service cluster. */ export interface ManagedClusterStorageProfile { /** AzureDisk CSI Driver settings for the storage profile. */ @@ -1207,46 +1229,6 @@ export interface SnapshotListResult { readonly nextLink?: string; } -/** Profile for the container service master. */ -export interface ContainerServiceMasterProfile { - /** Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default value is 1. */ - count?: Count; - /** DNS prefix to be used to create the FQDN for the master pool. */ - dnsPrefix: string; - /** Size of agent VMs. */ - vmSize: ContainerServiceVMSizeTypes; - /** OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. */ - osDiskSizeGB?: number; - /** VNet SubnetID specifies the VNet's subnet identifier. */ - vnetSubnetID?: string; - /** FirstConsecutiveStaticIP used to specify the first static ip of masters. */ - firstConsecutiveStaticIP?: string; - /** Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. */ - storageProfile?: ContainerServiceStorageProfileTypes; - /** - * FQDN for the master pool. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fqdn?: string; -} - -/** Profile for diagnostics on the container service cluster. */ -export interface ContainerServiceDiagnosticsProfile { - /** Profile for diagnostics on the container service VMs. */ - vmDiagnostics: ContainerServiceVMDiagnostics; -} - -/** Profile for diagnostics on the container service VMs. */ -export interface ContainerServiceVMDiagnostics { - /** Whether the VM diagnostic agent is provisioned on the VM. */ - enabled: boolean; - /** - * The URI of the storage account where diagnostics are stored. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly storageUri?: string; -} - /** Profile for the container service agent pool. */ export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolProfileProperties { @@ -1602,8 +1584,6 @@ export interface AgentPoolsUpgradeNodeImageVersionHeaders { /** Known values of {@link ManagedClusterSKUName} that the service accepts. */ export enum KnownManagedClusterSKUName { - /** Basic will be removed in 07\/01\/2023 API version. Base will replace Basic, please switch to Base. */ - Basic = "Basic", /** Base option for the AKS control plane. */ Base = "Base" } @@ -1613,15 +1593,12 @@ export enum KnownManagedClusterSKUName { * {@link KnownManagedClusterSKUName} can be used interchangeably with ManagedClusterSKUName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Basic**: Basic will be removed in 07\/01\/2023 API version. Base will replace Basic, please switch to Base. \ * **Base**: Base option for the AKS control plane. */ export type ManagedClusterSKUName = string; /** Known values of {@link ManagedClusterSKUTier} that the service accepts. */ export enum KnownManagedClusterSKUTier { - /** Paid tier will be removed in 07\/01\/2023 API version. Standard tier will replace Paid tier, please switch to Standard tier. */ - Paid = "Paid", /** Recommended for mission-critical and production workloads. Includes Kubernetes control plane autoscaling, workload-intensive testing, and up to 5,000 nodes per cluster. Guarantees 99.95% availability of the Kubernetes API server endpoint for clusters that use Availability Zones and 99.9% of availability for clusters that don't use Availability Zones. */ Standard = "Standard", /** The cluster management is free, but charged for VM, storage, and networking usage. Best for experimenting, learning, simple testing, or workloads with fewer than 10 nodes. Not recommended for production use cases. */ @@ -1633,7 +1610,6 @@ export enum KnownManagedClusterSKUTier { * {@link KnownManagedClusterSKUTier} can be used interchangeably with ManagedClusterSKUTier, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Paid**: Paid tier will be removed in 07\/01\/2023 API version. Standard tier will replace Paid tier, please switch to Standard tier. \ * **Standard**: Recommended for mission-critical and production workloads. Includes Kubernetes control plane autoscaling, workload-intensive testing, and up to 5,000 nodes per cluster. Guarantees 99.95% availability of the Kubernetes API server endpoint for clusters that use Availability Zones and 99.9% of availability for clusters that don't use Availability Zones. \ * **Free**: The cluster management is free, but charged for VM, storage, and networking usage. Best for experimenting, learning, simple testing, or workloads with fewer than 10 nodes. Not recommended for production use cases. */ @@ -1954,12 +1930,29 @@ export enum KnownNetworkPlugin { */ export type NetworkPlugin = string; +/** Known values of {@link NetworkPluginMode} that the service accepts. */ +export enum KnownNetworkPluginMode { + /** Used with networkPlugin=azure, pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet's method of route tables. For more information visit https:\//aka.ms\/aks\/azure-cni-overlay. */ + Overlay = "overlay" +} + +/** + * Defines values for NetworkPluginMode. \ + * {@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**: 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 { /** 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. */ - Azure = "azure" + Azure = "azure", + /** Use Cilium to enforce network policies. This requires networkDataplane to be 'cilium'. */ + Cilium = "cilium" } /** @@ -1968,7 +1961,8 @@ export enum KnownNetworkPolicy { * this enum contains the known values that the service supports. * ### Known values supported by the service * **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. + * **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'. */ export type NetworkPolicy = string; @@ -1990,6 +1984,24 @@ export enum KnownNetworkMode { */ export type NetworkMode = string; +/** Known values of {@link NetworkDataplane} that the service accepts. */ +export enum KnownNetworkDataplane { + /** Use Azure network dataplane. */ + Azure = "azure", + /** Use Cilium network dataplane. See [Azure CNI Powered by Cilium](https:\//learn.microsoft.com\/azure\/aks\/azure-cni-powered-by-cilium) for more information. */ + Cilium = "cilium" +} + +/** + * Defines values for NetworkDataplane. \ + * {@link KnownNetworkDataplane} can be used interchangeably with NetworkDataplane, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **azure**: Use Azure network dataplane. \ + * **cilium**: Use Cilium network dataplane. See [Azure CNI Powered by Cilium](https:\/\/learn.microsoft.com\/azure\/aks\/azure-cni-powered-by-cilium) for more information. + */ +export type NetworkDataplane = string; + /** Known values of {@link OutboundType} that the service accepts. */ export enum KnownOutboundType { /** The load balancer is used for egress through an AKS assigned public IP. This supports Kubernetes services of type 'loadBalancer'. For more information see [outbound type loadbalancer](https:\//docs.microsoft.com\/azure\/aks\/egress-outboundtype#outbound-type-of-loadbalancer). */ @@ -2277,562 +2289,8 @@ export enum KnownSnapshotType { * **NodePool**: The snapshot is a snapshot of a node pool. */ export type SnapshotType = string; - -/** Known values of {@link ContainerServiceVMSizeTypes} that the service accepts. */ -export enum KnownContainerServiceVMSizeTypes { - /** StandardA1 */ - StandardA1 = "Standard_A1", - /** StandardA10 */ - StandardA10 = "Standard_A10", - /** StandardA11 */ - StandardA11 = "Standard_A11", - /** StandardA1V2 */ - StandardA1V2 = "Standard_A1_v2", - /** StandardA2 */ - StandardA2 = "Standard_A2", - /** StandardA2V2 */ - StandardA2V2 = "Standard_A2_v2", - /** StandardA2MV2 */ - StandardA2MV2 = "Standard_A2m_v2", - /** StandardA3 */ - StandardA3 = "Standard_A3", - /** StandardA4 */ - StandardA4 = "Standard_A4", - /** StandardA4V2 */ - StandardA4V2 = "Standard_A4_v2", - /** StandardA4MV2 */ - StandardA4MV2 = "Standard_A4m_v2", - /** StandardA5 */ - StandardA5 = "Standard_A5", - /** StandardA6 */ - StandardA6 = "Standard_A6", - /** StandardA7 */ - StandardA7 = "Standard_A7", - /** StandardA8 */ - StandardA8 = "Standard_A8", - /** StandardA8V2 */ - StandardA8V2 = "Standard_A8_v2", - /** StandardA8MV2 */ - StandardA8MV2 = "Standard_A8m_v2", - /** StandardA9 */ - StandardA9 = "Standard_A9", - /** StandardB2Ms */ - StandardB2Ms = "Standard_B2ms", - /** StandardB2S */ - StandardB2S = "Standard_B2s", - /** StandardB4Ms */ - StandardB4Ms = "Standard_B4ms", - /** StandardB8Ms */ - StandardB8Ms = "Standard_B8ms", - /** StandardD1 */ - StandardD1 = "Standard_D1", - /** StandardD11 */ - StandardD11 = "Standard_D11", - /** StandardD11V2 */ - StandardD11V2 = "Standard_D11_v2", - /** StandardD11V2Promo */ - StandardD11V2Promo = "Standard_D11_v2_Promo", - /** StandardD12 */ - StandardD12 = "Standard_D12", - /** StandardD12V2 */ - StandardD12V2 = "Standard_D12_v2", - /** StandardD12V2Promo */ - StandardD12V2Promo = "Standard_D12_v2_Promo", - /** StandardD13 */ - StandardD13 = "Standard_D13", - /** StandardD13V2 */ - StandardD13V2 = "Standard_D13_v2", - /** StandardD13V2Promo */ - StandardD13V2Promo = "Standard_D13_v2_Promo", - /** StandardD14 */ - StandardD14 = "Standard_D14", - /** StandardD14V2 */ - StandardD14V2 = "Standard_D14_v2", - /** StandardD14V2Promo */ - StandardD14V2Promo = "Standard_D14_v2_Promo", - /** StandardD15V2 */ - StandardD15V2 = "Standard_D15_v2", - /** StandardD16V3 */ - StandardD16V3 = "Standard_D16_v3", - /** StandardD16SV3 */ - StandardD16SV3 = "Standard_D16s_v3", - /** StandardD1V2 */ - StandardD1V2 = "Standard_D1_v2", - /** StandardD2 */ - StandardD2 = "Standard_D2", - /** StandardD2V2 */ - StandardD2V2 = "Standard_D2_v2", - /** StandardD2V2Promo */ - StandardD2V2Promo = "Standard_D2_v2_Promo", - /** StandardD2V3 */ - StandardD2V3 = "Standard_D2_v3", - /** StandardD2SV3 */ - StandardD2SV3 = "Standard_D2s_v3", - /** StandardD3 */ - StandardD3 = "Standard_D3", - /** StandardD32V3 */ - StandardD32V3 = "Standard_D32_v3", - /** StandardD32SV3 */ - StandardD32SV3 = "Standard_D32s_v3", - /** StandardD3V2 */ - StandardD3V2 = "Standard_D3_v2", - /** StandardD3V2Promo */ - StandardD3V2Promo = "Standard_D3_v2_Promo", - /** StandardD4 */ - StandardD4 = "Standard_D4", - /** StandardD4V2 */ - StandardD4V2 = "Standard_D4_v2", - /** StandardD4V2Promo */ - StandardD4V2Promo = "Standard_D4_v2_Promo", - /** StandardD4V3 */ - StandardD4V3 = "Standard_D4_v3", - /** StandardD4SV3 */ - StandardD4SV3 = "Standard_D4s_v3", - /** StandardD5V2 */ - StandardD5V2 = "Standard_D5_v2", - /** StandardD5V2Promo */ - StandardD5V2Promo = "Standard_D5_v2_Promo", - /** StandardD64V3 */ - StandardD64V3 = "Standard_D64_v3", - /** StandardD64SV3 */ - StandardD64SV3 = "Standard_D64s_v3", - /** StandardD8V3 */ - StandardD8V3 = "Standard_D8_v3", - /** StandardD8SV3 */ - StandardD8SV3 = "Standard_D8s_v3", - /** StandardDS1 */ - StandardDS1 = "Standard_DS1", - /** StandardDS11 */ - StandardDS11 = "Standard_DS11", - /** StandardDS11V2 */ - StandardDS11V2 = "Standard_DS11_v2", - /** StandardDS11V2Promo */ - StandardDS11V2Promo = "Standard_DS11_v2_Promo", - /** StandardDS12 */ - StandardDS12 = "Standard_DS12", - /** StandardDS12V2 */ - StandardDS12V2 = "Standard_DS12_v2", - /** StandardDS12V2Promo */ - StandardDS12V2Promo = "Standard_DS12_v2_Promo", - /** StandardDS13 */ - StandardDS13 = "Standard_DS13", - /** StandardDS132V2 */ - StandardDS132V2 = "Standard_DS13-2_v2", - /** StandardDS134V2 */ - StandardDS134V2 = "Standard_DS13-4_v2", - /** StandardDS13V2 */ - StandardDS13V2 = "Standard_DS13_v2", - /** StandardDS13V2Promo */ - StandardDS13V2Promo = "Standard_DS13_v2_Promo", - /** StandardDS14 */ - StandardDS14 = "Standard_DS14", - /** StandardDS144V2 */ - StandardDS144V2 = "Standard_DS14-4_v2", - /** StandardDS148V2 */ - StandardDS148V2 = "Standard_DS14-8_v2", - /** StandardDS14V2 */ - StandardDS14V2 = "Standard_DS14_v2", - /** StandardDS14V2Promo */ - StandardDS14V2Promo = "Standard_DS14_v2_Promo", - /** StandardDS15V2 */ - StandardDS15V2 = "Standard_DS15_v2", - /** StandardDS1V2 */ - StandardDS1V2 = "Standard_DS1_v2", - /** StandardDS2 */ - StandardDS2 = "Standard_DS2", - /** StandardDS2V2 */ - StandardDS2V2 = "Standard_DS2_v2", - /** StandardDS2V2Promo */ - StandardDS2V2Promo = "Standard_DS2_v2_Promo", - /** StandardDS3 */ - StandardDS3 = "Standard_DS3", - /** StandardDS3V2 */ - StandardDS3V2 = "Standard_DS3_v2", - /** StandardDS3V2Promo */ - StandardDS3V2Promo = "Standard_DS3_v2_Promo", - /** StandardDS4 */ - StandardDS4 = "Standard_DS4", - /** StandardDS4V2 */ - StandardDS4V2 = "Standard_DS4_v2", - /** StandardDS4V2Promo */ - StandardDS4V2Promo = "Standard_DS4_v2_Promo", - /** StandardDS5V2 */ - StandardDS5V2 = "Standard_DS5_v2", - /** StandardDS5V2Promo */ - StandardDS5V2Promo = "Standard_DS5_v2_Promo", - /** StandardE16V3 */ - StandardE16V3 = "Standard_E16_v3", - /** StandardE16SV3 */ - StandardE16SV3 = "Standard_E16s_v3", - /** StandardE2V3 */ - StandardE2V3 = "Standard_E2_v3", - /** StandardE2SV3 */ - StandardE2SV3 = "Standard_E2s_v3", - /** StandardE3216SV3 */ - StandardE3216SV3 = "Standard_E32-16s_v3", - /** StandardE328SV3 */ - StandardE328SV3 = "Standard_E32-8s_v3", - /** StandardE32V3 */ - StandardE32V3 = "Standard_E32_v3", - /** StandardE32SV3 */ - StandardE32SV3 = "Standard_E32s_v3", - /** StandardE4V3 */ - StandardE4V3 = "Standard_E4_v3", - /** StandardE4SV3 */ - StandardE4SV3 = "Standard_E4s_v3", - /** StandardE6416SV3 */ - StandardE6416SV3 = "Standard_E64-16s_v3", - /** StandardE6432SV3 */ - StandardE6432SV3 = "Standard_E64-32s_v3", - /** StandardE64V3 */ - StandardE64V3 = "Standard_E64_v3", - /** StandardE64SV3 */ - StandardE64SV3 = "Standard_E64s_v3", - /** StandardE8V3 */ - StandardE8V3 = "Standard_E8_v3", - /** StandardE8SV3 */ - StandardE8SV3 = "Standard_E8s_v3", - /** StandardF1 */ - StandardF1 = "Standard_F1", - /** StandardF16 */ - StandardF16 = "Standard_F16", - /** StandardF16S */ - StandardF16S = "Standard_F16s", - /** StandardF16SV2 */ - StandardF16SV2 = "Standard_F16s_v2", - /** StandardF1S */ - StandardF1S = "Standard_F1s", - /** StandardF2 */ - StandardF2 = "Standard_F2", - /** StandardF2S */ - StandardF2S = "Standard_F2s", - /** StandardF2SV2 */ - StandardF2SV2 = "Standard_F2s_v2", - /** StandardF32SV2 */ - StandardF32SV2 = "Standard_F32s_v2", - /** StandardF4 */ - StandardF4 = "Standard_F4", - /** StandardF4S */ - StandardF4S = "Standard_F4s", - /** StandardF4SV2 */ - StandardF4SV2 = "Standard_F4s_v2", - /** StandardF64SV2 */ - StandardF64SV2 = "Standard_F64s_v2", - /** StandardF72SV2 */ - StandardF72SV2 = "Standard_F72s_v2", - /** StandardF8 */ - StandardF8 = "Standard_F8", - /** StandardF8S */ - StandardF8S = "Standard_F8s", - /** StandardF8SV2 */ - StandardF8SV2 = "Standard_F8s_v2", - /** StandardG1 */ - StandardG1 = "Standard_G1", - /** StandardG2 */ - StandardG2 = "Standard_G2", - /** StandardG3 */ - StandardG3 = "Standard_G3", - /** StandardG4 */ - StandardG4 = "Standard_G4", - /** StandardG5 */ - StandardG5 = "Standard_G5", - /** StandardGS1 */ - StandardGS1 = "Standard_GS1", - /** StandardGS2 */ - StandardGS2 = "Standard_GS2", - /** StandardGS3 */ - StandardGS3 = "Standard_GS3", - /** StandardGS4 */ - StandardGS4 = "Standard_GS4", - /** StandardGS44 */ - StandardGS44 = "Standard_GS4-4", - /** StandardGS48 */ - StandardGS48 = "Standard_GS4-8", - /** StandardGS5 */ - StandardGS5 = "Standard_GS5", - /** StandardGS516 */ - StandardGS516 = "Standard_GS5-16", - /** StandardGS58 */ - StandardGS58 = "Standard_GS5-8", - /** StandardH16 */ - StandardH16 = "Standard_H16", - /** StandardH16M */ - StandardH16M = "Standard_H16m", - /** StandardH16Mr */ - StandardH16Mr = "Standard_H16mr", - /** StandardH16R */ - StandardH16R = "Standard_H16r", - /** StandardH8 */ - StandardH8 = "Standard_H8", - /** StandardH8M */ - StandardH8M = "Standard_H8m", - /** StandardL16S */ - StandardL16S = "Standard_L16s", - /** StandardL32S */ - StandardL32S = "Standard_L32s", - /** StandardL4S */ - StandardL4S = "Standard_L4s", - /** StandardL8S */ - StandardL8S = "Standard_L8s", - /** StandardM12832Ms */ - StandardM12832Ms = "Standard_M128-32ms", - /** StandardM12864Ms */ - StandardM12864Ms = "Standard_M128-64ms", - /** StandardM128Ms */ - StandardM128Ms = "Standard_M128ms", - /** StandardM128S */ - StandardM128S = "Standard_M128s", - /** StandardM6416Ms */ - StandardM6416Ms = "Standard_M64-16ms", - /** StandardM6432Ms */ - StandardM6432Ms = "Standard_M64-32ms", - /** StandardM64Ms */ - StandardM64Ms = "Standard_M64ms", - /** StandardM64S */ - StandardM64S = "Standard_M64s", - /** StandardNC12 */ - StandardNC12 = "Standard_NC12", - /** StandardNC12SV2 */ - StandardNC12SV2 = "Standard_NC12s_v2", - /** StandardNC12SV3 */ - StandardNC12SV3 = "Standard_NC12s_v3", - /** StandardNC24 */ - StandardNC24 = "Standard_NC24", - /** StandardNC24R */ - StandardNC24R = "Standard_NC24r", - /** StandardNC24RsV2 */ - StandardNC24RsV2 = "Standard_NC24rs_v2", - /** StandardNC24RsV3 */ - StandardNC24RsV3 = "Standard_NC24rs_v3", - /** StandardNC24SV2 */ - StandardNC24SV2 = "Standard_NC24s_v2", - /** StandardNC24SV3 */ - StandardNC24SV3 = "Standard_NC24s_v3", - /** StandardNC6 */ - StandardNC6 = "Standard_NC6", - /** StandardNC6SV2 */ - StandardNC6SV2 = "Standard_NC6s_v2", - /** StandardNC6SV3 */ - StandardNC6SV3 = "Standard_NC6s_v3", - /** StandardND12S */ - StandardND12S = "Standard_ND12s", - /** StandardND24Rs */ - StandardND24Rs = "Standard_ND24rs", - /** StandardND24S */ - StandardND24S = "Standard_ND24s", - /** StandardND6S */ - StandardND6S = "Standard_ND6s", - /** StandardNV12 */ - StandardNV12 = "Standard_NV12", - /** StandardNV24 */ - StandardNV24 = "Standard_NV24", - /** StandardNV6 */ - StandardNV6 = "Standard_NV6" -} - -/** - * Defines values for ContainerServiceVMSizeTypes. \ - * {@link KnownContainerServiceVMSizeTypes} can be used interchangeably with ContainerServiceVMSizeTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Standard_A1** \ - * **Standard_A10** \ - * **Standard_A11** \ - * **Standard_A1_v2** \ - * **Standard_A2** \ - * **Standard_A2_v2** \ - * **Standard_A2m_v2** \ - * **Standard_A3** \ - * **Standard_A4** \ - * **Standard_A4_v2** \ - * **Standard_A4m_v2** \ - * **Standard_A5** \ - * **Standard_A6** \ - * **Standard_A7** \ - * **Standard_A8** \ - * **Standard_A8_v2** \ - * **Standard_A8m_v2** \ - * **Standard_A9** \ - * **Standard_B2ms** \ - * **Standard_B2s** \ - * **Standard_B4ms** \ - * **Standard_B8ms** \ - * **Standard_D1** \ - * **Standard_D11** \ - * **Standard_D11_v2** \ - * **Standard_D11_v2_Promo** \ - * **Standard_D12** \ - * **Standard_D12_v2** \ - * **Standard_D12_v2_Promo** \ - * **Standard_D13** \ - * **Standard_D13_v2** \ - * **Standard_D13_v2_Promo** \ - * **Standard_D14** \ - * **Standard_D14_v2** \ - * **Standard_D14_v2_Promo** \ - * **Standard_D15_v2** \ - * **Standard_D16_v3** \ - * **Standard_D16s_v3** \ - * **Standard_D1_v2** \ - * **Standard_D2** \ - * **Standard_D2_v2** \ - * **Standard_D2_v2_Promo** \ - * **Standard_D2_v3** \ - * **Standard_D2s_v3** \ - * **Standard_D3** \ - * **Standard_D32_v3** \ - * **Standard_D32s_v3** \ - * **Standard_D3_v2** \ - * **Standard_D3_v2_Promo** \ - * **Standard_D4** \ - * **Standard_D4_v2** \ - * **Standard_D4_v2_Promo** \ - * **Standard_D4_v3** \ - * **Standard_D4s_v3** \ - * **Standard_D5_v2** \ - * **Standard_D5_v2_Promo** \ - * **Standard_D64_v3** \ - * **Standard_D64s_v3** \ - * **Standard_D8_v3** \ - * **Standard_D8s_v3** \ - * **Standard_DS1** \ - * **Standard_DS11** \ - * **Standard_DS11_v2** \ - * **Standard_DS11_v2_Promo** \ - * **Standard_DS12** \ - * **Standard_DS12_v2** \ - * **Standard_DS12_v2_Promo** \ - * **Standard_DS13** \ - * **Standard_DS13-2_v2** \ - * **Standard_DS13-4_v2** \ - * **Standard_DS13_v2** \ - * **Standard_DS13_v2_Promo** \ - * **Standard_DS14** \ - * **Standard_DS14-4_v2** \ - * **Standard_DS14-8_v2** \ - * **Standard_DS14_v2** \ - * **Standard_DS14_v2_Promo** \ - * **Standard_DS15_v2** \ - * **Standard_DS1_v2** \ - * **Standard_DS2** \ - * **Standard_DS2_v2** \ - * **Standard_DS2_v2_Promo** \ - * **Standard_DS3** \ - * **Standard_DS3_v2** \ - * **Standard_DS3_v2_Promo** \ - * **Standard_DS4** \ - * **Standard_DS4_v2** \ - * **Standard_DS4_v2_Promo** \ - * **Standard_DS5_v2** \ - * **Standard_DS5_v2_Promo** \ - * **Standard_E16_v3** \ - * **Standard_E16s_v3** \ - * **Standard_E2_v3** \ - * **Standard_E2s_v3** \ - * **Standard_E32-16s_v3** \ - * **Standard_E32-8s_v3** \ - * **Standard_E32_v3** \ - * **Standard_E32s_v3** \ - * **Standard_E4_v3** \ - * **Standard_E4s_v3** \ - * **Standard_E64-16s_v3** \ - * **Standard_E64-32s_v3** \ - * **Standard_E64_v3** \ - * **Standard_E64s_v3** \ - * **Standard_E8_v3** \ - * **Standard_E8s_v3** \ - * **Standard_F1** \ - * **Standard_F16** \ - * **Standard_F16s** \ - * **Standard_F16s_v2** \ - * **Standard_F1s** \ - * **Standard_F2** \ - * **Standard_F2s** \ - * **Standard_F2s_v2** \ - * **Standard_F32s_v2** \ - * **Standard_F4** \ - * **Standard_F4s** \ - * **Standard_F4s_v2** \ - * **Standard_F64s_v2** \ - * **Standard_F72s_v2** \ - * **Standard_F8** \ - * **Standard_F8s** \ - * **Standard_F8s_v2** \ - * **Standard_G1** \ - * **Standard_G2** \ - * **Standard_G3** \ - * **Standard_G4** \ - * **Standard_G5** \ - * **Standard_GS1** \ - * **Standard_GS2** \ - * **Standard_GS3** \ - * **Standard_GS4** \ - * **Standard_GS4-4** \ - * **Standard_GS4-8** \ - * **Standard_GS5** \ - * **Standard_GS5-16** \ - * **Standard_GS5-8** \ - * **Standard_H16** \ - * **Standard_H16m** \ - * **Standard_H16mr** \ - * **Standard_H16r** \ - * **Standard_H8** \ - * **Standard_H8m** \ - * **Standard_L16s** \ - * **Standard_L32s** \ - * **Standard_L4s** \ - * **Standard_L8s** \ - * **Standard_M128-32ms** \ - * **Standard_M128-64ms** \ - * **Standard_M128ms** \ - * **Standard_M128s** \ - * **Standard_M64-16ms** \ - * **Standard_M64-32ms** \ - * **Standard_M64ms** \ - * **Standard_M64s** \ - * **Standard_NC12** \ - * **Standard_NC12s_v2** \ - * **Standard_NC12s_v3** \ - * **Standard_NC24** \ - * **Standard_NC24r** \ - * **Standard_NC24rs_v2** \ - * **Standard_NC24rs_v3** \ - * **Standard_NC24s_v2** \ - * **Standard_NC24s_v3** \ - * **Standard_NC6** \ - * **Standard_NC6s_v2** \ - * **Standard_NC6s_v3** \ - * **Standard_ND12s** \ - * **Standard_ND24rs** \ - * **Standard_ND24s** \ - * **Standard_ND6s** \ - * **Standard_NV12** \ - * **Standard_NV24** \ - * **Standard_NV6** - */ -export type ContainerServiceVMSizeTypes = string; - -/** Known values of {@link ContainerServiceStorageProfileTypes} that the service accepts. */ -export enum KnownContainerServiceStorageProfileTypes { - /** StorageAccount */ - StorageAccount = "StorageAccount", - /** ManagedDisks */ - ManagedDisks = "ManagedDisks" -} - -/** - * Defines values for ContainerServiceStorageProfileTypes. \ - * {@link KnownContainerServiceStorageProfileTypes} can be used interchangeably with ContainerServiceStorageProfileTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **StorageAccount** \ - * **ManagedDisks** - */ -export type ContainerServiceStorageProfileTypes = string; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; -/** Defines values for Count. */ -export type Count = 1 | 3 | 5; /** Optional parameters. */ export interface OperationsListOptionalParams diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index 455d783f6849..f128fc6b43cf 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -1401,6 +1401,12 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { name: "String" } }, + networkPluginMode: { + serializedName: "networkPluginMode", + type: { + name: "String" + } + }, networkPolicy: { serializedName: "networkPolicy", type: { @@ -1413,6 +1419,12 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { name: "String" } }, + networkDataplane: { + serializedName: "networkDataplane", + type: { + name: "String" + } + }, podCidr: { defaultValue: "10.244.0.0/16", constraints: { @@ -2075,6 +2087,20 @@ export const ManagedClusterSecurityProfile: coreClient.CompositeMapper = { name: "Composite", className: "AzureKeyVaultKms" } + }, + workloadIdentity: { + serializedName: "workloadIdentity", + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileWorkloadIdentity" + } + }, + imageCleaner: { + serializedName: "imageCleaner", + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileImageCleaner" + } } } } @@ -2151,6 +2177,42 @@ export const AzureKeyVaultKms: coreClient.CompositeMapper = { } }; +export const ManagedClusterSecurityProfileWorkloadIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileWorkloadIdentity", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedClusterSecurityProfileImageCleaner: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileImageCleaner", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + intervalHours: { + serializedName: "intervalHours", + type: { + name: "Number" + } + } + } + } +}; + export const ManagedClusterStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3246,112 +3308,6 @@ export const SnapshotListResult: coreClient.CompositeMapper = { } }; -export const ContainerServiceMasterProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContainerServiceMasterProfile", - modelProperties: { - count: { - defaultValue: "1", - serializedName: "count", - type: { - name: "Enum", - allowedValues: [1, 3, 5] - } - }, - dnsPrefix: { - serializedName: "dnsPrefix", - required: true, - type: { - name: "String" - } - }, - vmSize: { - serializedName: "vmSize", - required: true, - type: { - name: "String" - } - }, - osDiskSizeGB: { - constraints: { - InclusiveMaximum: 2048, - InclusiveMinimum: 0 - }, - serializedName: "osDiskSizeGB", - type: { - name: "Number" - } - }, - vnetSubnetID: { - serializedName: "vnetSubnetID", - type: { - name: "String" - } - }, - firstConsecutiveStaticIP: { - defaultValue: "10.240.255.5", - serializedName: "firstConsecutiveStaticIP", - type: { - name: "String" - } - }, - storageProfile: { - serializedName: "storageProfile", - type: { - name: "String" - } - }, - fqdn: { - serializedName: "fqdn", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ContainerServiceDiagnosticsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContainerServiceDiagnosticsProfile", - modelProperties: { - vmDiagnostics: { - serializedName: "vmDiagnostics", - type: { - name: "Composite", - className: "ContainerServiceVMDiagnostics" - } - } - } - } -}; - -export const ContainerServiceVMDiagnostics: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContainerServiceVMDiagnostics", - modelProperties: { - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean" - } - }, - storageUri: { - serializedName: "storageUri", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const ManagedClusterAgentPoolProfile: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index 0a57e417cabe..b13e7ee37c49 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -51,7 +51,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-01-01", + defaultValue: "2023-02-01", isConstant: true, serializedName: "api-version", type: { 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"