Skip to content

Commit 91562be

Browse files
author
SDKAuto
committed
CodeGen from PR 15586 in Azure/azure-rest-api-specs
Merge 812b9a9090bb3bed09016dade8b29c9038b10b55 into c3d81be3f3a800dd874165025e2a25538a27e1e8
1 parent 3b51a6e commit 91562be

21 files changed

+2374
-694
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/feature/v4/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/containerServiceClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ContainerServiceClient extends ContainerServiceClientContext {
2424
privateEndpointConnections: operations.PrivateEndpointConnections;
2525
privateLinkResources: operations.PrivateLinkResources;
2626
resolvePrivateLinkServiceId: operations.ResolvePrivateLinkServiceId;
27+
snapshots: operations.Snapshots;
2728

2829
/**
2930
* Initializes a new instance of the ContainerServiceClient class.
@@ -46,6 +47,7 @@ class ContainerServiceClient extends ContainerServiceClientContext {
4647
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
4748
this.privateLinkResources = new operations.PrivateLinkResources(this);
4849
this.resolvePrivateLinkServiceId = new operations.ResolvePrivateLinkServiceId(this);
50+
this.snapshots = new operations.Snapshots(this);
4951
}
5052
}
5153

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.1";
@@ -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-08-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: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export {
2020
ContainerServiceNetworkProfile,
2121
ContainerServiceSshConfiguration,
2222
ContainerServiceSshPublicKey,
23+
CreationData,
2324
ExtendedLocation,
2425
KubeletConfig,
2526
LinuxOSConfig,
@@ -40,12 +41,17 @@ export {
4041
ManagedClusterLoadBalancerProfileManagedOutboundIPs,
4142
ManagedClusterLoadBalancerProfileOutboundIPPrefixes,
4243
ManagedClusterLoadBalancerProfileOutboundIPs,
44+
ManagedClusterManagedOutboundIPProfile,
45+
ManagedClusterNATGatewayProfile,
4346
ManagedClusterPodIdentity,
4447
ManagedClusterPodIdentityException,
4548
ManagedClusterPodIdentityProfile,
49+
ManagedClusterPodIdentityProvisioningError,
50+
ManagedClusterPodIdentityProvisioningErrorBody,
4651
ManagedClusterPodIdentityProvisioningInfo,
4752
ManagedClusterPropertiesAutoScalerProfile,
48-
ManagedClusterPropertiesIdentityProfileValue,
53+
ManagedClusterSecurityProfile,
54+
ManagedClusterSecurityProfileAzureDefender,
4955
ManagedClusterServicePrincipalProfile,
5056
ManagedClusterSKU,
5157
ManagedClusterWindowsProfile,
@@ -56,6 +62,7 @@ export {
5662
PrivateLinkServiceConnectionState,
5763
Resource,
5864
ResourceReference,
65+
Snapshot,
5966
SubResource,
6067
SysctlConfig,
6168
SystemData,

0 commit comments

Comments
 (0)