Skip to content

Commit

Permalink
CodeGen from PR 17955 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 77f848ace46b340832f5c101e216fe4d0cb45087 into e1159223cc1d4627d328f2543e8e6cd1f334ec42
  • Loading branch information
SDKAuto committed Feb 23, 2022
1 parent c629e05 commit b77ff25
Show file tree
Hide file tree
Showing 15 changed files with 364 additions and 48 deletions.
21 changes: 10 additions & 11 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

## 15.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 15.1.0-beta.1 (2022-02-23)

**Features**

- Added Interface ManagedClusterKMSProfile
- Added Interface ManagedClusterOidcIssuerProfile
- Added Type Alias Format
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter capacityReservationGroupID
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter hostGroupID
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter messageOfTheDay
- Interface ManagedClustersListClusterAdminCredentialsOptionalParams has a new optional parameter format
- Type Alias AgentPool has a new parameter messageOfTheDay
- Type Alias AgentPool has a new parameter capacityReservationGroupID
- Type Alias AgentPool has a new parameter hostGroupID
- Type Alias ManagedCluster has a new parameter currentKubernetesVersion
- Type Alias ManagedCluster has a new parameter oidcIssuerProfile
- Type Alias ManagedCluster has a new parameter enableNamespaceResources
- Type Alias ManagedCluster has a new parameter kmsProfile
- Added Enum KnownFormat
- Enum KnownNetworkPlugin has a new value None


## 15.0.0 (2021-12-09)

The package of @azure/arm-containerservice is using our next generation design principles since version 15.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/containerservice/arm-containerservice/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/containerservice/arm-containerservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Container Service Client.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerservice) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
6 changes: 3 additions & 3 deletions sdk/containerservice/arm-containerservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "d710fb7f40338ca6ef00e0a9680be0a3d4cf5059",
"commit": "2eb40a0cfb0f0e652c57810df8f0901dd9573077",
"readme": "specification/containerservice/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20211130.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/containerservice/arm-containerservice/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-containerservice.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
8 changes: 4 additions & 4 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": "15.0.1",
"version": "1.0.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -29,12 +29,12 @@
"types": "./types/arm-containerservice.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.0.0",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
Expand Down Expand Up @@ -99,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type AgentPool = SubResource & {
osDiskType?: OSDiskType;
kubeletDiskType?: KubeletDiskType;
workloadRuntime?: WorkloadRuntime;
messageOfTheDay?: string;
vnetSubnetID?: string;
podSubnetID?: string;
maxPods?: number;
Expand Down Expand Up @@ -55,6 +56,8 @@ export type AgentPool = SubResource & {
enableFips?: boolean;
gpuInstanceProfile?: GPUInstanceProfile;
creationData?: CreationData;
capacityReservationGroupID?: string;
hostGroupID?: string;
};

// @public
Expand Down Expand Up @@ -345,6 +348,9 @@ export interface ExtendedLocation {
// @public
export type ExtendedLocationTypes = string;

// @public
export type Format = string;

// @public
export type GPUInstanceProfile = string;

Expand Down Expand Up @@ -767,6 +773,12 @@ export enum KnownExtendedLocationTypes {
EdgeZone = "EdgeZone"
}

// @public
export enum KnownFormat {
Azure = "azure",
Exec = "exec"
}

// @public
export enum KnownGPUInstanceProfile {
// (undocumented)
Expand Down Expand Up @@ -840,7 +852,8 @@ export enum KnownNetworkMode {
// @public
export enum KnownNetworkPlugin {
Azure = "azure",
Kubenet = "kubenet"
Kubenet = "kubenet",
None = "none"
}

// @public
Expand Down Expand Up @@ -1047,6 +1060,7 @@ export type ManagedCluster = Resource & {
readonly powerState?: PowerState;
readonly maxAgentPools?: number;
kubernetesVersion?: string;
readonly currentKubernetesVersion?: string;
dnsPrefix?: string;
fqdnSubdomain?: string;
readonly fqdn?: string;
Expand All @@ -1060,9 +1074,11 @@ export type ManagedCluster = Resource & {
[propertyName: string]: ManagedClusterAddonProfile;
};
podIdentityProfile?: ManagedClusterPodIdentityProfile;
oidcIssuerProfile?: ManagedClusterOidcIssuerProfile;
nodeResourceGroup?: string;
enableRbac?: boolean;
enablePodSecurityPolicy?: boolean;
enableNamespaceResources?: boolean;
networkProfile?: ContainerServiceNetworkProfile;
aadProfile?: ManagedClusterAADProfile;
autoUpgradeProfile?: ManagedClusterAutoUpgradeProfile;
Expand All @@ -1077,6 +1093,7 @@ export type ManagedCluster = Resource & {
httpProxyConfig?: ManagedClusterHttpProxyConfig;
securityProfile?: ManagedClusterSecurityProfile;
publicNetworkAccess?: PublicNetworkAccess;
kmsProfile?: ManagedClusterKMSProfile;
};

// @public
Expand Down Expand Up @@ -1115,6 +1132,7 @@ export type ManagedClusterAgentPoolProfile = ManagedClusterAgentPoolProfilePrope
// @public
export interface ManagedClusterAgentPoolProfileProperties {
availabilityZones?: string[];
capacityReservationGroupID?: string;
count?: number;
creationData?: CreationData;
enableAutoScaling?: boolean;
Expand All @@ -1123,11 +1141,13 @@ export interface ManagedClusterAgentPoolProfileProperties {
enableNodePublicIP?: boolean;
enableUltraSSD?: boolean;
gpuInstanceProfile?: GPUInstanceProfile;
hostGroupID?: string;
kubeletConfig?: KubeletConfig;
kubeletDiskType?: KubeletDiskType;
linuxOSConfig?: LinuxOSConfig;
maxCount?: number;
maxPods?: number;
messageOfTheDay?: string;
minCount?: number;
mode?: AgentPoolMode;
readonly nodeImageVersion?: string;
Expand Down Expand Up @@ -1191,6 +1211,14 @@ export interface ManagedClusterIdentity {
};
}

// @public
export interface ManagedClusterKMSProfile {
enabled?: boolean;
keyName?: string;
keyVaultName?: string;
keyVersion?: string;
}

// @public
export interface ManagedClusterListResult {
readonly nextLink?: string;
Expand Down Expand Up @@ -1236,6 +1264,12 @@ export interface ManagedClusterNATGatewayProfile {
managedOutboundIPProfile?: ManagedClusterManagedOutboundIPProfile;
}

// @public
export interface ManagedClusterOidcIssuerProfile {
enabled?: boolean;
readonly issuerURL?: string;
}

// @public
export interface ManagedClusterPodIdentity {
bindingSelector?: string;
Expand Down Expand Up @@ -1448,6 +1482,7 @@ export type ManagedClustersListByResourceGroupResponse = ManagedClusterListResul

// @public
export interface ManagedClustersListClusterAdminCredentialsOptionalParams extends coreClient.OperationOptions {
format?: Format;
serverFqdn?: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-containerservice/15.0.0`;
const packageDetails = `azsdk-js-arm-containerservice/15.1.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -86,7 +86,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-10-01";
this.apiVersion = options.apiVersion || "2022-02-02-preview";
this.operations = new OperationsImpl(this);
this.managedClusters = new ManagedClustersImpl(this);
this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);
Expand Down
Loading

0 comments on commit b77ff25

Please sign in to comment.