@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
|
@@ -50,6 +50,8 @@ import {
|
|
|
50
50
|
ManagedClusterAADProfile,
|
|
51
51
|
ManagedClustersResetAADProfileOptionalParams,
|
|
52
52
|
ManagedClustersRotateClusterCertificatesOptionalParams,
|
|
53
|
+
ManagedClustersRotateServiceAccountSigningKeysOptionalParams,
|
|
54
|
+
ManagedClustersRotateServiceAccountSigningKeysResponse,
|
|
53
55
|
ManagedClustersStopOptionalParams,
|
|
54
56
|
ManagedClustersStartOptionalParams,
|
|
55
57
|
RunCommandRequest,
|
|
@@ -915,6 +917,96 @@ export class ManagedClustersImpl implements ManagedClusters {
|
|
|
915
917
|
return poller.pollUntilDone();
|
|
916
918
|
}
|
|
917
919
|
|
|
920
|
+
/**
|
|
921
|
+
* Rotates the service account signing keys of a managed cluster.
|
|
922
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
923
|
+
* @param resourceName The name of the managed cluster resource.
|
|
924
|
+
* @param options The options parameters.
|
|
925
|
+
*/
|
|
926
|
+
async beginRotateServiceAccountSigningKeys(
|
|
927
|
+
resourceGroupName: string,
|
|
928
|
+
resourceName: string,
|
|
929
|
+
options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams
|
|
930
|
+
): Promise<
|
|
931
|
+
PollerLike<
|
|
932
|
+
PollOperationState<
|
|
933
|
+
ManagedClustersRotateServiceAccountSigningKeysResponse
|
|
934
|
+
>,
|
|
935
|
+
ManagedClustersRotateServiceAccountSigningKeysResponse
|
|
936
|
+
>
|
|
937
|
+
> {
|
|
938
|
+
const directSendOperation = async (
|
|
939
|
+
args: coreClient.OperationArguments,
|
|
940
|
+
spec: coreClient.OperationSpec
|
|
941
|
+
): Promise<ManagedClustersRotateServiceAccountSigningKeysResponse> => {
|
|
942
|
+
return this.client.sendOperationRequest(args, spec);
|
|
943
|
+
};
|
|
944
|
+
const sendOperation = async (
|
|
945
|
+
args: coreClient.OperationArguments,
|
|
946
|
+
spec: coreClient.OperationSpec
|
|
947
|
+
) => {
|
|
948
|
+
let currentRawResponse:
|
|
949
|
+
| coreClient.FullOperationResponse
|
|
950
|
+
| undefined = undefined;
|
|
951
|
+
const providedCallback = args.options?.onResponse;
|
|
952
|
+
const callback: coreClient.RawResponseCallback = (
|
|
953
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
954
|
+
flatResponse: unknown
|
|
955
|
+
) => {
|
|
956
|
+
currentRawResponse = rawResponse;
|
|
957
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
958
|
+
};
|
|
959
|
+
const updatedArgs = {
|
|
960
|
+
...args,
|
|
961
|
+
options: {
|
|
962
|
+
...args.options,
|
|
963
|
+
onResponse: callback
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
967
|
+
return {
|
|
968
|
+
flatResponse,
|
|
969
|
+
rawResponse: {
|
|
970
|
+
statusCode: currentRawResponse!.status,
|
|
971
|
+
body: currentRawResponse!.parsedBody,
|
|
972
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
const lro = new LroImpl(
|
|
978
|
+
sendOperation,
|
|
979
|
+
{ resourceGroupName, resourceName, options },
|
|
980
|
+
rotateServiceAccountSigningKeysOperationSpec
|
|
981
|
+
);
|
|
982
|
+
const poller = new LroEngine(lro, {
|
|
983
|
+
resumeFrom: options?.resumeFrom,
|
|
984
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
985
|
+
lroResourceLocationConfig: "location"
|
|
986
|
+
});
|
|
987
|
+
await poller.poll();
|
|
988
|
+
return poller;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Rotates the service account signing keys of a managed cluster.
|
|
993
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
994
|
+
* @param resourceName The name of the managed cluster resource.
|
|
995
|
+
* @param options The options parameters.
|
|
996
|
+
*/
|
|
997
|
+
async beginRotateServiceAccountSigningKeysAndWait(
|
|
998
|
+
resourceGroupName: string,
|
|
999
|
+
resourceName: string,
|
|
1000
|
+
options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams
|
|
1001
|
+
): Promise<ManagedClustersRotateServiceAccountSigningKeysResponse> {
|
|
1002
|
+
const poller = await this.beginRotateServiceAccountSigningKeys(
|
|
1003
|
+
resourceGroupName,
|
|
1004
|
+
resourceName,
|
|
1005
|
+
options
|
|
1006
|
+
);
|
|
1007
|
+
return poller.pollUntilDone();
|
|
1008
|
+
}
|
|
1009
|
+
|
|
918
1010
|
/**
|
|
919
1011
|
* This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster
|
|
920
1012
|
* stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A
|
|
@@ -1637,6 +1729,41 @@ const rotateClusterCertificatesOperationSpec: coreClient.OperationSpec = {
|
|
|
1637
1729
|
headerParameters: [Parameters.accept],
|
|
1638
1730
|
serializer
|
|
1639
1731
|
};
|
|
1732
|
+
const rotateServiceAccountSigningKeysOperationSpec: coreClient.OperationSpec = {
|
|
1733
|
+
path:
|
|
1734
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys",
|
|
1735
|
+
httpMethod: "POST",
|
|
1736
|
+
responses: {
|
|
1737
|
+
200: {
|
|
1738
|
+
headersMapper:
|
|
1739
|
+
Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
1740
|
+
},
|
|
1741
|
+
201: {
|
|
1742
|
+
headersMapper:
|
|
1743
|
+
Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
1744
|
+
},
|
|
1745
|
+
202: {
|
|
1746
|
+
headersMapper:
|
|
1747
|
+
Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
1748
|
+
},
|
|
1749
|
+
204: {
|
|
1750
|
+
headersMapper:
|
|
1751
|
+
Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders
|
|
1752
|
+
},
|
|
1753
|
+
default: {
|
|
1754
|
+
bodyMapper: Mappers.CloudError
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
queryParameters: [Parameters.apiVersion],
|
|
1758
|
+
urlParameters: [
|
|
1759
|
+
Parameters.$host,
|
|
1760
|
+
Parameters.subscriptionId,
|
|
1761
|
+
Parameters.resourceGroupName,
|
|
1762
|
+
Parameters.resourceName
|
|
1763
|
+
],
|
|
1764
|
+
headerParameters: [Parameters.accept],
|
|
1765
|
+
serializer
|
|
1766
|
+
};
|
|
1640
1767
|
const stopOperationSpec: coreClient.OperationSpec = {
|
|
1641
1768
|
path:
|
|
1642
1769
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop",
|
|
@@ -39,6 +39,8 @@ import {
|
|
|
39
39
|
ManagedClusterAADProfile,
|
|
40
40
|
ManagedClustersResetAADProfileOptionalParams,
|
|
41
41
|
ManagedClustersRotateClusterCertificatesOptionalParams,
|
|
42
|
+
ManagedClustersRotateServiceAccountSigningKeysOptionalParams,
|
|
43
|
+
ManagedClustersRotateServiceAccountSigningKeysResponse,
|
|
42
44
|
ManagedClustersStopOptionalParams,
|
|
43
45
|
ManagedClustersStartOptionalParams,
|
|
44
46
|
RunCommandRequest,
|
|
@@ -320,6 +322,35 @@ export interface ManagedClusters {
|
|
|
320
322
|
resourceName: string,
|
|
321
323
|
options?: ManagedClustersRotateClusterCertificatesOptionalParams
|
|
322
324
|
): Promise<void>;
|
|
325
|
+
/**
|
|
326
|
+
* Rotates the service account signing keys of a managed cluster.
|
|
327
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
328
|
+
* @param resourceName The name of the managed cluster resource.
|
|
329
|
+
* @param options The options parameters.
|
|
330
|
+
*/
|
|
331
|
+
beginRotateServiceAccountSigningKeys(
|
|
332
|
+
resourceGroupName: string,
|
|
333
|
+
resourceName: string,
|
|
334
|
+
options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams
|
|
335
|
+
): Promise<
|
|
336
|
+
PollerLike<
|
|
337
|
+
PollOperationState<
|
|
338
|
+
ManagedClustersRotateServiceAccountSigningKeysResponse
|
|
339
|
+
>,
|
|
340
|
+
ManagedClustersRotateServiceAccountSigningKeysResponse
|
|
341
|
+
>
|
|
342
|
+
>;
|
|
343
|
+
/**
|
|
344
|
+
* Rotates the service account signing keys of a managed cluster.
|
|
345
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
346
|
+
* @param resourceName The name of the managed cluster resource.
|
|
347
|
+
* @param options The options parameters.
|
|
348
|
+
*/
|
|
349
|
+
beginRotateServiceAccountSigningKeysAndWait(
|
|
350
|
+
resourceGroupName: string,
|
|
351
|
+
resourceName: string,
|
|
352
|
+
options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams
|
|
353
|
+
): Promise<ManagedClustersRotateServiceAccountSigningKeysResponse>;
|
|
323
354
|
/**
|
|
324
355
|
* This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster
|
|
325
356
|
* stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A
|
|
@@ -1760,6 +1760,8 @@ export declare interface ManagedCluster extends TrackedResource {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
/** See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on AAD pod identity integration. */
|
|
1762
1762
|
podIdentityProfile?: ManagedClusterPodIdentityProfile;
|
|
1763
|
+
/** The OIDC issuer profile of the Managed Cluster. */
|
|
1764
|
+
oidcIssuerProfile?: ManagedClusterOidcIssuerProfile;
|
|
1763
1765
|
/** The name of the resource group containing agent pool nodes. */
|
|
1764
1766
|
nodeResourceGroup?: string;
|
|
1765
1767
|
/** Whether to enable Kubernetes Role-Based Access Control. */
|
|
@@ -2061,6 +2063,17 @@ export declare interface ManagedClusterNATGatewayProfile {
|
|
|
2061
2063
|
idleTimeoutInMinutes?: number;
|
|
2062
2064
|
}
|
|
2063
2065
|
|
|
2066
|
+
/** The OIDC issuer profile of the Managed Cluster. */
|
|
2067
|
+
export declare interface ManagedClusterOidcIssuerProfile {
|
|
2068
|
+
/**
|
|
2069
|
+
* The OIDC issuer url of the Managed Cluster.
|
|
2070
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
2071
|
+
*/
|
|
2072
|
+
readonly issuerURL?: string;
|
|
2073
|
+
/** Whether the OIDC issuer is enabled. */
|
|
2074
|
+
enabled?: boolean;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2064
2077
|
/** Details about the pod identity assigned to the Managed Cluster. */
|
|
2065
2078
|
export declare interface ManagedClusterPodIdentity {
|
|
2066
2079
|
/** The name of the pod identity. */
|
|
@@ -2364,6 +2377,20 @@ export declare interface ManagedClusters {
|
|
|
2364
2377
|
* @param options The options parameters.
|
|
2365
2378
|
*/
|
|
2366
2379
|
beginRotateClusterCertificatesAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise<void>;
|
|
2380
|
+
/**
|
|
2381
|
+
* Rotates the service account signing keys of a managed cluster.
|
|
2382
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2383
|
+
* @param resourceName The name of the managed cluster resource.
|
|
2384
|
+
* @param options The options parameters.
|
|
2385
|
+
*/
|
|
2386
|
+
beginRotateServiceAccountSigningKeys(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams): Promise<PollerLike<PollOperationState<ManagedClustersRotateServiceAccountSigningKeysResponse>, ManagedClustersRotateServiceAccountSigningKeysResponse>>;
|
|
2387
|
+
/**
|
|
2388
|
+
* Rotates the service account signing keys of a managed cluster.
|
|
2389
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2390
|
+
* @param resourceName The name of the managed cluster resource.
|
|
2391
|
+
* @param options The options parameters.
|
|
2392
|
+
*/
|
|
2393
|
+
beginRotateServiceAccountSigningKeysAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams): Promise<ManagedClustersRotateServiceAccountSigningKeysResponse>;
|
|
2367
2394
|
/**
|
|
2368
2395
|
* This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster
|
|
2369
2396
|
* stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A
|
|
@@ -2640,6 +2667,22 @@ export declare interface ManagedClustersRotateClusterCertificatesOptionalParams
|
|
|
2640
2667
|
resumeFrom?: string;
|
|
2641
2668
|
}
|
|
2642
2669
|
|
|
2670
|
+
/** Defines headers for ManagedClusters_rotateServiceAccountSigningKeys operation. */
|
|
2671
|
+
export declare interface ManagedClustersRotateServiceAccountSigningKeysHeaders {
|
|
2672
|
+
location?: string;
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
/** Optional parameters. */
|
|
2676
|
+
export declare interface ManagedClustersRotateServiceAccountSigningKeysOptionalParams extends coreClient.OperationOptions {
|
|
2677
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
2678
|
+
updateIntervalInMs?: number;
|
|
2679
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
2680
|
+
resumeFrom?: string;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
/** Contains response data for the rotateServiceAccountSigningKeys operation. */
|
|
2684
|
+
export declare type ManagedClustersRotateServiceAccountSigningKeysResponse = ManagedClustersRotateServiceAccountSigningKeysHeaders;
|
|
2685
|
+
|
|
2643
2686
|
/** Optional parameters. */
|
|
2644
2687
|
export declare interface ManagedClustersRunCommandOptionalParams extends coreClient.OperationOptions {
|
|
2645
2688
|
/** Delay to wait until next poll, in milliseconds. */
|
|
@@ -2675,6 +2718,14 @@ export declare interface ManagedClusterStorageProfile {
|
|
|
2675
2718
|
fileCSIDriver?: ManagedClusterStorageProfileFileCSIDriver;
|
|
2676
2719
|
/** Snapshot Controller settings for the storage profile. */
|
|
2677
2720
|
snapshotController?: ManagedClusterStorageProfileSnapshotController;
|
|
2721
|
+
/** AzureBlob CSI Driver settings for the storage profile. */
|
|
2722
|
+
blobCSIDriver?: ManagedClusterStorageProfileBlobCSIDriver;
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
/** AzureBlob CSI Driver settings for the storage profile. */
|
|
2726
|
+
export declare interface ManagedClusterStorageProfileBlobCSIDriver {
|
|
2727
|
+
/** Whether to enable AzureBlob CSI Driver. The default value is false. */
|
|
2728
|
+
enabled?: boolean;
|
|
2678
2729
|
}
|
|
2679
2730
|
|
|
2680
2731
|
/** AzureDisk CSI Driver settings for the storage profile. */
|