Skip to content

Commit e14646c

Browse files
authored
arm-containerservice-release (Azure#13026)
* arm-containerservice-release * arm-containersevice-release
1 parent 2e355eb commit e14646c

27 files changed

+1934
-3344
lines changed

sdk/containerservice/arm-containerservice/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/containerservice/arm-containerservice/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-containerservice
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and list openShiftManagedClusters as an example written in TypeScript.
18+
#### nodejs - client creation and list operations as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

@@ -26,16 +26,15 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
2626

2727
##### Sample code
2828

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { ContainerServiceClient, ContainerServiceModels, ContainerServiceMappers } from "@azure/arm-containerservice";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { ContainerServiceClient } = require("@azure/arm-containerservice");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {
3736
const client = new ContainerServiceClient(creds, subscriptionId);
38-
client.openShiftManagedClusters.list().then((result) => {
37+
client.operations.list().then((result) => {
3938
console.log("The result is:");
4039
console.log(result);
4140
});
@@ -44,7 +43,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
4443
});
4544
```
4645

47-
#### browser - Authentication, client creation and list openShiftManagedClusters as an example written in JavaScript.
46+
#### browser - Authentication, client creation and list operations as an example written in JavaScript.
4847

4948
##### Install @azure/ms-rest-browserauth
5049

@@ -78,7 +77,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
7877
authManager.login();
7978
}
8079
const client = new Azure.ArmContainerservice.ContainerServiceClient(res.creds, subscriptionId);
81-
client.openShiftManagedClusters.list().then((result) => {
80+
client.operations.list().then((result) => {
8281
console.log("The result is:");
8382
console.log(result);
8483
}).catch((err) => {

sdk/containerservice/arm-containerservice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-containerservice",
33
"author": "Microsoft Corporation",
44
"description": "ContainerServiceClient Library with typescript type definitions for node.js and browser.",
5-
"version": "12.0.0",
5+
"version": "13.0.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.0.1",
88
"@azure/ms-rest-js": "^2.0.4",

sdk/containerservice/arm-containerservice/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -17,10 +16,9 @@ import { ContainerServiceClientContext } from "./containerServiceClientContext";
1716

1817
class ContainerServiceClient extends ContainerServiceClientContext {
1918
// Operation groups
20-
openShiftManagedClusters: operations.OpenShiftManagedClusters;
21-
containerServices: operations.ContainerServices;
2219
operations: operations.Operations;
2320
managedClusters: operations.ManagedClusters;
21+
maintenanceConfigurations: operations.MaintenanceConfigurations;
2422
agentPools: operations.AgentPools;
2523
privateEndpointConnections: operations.PrivateEndpointConnections;
2624
privateLinkResources: operations.PrivateLinkResources;
@@ -35,10 +33,9 @@ class ContainerServiceClient extends ContainerServiceClientContext {
3533
*/
3634
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ContainerServiceClientOptions) {
3735
super(credentials, subscriptionId, options);
38-
this.openShiftManagedClusters = new operations.OpenShiftManagedClusters(this);
39-
this.containerServices = new operations.ContainerServices(this);
4036
this.operations = new operations.Operations(this);
4137
this.managedClusters = new operations.ManagedClusters(this);
38+
this.maintenanceConfigurations = new operations.MaintenanceConfigurations(this);
4239
this.agentPools = new operations.AgentPools(this);
4340
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
4441
this.privateLinkResources = new operations.PrivateLinkResources(this);

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -13,11 +12,12 @@ import * as msRest from "@azure/ms-rest-js";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
1413

1514
const packageName = "@azure/arm-containerservice";
16-
const packageVersion = "12.0.0";
15+
const packageVersion = "13.0.0";
1716

1817
export class ContainerServiceClientContext extends msRestAzure.AzureServiceClient {
1918
credentials: msRest.ServiceClientCredentials;
2019
subscriptionId: string;
20+
apiVersion?: string;
2121

2222
/**
2323
* Initializes a new instance of the ContainerServiceClient class.
@@ -44,6 +44,7 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien
4444

4545
super(credentials, options);
4646

47+
this.apiVersion = '2020-12-01';
4748
this.acceptLanguage = 'en-US';
4849
this.longRunningOperationRetryTimeout = 30;
4950
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
10-
discriminators,
1110
AgentPool,
1211
AgentPoolAvailableVersions,
1312
AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem,
@@ -17,20 +16,13 @@ export {
1716
AgentPoolUpgradeSettings,
1817
BaseResource,
1918
CloudError,
20-
ContainerService,
21-
ContainerServiceAgentPoolProfile,
22-
ContainerServiceCustomProfile,
23-
ContainerServiceDiagnosticsProfile,
2419
ContainerServiceLinuxProfile,
25-
ContainerServiceMasterProfile,
2620
ContainerServiceNetworkProfile,
27-
ContainerServiceOrchestratorProfile,
28-
ContainerServiceServicePrincipalProfile,
2921
ContainerServiceSshConfiguration,
3022
ContainerServiceSshPublicKey,
31-
ContainerServiceVMDiagnostics,
32-
ContainerServiceWindowsProfile,
33-
KeyVaultSecretRef,
23+
KubeletConfig,
24+
LinuxOSConfig,
25+
MaintenanceConfiguration,
3426
ManagedCluster,
3527
ManagedClusterAADProfile,
3628
ManagedClusterAccessProfile,
@@ -39,33 +31,32 @@ export {
3931
ManagedClusterAgentPoolProfile,
4032
ManagedClusterAgentPoolProfileProperties,
4133
ManagedClusterAPIServerAccessProfile,
34+
ManagedClusterAutoUpgradeProfile,
4235
ManagedClusterIdentity,
4336
ManagedClusterIdentityUserAssignedIdentitiesValue,
4437
ManagedClusterLoadBalancerProfile,
4538
ManagedClusterLoadBalancerProfileManagedOutboundIPs,
4639
ManagedClusterLoadBalancerProfileOutboundIPPrefixes,
4740
ManagedClusterLoadBalancerProfileOutboundIPs,
41+
ManagedClusterPodIdentity,
42+
ManagedClusterPodIdentityException,
43+
ManagedClusterPodIdentityProfile,
44+
ManagedClusterPodIdentityProvisioningInfo,
4845
ManagedClusterPropertiesAutoScalerProfile,
4946
ManagedClusterPropertiesIdentityProfileValue,
5047
ManagedClusterServicePrincipalProfile,
5148
ManagedClusterSKU,
5249
ManagedClusterWindowsProfile,
53-
NetworkProfile,
54-
OpenShiftManagedCluster,
55-
OpenShiftManagedClusterAADIdentityProvider,
56-
OpenShiftManagedClusterAgentPoolProfile,
57-
OpenShiftManagedClusterAuthProfile,
58-
OpenShiftManagedClusterBaseIdentityProvider,
59-
OpenShiftManagedClusterIdentityProvider,
60-
OpenShiftManagedClusterMasterPoolProfile,
61-
OpenShiftRouterProfile,
6250
PowerState,
6351
PrivateEndpoint,
6452
PrivateEndpointConnection,
6553
PrivateLinkServiceConnectionState,
66-
PurchasePlan,
6754
Resource,
6855
ResourceReference,
6956
SubResource,
57+
SysctlConfig,
58+
SystemData,
59+
TimeInWeek,
60+
TimeSpan,
7061
UserAssignedIdentity
7162
} from "../models/mappers";

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

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)