diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e88839ef06ca..586573f034b1 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10339,6 +10339,37 @@ packages: yn: 3.1.1 dev: false + /ts-node@10.9.2(@types/node@18.19.39)(typescript@5.4.5): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.11 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 18.19.39 + acorn: 8.12.1 + acorn-walk: 8.3.3 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.4.5 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: false + /ts-node@10.9.2(@types/node@18.19.39)(typescript@5.5.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true @@ -13449,7 +13480,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-PDk+4cVousETlt2IQvxd58p5JbjAZ0H0cwyQIUVdCJeBRYeGFMvLOUG/JbiHn7NJh9jdZXFKdOM0dNfJtM+FPg==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-9zypwvOnIqE4GKMIkKtczLYCmc8azI/Mh6aBxHW11aX1IiyaUN62pejFxJ6b3rzWRDllL+/wUFUe3lZNzhSbyQ==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -13468,9 +13499,10 @@ packages: mkdirp: 3.0.1 mocha: 10.6.0 rimraf: 5.0.8 - ts-node: 10.9.2(@types/node@18.19.39)(typescript@5.5.3) + ts-node: 10.9.2(@types/node@18.19.39)(typescript@5.4.5) tslib: 2.6.3 - typescript: 5.5.3 + tsx: 4.16.2 + typescript: 5.4.5 uglify-js: 3.18.0 transitivePeerDependencies: - '@swc/core' diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index 786fc82a61bd..a63ef282c1e7 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,15 +1,20 @@ # Release History + +## 21.0.0 (2024-07-10) + +**Features** -## 20.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter daemonsetEvictionForEmptyNodes + - Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter daemonsetEvictionForOccupiedNodes + - Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter ignoreDaemonsetsUtilization + - Enum KnownNetworkPolicy has a new value None + - Enum KnownNodeOSUpgradeChannel has a new value SecurityPatch -### Other Changes +**Breaking Changes** + - Removed operation ManagedClusters.getOSOptions + + ## 20.0.0 (2024-04-26) **Features** @@ -26,7 +31,7 @@ - Interface IstioEgressGateway no longer has parameter nodeSelector - + ## 20.0.0-beta.1 (2024-04-12) **Features** diff --git a/sdk/containerservice/arm-containerservice/_meta.json b/sdk/containerservice/arm-containerservice/_meta.json index ce15afd68843..16a4a8e1959e 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "34d8b6d264d9b8980a3c8fe2dde026319b2ba32f", + "commit": "d018a2203b22c86f416c10378dcce8c636b53cf9", "readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.21 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.5", - "use": "@autorest/typescript@6.0.21" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.10", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index 8d39e3606471..9c243d1e9802 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": "20.0.1", + "version": "21.0.0", "engines": { "node": ">=18.0.0" }, @@ -30,17 +30,17 @@ "devDependencies": { "@microsoft/api-extractor": "^7.31.1", "mkdirp": "^3.0.1", - "typescript": "~5.5.3", + "typescript": "~5.4.5", "uglify-js": "^3.4.9", "rimraf": "^5.0.0", "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.0.0", + "@azure-tools/test-credential": "^1.1.0", "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "esm": "^3.2.18", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", @@ -76,7 +76,7 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "prepack": "npm run build", "pack": "npm pack 2>&1", - "extract-api": "api-extractor run --local", + "extract-api": "dev-tool run extract-api", "lint": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", @@ -106,13 +106,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 43dd273f42eb..2c2ad2432e01 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -651,13 +651,15 @@ export enum KnownNetworkPluginMode { export enum KnownNetworkPolicy { Azure = "azure", Calico = "calico", - Cilium = "cilium" + Cilium = "cilium", + None = "none" } // @public export enum KnownNodeOSUpgradeChannel { NodeImage = "NodeImage", None = "None", + SecurityPatch = "SecurityPatch", Unmanaged = "Unmanaged" } @@ -1240,7 +1242,10 @@ export interface ManagedClusterPoolUpgradeProfileUpgradesItem { // @public export interface ManagedClusterPropertiesAutoScalerProfile { balanceSimilarNodeGroups?: string; + daemonsetEvictionForEmptyNodes?: boolean; + daemonsetEvictionForOccupiedNodes?: boolean; expander?: Expander; + ignoreDaemonsetsUtilization?: boolean; maxEmptyBulkDelete?: string; maxGracefulTerminationSec?: string; maxNodeProvisionTime?: string; @@ -1287,7 +1292,6 @@ export interface ManagedClusters { getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, options?: ManagedClustersGetCommandResultOptionalParams): Promise; getMeshRevisionProfile(location: string, mode: string, options?: ManagedClustersGetMeshRevisionProfileOptionalParams): Promise; getMeshUpgradeProfile(resourceGroupName: string, resourceName: string, mode: string, options?: ManagedClustersGetMeshUpgradeProfileOptionalParams): Promise; - getOSOptions(location: string, options?: ManagedClustersGetOSOptionsOptionalParams): Promise; getUpgradeProfile(resourceGroupName: string, resourceName: string, options?: ManagedClustersGetUpgradeProfileOptionalParams): Promise; list(options?: ManagedClustersListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: ManagedClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; @@ -1411,14 +1415,6 @@ export type ManagedClustersGetMeshUpgradeProfileResponse = MeshUpgradeProfile; export interface ManagedClustersGetOptionalParams extends coreClient.OperationOptions { } -// @public -export interface ManagedClustersGetOSOptionsOptionalParams extends coreClient.OperationOptions { - resourceType?: string; -} - -// @public -export type ManagedClustersGetOSOptionsResponse = OSOptionProfile; - // @public export type ManagedClustersGetResponse = ManagedCluster; @@ -1800,20 +1796,6 @@ export interface OperationValue { // @public export type OSDiskType = string; -// @public -export interface OSOptionProfile { - readonly id?: string; - readonly name?: string; - osOptionPropertyList: OSOptionProperty[]; - readonly type?: string; -} - -// @public -export interface OSOptionProperty { - enableFipsImage: boolean; - osType: string; -} - // @public export type Ossku = string; diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index 272fa5ebc4da..4352283b6c65 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -72,7 +72,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-containerservice/20.0.1`; + const packageDetails = `azsdk-js-arm-containerservice/21.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -126,7 +126,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-02-01"; + this.apiVersion = options.apiVersion || "2024-05-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 87d444133f07..c8df01ff28ea 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -69,35 +69,6 @@ export interface CloudErrorBody { details?: CloudErrorBody[]; } -/** The OS option profile. */ -export interface OSOptionProfile { - /** - * The ID of the OS option resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the OS option resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the OS option resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** The list of OS options. */ - osOptionPropertyList: OSOptionProperty[]; -} - -/** OS option property. */ -export interface OSOptionProperty { - /** The OS type. */ - osType: string; - /** Whether the image is FIPS-enabled. */ - enableFipsImage: boolean; -} - /** Hold values properties, which is array of KubernetesVersion */ export interface KubernetesVersionListResult { /** Array of AKS supported Kubernetes versions. */ @@ -748,6 +719,12 @@ export interface UpgradeOverrideSettings { export interface ManagedClusterPropertiesAutoScalerProfile { /** Valid values are 'true' and 'false' */ balanceSimilarNodeGroups?: string; + /** If set to true, all daemonset pods on empty nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. */ + daemonsetEvictionForEmptyNodes?: boolean; + /** If set to true, all daemonset pods on occupied nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. */ + daemonsetEvictionForOccupiedNodes?: boolean; + /** If set to true, the resources used by daemonset will be taken into account when making scaling down decisions. */ + ignoreDaemonsetsUtilization?: boolean; /** If not specified, the default is 'random'. See [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) for more information. */ expander?: Expander; /** The default is 10. */ @@ -2488,6 +2465,8 @@ export type NetworkPluginMode = string; /** Known values of {@link NetworkPolicy} that the service accepts. */ export enum KnownNetworkPolicy { + /** Network policies will not be enforced. This is the default value when NetworkPolicy is not specified. */ + None = "none", /** Use Calico network policies. See [differences between Azure and Calico policies](https:\//docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. */ Calico = "calico", /** Use Azure network policies. See [differences between Azure and Calico policies](https:\//docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. */ @@ -2501,6 +2480,7 @@ export enum KnownNetworkPolicy { * {@link KnownNetworkPolicy} can be used interchangeably with NetworkPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **none**: Network policies will not be enforced. This is the default value when NetworkPolicy is not specified. \ * **calico**: Use Calico network policies. See [differences between Azure and Calico policies](https:\/\/docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. \ * **azure**: Use Azure network policies. See [differences between Azure and Calico policies](https:\/\/docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. \ * **cilium**: Use Cilium to enforce network policies. This requires networkDataplane to be 'cilium'. @@ -2656,6 +2636,8 @@ export enum KnownNodeOSUpgradeChannel { Unmanaged = "Unmanaged", /** AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images. */ NodeImage = "NodeImage", + /** AKS downloads and updates the nodes with tested security updates. These updates honor the maintenance window settings and produce a new VHD that is used on new nodes. On some occasions it's not possible to apply the updates in place, in such cases the existing nodes will also be re-imaged to the newly produced VHD in order to apply the changes. This option incurs an extra cost of hosting the new Security Patch VHDs in your resource group for just in time consumption. */ + SecurityPatch = "SecurityPatch", } /** @@ -2665,7 +2647,8 @@ export enum KnownNodeOSUpgradeChannel { * ### Known values supported by the service * **None**: No attempt to update your machines OS will be made either by OS or by rolling VHDs. This means you are responsible for your security updates \ * **Unmanaged**: OS updates will be applied automatically through the OS built-in patching infrastructure. Newly scaled in machines will be unpatched initially and will be patched at some point by the OS's infrastructure. Behavior of this option depends on the OS in question. Ubuntu and Mariner apply security patches through unattended upgrade roughly once a day around 06:00 UTC. Windows does not apply security patches automatically and so for them this option is equivalent to None till further notice \ - * **NodeImage**: AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images. + * **NodeImage**: AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images. \ + * **SecurityPatch**: AKS downloads and updates the nodes with tested security updates. These updates honor the maintenance window settings and produce a new VHD that is used on new nodes. On some occasions it's not possible to apply the updates in place, in such cases the existing nodes will also be re-imaged to the newly produced VHD in order to apply the changes. This option incurs an extra cost of hosting the new Security Patch VHDs in your resource group for just in time consumption. */ export type NodeOSUpgradeChannel = string; @@ -2969,16 +2952,6 @@ export interface OperationsListOptionalParams /** Contains response data for the list operation. */ export type OperationsListResponse = OperationListResult; -/** Optional parameters. */ -export interface ManagedClustersGetOSOptionsOptionalParams - extends coreClient.OperationOptions { - /** The resource type for which the OS options needs to be returned */ - resourceType?: string; -} - -/** Contains response data for the getOSOptions operation. */ -export type ManagedClustersGetOSOptionsResponse = OSOptionProfile; - /** Optional parameters. */ export interface ManagedClustersListKubernetesVersionsOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index 34cb9c474bb2..f9cc930b7c0c 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -136,72 +136,6 @@ export const CloudErrorBody: coreClient.CompositeMapper = { }, }; -export const OSOptionProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSOptionProfile", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - osOptionPropertyList: { - serializedName: "properties.osOptionPropertyList", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OSOptionProperty", - }, - }, - }, - }, - }, - }, -}; - -export const OSOptionProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSOptionProperty", - modelProperties: { - osType: { - serializedName: "os-type", - required: true, - type: { - name: "String", - }, - }, - enableFipsImage: { - serializedName: "enable-fips-image", - required: true, - type: { - name: "Boolean", - }, - }, - }, - }, -}; - export const KubernetesVersionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2198,6 +2132,24 @@ export const ManagedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapp name: "String", }, }, + daemonsetEvictionForEmptyNodes: { + serializedName: "daemonset-eviction-for-empty-nodes", + type: { + name: "Boolean", + }, + }, + daemonsetEvictionForOccupiedNodes: { + serializedName: "daemonset-eviction-for-occupied-nodes", + type: { + name: "Boolean", + }, + }, + ignoreDaemonsetsUtilization: { + serializedName: "ignore-daemonsets-utilization", + type: { + name: "Boolean", + }, + }, expander: { serializedName: "expander", type: { diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index a1847d4ce468..a5c015695826 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -52,7 +52,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-02-01", + defaultValue: "2024-05-01", isConstant: true, serializedName: "api-version", type: { @@ -86,16 +86,6 @@ export const location: OperationURLParameter = { }, }; -export const resourceType: OperationQueryParameter = { - parameterPath: ["options", "resourceType"], - mapper: { - serializedName: "resource-type", - type: { - name: "String", - }, - }, -}; - export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index 165ece62430a..f4e5d6d49165 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -39,8 +39,6 @@ import { ManagedClustersListMeshUpgradeProfilesNextOptionalParams, ManagedClustersListMeshUpgradeProfilesOptionalParams, ManagedClustersListMeshUpgradeProfilesResponse, - ManagedClustersGetOSOptionsOptionalParams, - ManagedClustersGetOSOptionsResponse, ManagedClustersListKubernetesVersionsOptionalParams, ManagedClustersListKubernetesVersionsResponse, ManagedClustersGetUpgradeProfileOptionalParams, @@ -467,21 +465,6 @@ export class ManagedClustersImpl implements ManagedClusters { } } - /** - * Gets supported OS options in the specified subscription. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - getOSOptions( - location: string, - options?: ManagedClustersGetOSOptionsOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - getOSOptionsOperationSpec, - ); - } - /** * Contains extra metadata on the version, including supported patch versions, capabilities, available * upgrades, and details on preview status of the version @@ -1849,26 +1832,6 @@ export class ManagedClustersImpl implements ManagedClusters { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOSOptionsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OSOptionProfile, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion, Parameters.resourceType], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; const listKubernetesVersionsOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/kubernetesVersions", httpMethod: "GET", diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts index a64630f29071..37e070e318b0 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts @@ -18,8 +18,6 @@ import { ManagedClustersListMeshRevisionProfilesOptionalParams, MeshUpgradeProfile, ManagedClustersListMeshUpgradeProfilesOptionalParams, - ManagedClustersGetOSOptionsOptionalParams, - ManagedClustersGetOSOptionsResponse, ManagedClustersListKubernetesVersionsOptionalParams, ManagedClustersListKubernetesVersionsResponse, ManagedClustersGetUpgradeProfileOptionalParams, @@ -118,15 +116,6 @@ export interface ManagedClusters { resourceName: string, options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, ): PagedAsyncIterableIterator; - /** - * Gets supported OS options in the specified subscription. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - getOSOptions( - location: string, - options?: ManagedClustersGetOSOptionsOptionalParams, - ): Promise; /** * Contains extra metadata on the version, including supported patch versions, capabilities, available * upgrades, and details on preview status of the version diff --git a/sdk/containerservice/arm-containerservice/test/sampleTest.ts b/sdk/containerservice/arm-containerservice/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /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"