Skip to content

Commit 04caa97

Browse files
author
SDKAuto
committed
CodeGen from PR 14696 in Azure/azure-rest-api-specs
Merge d979edd5eb4ddfb24498f9f081f0f91655a9595c into c059fb47f87a35ce5a90631883dfba8f01a41d8e
1 parent b26a218 commit 04caa97

File tree

13 files changed

+947
-468
lines changed

13 files changed

+947
-468
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/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/index.ts

Lines changed: 565 additions & 315 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 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,
@@ -52,6 +54,8 @@ export {
5254
ManagedClusterWindowsProfile,
5355
OSOptionProfile,
5456
OSOptionProperty,
57+
OutboundEnvironmentEndpoint,
58+
OutboundEnvironmentEndpointCollection,
5559
PowerState,
5660
PrivateEndpoint,
5761
PrivateEndpointConnection,

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

Lines changed: 138 additions & 0 deletions
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: {
@@ -2148,6 +2160,12 @@ export const ManagedClusterAPIServerAccessProfile: msRest.CompositeMapper = {
21482160
type: {
21492161
name: "String"
21502162
}
2163+
},
2164+
enablePrivateClusterPublicFQDN: {
2165+
serializedName: "enablePrivateClusterPublicFQDN",
2166+
type: {
2167+
name: "Boolean"
2168+
}
21512169
}
21522170
}
21532171
}
@@ -3152,6 +3170,96 @@ export const OSOptionProfile: msRest.CompositeMapper = {
31523170
}
31533171
};
31543172

3173+
export const EndpointDetail: msRest.CompositeMapper = {
3174+
serializedName: "EndpointDetail",
3175+
type: {
3176+
name: "Composite",
3177+
className: "EndpointDetail",
3178+
modelProperties: {
3179+
ipAddress: {
3180+
serializedName: "ipAddress",
3181+
type: {
3182+
name: "String"
3183+
}
3184+
},
3185+
port: {
3186+
serializedName: "port",
3187+
type: {
3188+
name: "Number"
3189+
}
3190+
},
3191+
protocol: {
3192+
serializedName: "protocol",
3193+
type: {
3194+
name: "String"
3195+
}
3196+
},
3197+
description: {
3198+
serializedName: "description",
3199+
type: {
3200+
name: "String"
3201+
}
3202+
}
3203+
}
3204+
}
3205+
};
3206+
3207+
export const EndpointDependency: msRest.CompositeMapper = {
3208+
serializedName: "EndpointDependency",
3209+
type: {
3210+
name: "Composite",
3211+
className: "EndpointDependency",
3212+
modelProperties: {
3213+
domainName: {
3214+
serializedName: "domainName",
3215+
type: {
3216+
name: "String"
3217+
}
3218+
},
3219+
endpointDetails: {
3220+
serializedName: "endpointDetails",
3221+
type: {
3222+
name: "Sequence",
3223+
element: {
3224+
type: {
3225+
name: "Composite",
3226+
className: "EndpointDetail"
3227+
}
3228+
}
3229+
}
3230+
}
3231+
}
3232+
}
3233+
};
3234+
3235+
export const OutboundEnvironmentEndpoint: msRest.CompositeMapper = {
3236+
serializedName: "OutboundEnvironmentEndpoint",
3237+
type: {
3238+
name: "Composite",
3239+
className: "OutboundEnvironmentEndpoint",
3240+
modelProperties: {
3241+
category: {
3242+
serializedName: "category",
3243+
type: {
3244+
name: "String"
3245+
}
3246+
},
3247+
endpoints: {
3248+
serializedName: "endpoints",
3249+
type: {
3250+
name: "Sequence",
3251+
element: {
3252+
type: {
3253+
name: "Composite",
3254+
className: "EndpointDependency"
3255+
}
3256+
}
3257+
}
3258+
}
3259+
}
3260+
}
3261+
};
3262+
31553263
export const OperationListResult: msRest.CompositeMapper = {
31563264
serializedName: "OperationListResult",
31573265
type: {
@@ -3204,6 +3312,36 @@ export const ManagedClusterListResult: msRest.CompositeMapper = {
32043312
}
32053313
};
32063314

3315+
export const OutboundEnvironmentEndpointCollection: msRest.CompositeMapper = {
3316+
serializedName: "OutboundEnvironmentEndpointCollection",
3317+
type: {
3318+
name: "Composite",
3319+
className: "OutboundEnvironmentEndpointCollection",
3320+
modelProperties: {
3321+
value: {
3322+
required: true,
3323+
serializedName: "",
3324+
type: {
3325+
name: "Sequence",
3326+
element: {
3327+
type: {
3328+
name: "Composite",
3329+
className: "OutboundEnvironmentEndpoint"
3330+
}
3331+
}
3332+
}
3333+
},
3334+
nextLink: {
3335+
readOnly: true,
3336+
serializedName: "nextLink",
3337+
type: {
3338+
name: "String"
3339+
}
3340+
}
3341+
}
3342+
}
3343+
};
3344+
32073345
export const MaintenanceConfigurationListResult: msRest.CompositeMapper = {
32083346
serializedName: "MaintenanceConfigurationListResult",
32093347
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: {

0 commit comments

Comments
 (0)