Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
783 changes: 392 additions & 391 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

19 changes: 8 additions & 11 deletions sdk/containerservice/arm-containerservice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Release History

## 21.0.0 (2024-06-12)

**Breaking Changes**

## 20.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Removed operation ManagedClusters.getOSOptions


## 20.0.0 (2024-04-26)

**Features**
Expand All @@ -26,7 +23,7 @@

- Interface IstioEgressGateway no longer has parameter nodeSelector


## 20.0.0-beta.1 (2024-04-12)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/containerservice/arm-containerservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "34d8b6d264d9b8980a3c8fe2dde026319b2ba32f",
"commit": "42278223d12550b82301bafbd6e5bb4916c27fe0",
"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/[email protected].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/[email protected].5",
"use": "@autorest/[email protected].21"
"release_tool": "@azure-tools/[email protected].10",
"use": "@autorest/typescript@^6.0.12"
}
20 changes: 6 additions & 14 deletions sdk/containerservice/arm-containerservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -37,10 +37,10 @@
"@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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,6 @@ export interface ManagedClusters {
getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, options?: ManagedClustersGetCommandResultOptionalParams): Promise<ManagedClustersGetCommandResultResponse>;
getMeshRevisionProfile(location: string, mode: string, options?: ManagedClustersGetMeshRevisionProfileOptionalParams): Promise<ManagedClustersGetMeshRevisionProfileResponse>;
getMeshUpgradeProfile(resourceGroupName: string, resourceName: string, mode: string, options?: ManagedClustersGetMeshUpgradeProfileOptionalParams): Promise<ManagedClustersGetMeshUpgradeProfileResponse>;
getOSOptions(location: string, options?: ManagedClustersGetOSOptionsOptionalParams): Promise<ManagedClustersGetOSOptionsResponse>;
getUpgradeProfile(resourceGroupName: string, resourceName: string, options?: ManagedClustersGetUpgradeProfileOptionalParams): Promise<ManagedClustersGetUpgradeProfileResponse>;
list(options?: ManagedClustersListOptionalParams): PagedAsyncIterableIterator<ManagedCluster>;
listByResourceGroup(resourceGroupName: string, options?: ManagedClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedCluster>;
Expand Down Expand Up @@ -1411,14 +1410,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;

Expand Down Expand Up @@ -1800,20 +1791,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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down Expand Up @@ -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);
Expand Down
39 changes: 0 additions & 39 deletions sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -2969,16 +2940,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 {}
Expand Down
66 changes: 0 additions & 66 deletions sdk/containerservice/arm-containerservice/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ import {
ManagedClustersListMeshUpgradeProfilesNextOptionalParams,
ManagedClustersListMeshUpgradeProfilesOptionalParams,
ManagedClustersListMeshUpgradeProfilesResponse,
ManagedClustersGetOSOptionsOptionalParams,
ManagedClustersGetOSOptionsResponse,
ManagedClustersListKubernetesVersionsOptionalParams,
ManagedClustersListKubernetesVersionsResponse,
ManagedClustersGetUpgradeProfileOptionalParams,
Expand Down Expand Up @@ -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<ManagedClustersGetOSOptionsResponse> {
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
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import {
ManagedClustersListMeshRevisionProfilesOptionalParams,
MeshUpgradeProfile,
ManagedClustersListMeshUpgradeProfilesOptionalParams,
ManagedClustersGetOSOptionsOptionalParams,
ManagedClustersGetOSOptionsResponse,
ManagedClustersListKubernetesVersionsOptionalParams,
ManagedClustersListKubernetesVersionsResponse,
ManagedClustersGetUpgradeProfileOptionalParams,
Expand Down Expand Up @@ -118,15 +116,6 @@ export interface ManagedClusters {
resourceName: string,
options?: ManagedClustersListMeshUpgradeProfilesOptionalParams,
): PagedAsyncIterableIterator<MeshUpgradeProfile>;
/**
* 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<ManagedClustersGetOSOptionsResponse>;
/**
* Contains extra metadata on the version, including supported patch versions, capabilities, available
* upgrades, and details on preview status of the version
Expand Down
Loading