diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 8187c45166b9..06399c23b986 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2969,7 +2969,7 @@ packages: dev: false /array-flatten/1.1.1: - resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} + resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: false /array-includes/3.1.5: @@ -3218,7 +3218,7 @@ packages: dev: false /buffer-equal-constant-time/1.0.1: - resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=} + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} dev: false /buffer-from/1.1.2: @@ -3363,7 +3363,7 @@ packages: dev: false /charenc/0.0.2: - resolution: {integrity: sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=} + resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==} dev: false /check-error/1.0.2: @@ -3501,7 +3501,7 @@ packages: dev: false /concat-map/0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: false /concurrently/6.5.1: @@ -3564,7 +3564,7 @@ packages: dev: false /cookie-signature/1.0.6: - resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} + resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false /cookie/0.4.2: @@ -3666,7 +3666,7 @@ packages: dev: false /crypt/0.0.2: - resolution: {integrity: sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=} + resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} dev: false /csv-parse/5.3.0: @@ -3892,7 +3892,7 @@ packages: dependencies: semver: 7.3.7 shelljs: 0.8.5 - typescript: 4.8.0-dev.20220725 + typescript: 4.8.0-dev.20220728 dev: false /downlevel-dts/0.4.0: @@ -3919,11 +3919,11 @@ packages: dev: false /edge-launcher/1.2.2: - resolution: {integrity: sha1-60Cq+9Bnpup27/+rBke81VCbN7I=} + resolution: {integrity: sha512-JcD5WBi3BHZXXVSSeEhl6sYO8g5cuynk/hifBzds2Bp4JdzCGLNMHgMCKu5DvrO1yatMgF0goFsxXRGus0yh1g==} dev: false /ee-first/1.1.1: - resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false /electron-to-chromium/1.4.199: @@ -4792,7 +4792,7 @@ packages: dev: false /fresh/0.5.2: - resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} + resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} dev: false @@ -4932,7 +4932,7 @@ packages: dev: false /github-from-package/0.0.0: - resolution: {integrity: sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=} + resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} dev: false /glob-parent/5.1.2: @@ -6303,7 +6303,7 @@ packages: dev: false /media-typer/0.3.0: - resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} dev: false @@ -6313,7 +6313,7 @@ packages: dev: false /merge-descriptors/1.0.1: - resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=} + resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==} dev: false /merge-source-map/1.1.0: @@ -6673,7 +6673,7 @@ packages: dev: false /noms/0.0.0: - resolution: {integrity: sha1-2o69nzr51nYJGbJ9nNyAkqczKFk=} + resolution: {integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==} dependencies: inherits: 2.0.4 readable-stream: 1.0.34 @@ -8626,8 +8626,8 @@ packages: hasBin: true dev: false - /typescript/4.8.0-dev.20220725: - resolution: {integrity: sha512-FSpIv4aahmuygcFmwWV1iWs5mK15cwFrQIz/EKHQCvZBjWh8u42FUqqL8PPmcnRhXfXCR/N123hhFYD2krMEsg==} + /typescript/4.8.0-dev.20220728: + resolution: {integrity: sha512-SVQVE8nBQbL7lG1F2sBrir7H5zOiiC0JbpeyToKxb6bQFn06U/G+7XMuy+BLNNt+nN+IaxIH8KmU5PjOMNvDkA==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -8738,7 +8738,7 @@ packages: dev: false /utils-merge/1.0.1: - resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} dev: false @@ -10564,7 +10564,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-QCY5oq8bjEDF2D43/7pN2p0865/lg8asI6JlDTaEVRB00wFXICQAfyFcrbBD9cp2YbymlFiw/X1HCjBclkpGkA==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-EeBPa/XCAYq4hE4quEpr04qlGMfyw+uykQDm0sMHv4UIvCTeuqQ1irsDL+JAbIYStaY1HETSIfUlirto26EGMQ==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -10583,7 +10583,7 @@ packages: rollup: 2.77.0 rollup-plugin-sourcemaps: 0.6.3_rollup@2.77.0 tslib: 2.4.0 - typescript: 4.6.4 + typescript: 4.2.4 uglify-js: 3.16.3 transitivePeerDependencies: - '@types/node' @@ -16245,7 +16245,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-u+a4JL81qkaCvvXg6n6VX0oSW83uiEXYmoobb+OwAwJwFi2EiV/g4GwGvRqIwhKCw/StLh351Hozz179AW877g==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-ZOXbcV7SY8rIeiKLgaDuPRFPXIgYWQMdZ0KbH0gsMkPUZg9A5mB+Tw4lPOSso2L8cdPVdhRlCLj5e4IR2QPyfA==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -16779,7 +16779,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-e+Kh4BFqMg7DolFQ7Rj0jYHLOAoDk4p5NfitePcUIZ+FK01B1QSQjUnroEAorvVwzHimodc3lDEMRhyBsCjzSw==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-U+QGPbmHPayW6KczwQicFpcXZ6vq+NVEVFwgoBVIuw5jxL0ORV1GPD2O2aZ9Tfd33zPso66JJGS8+gfn2GN7ew==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index 4e8820666ed9..a59c60c1d731 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 17.1.0-beta.1 (2022-07-25) +## 17.1.0-beta.2 (2022-07-29) **Features** @@ -9,18 +9,18 @@ - Added operation group ManagedClusterSnapshots - Added operation group TrustedAccessRoleBindings - Added operation group TrustedAccessRoles + - Added operation AgentPools.abortLatestOperation + - Added operation ManagedClusters.abortLatestOperation - Added operation ManagedClusters.beginRotateServiceAccountSigningKeys - Added operation ManagedClusters.beginRotateServiceAccountSigningKeysAndWait - - Added Interface AzureEntityResource + - Added Interface AgentPoolsAbortLatestOperationOptionalParams - Added Interface ErrorAdditionalInfo - Added Interface ErrorDetail - Added Interface ErrorResponse - - Added Interface Fleet - Added Interface FleetCredentialResult - Added Interface FleetCredentialResults - Added Interface FleetHubProfile - Added Interface FleetListResult - - Added Interface FleetMember - Added Interface FleetMembersCreateOrUpdateOptionalParams - Added Interface FleetMembersDeleteOptionalParams - Added Interface FleetMembersGetOptionalParams @@ -41,9 +41,9 @@ - Added Interface ManagedClusterIngressProfileWebAppRouting - Added Interface ManagedClusterOidcIssuerProfile - Added Interface ManagedClusterPropertiesForSnapshot + - Added Interface ManagedClustersAbortLatestOperationOptionalParams - Added Interface ManagedClusterSecurityProfileNodeRestriction - Added Interface ManagedClusterSecurityProfileWorkloadIdentity - - Added Interface ManagedClusterSnapshot - Added Interface ManagedClusterSnapshotListResult - Added Interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams - Added Interface ManagedClusterSnapshotsDeleteOptionalParams @@ -57,9 +57,9 @@ - Added Interface ManagedClusterStorageProfileBlobCSIDriver - Added Interface ManagedClusterWorkloadAutoScalerProfile - Added Interface ManagedClusterWorkloadAutoScalerProfileKeda + - Added Interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler - Added Interface NetworkProfileForSnapshot - Added Interface TrustedAccessRole - - Added Interface TrustedAccessRoleBinding - Added Interface TrustedAccessRoleBindingListResult - Added Interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - Added Interface TrustedAccessRoleBindingsDeleteOptionalParams @@ -70,6 +70,11 @@ - Added Interface TrustedAccessRoleRule - Added Interface TrustedAccessRolesListNextOptionalParams - Added Interface TrustedAccessRolesListOptionalParams + - Added Type Alias AgentPool + - Added Type Alias AzureEntityResource + - Added Type Alias ControlledValues + - Added Type Alias Fleet + - Added Type Alias FleetMember - Added Type Alias FleetMemberProvisioningState - Added Type Alias FleetMembersCreateOrUpdateResponse - Added Type Alias FleetMembersGetResponse @@ -84,6 +89,12 @@ - Added Type Alias FleetsListNextResponse - Added Type Alias FleetsListResponse - Added Type Alias FleetsUpdateResponse + - Added Type Alias MaintenanceConfiguration + - Added Type Alias ManagedCluster + - Added Type Alias ManagedClusterAccessProfile + - Added Type Alias ManagedClusterAddonProfileIdentity + - Added Type Alias ManagedClusterAgentPoolProfile + - Added Type Alias ManagedClusterSnapshot - Added Type Alias ManagedClusterSnapshotsCreateOrUpdateResponse - Added Type Alias ManagedClusterSnapshotsGetResponse - Added Type Alias ManagedClusterSnapshotsListByResourceGroupNextResponse @@ -92,6 +103,9 @@ - Added Type Alias ManagedClusterSnapshotsListResponse - Added Type Alias ManagedClusterSnapshotsUpdateTagsResponse - Added Type Alias NetworkPluginMode + - Added Type Alias Snapshot + - Added Type Alias TrackedResource + - Added Type Alias TrustedAccessRoleBinding - Added Type Alias TrustedAccessRoleBindingProvisioningState - Added Type Alias TrustedAccessRoleBindingsCreateOrUpdateResponse - Added Type Alias TrustedAccessRoleBindingsGetResponse @@ -99,16 +113,9 @@ - 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 + - Added Type Alias UpdateMode - Interface AgentPoolsDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget - Interface ContainerServiceNetworkProfile has a new optional parameter networkPluginMode - - Interface ManagedCluster has a new optional parameter creationData - - Interface ManagedCluster has a new optional parameter enableNamespaceResources - - Interface ManagedCluster has a new optional parameter ingressProfile - - Interface ManagedCluster has a new optional parameter oidcIssuerProfile - - Interface ManagedCluster has a new optional parameter workloadAutoScalerProfile - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter capacityReservationGroupID - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter enableCustomCATrust - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter messageOfTheDay @@ -125,12 +132,15 @@ - Class ContainerServiceClient has a new parameter managedClusterSnapshots - Class ContainerServiceClient has a new parameter trustedAccessRoleBindings - Class ContainerServiceClient has a new parameter trustedAccessRoles + - Added Enum KnownControlledValues - Added Enum KnownFleetMemberProvisioningState - Added Enum KnownFleetProvisioningState - Added Enum KnownNetworkPluginMode - Added Enum KnownTrustedAccessRoleBindingProvisioningState + - Added Enum KnownUpdateMode - Enum KnownOssku has a new value Windows2019 - Enum KnownOssku has a new value Windows2022 + - Enum KnownPublicNetworkAccess has a new value SecuredByPerimeter - Enum KnownSnapshotType has a new value ManagedCluster diff --git a/sdk/containerservice/arm-containerservice/_meta.json b/sdk/containerservice/arm-containerservice/_meta.json index bdb55b5bb107..949e549db9f0 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "405811c51aa09803caedfe17fd305e110db1ca5e", + "commit": "4ad36497b4414b25fc65fc9ac90a3305e636fb3b", "readme": "specification/containerservice/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.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\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220720.1 --generate-sample=true", + "autorest_command": "", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.0", - "use": "@autorest/typescript@6.0.0-rc.1.20220720.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.1", + "use": "@autorest/typescript@6.0.0-alpha.19.20220425.1" } \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index c07fee4200ad..4fc1c9d28df1 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.1.0-beta.1", + "version": "17.1.0-beta.2", "engines": { "node": ">=12.0.0" }, @@ -36,15 +36,13 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.6.0", + "typescript": "~4.2.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", "cross-env": "^7.0.2", "@azure/dev-tool": "^1.0.0" }, @@ -98,7 +96,8 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "integration-test:browser": "echo skipped", + "docs": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -109,13 +108,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview" - } + "autoPublish": true } \ 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 c247d741fe8f..72435e0e5bc6 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -11,56 +11,56 @@ import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; // @public -export interface AgentPool extends SubResource { - availabilityZones?: string[]; - capacityReservationGroupID?: string; +export type AgentPool = SubResource & { count?: number; - creationData?: CreationData; - readonly currentOrchestratorVersion?: string; - enableAutoScaling?: boolean; - enableCustomCATrust?: boolean; - enableEncryptionAtHost?: boolean; - enableFips?: boolean; - enableNodePublicIP?: boolean; - enableUltraSSD?: boolean; - gpuInstanceProfile?: GPUInstanceProfile; - hostGroupID?: string; - kubeletConfig?: KubeletConfig; + vmSize?: string; + osDiskSizeGB?: number; + osDiskType?: OSDiskType; kubeletDiskType?: KubeletDiskType; - linuxOSConfig?: LinuxOSConfig; - maxCount?: number; - maxPods?: number; + workloadRuntime?: WorkloadRuntime; messageOfTheDay?: string; + vnetSubnetID?: string; + podSubnetID?: string; + maxPods?: number; + osType?: OSType; + osSKU?: Ossku; + maxCount?: number; minCount?: number; + enableAutoScaling?: boolean; + scaleDownMode?: ScaleDownMode; + typePropertiesType?: AgentPoolType; mode?: AgentPoolMode; - readonly nodeImageVersion?: string; - nodeLabels?: { - [propertyName: string]: string; - }; - nodePublicIPPrefixID?: string; - nodeTaints?: string[]; orchestratorVersion?: string; - osDiskSizeGB?: number; - osDiskType?: OSDiskType; - osSKU?: Ossku; - osType?: OSType; - podSubnetID?: string; - powerState?: PowerState; + readonly currentOrchestratorVersion?: string; + readonly nodeImageVersion?: string; + upgradeSettings?: AgentPoolUpgradeSettings; readonly provisioningState?: string; - proximityPlacementGroupID?: string; - scaleDownMode?: ScaleDownMode; - scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; + powerState?: PowerState; + availabilityZones?: string[]; + enableNodePublicIP?: boolean; + enableCustomCATrust?: boolean; + nodePublicIPPrefixID?: string; scaleSetPriority?: ScaleSetPriority; + scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; spotMaxPrice?: number; tags?: { [propertyName: string]: string; }; - typePropertiesType?: AgentPoolType; - upgradeSettings?: AgentPoolUpgradeSettings; - vmSize?: string; - vnetSubnetID?: string; - workloadRuntime?: WorkloadRuntime; -} + nodeLabels?: { + [propertyName: string]: string; + }; + nodeTaints?: string[]; + proximityPlacementGroupID?: string; + kubeletConfig?: KubeletConfig; + linuxOSConfig?: LinuxOSConfig; + enableEncryptionAtHost?: boolean; + enableUltraSSD?: boolean; + enableFips?: boolean; + gpuInstanceProfile?: GPUInstanceProfile; + creationData?: CreationData; + capacityReservationGroupID?: string; + hostGroupID?: string; +}; // @public export interface AgentPoolAvailableVersions { @@ -88,6 +88,7 @@ export type AgentPoolMode = string; // @public export interface AgentPools { + abortLatestOperation(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: AgentPoolsAbortLatestOperationOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, resourceName: string, agentPoolName: string, parameters: AgentPool, options?: AgentPoolsCreateOrUpdateOptionalParams): Promise, AgentPoolsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, agentPoolName: string, parameters: AgentPool, options?: AgentPoolsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise, void>>; @@ -100,6 +101,10 @@ export interface AgentPools { list(resourceGroupName: string, resourceName: string, options?: AgentPoolsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface AgentPoolsAbortLatestOperationOptionalParams extends coreClient.OperationOptions { +} + // @public export interface AgentPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -188,9 +193,9 @@ export interface AgentPoolUpgradeSettings { } // @public -export interface AzureEntityResource extends Resource { +export type AzureEntityResource = Resource & { readonly etag?: string; -} +}; // @public export interface AzureKeyVaultKms { @@ -327,6 +332,9 @@ export interface ContainerServiceVMDiagnostics { // @public export type ContainerServiceVMSizeTypes = string; +// @public +export type ControlledValues = string; + // @public export type Count = 1 | 3 | 5; @@ -396,11 +404,11 @@ export interface ExtendedLocation { export type ExtendedLocationTypes = string; // @public -export interface Fleet extends TrackedResource { +export type Fleet = TrackedResource & { readonly etag?: string; hubProfile?: FleetHubProfile; readonly provisioningState?: FleetProvisioningState; -} +}; // @public export interface FleetCredentialResult { @@ -427,10 +435,10 @@ export interface FleetListResult { } // @public -export interface FleetMember extends AzureEntityResource { +export type FleetMember = AzureEntityResource & { clusterResourceId?: string; readonly provisioningState?: FleetMemberProvisioningState; -} +}; // @public export type FleetMemberProvisioningState = string; @@ -614,201 +622,391 @@ export enum KnownCode { // @public export enum KnownConnectionStatus { + // (undocumented) Approved = "Approved", + // (undocumented) Disconnected = "Disconnected", + // (undocumented) Pending = "Pending", + // (undocumented) Rejected = "Rejected" } // @public export enum KnownContainerServiceStorageProfileTypes { + // (undocumented) ManagedDisks = "ManagedDisks", + // (undocumented) StorageAccount = "StorageAccount" } // @public export enum KnownContainerServiceVMSizeTypes { + // (undocumented) StandardA1 = "Standard_A1", + // (undocumented) StandardA10 = "Standard_A10", + // (undocumented) StandardA11 = "Standard_A11", + // (undocumented) StandardA1V2 = "Standard_A1_v2", + // (undocumented) StandardA2 = "Standard_A2", + // (undocumented) StandardA2MV2 = "Standard_A2m_v2", + // (undocumented) StandardA2V2 = "Standard_A2_v2", + // (undocumented) StandardA3 = "Standard_A3", + // (undocumented) StandardA4 = "Standard_A4", + // (undocumented) StandardA4MV2 = "Standard_A4m_v2", + // (undocumented) StandardA4V2 = "Standard_A4_v2", + // (undocumented) StandardA5 = "Standard_A5", + // (undocumented) StandardA6 = "Standard_A6", + // (undocumented) StandardA7 = "Standard_A7", + // (undocumented) StandardA8 = "Standard_A8", + // (undocumented) StandardA8MV2 = "Standard_A8m_v2", + // (undocumented) StandardA8V2 = "Standard_A8_v2", + // (undocumented) StandardA9 = "Standard_A9", + // (undocumented) StandardB2Ms = "Standard_B2ms", + // (undocumented) StandardB2S = "Standard_B2s", + // (undocumented) StandardB4Ms = "Standard_B4ms", + // (undocumented) StandardB8Ms = "Standard_B8ms", + // (undocumented) StandardD1 = "Standard_D1", + // (undocumented) StandardD11 = "Standard_D11", + // (undocumented) StandardD11V2 = "Standard_D11_v2", + // (undocumented) StandardD11V2Promo = "Standard_D11_v2_Promo", + // (undocumented) StandardD12 = "Standard_D12", + // (undocumented) StandardD12V2 = "Standard_D12_v2", + // (undocumented) StandardD12V2Promo = "Standard_D12_v2_Promo", + // (undocumented) StandardD13 = "Standard_D13", + // (undocumented) StandardD13V2 = "Standard_D13_v2", + // (undocumented) StandardD13V2Promo = "Standard_D13_v2_Promo", + // (undocumented) StandardD14 = "Standard_D14", + // (undocumented) StandardD14V2 = "Standard_D14_v2", + // (undocumented) StandardD14V2Promo = "Standard_D14_v2_Promo", + // (undocumented) StandardD15V2 = "Standard_D15_v2", + // (undocumented) StandardD16SV3 = "Standard_D16s_v3", + // (undocumented) StandardD16V3 = "Standard_D16_v3", + // (undocumented) StandardD1V2 = "Standard_D1_v2", + // (undocumented) StandardD2 = "Standard_D2", + // (undocumented) StandardD2SV3 = "Standard_D2s_v3", + // (undocumented) StandardD2V2 = "Standard_D2_v2", + // (undocumented) StandardD2V2Promo = "Standard_D2_v2_Promo", + // (undocumented) StandardD2V3 = "Standard_D2_v3", + // (undocumented) StandardD3 = "Standard_D3", + // (undocumented) StandardD32SV3 = "Standard_D32s_v3", + // (undocumented) StandardD32V3 = "Standard_D32_v3", + // (undocumented) StandardD3V2 = "Standard_D3_v2", + // (undocumented) StandardD3V2Promo = "Standard_D3_v2_Promo", + // (undocumented) StandardD4 = "Standard_D4", + // (undocumented) StandardD4SV3 = "Standard_D4s_v3", + // (undocumented) StandardD4V2 = "Standard_D4_v2", + // (undocumented) StandardD4V2Promo = "Standard_D4_v2_Promo", + // (undocumented) StandardD4V3 = "Standard_D4_v3", + // (undocumented) StandardD5V2 = "Standard_D5_v2", + // (undocumented) StandardD5V2Promo = "Standard_D5_v2_Promo", + // (undocumented) StandardD64SV3 = "Standard_D64s_v3", + // (undocumented) StandardD64V3 = "Standard_D64_v3", + // (undocumented) StandardD8SV3 = "Standard_D8s_v3", + // (undocumented) StandardD8V3 = "Standard_D8_v3", + // (undocumented) StandardDS1 = "Standard_DS1", + // (undocumented) StandardDS11 = "Standard_DS11", + // (undocumented) StandardDS11V2 = "Standard_DS11_v2", + // (undocumented) StandardDS11V2Promo = "Standard_DS11_v2_Promo", + // (undocumented) StandardDS12 = "Standard_DS12", + // (undocumented) StandardDS12V2 = "Standard_DS12_v2", + // (undocumented) StandardDS12V2Promo = "Standard_DS12_v2_Promo", + // (undocumented) StandardDS13 = "Standard_DS13", + // (undocumented) StandardDS132V2 = "Standard_DS13-2_v2", + // (undocumented) StandardDS134V2 = "Standard_DS13-4_v2", + // (undocumented) StandardDS13V2 = "Standard_DS13_v2", + // (undocumented) StandardDS13V2Promo = "Standard_DS13_v2_Promo", + // (undocumented) StandardDS14 = "Standard_DS14", + // (undocumented) StandardDS144V2 = "Standard_DS14-4_v2", + // (undocumented) StandardDS148V2 = "Standard_DS14-8_v2", + // (undocumented) StandardDS14V2 = "Standard_DS14_v2", + // (undocumented) StandardDS14V2Promo = "Standard_DS14_v2_Promo", + // (undocumented) StandardDS15V2 = "Standard_DS15_v2", + // (undocumented) StandardDS1V2 = "Standard_DS1_v2", + // (undocumented) StandardDS2 = "Standard_DS2", + // (undocumented) StandardDS2V2 = "Standard_DS2_v2", + // (undocumented) StandardDS2V2Promo = "Standard_DS2_v2_Promo", + // (undocumented) StandardDS3 = "Standard_DS3", + // (undocumented) StandardDS3V2 = "Standard_DS3_v2", + // (undocumented) StandardDS3V2Promo = "Standard_DS3_v2_Promo", + // (undocumented) StandardDS4 = "Standard_DS4", + // (undocumented) StandardDS4V2 = "Standard_DS4_v2", + // (undocumented) StandardDS4V2Promo = "Standard_DS4_v2_Promo", + // (undocumented) StandardDS5V2 = "Standard_DS5_v2", + // (undocumented) StandardDS5V2Promo = "Standard_DS5_v2_Promo", + // (undocumented) StandardE16SV3 = "Standard_E16s_v3", + // (undocumented) StandardE16V3 = "Standard_E16_v3", + // (undocumented) StandardE2SV3 = "Standard_E2s_v3", + // (undocumented) StandardE2V3 = "Standard_E2_v3", + // (undocumented) StandardE3216SV3 = "Standard_E32-16s_v3", + // (undocumented) StandardE328SV3 = "Standard_E32-8s_v3", + // (undocumented) StandardE32SV3 = "Standard_E32s_v3", + // (undocumented) StandardE32V3 = "Standard_E32_v3", + // (undocumented) StandardE4SV3 = "Standard_E4s_v3", + // (undocumented) StandardE4V3 = "Standard_E4_v3", + // (undocumented) StandardE6416SV3 = "Standard_E64-16s_v3", + // (undocumented) StandardE6432SV3 = "Standard_E64-32s_v3", + // (undocumented) StandardE64SV3 = "Standard_E64s_v3", + // (undocumented) StandardE64V3 = "Standard_E64_v3", + // (undocumented) StandardE8SV3 = "Standard_E8s_v3", + // (undocumented) StandardE8V3 = "Standard_E8_v3", + // (undocumented) StandardF1 = "Standard_F1", + // (undocumented) StandardF16 = "Standard_F16", + // (undocumented) StandardF16S = "Standard_F16s", + // (undocumented) StandardF16SV2 = "Standard_F16s_v2", + // (undocumented) StandardF1S = "Standard_F1s", + // (undocumented) StandardF2 = "Standard_F2", + // (undocumented) StandardF2S = "Standard_F2s", + // (undocumented) StandardF2SV2 = "Standard_F2s_v2", + // (undocumented) StandardF32SV2 = "Standard_F32s_v2", + // (undocumented) StandardF4 = "Standard_F4", + // (undocumented) StandardF4S = "Standard_F4s", + // (undocumented) StandardF4SV2 = "Standard_F4s_v2", + // (undocumented) StandardF64SV2 = "Standard_F64s_v2", + // (undocumented) StandardF72SV2 = "Standard_F72s_v2", + // (undocumented) StandardF8 = "Standard_F8", + // (undocumented) StandardF8S = "Standard_F8s", + // (undocumented) StandardF8SV2 = "Standard_F8s_v2", + // (undocumented) StandardG1 = "Standard_G1", + // (undocumented) StandardG2 = "Standard_G2", + // (undocumented) StandardG3 = "Standard_G3", + // (undocumented) StandardG4 = "Standard_G4", + // (undocumented) StandardG5 = "Standard_G5", + // (undocumented) StandardGS1 = "Standard_GS1", + // (undocumented) StandardGS2 = "Standard_GS2", + // (undocumented) StandardGS3 = "Standard_GS3", + // (undocumented) StandardGS4 = "Standard_GS4", + // (undocumented) StandardGS44 = "Standard_GS4-4", + // (undocumented) StandardGS48 = "Standard_GS4-8", + // (undocumented) StandardGS5 = "Standard_GS5", + // (undocumented) StandardGS516 = "Standard_GS5-16", + // (undocumented) StandardGS58 = "Standard_GS5-8", + // (undocumented) StandardH16 = "Standard_H16", + // (undocumented) StandardH16M = "Standard_H16m", + // (undocumented) StandardH16Mr = "Standard_H16mr", + // (undocumented) StandardH16R = "Standard_H16r", + // (undocumented) StandardH8 = "Standard_H8", + // (undocumented) StandardH8M = "Standard_H8m", + // (undocumented) StandardL16S = "Standard_L16s", + // (undocumented) StandardL32S = "Standard_L32s", + // (undocumented) StandardL4S = "Standard_L4s", + // (undocumented) StandardL8S = "Standard_L8s", + // (undocumented) StandardM12832Ms = "Standard_M128-32ms", + // (undocumented) StandardM12864Ms = "Standard_M128-64ms", + // (undocumented) StandardM128Ms = "Standard_M128ms", + // (undocumented) StandardM128S = "Standard_M128s", + // (undocumented) StandardM6416Ms = "Standard_M64-16ms", + // (undocumented) StandardM6432Ms = "Standard_M64-32ms", + // (undocumented) StandardM64Ms = "Standard_M64ms", + // (undocumented) StandardM64S = "Standard_M64s", + // (undocumented) StandardNC12 = "Standard_NC12", + // (undocumented) StandardNC12SV2 = "Standard_NC12s_v2", + // (undocumented) StandardNC12SV3 = "Standard_NC12s_v3", + // (undocumented) StandardNC24 = "Standard_NC24", + // (undocumented) StandardNC24R = "Standard_NC24r", + // (undocumented) StandardNC24RsV2 = "Standard_NC24rs_v2", + // (undocumented) StandardNC24RsV3 = "Standard_NC24rs_v3", + // (undocumented) StandardNC24SV2 = "Standard_NC24s_v2", + // (undocumented) StandardNC24SV3 = "Standard_NC24s_v3", + // (undocumented) StandardNC6 = "Standard_NC6", + // (undocumented) StandardNC6SV2 = "Standard_NC6s_v2", + // (undocumented) StandardNC6SV3 = "Standard_NC6s_v3", + // (undocumented) StandardND12S = "Standard_ND12s", + // (undocumented) StandardND24Rs = "Standard_ND24rs", + // (undocumented) StandardND24S = "Standard_ND24s", + // (undocumented) StandardND6S = "Standard_ND6s", + // (undocumented) StandardNV12 = "Standard_NV12", + // (undocumented) StandardNV24 = "Standard_NV24", + // (undocumented) StandardNV6 = "Standard_NV6" } +// @public +export enum KnownControlledValues { + RequestsAndLimits = "RequestsAndLimits", + RequestsOnly = "RequestsOnly" +} + // @public export enum KnownCreatedByType { + // (undocumented) Application = "Application", + // (undocumented) Key = "Key", + // (undocumented) ManagedIdentity = "ManagedIdentity", + // (undocumented) User = "User" } @@ -822,26 +1020,39 @@ export enum KnownExpander { // @public export enum KnownExtendedLocationTypes { + // (undocumented) EdgeZone = "EdgeZone" } // @public export enum KnownFleetMemberProvisioningState { + // (undocumented) Canceled = "Canceled", + // (undocumented) Failed = "Failed", + // (undocumented) Joining = "Joining", + // (undocumented) Leaving = "Leaving", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Updating = "Updating" } // @public export enum KnownFleetProvisioningState { + // (undocumented) Canceled = "Canceled", + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Updating = "Updating" } @@ -853,22 +1064,31 @@ export enum KnownFormat { // @public export enum KnownGPUInstanceProfile { + // (undocumented) MIG1G = "MIG1g", + // (undocumented) MIG2G = "MIG2g", + // (undocumented) MIG3G = "MIG3g", + // (undocumented) MIG4G = "MIG4g", + // (undocumented) MIG7G = "MIG7g" } // @public export enum KnownIpFamily { + // (undocumented) IPv4 = "IPv4", + // (undocumented) IPv6 = "IPv6" } // @public export enum KnownKeyVaultNetworkAccessTypes { + // (undocumented) Private = "Private", + // (undocumented) Public = "Public" } @@ -892,14 +1112,19 @@ export enum KnownLoadBalancerSku { // @public export enum KnownManagedClusterPodIdentityProvisioningState { + // (undocumented) Assigned = "Assigned", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Updating = "Updating" } // @public export enum KnownManagedClusterSKUName { + // (undocumented) Basic = "Basic" } @@ -941,9 +1166,13 @@ export enum KnownOSDiskType { // @public export enum KnownOssku { + // (undocumented) CBLMariner = "CBLMariner", + // (undocumented) Ubuntu = "Ubuntu", + // (undocumented) Windows2019 = "Windows2019", + // (undocumented) Windows2022 = "Windows2022" } @@ -963,16 +1192,21 @@ export enum KnownOutboundType { // @public export enum KnownPrivateEndpointConnectionProvisioningState { + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Succeeded = "Succeeded" } // @public export enum KnownPublicNetworkAccess { Disabled = "Disabled", - Enabled = "Enabled" + Enabled = "Enabled", + SecuredByPerimeter = "SecuredByPerimeter" } // @public @@ -1001,12 +1235,24 @@ export enum KnownSnapshotType { // @public export enum KnownTrustedAccessRoleBindingProvisioningState { + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Updating = "Updating" } +// @public +export enum KnownUpdateMode { + Auto = "Auto", + Initial = "Initial", + Off = "Off", + Recreate = "Recreate" +} + // @public export enum KnownUpgradeChannel { NodeImage = "node-image", @@ -1018,12 +1264,19 @@ export enum KnownUpgradeChannel { // @public export enum KnownWeekDay { + // (undocumented) Friday = "Friday", + // (undocumented) Monday = "Monday", + // (undocumented) Saturday = "Saturday", + // (undocumented) Sunday = "Sunday", + // (undocumented) Thursday = "Thursday", + // (undocumented) Tuesday = "Tuesday", + // (undocumented) Wednesday = "Wednesday" } @@ -1066,11 +1319,11 @@ export interface LinuxOSConfig { export type LoadBalancerSku = string; // @public -export interface MaintenanceConfiguration extends SubResource { - notAllowedTime?: TimeSpan[]; +export type MaintenanceConfiguration = SubResource & { readonly systemData?: SystemData; timeInWeek?: TimeInWeek[]; -} + notAllowedTime?: TimeSpan[]; +}; // @public export interface MaintenanceConfigurationListResult { @@ -1119,52 +1372,52 @@ export interface MaintenanceConfigurationsListByManagedClusterOptionalParams ext export type MaintenanceConfigurationsListByManagedClusterResponse = MaintenanceConfigurationListResult; // @public -export interface ManagedCluster extends TrackedResource { - aadProfile?: ManagedClusterAADProfile; +export type ManagedCluster = TrackedResource & { + sku?: ManagedClusterSKU; + extendedLocation?: ExtendedLocation; + identity?: ManagedClusterIdentity; + readonly provisioningState?: string; + readonly powerState?: PowerState; + creationData?: CreationData; + readonly maxAgentPools?: number; + kubernetesVersion?: string; + readonly currentKubernetesVersion?: string; + dnsPrefix?: string; + fqdnSubdomain?: string; + readonly fqdn?: string; + readonly privateFqdn?: string; + readonly azurePortalFqdn?: string; + agentPoolProfiles?: ManagedClusterAgentPoolProfile[]; + linuxProfile?: ContainerServiceLinuxProfile; + windowsProfile?: ManagedClusterWindowsProfile; + servicePrincipalProfile?: ManagedClusterServicePrincipalProfile; addonProfiles?: { [propertyName: string]: ManagedClusterAddonProfile; }; - agentPoolProfiles?: ManagedClusterAgentPoolProfile[]; - apiServerAccessProfile?: ManagedClusterAPIServerAccessProfile; - autoScalerProfile?: ManagedClusterPropertiesAutoScalerProfile; + podIdentityProfile?: ManagedClusterPodIdentityProfile; + oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; + nodeResourceGroup?: string; + enableRbac?: boolean; + enablePodSecurityPolicy?: boolean; + enableNamespaceResources?: boolean; + networkProfile?: ContainerServiceNetworkProfile; + aadProfile?: ManagedClusterAADProfile; autoUpgradeProfile?: ManagedClusterAutoUpgradeProfile; - readonly azurePortalFqdn?: string; - creationData?: CreationData; - readonly currentKubernetesVersion?: string; - disableLocalAccounts?: boolean; + autoScalerProfile?: ManagedClusterPropertiesAutoScalerProfile; + apiServerAccessProfile?: ManagedClusterAPIServerAccessProfile; diskEncryptionSetID?: string; - dnsPrefix?: string; - enableNamespaceResources?: boolean; - enablePodSecurityPolicy?: boolean; - enableRbac?: boolean; - extendedLocation?: ExtendedLocation; - readonly fqdn?: string; - fqdnSubdomain?: string; - httpProxyConfig?: ManagedClusterHttpProxyConfig; - identity?: ManagedClusterIdentity; identityProfile?: { [propertyName: string]: UserAssignedIdentity; }; - ingressProfile?: ManagedClusterIngressProfile; - kubernetesVersion?: string; - linuxProfile?: ContainerServiceLinuxProfile; - readonly maxAgentPools?: number; - networkProfile?: ContainerServiceNetworkProfile; - nodeResourceGroup?: string; - oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; - podIdentityProfile?: ManagedClusterPodIdentityProfile; - readonly powerState?: PowerState; - readonly privateFqdn?: string; privateLinkResources?: PrivateLinkResource[]; - readonly provisioningState?: string; - publicNetworkAccess?: PublicNetworkAccess; + disableLocalAccounts?: boolean; + httpProxyConfig?: ManagedClusterHttpProxyConfig; securityProfile?: ManagedClusterSecurityProfile; - servicePrincipalProfile?: ManagedClusterServicePrincipalProfile; - sku?: ManagedClusterSKU; storageProfile?: ManagedClusterStorageProfile; - windowsProfile?: ManagedClusterWindowsProfile; + ingressProfile?: ManagedClusterIngressProfile; + publicNetworkAccess?: PublicNetworkAccess; workloadAutoScalerProfile?: ManagedClusterWorkloadAutoScalerProfile; -} +}; // @public export interface ManagedClusterAADProfile { @@ -1178,9 +1431,9 @@ export interface ManagedClusterAADProfile { } // @public -export interface ManagedClusterAccessProfile extends TrackedResource { +export type ManagedClusterAccessProfile = TrackedResource & { kubeConfig?: Uint8Array; -} +}; // @public export interface ManagedClusterAddonProfile { @@ -1192,13 +1445,12 @@ export interface ManagedClusterAddonProfile { } // @public -export interface ManagedClusterAddonProfileIdentity extends UserAssignedIdentity { -} +export type ManagedClusterAddonProfileIdentity = UserAssignedIdentity & {}; // @public -export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolProfileProperties { +export type ManagedClusterAgentPoolProfile = ManagedClusterAgentPoolProfileProperties & { name: string; -} +}; // @public export interface ManagedClusterAgentPoolProfileProperties { @@ -1442,6 +1694,7 @@ export interface ManagedClusterPropertiesForSnapshot { // @public export interface ManagedClusters { + abortLatestOperation(resourceGroupName: string, resourceName: string, options?: ManagedClustersAbortLatestOperationOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: ManagedCluster, options?: ManagedClustersCreateOrUpdateOptionalParams): Promise, ManagedClustersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: ManagedCluster, options?: ManagedClustersCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, resourceName: string, options?: ManagedClustersDeleteOptionalParams): Promise, void>>; @@ -1475,6 +1728,10 @@ export interface ManagedClusters { listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, resourceName: string, options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ManagedClustersAbortLatestOperationOptionalParams extends coreClient.OperationOptions { +} + // @public export interface ManagedClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1642,11 +1899,11 @@ export type ManagedClustersListOutboundNetworkDependenciesEndpointsResponse = Ou export type ManagedClustersListResponse = ManagedClusterListResult; // @public -export interface ManagedClusterSnapshot extends TrackedResource { +export type ManagedClusterSnapshot = TrackedResource & { creationData?: CreationData; - readonly managedClusterPropertiesReadOnly?: ManagedClusterPropertiesForSnapshot; snapshotType?: SnapshotType; -} + readonly managedClusterPropertiesReadOnly?: ManagedClusterPropertiesForSnapshot; +}; // @public export interface ManagedClusterSnapshotListResult { @@ -1821,6 +2078,8 @@ export interface ManagedClusterWindowsProfile { // @public export interface ManagedClusterWorkloadAutoScalerProfile { keda?: ManagedClusterWorkloadAutoScalerProfileKeda; + // (undocumented) + verticalPodAutoscaler?: ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler; } // @public @@ -1828,6 +2087,13 @@ export interface ManagedClusterWorkloadAutoScalerProfileKeda { enabled: boolean; } +// @public (undocumented) +export interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler { + controlledValues: ControlledValues; + enabled: boolean; + updateMode: UpdateMode; +} + // @public (undocumented) export interface ManagedServiceIdentityUserAssignedIdentitiesValue { readonly clientId?: string; @@ -2076,16 +2342,16 @@ export type ScaleSetEvictionPolicy = string; export type ScaleSetPriority = string; // @public -export interface Snapshot extends TrackedResource { +export type Snapshot = TrackedResource & { creationData?: CreationData; - readonly enableFips?: boolean; + snapshotType?: SnapshotType; readonly kubernetesVersion?: string; readonly nodeImageVersion?: string; - readonly osSku?: Ossku; readonly osType?: OSType; - snapshotType?: SnapshotType; + readonly osSku?: Ossku; readonly vmSize?: string; -} + readonly enableFips?: boolean; +}; // @public export interface SnapshotListResult { @@ -2228,12 +2494,12 @@ export interface TimeSpan { } // @public -export interface TrackedResource extends Resource { - location: string; +export type TrackedResource = Resource & { tags?: { [propertyName: string]: string; }; -} + location: string; +}; // @public export interface TrustedAccessRole { @@ -2243,11 +2509,11 @@ export interface TrustedAccessRole { } // @public -export interface TrustedAccessRoleBinding extends Resource { +export type TrustedAccessRoleBinding = Resource & { readonly provisioningState?: TrustedAccessRoleBindingProvisioningState; - roles: string[]; sourceResourceId: string; -} + roles: string[]; +}; // @public export interface TrustedAccessRoleBindingListResult { @@ -2332,6 +2598,9 @@ export interface TrustedAccessRolesListOptionalParams extends coreClient.Operati // @public export type TrustedAccessRolesListResponse = TrustedAccessRoleListResult; +// @public +export type UpdateMode = string; + // @public export type UpgradeChannel = string; diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index e1a2336c67d7..6223a077e5e8 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -78,7 +78,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-containerservice/17.1.0-beta.1`; + const packageDetails = `azsdk-js-arm-containerservice/17.1.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -98,41 +98,34 @@ export class ContainerServiceClient extends coreClient.ServiceClient { }; super(optionsWithDefaults); - let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - } - if ( - !options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound - ) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: `${optionsWithDefaults.credentialScopes}`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); + if (!bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + scopes: `${optionsWithDefaults.baseUri}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } } // Parameter assignments this.subscriptionId = subscriptionId; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-06-02-preview"; + this.apiVersion = options.apiVersion || "2022-07-02-preview"; this.operations = new OperationsImpl(this); this.managedClusters = new ManagedClustersImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this); @@ -166,7 +159,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { if (param.length > 1) { const newParams = param[1].split("&").map((item) => { if (item.indexOf("api-version") > -1) { - return "api-version=" + apiVersion; + return item.replace(/(?<==).*$/, apiVersion); } else { return item; } diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index 78279b36753c..594f2dd127e4 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -841,6 +841,7 @@ export interface ManagedClusterIngressProfileWebAppRouting { export interface ManagedClusterWorkloadAutoScalerProfile { /** KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile. */ keda?: ManagedClusterWorkloadAutoScalerProfileKeda; + verticalPodAutoscaler?: ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler; } /** KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile. */ @@ -849,6 +850,15 @@ export interface ManagedClusterWorkloadAutoScalerProfileKeda { enabled: boolean; } +export interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler { + /** Whether to enable VPA. Default value is false. */ + enabled: boolean; + /** Controls which resource value autoscaler will change. Default value is RequestsAndLimits. */ + controlledValues: ControlledValues; + /** Each update mode level is a superset of the lower levels. Off { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, agentPoolName, options }, + abortLatestOperationOperationSpec + ); + } + /** * Gets a list of agent pools in the specified managed cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -475,6 +498,27 @@ export class AgentPoolsImpl implements AgentPools { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const abortLatestOperationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.agentPoolName + ], + headerParameters: [Parameters.accept], + serializer +}; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools", diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index d5c53c65fd5b..7366d18f574e 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -49,6 +49,7 @@ import { ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, + ManagedClustersAbortLatestOperationOptionalParams, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersStopOptionalParams, @@ -832,6 +833,27 @@ export class ManagedClustersImpl implements ManagedClusters { return poller.pollUntilDone(); } + /** + * Aborting last running operation on managed cluster. We return a 204 no content code here to + * indicate that the operation has been accepted and an abort will be attempted but is not guaranteed + * to complete successfully. Please look up the provisioning state of the managed cluster to keep track + * of whether it changes to Canceled. A canceled provisioning state indicates that the abort was + * successful + * @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. + */ + abortLatestOperation( + resourceGroupName: string, + resourceName: string, + options?: ManagedClustersAbortLatestOperationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, options }, + abortLatestOperationOperationSpec + ); + } + /** * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more * details about rotating managed cluster certificates. @@ -1700,6 +1722,26 @@ const resetAADProfileOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const abortLatestOperationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + headerParameters: [Parameters.accept], + serializer +}; const rotateClusterCertificatesOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts index 4e16d6840a5d..9ef428b30853 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts @@ -11,6 +11,7 @@ import { PollerLike, PollOperationState } from "@azure/core-lro"; import { AgentPool, AgentPoolsListOptionalParams, + AgentPoolsAbortLatestOperationOptionalParams, AgentPoolsGetOptionalParams, AgentPoolsGetResponse, AgentPoolsCreateOrUpdateOptionalParams, @@ -37,6 +38,22 @@ export interface AgentPools { resourceName: string, options?: AgentPoolsListOptionalParams ): PagedAsyncIterableIterator; + /** + * Aborting last running operation on agent pool. We return a 204 no content code here to indicate that + * the operation has been accepted and an abort will be attempted but is not guaranteed to complete + * successfully. Please look up the provisioning state of the agent pool to keep track of whether it + * changes to Canceled. A canceled provisioning state indicates that the abort was successful + * @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. + */ + abortLatestOperation( + resourceGroupName: string, + resourceName: string, + agentPoolName: string, + options?: AgentPoolsAbortLatestOperationOptionalParams + ): Promise; /** * Gets the specified managed cluster agent pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts index 5d7cb831a154..46e3c9106d03 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts @@ -38,6 +38,7 @@ import { ManagedClustersResetServicePrincipalProfileOptionalParams, ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, + ManagedClustersAbortLatestOperationOptionalParams, ManagedClustersRotateClusterCertificatesOptionalParams, ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersStopOptionalParams, @@ -297,6 +298,21 @@ export interface ManagedClusters { parameters: ManagedClusterAADProfile, options?: ManagedClustersResetAADProfileOptionalParams ): Promise; + /** + * Aborting last running operation on managed cluster. We return a 204 no content code here to + * indicate that the operation has been accepted and an abort will be attempted but is not guaranteed + * to complete successfully. Please look up the provisioning state of the managed cluster to keep track + * of whether it changes to Canceled. A canceled provisioning state indicates that the abort was + * successful + * @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. + */ + abortLatestOperation( + resourceGroupName: string, + resourceName: string, + options?: ManagedClustersAbortLatestOperationOptionalParams + ): Promise; /** * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more * details about rotating managed cluster certificates. 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"