@azure/arm-containerservice 17.1.0 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +1 -1
- package/dist/index.js +150 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/agentPoolsCreateOrUpdateSample.js +17 -17
- package/dist-esm/samples-dev/agentPoolsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsGetSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsGetUpgradeProfileSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsListSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsUpgradeNodeImageVersionSample.js +1 -1
- package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/maintenanceConfigurationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/maintenanceConfigurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/maintenanceConfigurationsListByManagedClusterSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersCreateOrUpdateSample.js +23 -23
- package/dist-esm/samples-dev/managedClustersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersGetAccessProfileSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersGetCommandResultSample.js +2 -2
- package/dist-esm/samples-dev/managedClustersGetOSOptionsSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersGetSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersGetUpgradeProfileSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersListClusterAdminCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersListClusterUserCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersListSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersResetAadProfileSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersResetServicePrincipalProfileSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersRotateClusterCertificatesSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.js +31 -0
- package/dist-esm/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/managedClustersRunCommandSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersStartSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersStopSample.js +1 -1
- package/dist-esm/samples-dev/managedClustersUpdateTagsSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
- package/dist-esm/samples-dev/resolvePrivateLinkServiceIdPostSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsGetSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsListSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsUpdateTagsSample.js +1 -1
- package/dist-esm/src/containerServiceClient.js +2 -2
- package/dist-esm/src/models/index.d.ts +32 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +62 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/managedClusters.d.ts +15 -1
- package/dist-esm/src/operations/managedClusters.d.ts.map +1 -1
- package/dist-esm/src/operations/managedClusters.js +82 -0
- package/dist-esm/src/operations/managedClusters.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/managedClusters.d.ts +15 -1
- package/dist-esm/src/operationsInterfaces/managedClusters.d.ts.map +1 -1
- package/package.json +5 -4
- package/review/arm-containerservice.api.md +30 -0
- package/src/containerServiceClient.ts +2 -2
- package/src/models/index.ts +38 -0
- package/src/models/mappers.ts +66 -0
- package/src/models/parameters.ts +1 -1
- package/src/operations/managedClusters.ts +127 -0
- package/src/operationsInterfaces/managedClusters.ts +31 -0
- package/types/arm-containerservice.d.ts +51 -0
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 17.2.0 (2022-11-02)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Added operation ManagedClusters.beginRotateServiceAccountSigningKeys
|
|
8
|
+
- Added operation ManagedClusters.beginRotateServiceAccountSigningKeysAndWait
|
|
9
|
+
- Added Interface ManagedClusterOidcIssuerProfile
|
|
10
|
+
- Added Interface ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
11
|
+
- Added Interface ManagedClustersRotateServiceAccountSigningKeysOptionalParams
|
|
12
|
+
- Added Interface ManagedClusterStorageProfileBlobCSIDriver
|
|
13
|
+
- Added Type Alias ManagedClustersRotateServiceAccountSigningKeysResponse
|
|
14
|
+
- Interface ManagedCluster has a new optional parameter oidcIssuerProfile
|
|
15
|
+
- Interface ManagedClusterStorageProfile has a new optional parameter blobCSIDriver
|
|
16
|
+
|
|
17
|
+
|
|
3
18
|
## 17.1.0 (2022-08-25)
|
|
4
19
|
|
|
5
20
|
**Features**
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ The Container Service Client.
|
|
|
13
13
|
|
|
14
14
|
### Currently supported environments
|
|
15
15
|
|
|
16
|
-
- [LTS versions of Node.js](https://
|
|
16
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
17
17
|
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
18
18
|
|
|
19
19
|
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
package/dist/index.js
CHANGED
|
@@ -2040,6 +2040,27 @@ const ManagedClusterPodIdentityException = {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
+
const ManagedClusterOidcIssuerProfile = {
|
|
2044
|
+
type: {
|
|
2045
|
+
name: "Composite",
|
|
2046
|
+
className: "ManagedClusterOidcIssuerProfile",
|
|
2047
|
+
modelProperties: {
|
|
2048
|
+
issuerURL: {
|
|
2049
|
+
serializedName: "issuerURL",
|
|
2050
|
+
readOnly: true,
|
|
2051
|
+
type: {
|
|
2052
|
+
name: "String"
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
2055
|
+
enabled: {
|
|
2056
|
+
serializedName: "enabled",
|
|
2057
|
+
type: {
|
|
2058
|
+
name: "Boolean"
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
};
|
|
2043
2064
|
const ContainerServiceNetworkProfile = {
|
|
2044
2065
|
type: {
|
|
2045
2066
|
name: "Composite",
|
|
@@ -2801,6 +2822,13 @@ const ManagedClusterStorageProfile = {
|
|
|
2801
2822
|
name: "Composite",
|
|
2802
2823
|
className: "ManagedClusterStorageProfileSnapshotController"
|
|
2803
2824
|
}
|
|
2825
|
+
},
|
|
2826
|
+
blobCSIDriver: {
|
|
2827
|
+
serializedName: "blobCSIDriver",
|
|
2828
|
+
type: {
|
|
2829
|
+
name: "Composite",
|
|
2830
|
+
className: "ManagedClusterStorageProfileBlobCSIDriver"
|
|
2831
|
+
}
|
|
2804
2832
|
}
|
|
2805
2833
|
}
|
|
2806
2834
|
}
|
|
@@ -2847,6 +2875,20 @@ const ManagedClusterStorageProfileSnapshotController = {
|
|
|
2847
2875
|
}
|
|
2848
2876
|
}
|
|
2849
2877
|
};
|
|
2878
|
+
const ManagedClusterStorageProfileBlobCSIDriver = {
|
|
2879
|
+
type: {
|
|
2880
|
+
name: "Composite",
|
|
2881
|
+
className: "ManagedClusterStorageProfileBlobCSIDriver",
|
|
2882
|
+
modelProperties: {
|
|
2883
|
+
enabled: {
|
|
2884
|
+
serializedName: "enabled",
|
|
2885
|
+
type: {
|
|
2886
|
+
name: "Boolean"
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
};
|
|
2850
2892
|
const Resource = {
|
|
2851
2893
|
type: {
|
|
2852
2894
|
name: "Composite",
|
|
@@ -4265,6 +4307,12 @@ const ManagedCluster = {
|
|
|
4265
4307
|
name: "Composite",
|
|
4266
4308
|
className: "ManagedClusterPodIdentityProfile"
|
|
4267
4309
|
}
|
|
4310
|
+
}, oidcIssuerProfile: {
|
|
4311
|
+
serializedName: "properties.oidcIssuerProfile",
|
|
4312
|
+
type: {
|
|
4313
|
+
name: "Composite",
|
|
4314
|
+
className: "ManagedClusterOidcIssuerProfile"
|
|
4315
|
+
}
|
|
4268
4316
|
}, nodeResourceGroup: {
|
|
4269
4317
|
serializedName: "properties.nodeResourceGroup",
|
|
4270
4318
|
type: {
|
|
@@ -4433,6 +4481,20 @@ const Snapshot = {
|
|
|
4433
4481
|
} })
|
|
4434
4482
|
}
|
|
4435
4483
|
};
|
|
4484
|
+
const ManagedClustersRotateServiceAccountSigningKeysHeaders = {
|
|
4485
|
+
type: {
|
|
4486
|
+
name: "Composite",
|
|
4487
|
+
className: "ManagedClustersRotateServiceAccountSigningKeysHeaders",
|
|
4488
|
+
modelProperties: {
|
|
4489
|
+
location: {
|
|
4490
|
+
serializedName: "location",
|
|
4491
|
+
type: {
|
|
4492
|
+
name: "String"
|
|
4493
|
+
}
|
|
4494
|
+
}
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
};
|
|
4436
4498
|
const AgentPoolsUpgradeNodeImageVersionHeaders = {
|
|
4437
4499
|
type: {
|
|
4438
4500
|
name: "Composite",
|
|
@@ -4482,6 +4544,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4482
4544
|
ManagedClusterPodIdentityProvisioningError: ManagedClusterPodIdentityProvisioningError,
|
|
4483
4545
|
ManagedClusterPodIdentityProvisioningErrorBody: ManagedClusterPodIdentityProvisioningErrorBody,
|
|
4484
4546
|
ManagedClusterPodIdentityException: ManagedClusterPodIdentityException,
|
|
4547
|
+
ManagedClusterOidcIssuerProfile: ManagedClusterOidcIssuerProfile,
|
|
4485
4548
|
ContainerServiceNetworkProfile: ContainerServiceNetworkProfile,
|
|
4486
4549
|
ManagedClusterLoadBalancerProfile: ManagedClusterLoadBalancerProfile,
|
|
4487
4550
|
ManagedClusterLoadBalancerProfileManagedOutboundIPs: ManagedClusterLoadBalancerProfileManagedOutboundIPs,
|
|
@@ -4504,6 +4567,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4504
4567
|
ManagedClusterStorageProfileDiskCSIDriver: ManagedClusterStorageProfileDiskCSIDriver,
|
|
4505
4568
|
ManagedClusterStorageProfileFileCSIDriver: ManagedClusterStorageProfileFileCSIDriver,
|
|
4506
4569
|
ManagedClusterStorageProfileSnapshotController: ManagedClusterStorageProfileSnapshotController,
|
|
4570
|
+
ManagedClusterStorageProfileBlobCSIDriver: ManagedClusterStorageProfileBlobCSIDriver,
|
|
4507
4571
|
Resource: Resource,
|
|
4508
4572
|
SystemData: SystemData,
|
|
4509
4573
|
ManagedClusterUpgradeProfile: ManagedClusterUpgradeProfile,
|
|
@@ -4544,6 +4608,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4544
4608
|
ManagedCluster: ManagedCluster,
|
|
4545
4609
|
ManagedClusterAccessProfile: ManagedClusterAccessProfile,
|
|
4546
4610
|
Snapshot: Snapshot,
|
|
4611
|
+
ManagedClustersRotateServiceAccountSigningKeysHeaders: ManagedClustersRotateServiceAccountSigningKeysHeaders,
|
|
4547
4612
|
AgentPoolsUpgradeNodeImageVersionHeaders: AgentPoolsUpgradeNodeImageVersionHeaders
|
|
4548
4613
|
});
|
|
4549
4614
|
|
|
@@ -4579,7 +4644,7 @@ const $host = {
|
|
|
4579
4644
|
const apiVersion = {
|
|
4580
4645
|
parameterPath: "apiVersion",
|
|
4581
4646
|
mapper: {
|
|
4582
|
-
defaultValue: "2022-
|
|
4647
|
+
defaultValue: "2022-09-01",
|
|
4583
4648
|
isConstant: true,
|
|
4584
4649
|
serializedName: "api-version",
|
|
4585
4650
|
type: {
|
|
@@ -5459,6 +5524,58 @@ class ManagedClustersImpl {
|
|
|
5459
5524
|
return poller.pollUntilDone();
|
|
5460
5525
|
});
|
|
5461
5526
|
}
|
|
5527
|
+
/**
|
|
5528
|
+
* Rotates the service account signing keys of a managed cluster.
|
|
5529
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5530
|
+
* @param resourceName The name of the managed cluster resource.
|
|
5531
|
+
* @param options The options parameters.
|
|
5532
|
+
*/
|
|
5533
|
+
beginRotateServiceAccountSigningKeys(resourceGroupName, resourceName, options) {
|
|
5534
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5535
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5536
|
+
return this.client.sendOperationRequest(args, spec);
|
|
5537
|
+
});
|
|
5538
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5539
|
+
var _a;
|
|
5540
|
+
let currentRawResponse = undefined;
|
|
5541
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5542
|
+
const callback = (rawResponse, flatResponse) => {
|
|
5543
|
+
currentRawResponse = rawResponse;
|
|
5544
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5545
|
+
};
|
|
5546
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5547
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
5548
|
+
return {
|
|
5549
|
+
flatResponse,
|
|
5550
|
+
rawResponse: {
|
|
5551
|
+
statusCode: currentRawResponse.status,
|
|
5552
|
+
body: currentRawResponse.parsedBody,
|
|
5553
|
+
headers: currentRawResponse.headers.toJSON()
|
|
5554
|
+
}
|
|
5555
|
+
};
|
|
5556
|
+
});
|
|
5557
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, rotateServiceAccountSigningKeysOperationSpec);
|
|
5558
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5559
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5560
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5561
|
+
lroResourceLocationConfig: "location"
|
|
5562
|
+
});
|
|
5563
|
+
yield poller.poll();
|
|
5564
|
+
return poller;
|
|
5565
|
+
});
|
|
5566
|
+
}
|
|
5567
|
+
/**
|
|
5568
|
+
* Rotates the service account signing keys of a managed cluster.
|
|
5569
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5570
|
+
* @param resourceName The name of the managed cluster resource.
|
|
5571
|
+
* @param options The options parameters.
|
|
5572
|
+
*/
|
|
5573
|
+
beginRotateServiceAccountSigningKeysAndWait(resourceGroupName, resourceName, options) {
|
|
5574
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5575
|
+
const poller = yield this.beginRotateServiceAccountSigningKeys(resourceGroupName, resourceName, options);
|
|
5576
|
+
return poller.pollUntilDone();
|
|
5577
|
+
});
|
|
5578
|
+
}
|
|
5462
5579
|
/**
|
|
5463
5580
|
* This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster
|
|
5464
5581
|
* stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A
|
|
@@ -6022,6 +6139,36 @@ const rotateClusterCertificatesOperationSpec = {
|
|
|
6022
6139
|
headerParameters: [accept],
|
|
6023
6140
|
serializer: serializer$6
|
|
6024
6141
|
};
|
|
6142
|
+
const rotateServiceAccountSigningKeysOperationSpec = {
|
|
6143
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys",
|
|
6144
|
+
httpMethod: "POST",
|
|
6145
|
+
responses: {
|
|
6146
|
+
200: {
|
|
6147
|
+
headersMapper: ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
6148
|
+
},
|
|
6149
|
+
201: {
|
|
6150
|
+
headersMapper: ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
6151
|
+
},
|
|
6152
|
+
202: {
|
|
6153
|
+
headersMapper: ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
6154
|
+
},
|
|
6155
|
+
204: {
|
|
6156
|
+
headersMapper: ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
6157
|
+
},
|
|
6158
|
+
default: {
|
|
6159
|
+
bodyMapper: CloudError
|
|
6160
|
+
}
|
|
6161
|
+
},
|
|
6162
|
+
queryParameters: [apiVersion],
|
|
6163
|
+
urlParameters: [
|
|
6164
|
+
$host,
|
|
6165
|
+
subscriptionId,
|
|
6166
|
+
resourceGroupName,
|
|
6167
|
+
resourceName
|
|
6168
|
+
],
|
|
6169
|
+
headerParameters: [accept],
|
|
6170
|
+
serializer: serializer$6
|
|
6171
|
+
};
|
|
6025
6172
|
const stopOperationSpec = {
|
|
6026
6173
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop",
|
|
6027
6174
|
httpMethod: "POST",
|
|
@@ -7607,7 +7754,7 @@ class ContainerServiceClient extends coreClient__namespace.ServiceClient {
|
|
|
7607
7754
|
requestContentType: "application/json; charset=utf-8",
|
|
7608
7755
|
credential: credentials
|
|
7609
7756
|
};
|
|
7610
|
-
const packageDetails = `azsdk-js-arm-containerservice/17.
|
|
7757
|
+
const packageDetails = `azsdk-js-arm-containerservice/17.2.0`;
|
|
7611
7758
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
7612
7759
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
7613
7760
|
: `${packageDetails}`;
|
|
@@ -7643,7 +7790,7 @@ class ContainerServiceClient extends coreClient__namespace.ServiceClient {
|
|
|
7643
7790
|
this.subscriptionId = subscriptionId;
|
|
7644
7791
|
// Assigning values to Constant parameters
|
|
7645
7792
|
this.$host = options.$host || "https://management.azure.com";
|
|
7646
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
7793
|
+
this.apiVersion = options.apiVersion || "2022-09-01";
|
|
7647
7794
|
this.operations = new OperationsImpl(this);
|
|
7648
7795
|
this.managedClusters = new ManagedClustersImpl(this);
|
|
7649
7796
|
this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);
|