Skip to content

Commit 484be86

Browse files
author
SDKAuto
committed
CodeGen from PR 15050 in Azure/azure-rest-api-specs
Merge af44661236b6a92f7eb938f69d3b09c1bfb032f5 into b5b3ae9a081535b4dabce52a1136eece3e2d469f
1 parent 899fc0a commit 484be86

17 files changed

+1048
-471
lines changed

sdk/containerservice/arm-containerservice/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure ContainerServiceClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ContainerServiceClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for ContainerServiceClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-containerservice @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
4139
#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
4240

4341
##### Sample code
@@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5149
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5250
const creds = new DefaultAzureCredential();
5351
const client = new ContainerServiceClient(creds, subscriptionId);
54-
5552
client.operations.list().then((result) => {
5653
console.log("The result is:");
5754
console.log(result);
@@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8683
const credential = new InteractiveBrowserCredential(
8784
{
8885
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
86+
tenant: "<optional tenant for your organization>"
9087
});
9188
const client = new Azure.ArmContainerservice.ContainerServiceClient(creds, subscriptionId);
9289
client.operations.list().then((result) => {

sdk/containerservice/arm-containerservice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/containerservice/arm-containerservice",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import * as Models from "./models";
1111
import * as msRest from "@azure/ms-rest-js";
12-
import { TokenCredential } from "@azure/core-auth";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1414

1515
const packageName = "@azure/arm-containerservice";
1616
const packageVersion = "13.3.0";
@@ -50,7 +50,7 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien
5050

5151
super(credentials, options);
5252

53-
this.apiVersion = '2021-03-01';
53+
this.apiVersion = '2021-05-01';
5454
this.acceptLanguage = 'en-US';
5555
this.longRunningOperationRetryTimeout = 30;
5656
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export {
4343
ManagedClusterPodIdentity,
4444
ManagedClusterPodIdentityException,
4545
ManagedClusterPodIdentityProfile,
46+
ManagedClusterPodIdentityProvisioningError,
47+
ManagedClusterPodIdentityProvisioningErrorBody,
4648
ManagedClusterPodIdentityProvisioningInfo,
4749
ManagedClusterPropertiesAutoScalerProfile,
4850
ManagedClusterPropertiesIdentityProfileValue,

sdk/containerservice/arm-containerservice/src/models/index.ts

Lines changed: 599 additions & 316 deletions
Large diffs are not rendered by default.

sdk/containerservice/arm-containerservice/src/models/maintenanceConfigurationsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export {
3939
ManagedClusterPodIdentity,
4040
ManagedClusterPodIdentityException,
4141
ManagedClusterPodIdentityProfile,
42+
ManagedClusterPodIdentityProvisioningError,
43+
ManagedClusterPodIdentityProvisioningErrorBody,
4244
ManagedClusterPodIdentityProvisioningInfo,
4345
ManagedClusterPropertiesAutoScalerProfile,
4446
ManagedClusterPropertiesIdentityProfileValue,

sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export {
1717
ContainerServiceSshPublicKey,
1818
CredentialResult,
1919
CredentialResults,
20+
EndpointDependency,
21+
EndpointDetail,
2022
ExtendedLocation,
2123
KubeletConfig,
2224
LinuxOSConfig,
@@ -41,6 +43,8 @@ export {
4143
ManagedClusterPodIdentity,
4244
ManagedClusterPodIdentityException,
4345
ManagedClusterPodIdentityProfile,
46+
ManagedClusterPodIdentityProvisioningError,
47+
ManagedClusterPodIdentityProvisioningErrorBody,
4448
ManagedClusterPodIdentityProvisioningInfo,
4549
ManagedClusterPoolUpgradeProfile,
4650
ManagedClusterPoolUpgradeProfileUpgradesItem,
@@ -52,6 +56,8 @@ export {
5256
ManagedClusterWindowsProfile,
5357
OSOptionProfile,
5458
OSOptionProperty,
59+
OutboundEnvironmentEndpoint,
60+
OutboundEnvironmentEndpointCollection,
5561
PowerState,
5662
PrivateEndpoint,
5763
PrivateEndpointConnection,

sdk/containerservice/arm-containerservice/src/models/mappers.ts

Lines changed: 196 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,12 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper =
814814
name: "Boolean"
815815
}
816816
},
817+
enableUltraSSD: {
818+
serializedName: "enableUltraSSD",
819+
type: {
820+
name: "Boolean"
821+
}
822+
},
817823
enableFIPS: {
818824
serializedName: "enableFIPS",
819825
type: {
@@ -1086,6 +1092,12 @@ export const AgentPool: msRest.CompositeMapper = {
10861092
name: "Boolean"
10871093
}
10881094
},
1095+
enableUltraSSD: {
1096+
serializedName: "properties.enableUltraSSD",
1097+
type: {
1098+
name: "Boolean"
1099+
}
1100+
},
10891101
enableFIPS: {
10901102
serializedName: "properties.enableFIPS",
10911103
type: {
@@ -1783,6 +1795,63 @@ export const ManagedClusterAddonProfile: msRest.CompositeMapper = {
17831795
}
17841796
};
17851797

1798+
export const ManagedClusterPodIdentityProvisioningErrorBody: msRest.CompositeMapper = {
1799+
serializedName: "ManagedClusterPodIdentityProvisioningErrorBody",
1800+
type: {
1801+
name: "Composite",
1802+
className: "ManagedClusterPodIdentityProvisioningErrorBody",
1803+
modelProperties: {
1804+
code: {
1805+
serializedName: "code",
1806+
type: {
1807+
name: "String"
1808+
}
1809+
},
1810+
message: {
1811+
serializedName: "message",
1812+
type: {
1813+
name: "String"
1814+
}
1815+
},
1816+
target: {
1817+
serializedName: "target",
1818+
type: {
1819+
name: "String"
1820+
}
1821+
},
1822+
details: {
1823+
serializedName: "details",
1824+
type: {
1825+
name: "Sequence",
1826+
element: {
1827+
type: {
1828+
name: "Composite",
1829+
className: "ManagedClusterPodIdentityProvisioningErrorBody"
1830+
}
1831+
}
1832+
}
1833+
}
1834+
}
1835+
}
1836+
};
1837+
1838+
export const ManagedClusterPodIdentityProvisioningError: msRest.CompositeMapper = {
1839+
serializedName: "ManagedClusterPodIdentityProvisioningError",
1840+
type: {
1841+
name: "Composite",
1842+
className: "ManagedClusterPodIdentityProvisioningError",
1843+
modelProperties: {
1844+
error: {
1845+
serializedName: "error",
1846+
type: {
1847+
name: "Composite",
1848+
className: "ManagedClusterPodIdentityProvisioningErrorBody"
1849+
}
1850+
}
1851+
}
1852+
}
1853+
};
1854+
17861855
export const ManagedClusterPodIdentityProvisioningInfo: msRest.CompositeMapper = {
17871856
serializedName: "ManagedClusterPodIdentity_provisioningInfo",
17881857
type: {
@@ -1793,7 +1862,7 @@ export const ManagedClusterPodIdentityProvisioningInfo: msRest.CompositeMapper =
17931862
serializedName: "error",
17941863
type: {
17951864
name: "Composite",
1796-
className: "CloudError"
1865+
className: "ManagedClusterPodIdentityProvisioningError"
17971866
}
17981867
}
17991868
}
@@ -2148,6 +2217,12 @@ export const ManagedClusterAPIServerAccessProfile: msRest.CompositeMapper = {
21482217
type: {
21492218
name: "String"
21502219
}
2220+
},
2221+
enablePrivateClusterPublicFQDN: {
2222+
serializedName: "enablePrivateClusterPublicFQDN",
2223+
type: {
2224+
name: "Boolean"
2225+
}
21512226
}
21522227
}
21532228
}
@@ -3152,6 +3227,96 @@ export const OSOptionProfile: msRest.CompositeMapper = {
31523227
}
31533228
};
31543229

3230+
export const EndpointDetail: msRest.CompositeMapper = {
3231+
serializedName: "EndpointDetail",
3232+
type: {
3233+
name: "Composite",
3234+
className: "EndpointDetail",
3235+
modelProperties: {
3236+
ipAddress: {
3237+
serializedName: "ipAddress",
3238+
type: {
3239+
name: "String"
3240+
}
3241+
},
3242+
port: {
3243+
serializedName: "port",
3244+
type: {
3245+
name: "Number"
3246+
}
3247+
},
3248+
protocol: {
3249+
serializedName: "protocol",
3250+
type: {
3251+
name: "String"
3252+
}
3253+
},
3254+
description: {
3255+
serializedName: "description",
3256+
type: {
3257+
name: "String"
3258+
}
3259+
}
3260+
}
3261+
}
3262+
};
3263+
3264+
export const EndpointDependency: msRest.CompositeMapper = {
3265+
serializedName: "EndpointDependency",
3266+
type: {
3267+
name: "Composite",
3268+
className: "EndpointDependency",
3269+
modelProperties: {
3270+
domainName: {
3271+
serializedName: "domainName",
3272+
type: {
3273+
name: "String"
3274+
}
3275+
},
3276+
endpointDetails: {
3277+
serializedName: "endpointDetails",
3278+
type: {
3279+
name: "Sequence",
3280+
element: {
3281+
type: {
3282+
name: "Composite",
3283+
className: "EndpointDetail"
3284+
}
3285+
}
3286+
}
3287+
}
3288+
}
3289+
}
3290+
};
3291+
3292+
export const OutboundEnvironmentEndpoint: msRest.CompositeMapper = {
3293+
serializedName: "OutboundEnvironmentEndpoint",
3294+
type: {
3295+
name: "Composite",
3296+
className: "OutboundEnvironmentEndpoint",
3297+
modelProperties: {
3298+
category: {
3299+
serializedName: "category",
3300+
type: {
3301+
name: "String"
3302+
}
3303+
},
3304+
endpoints: {
3305+
serializedName: "endpoints",
3306+
type: {
3307+
name: "Sequence",
3308+
element: {
3309+
type: {
3310+
name: "Composite",
3311+
className: "EndpointDependency"
3312+
}
3313+
}
3314+
}
3315+
}
3316+
}
3317+
}
3318+
};
3319+
31553320
export const OperationListResult: msRest.CompositeMapper = {
31563321
serializedName: "OperationListResult",
31573322
type: {
@@ -3204,6 +3369,36 @@ export const ManagedClusterListResult: msRest.CompositeMapper = {
32043369
}
32053370
};
32063371

3372+
export const OutboundEnvironmentEndpointCollection: msRest.CompositeMapper = {
3373+
serializedName: "OutboundEnvironmentEndpointCollection",
3374+
type: {
3375+
name: "Composite",
3376+
className: "OutboundEnvironmentEndpointCollection",
3377+
modelProperties: {
3378+
value: {
3379+
required: true,
3380+
serializedName: "",
3381+
type: {
3382+
name: "Sequence",
3383+
element: {
3384+
type: {
3385+
name: "Composite",
3386+
className: "OutboundEnvironmentEndpoint"
3387+
}
3388+
}
3389+
}
3390+
},
3391+
nextLink: {
3392+
readOnly: true,
3393+
serializedName: "nextLink",
3394+
type: {
3395+
name: "String"
3396+
}
3397+
}
3398+
}
3399+
}
3400+
};
3401+
32073402
export const MaintenanceConfigurationListResult: msRest.CompositeMapper = {
32083403
serializedName: "MaintenanceConfigurationListResult",
32093404
type: {

sdk/containerservice/arm-containerservice/src/models/parameters.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ export const roleName: msRest.OperationURLParameter = {
140140
}
141141
}
142142
};
143+
export const serverFqdn: msRest.OperationQueryParameter = {
144+
parameterPath: [
145+
"options",
146+
"serverFqdn"
147+
],
148+
mapper: {
149+
serializedName: "server-fqdn",
150+
type: {
151+
name: "String"
152+
}
153+
}
154+
};
143155
export const subscriptionId: msRest.OperationURLParameter = {
144156
parameterPath: "subscriptionId",
145157
mapper: {

sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export {
3838
ManagedClusterPodIdentity,
3939
ManagedClusterPodIdentityException,
4040
ManagedClusterPodIdentityProfile,
41+
ManagedClusterPodIdentityProvisioningError,
42+
ManagedClusterPodIdentityProvisioningErrorBody,
4143
ManagedClusterPodIdentityProvisioningInfo,
4244
ManagedClusterPropertiesAutoScalerProfile,
4345
ManagedClusterPropertiesIdentityProfileValue,

0 commit comments

Comments
 (0)