From e56efa6bbd63e94cd888e152bf23f913a097b370 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 21 Jul 2022 09:04:21 +0000 Subject: [PATCH] CodeGen from PR 19871 in Azure/azure-rest-api-specs Merge b3839e423162ec98fca73e761b110b3eb4158c8f into 7c573b9c9e534d2b65fe97b6d91fd94bbaab629d --- .../arm-containerservice/CHANGELOG.md | 94 +-- .../arm-containerservice/README.md | 2 +- .../arm-containerservice/_meta.json | 8 +- .../arm-containerservice/package.json | 16 +- .../review/arm-containerservice.api.md | 290 +-------- .../src/containerServiceClient.ts | 20 +- .../arm-containerservice/src/models/index.ts | 425 +----------- .../src/models/mappers.ts | 603 +----------------- .../src/models/parameters.ts | 41 +- .../src/operations/agentPools.ts | 5 +- .../src/operations/index.ts | 3 - .../src/operations/managedClusterSnapshots.ts | 447 ------------- .../src/operations/managedClusters.ts | 111 +--- .../operations/trustedAccessRoleBindings.ts | 328 ---------- .../src/operations/trustedAccessRoles.ts | 158 ----- .../src/operationsInterfaces/index.ts | 3 - .../managedClusterSnapshots.ts | 91 --- .../operationsInterfaces/managedClusters.ts | 23 - .../trustedAccessRoleBindings.ts | 75 --- .../trustedAccessRoles.ts | 27 - .../arm-containerservice/test/sampleTest.ts | 43 ++ .../arm-containerservice/tsconfig.json | 10 +- 22 files changed, 102 insertions(+), 2721 deletions(-) delete mode 100644 sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts delete mode 100644 sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts delete mode 100644 sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts delete mode 100644 sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts delete mode 100644 sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts delete mode 100644 sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts create mode 100644 sdk/containerservice/arm-containerservice/test/sampleTest.ts diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index f68039b74e6f..ec779be1da2d 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,109 +1,19 @@ # Release History - -## 17.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 17.0.0-beta.1 (2022-06-08) + +## 17.0.0 (2022-07-21) **Features** - - Added operation group ManagedClusterSnapshots - - Added operation group TrustedAccessRoleBindings - - Added operation group TrustedAccessRoles - - Added operation ManagedClusters.beginRotateServiceAccountSigningKeys - - Added operation ManagedClusters.beginRotateServiceAccountSigningKeysAndWait - Added Interface AzureKeyVaultKms - - Added Interface ManagedClusterIngressProfile - - Added Interface ManagedClusterIngressProfileWebAppRouting - - Added Interface ManagedClusterOidcIssuerProfile - - Added Interface ManagedClusterPropertiesForSnapshot - Added Interface ManagedClusterSecurityProfileDefender - Added Interface ManagedClusterSecurityProfileDefenderSecurityMonitoring - - Added Interface ManagedClusterSecurityProfileWorkloadIdentity - - Added Interface ManagedClusterSnapshotListResult - - Added Interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams - - Added Interface ManagedClusterSnapshotsDeleteOptionalParams - - Added Interface ManagedClusterSnapshotsGetOptionalParams - - Added Interface ManagedClusterSnapshotsListByResourceGroupNextOptionalParams - - Added Interface ManagedClusterSnapshotsListByResourceGroupOptionalParams - - Added Interface ManagedClusterSnapshotsListNextOptionalParams - - Added Interface ManagedClusterSnapshotsListOptionalParams - - Added Interface ManagedClusterSnapshotsUpdateTagsOptionalParams - - Added Interface ManagedClustersRotateServiceAccountSigningKeysOptionalParams - - Added Interface ManagedClusterStorageProfileBlobCSIDriver - - Added Interface ManagedClusterWorkloadAutoScalerProfile - - Added Interface ManagedClusterWorkloadAutoScalerProfileKeda - - Added Interface NetworkProfileForSnapshot - - Added Interface TrustedAccessRole - - Added Interface TrustedAccessRoleBindingListResult - - Added Interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - - Added Interface TrustedAccessRoleBindingsDeleteOptionalParams - - Added Interface TrustedAccessRoleBindingsGetOptionalParams - - Added Interface TrustedAccessRoleBindingsListNextOptionalParams - - Added Interface TrustedAccessRoleBindingsListOptionalParams - - Added Interface TrustedAccessRoleListResult - - Added Interface TrustedAccessRoleRule - - Added Interface TrustedAccessRolesListNextOptionalParams - - Added Interface TrustedAccessRolesListOptionalParams - Added Type Alias KeyVaultNetworkAccessTypes - - Added Type Alias ManagedClusterSnapshot - - Added Type Alias ManagedClusterSnapshotsCreateOrUpdateResponse - - Added Type Alias ManagedClusterSnapshotsGetResponse - - Added Type Alias ManagedClusterSnapshotsListByResourceGroupNextResponse - - Added Type Alias ManagedClusterSnapshotsListByResourceGroupResponse - - Added Type Alias ManagedClusterSnapshotsListNextResponse - - Added Type Alias ManagedClusterSnapshotsListResponse - - Added Type Alias ManagedClusterSnapshotsUpdateTagsResponse - - Added Type Alias NetworkPluginMode - - Added Type Alias TrustedAccessRoleBinding - - Added Type Alias TrustedAccessRoleBindingProvisioningState - - Added Type Alias TrustedAccessRoleBindingsCreateOrUpdateResponse - - Added Type Alias TrustedAccessRoleBindingsGetResponse - - Added Type Alias TrustedAccessRoleBindingsListNextResponse - - Added Type Alias TrustedAccessRoleBindingsListResponse - - Added Type Alias TrustedAccessRolesListNextResponse - - Added Type Alias TrustedAccessRolesListResponse - - Interface AgentPoolsDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget - - Interface ContainerServiceNetworkProfile has a new optional parameter networkPluginMode - - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter capacityReservationGroupID - - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter enableCustomCATrust - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter hostGroupID - - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter messageOfTheDay - - Interface ManagedClusterAPIServerAccessProfile has a new optional parameter enableVnetIntegration - - Interface ManagedClusterAPIServerAccessProfile has a new optional parameter subnetId - - Interface ManagedClusterHttpProxyConfig has a new optional parameter effectiveNoProxy - - Interface ManagedClustersDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget - Interface ManagedClusterSecurityProfile has a new optional parameter azureKeyVaultKms - Interface ManagedClusterSecurityProfile has a new optional parameter defender - - Interface ManagedClusterSecurityProfile has a new optional parameter workloadIdentity - - Interface ManagedClusterStorageProfile has a new optional parameter blobCSIDriver - - Interface ManagedClusterStorageProfileDiskCSIDriver has a new optional parameter version - - Class ContainerServiceClient has a new parameter managedClusterSnapshots - - Class ContainerServiceClient has a new parameter trustedAccessRoleBindings - - Class ContainerServiceClient has a new parameter trustedAccessRoles - - Type Alias AgentPool has a new parameter messageOfTheDay - - Type Alias AgentPool has a new parameter enableCustomCATrust - - Type Alias AgentPool has a new parameter capacityReservationGroupID - Type Alias AgentPool has a new parameter hostGroupID - - Type Alias ManagedCluster has a new parameter creationData - - Type Alias ManagedCluster has a new parameter oidcIssuerProfile - - Type Alias ManagedCluster has a new parameter enableNamespaceResources - - Type Alias ManagedCluster has a new parameter ingressProfile - - Type Alias ManagedCluster has a new parameter workloadAutoScalerProfile - Added Enum KnownKeyVaultNetworkAccessTypes - - Added Enum KnownNetworkPluginMode - - Added Enum KnownTrustedAccessRoleBindingProvisioningState - Enum KnownNetworkPlugin has a new value None - - Enum KnownOssku has a new value Windows2019 - - Enum KnownOssku has a new value Windows2022 - - Enum KnownSnapshotType has a new value ManagedCluster **Breaking Changes** diff --git a/sdk/containerservice/arm-containerservice/README.md b/sdk/containerservice/arm-containerservice/README.md index 634b51c21adf..e82804d19418 100644 --- a/sdk/containerservice/arm-containerservice/README.md +++ b/sdk/containerservice/arm-containerservice/README.md @@ -6,7 +6,7 @@ The Container Service Client. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerservice) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/containerservice/arm-containerservice/_meta.json b/sdk/containerservice/arm-containerservice/_meta.json index d7b5afd5d55d..7472042ebc9c 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "f1cf4b44dc3abfcf9d9a514e2e6faa3ae8d11b4c", + "commit": "58cf39508b83ea5fbaba4d1e75cb5a238a355a38", "readme": "specification/containerservice/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.20 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220425.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", - "use": "@autorest/typescript@6.0.0-beta.20" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.0", + "use": "@autorest/typescript@6.0.0-alpha.19.20220425.1" } \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index 7073ae8d7c05..11221ca9ea02 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerServiceClient.", - "version": "17.0.0-beta.2", + "version": "17.0.0", "engines": { "node": ">=12.0.0" }, @@ -43,8 +43,6 @@ "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", "cross-env": "^7.0.2", "@azure/dev-tool": "^1.0.0" }, @@ -110,13 +108,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md index 1666f43afce5..2f14c53504b7 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -18,7 +18,6 @@ export type AgentPool = SubResource & { osDiskType?: OSDiskType; kubeletDiskType?: KubeletDiskType; workloadRuntime?: WorkloadRuntime; - messageOfTheDay?: string; vnetSubnetID?: string; podSubnetID?: string; maxPods?: number; @@ -38,7 +37,6 @@ export type AgentPool = SubResource & { powerState?: PowerState; availabilityZones?: string[]; enableNodePublicIP?: boolean; - enableCustomCATrust?: boolean; nodePublicIPPrefixID?: string; scaleSetPriority?: ScaleSetPriority; scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; @@ -58,7 +56,6 @@ export type AgentPool = SubResource & { enableFips?: boolean; gpuInstanceProfile?: GPUInstanceProfile; creationData?: CreationData; - capacityReservationGroupID?: string; hostGroupID?: string; }; @@ -111,7 +108,6 @@ export type AgentPoolsCreateOrUpdateResponse = AgentPool; // @public export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOptions { - ignorePodDisruptionBudget?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -228,8 +224,6 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // (undocumented) managedClusters: ManagedClusters; // (undocumented) - managedClusterSnapshots: ManagedClusterSnapshots; - // (undocumented) operations: Operations; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -241,10 +235,6 @@ export class ContainerServiceClient extends coreClient.ServiceClient { snapshots: Snapshots; // (undocumented) subscriptionId: string; - // (undocumented) - trustedAccessRoleBindings: TrustedAccessRoleBindings; - // (undocumented) - trustedAccessRoles: TrustedAccessRoles; } // @public @@ -287,7 +277,6 @@ export interface ContainerServiceNetworkProfile { natGatewayProfile?: ManagedClusterNATGatewayProfile; networkMode?: NetworkMode; networkPlugin?: NetworkPlugin; - networkPluginMode?: NetworkPluginMode; networkPolicy?: NetworkPolicy; outboundType?: OutboundType; podCidr?: string; @@ -885,11 +874,6 @@ export enum KnownNetworkPlugin { None = "none" } -// @public -export enum KnownNetworkPluginMode { - Overlay = "Overlay" -} - // @public export enum KnownNetworkPolicy { Azure = "azure", @@ -907,11 +891,7 @@ export enum KnownOssku { // (undocumented) CBLMariner = "CBLMariner", // (undocumented) - Ubuntu = "Ubuntu", - // (undocumented) - Windows2019 = "Windows2019", - // (undocumented) - Windows2022 = "Windows2022" + Ubuntu = "Ubuntu" } // @public @@ -968,22 +948,9 @@ export enum KnownScaleSetPriority { // @public export enum KnownSnapshotType { - ManagedCluster = "ManagedCluster", NodePool = "NodePool" } -// @public -export enum KnownTrustedAccessRoleBindingProvisioningState { - // (undocumented) - Deleting = "Deleting", - // (undocumented) - Failed = "Failed", - // (undocumented) - Succeeded = "Succeeded", - // (undocumented) - Updating = "Updating" -} - // @public export enum KnownUpgradeChannel { NodeImage = "node-image", @@ -1109,7 +1076,6 @@ export type ManagedCluster = TrackedResource & { identity?: ManagedClusterIdentity; readonly provisioningState?: string; readonly powerState?: PowerState; - creationData?: CreationData; readonly maxAgentPools?: number; kubernetesVersion?: string; readonly currentKubernetesVersion?: string; @@ -1126,11 +1092,9 @@ export type ManagedCluster = TrackedResource & { [propertyName: string]: ManagedClusterAddonProfile; }; podIdentityProfile?: ManagedClusterPodIdentityProfile; - oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; nodeResourceGroup?: string; enableRbac?: boolean; enablePodSecurityPolicy?: boolean; - enableNamespaceResources?: boolean; networkProfile?: ContainerServiceNetworkProfile; aadProfile?: ManagedClusterAADProfile; autoUpgradeProfile?: ManagedClusterAutoUpgradeProfile; @@ -1145,9 +1109,7 @@ export type ManagedCluster = TrackedResource & { httpProxyConfig?: ManagedClusterHttpProxyConfig; securityProfile?: ManagedClusterSecurityProfile; storageProfile?: ManagedClusterStorageProfile; - ingressProfile?: ManagedClusterIngressProfile; publicNetworkAccess?: PublicNetworkAccess; - workloadAutoScalerProfile?: ManagedClusterWorkloadAutoScalerProfile; }; // @public @@ -1176,7 +1138,7 @@ export interface ManagedClusterAddonProfile { } // @public -export type ManagedClusterAddonProfileIdentity = UserAssignedIdentity; +export type ManagedClusterAddonProfileIdentity = UserAssignedIdentity & {}; // @public export type ManagedClusterAgentPoolProfile = ManagedClusterAgentPoolProfileProperties & { @@ -1186,12 +1148,10 @@ export type ManagedClusterAgentPoolProfile = ManagedClusterAgentPoolProfilePrope // @public export interface ManagedClusterAgentPoolProfileProperties { availabilityZones?: string[]; - capacityReservationGroupID?: string; count?: number; creationData?: CreationData; readonly currentOrchestratorVersion?: string; enableAutoScaling?: boolean; - enableCustomCATrust?: boolean; enableEncryptionAtHost?: boolean; enableFips?: boolean; enableNodePublicIP?: boolean; @@ -1203,7 +1163,6 @@ export interface ManagedClusterAgentPoolProfileProperties { linuxOSConfig?: LinuxOSConfig; maxCount?: number; maxPods?: number; - messageOfTheDay?: string; minCount?: number; mode?: AgentPoolMode; readonly nodeImageVersion?: string; @@ -1241,9 +1200,7 @@ export interface ManagedClusterAPIServerAccessProfile { disableRunCommand?: boolean; enablePrivateCluster?: boolean; enablePrivateClusterPublicFqdn?: boolean; - enableVnetIntegration?: boolean; privateDNSZone?: string; - subnetId?: string; } // @public @@ -1253,7 +1210,6 @@ export interface ManagedClusterAutoUpgradeProfile { // @public export interface ManagedClusterHttpProxyConfig { - readonly effectiveNoProxy?: string[]; httpProxy?: string; httpsProxy?: string; noProxy?: string[]; @@ -1270,17 +1226,6 @@ export interface ManagedClusterIdentity { }; } -// @public -export interface ManagedClusterIngressProfile { - webAppRouting?: ManagedClusterIngressProfileWebAppRouting; -} - -// @public -export interface ManagedClusterIngressProfileWebAppRouting { - dnsZoneResourceId?: string; - enabled?: boolean; -} - // @public export interface ManagedClusterListResult { readonly nextLink?: string; @@ -1326,12 +1271,6 @@ export interface ManagedClusterNATGatewayProfile { managedOutboundIPProfile?: ManagedClusterManagedOutboundIPProfile; } -// @public -export interface ManagedClusterOidcIssuerProfile { - enabled?: boolean; - readonly issuerURL?: string; -} - // @public export interface ManagedClusterPodIdentity { bindingSelector?: string; @@ -1415,14 +1354,6 @@ export interface ManagedClusterPropertiesAutoScalerProfile { skipNodesWithSystemPods?: string; } -// @public -export interface ManagedClusterPropertiesForSnapshot { - enableRbac?: boolean; - kubernetesVersion?: string; - readonly networkProfile?: NetworkProfileForSnapshot; - sku?: ManagedClusterSKU; -} - // @public export interface ManagedClusters { beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: ManagedCluster, options?: ManagedClustersCreateOrUpdateOptionalParams): Promise, ManagedClustersCreateOrUpdateResponse>>; @@ -1435,8 +1366,6 @@ export interface ManagedClusters { beginResetServicePrincipalProfileAndWait(resourceGroupName: string, resourceName: string, parameters: ManagedClusterServicePrincipalProfile, options?: ManagedClustersResetServicePrincipalProfileOptionalParams): Promise; beginRotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise, void>>; beginRotateClusterCertificatesAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams): Promise; - beginRotateServiceAccountSigningKeys(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams): Promise, void>>; - beginRotateServiceAccountSigningKeysAndWait(resourceGroupName: string, resourceName: string, options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams): Promise; beginRunCommand(resourceGroupName: string, resourceName: string, requestPayload: RunCommandRequest, options?: ManagedClustersRunCommandOptionalParams): Promise, ManagedClustersRunCommandResponse>>; beginRunCommandAndWait(resourceGroupName: string, resourceName: string, requestPayload: RunCommandRequest, options?: ManagedClustersRunCommandOptionalParams): Promise; beginStart(resourceGroupName: string, resourceName: string, options?: ManagedClustersStartOptionalParams): Promise, void>>; @@ -1469,7 +1398,6 @@ export type ManagedClustersCreateOrUpdateResponse = ManagedCluster; // @public export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { - ignorePodDisruptionBudget?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1478,7 +1406,6 @@ export interface ManagedClustersDeleteOptionalParams extends coreClient.Operatio export interface ManagedClusterSecurityProfile { azureKeyVaultKms?: AzureKeyVaultKms; defender?: ManagedClusterSecurityProfileDefender; - workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; } // @public @@ -1492,11 +1419,6 @@ export interface ManagedClusterSecurityProfileDefenderSecurityMonitoring { enabled?: boolean; } -// @public -export interface ManagedClusterSecurityProfileWorkloadIdentity { - enabled?: boolean; -} - // @public export interface ManagedClusterServicePrincipalProfile { clientId: string; @@ -1618,82 +1540,6 @@ export type ManagedClustersListOutboundNetworkDependenciesEndpointsResponse = Ou // @public export type ManagedClustersListResponse = ManagedClusterListResult; -// @public -export type ManagedClusterSnapshot = TrackedResource & { - creationData?: CreationData; - snapshotType?: SnapshotType; - readonly managedClusterPropertiesReadOnly?: ManagedClusterPropertiesForSnapshot; -}; - -// @public -export interface ManagedClusterSnapshotListResult { - readonly nextLink?: string; - value?: ManagedClusterSnapshot[]; -} - -// @public -export interface ManagedClusterSnapshots { - createOrUpdate(resourceGroupName: string, resourceName: string, parameters: ManagedClusterSnapshot, options?: ManagedClusterSnapshotsCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, resourceName: string, options?: ManagedClusterSnapshotsDeleteOptionalParams): Promise; - get(resourceGroupName: string, resourceName: string, options?: ManagedClusterSnapshotsGetOptionalParams): Promise; - list(options?: ManagedClusterSnapshotsListOptionalParams): PagedAsyncIterableIterator; - listByResourceGroup(resourceGroupName: string, options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - updateTags(resourceGroupName: string, resourceName: string, parameters: TagsObject, options?: ManagedClusterSnapshotsUpdateTagsOptionalParams): Promise; -} - -// @public -export interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsCreateOrUpdateResponse = ManagedClusterSnapshot; - -// @public -export interface ManagedClusterSnapshotsDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface ManagedClusterSnapshotsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsGetResponse = ManagedClusterSnapshot; - -// @public -export interface ManagedClusterSnapshotsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsListByResourceGroupNextResponse = ManagedClusterSnapshotListResult; - -// @public -export interface ManagedClusterSnapshotsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsListByResourceGroupResponse = ManagedClusterSnapshotListResult; - -// @public -export interface ManagedClusterSnapshotsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsListNextResponse = ManagedClusterSnapshotListResult; - -// @public -export interface ManagedClusterSnapshotsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsListResponse = ManagedClusterSnapshotListResult; - -// @public -export interface ManagedClusterSnapshotsUpdateTagsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ManagedClusterSnapshotsUpdateTagsResponse = ManagedClusterSnapshot; - // @public export interface ManagedClustersResetAADProfileOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1712,12 +1558,6 @@ export interface ManagedClustersRotateClusterCertificatesOptionalParams extends updateIntervalInMs?: number; } -// @public -export interface ManagedClustersRotateServiceAccountSigningKeysOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - // @public export interface ManagedClustersRunCommandOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1741,21 +1581,14 @@ export interface ManagedClustersStopOptionalParams extends coreClient.OperationO // @public export interface ManagedClusterStorageProfile { - blobCSIDriver?: ManagedClusterStorageProfileBlobCSIDriver; diskCSIDriver?: ManagedClusterStorageProfileDiskCSIDriver; fileCSIDriver?: ManagedClusterStorageProfileFileCSIDriver; snapshotController?: ManagedClusterStorageProfileSnapshotController; } -// @public -export interface ManagedClusterStorageProfileBlobCSIDriver { - enabled?: boolean; -} - // @public export interface ManagedClusterStorageProfileDiskCSIDriver { enabled?: boolean; - version?: string; } // @public @@ -1795,16 +1628,6 @@ export interface ManagedClusterWindowsProfile { licenseType?: LicenseType; } -// @public -export interface ManagedClusterWorkloadAutoScalerProfile { - keda?: ManagedClusterWorkloadAutoScalerProfileKeda; -} - -// @public -export interface ManagedClusterWorkloadAutoScalerProfileKeda { - enabled: boolean; -} - // @public (undocumented) export interface ManagedServiceIdentityUserAssignedIdentitiesValue { readonly clientId?: string; @@ -1817,21 +1640,9 @@ export type NetworkMode = string; // @public export type NetworkPlugin = string; -// @public -export type NetworkPluginMode = string; - // @public export type NetworkPolicy = string; -// @public -export interface NetworkProfileForSnapshot { - loadBalancerSku?: LoadBalancerSku; - networkMode?: NetworkMode; - networkPlugin?: NetworkPlugin; - networkPluginMode?: NetworkPluginMode; - networkPolicy?: NetworkPolicy; -} - // @public export interface OperationListResult { readonly value?: OperationValue[]; @@ -2212,103 +2023,6 @@ export type TrackedResource = Resource & { location: string; }; -// @public -export interface TrustedAccessRole { - readonly name?: string; - readonly rules?: TrustedAccessRoleRule[]; - readonly sourceResourceType?: string; -} - -// @public -export type TrustedAccessRoleBinding = Resource & { - readonly provisioningState?: TrustedAccessRoleBindingProvisioningState; - sourceResourceId: string; - roles: string[]; -}; - -// @public -export interface TrustedAccessRoleBindingListResult { - readonly nextLink?: string; - value?: TrustedAccessRoleBinding[]; -} - -// @public -export type TrustedAccessRoleBindingProvisioningState = string; - -// @public -export interface TrustedAccessRoleBindings { - createOrUpdate(resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, trustedAccessRoleBinding: TrustedAccessRoleBinding, options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, options?: TrustedAccessRoleBindingsDeleteOptionalParams): Promise; - get(resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, options?: TrustedAccessRoleBindingsGetOptionalParams): Promise; - list(resourceGroupName: string, resourceName: string, options?: TrustedAccessRoleBindingsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRoleBindingsCreateOrUpdateResponse = TrustedAccessRoleBinding; - -// @public -export interface TrustedAccessRoleBindingsDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface TrustedAccessRoleBindingsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRoleBindingsGetResponse = TrustedAccessRoleBinding; - -// @public -export interface TrustedAccessRoleBindingsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRoleBindingsListNextResponse = TrustedAccessRoleBindingListResult; - -// @public -export interface TrustedAccessRoleBindingsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRoleBindingsListResponse = TrustedAccessRoleBindingListResult; - -// @public -export interface TrustedAccessRoleListResult { - readonly nextLink?: string; - readonly value?: TrustedAccessRole[]; -} - -// @public -export interface TrustedAccessRoleRule { - readonly apiGroups?: string[]; - readonly nonResourceURLs?: string[]; - readonly resourceNames?: string[]; - readonly resources?: string[]; - readonly verbs?: string[]; -} - -// @public -export interface TrustedAccessRoles { - list(location: string, options?: TrustedAccessRolesListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface TrustedAccessRolesListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRolesListNextResponse = TrustedAccessRoleListResult; - -// @public -export interface TrustedAccessRolesListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type TrustedAccessRolesListResponse = TrustedAccessRoleListResult; - // @public export type UpgradeChannel = string; diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index 0830093bcd4d..d46a43f841c8 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -22,10 +22,7 @@ import { PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ResolvePrivateLinkServiceIdImpl, - SnapshotsImpl, - ManagedClusterSnapshotsImpl, - TrustedAccessRolesImpl, - TrustedAccessRoleBindingsImpl + SnapshotsImpl } from "./operations"; import { Operations, @@ -35,10 +32,7 @@ import { PrivateEndpointConnections, PrivateLinkResources, ResolvePrivateLinkServiceId, - Snapshots, - ManagedClusterSnapshots, - TrustedAccessRoles, - TrustedAccessRoleBindings + Snapshots } from "./operationsInterfaces"; import { ContainerServiceClientOptionalParams } from "./models"; @@ -74,7 +68,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-containerservice/17.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-containerservice/17.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -121,7 +115,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-05-02-preview"; + this.apiVersion = options.apiVersion || "2022-07-01"; this.operations = new OperationsImpl(this); this.managedClusters = new ManagedClustersImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this); @@ -132,9 +126,6 @@ export class ContainerServiceClient extends coreClient.ServiceClient { this ); this.snapshots = new SnapshotsImpl(this); - this.managedClusterSnapshots = new ManagedClusterSnapshotsImpl(this); - this.trustedAccessRoles = new TrustedAccessRolesImpl(this); - this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -174,7 +165,4 @@ export class ContainerServiceClient extends coreClient.ServiceClient { privateLinkResources: PrivateLinkResources; resolvePrivateLinkServiceId: ResolvePrivateLinkServiceId; snapshots: Snapshots; - managedClusterSnapshots: ManagedClusterSnapshots; - trustedAccessRoles: TrustedAccessRoles; - trustedAccessRoleBindings: TrustedAccessRoleBindings; } diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index d49fa8825860..6e946001ade5 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -164,12 +164,6 @@ export interface PowerState { code?: Code; } -/** Data used when creating a target resource from a source resource. */ -export interface CreationData { - /** This is the ARM ID of the source object to be used to create the target object. */ - sourceResourceId?: string; -} - /** Properties for the container service agent pool profile. */ export interface ManagedClusterAgentPoolProfileProperties { /** Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. */ @@ -184,8 +178,6 @@ export interface ManagedClusterAgentPoolProfileProperties { kubeletDiskType?: KubeletDiskType; /** Determines the type of workload a node can run. */ workloadRuntime?: WorkloadRuntime; - /** A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). */ - messageOfTheDay?: string; /** If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */ vnetSubnetID?: string; /** If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */ @@ -194,7 +186,7 @@ export interface ManagedClusterAgentPoolProfileProperties { maxPods?: number; /** The operating system type. The default is Linux. */ osType?: OSType; - /** Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. */ + /** Specifies an OS SKU. This value must not be specified if OSType is Windows. */ osSKU?: Ossku; /** The maximum number of nodes for auto-scaling */ maxCount?: number; @@ -208,10 +200,10 @@ export interface ManagedClusterAgentPoolProfileProperties { type?: AgentPoolType; /** A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools */ mode?: AgentPoolMode; - /** Both patch version and are supported. When is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ + /** Both patch version (e.g. 1.20.13) and (e.g. 1.20) are supported. When is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ orchestratorVersion?: string; /** - * If orchestratorVersion was a fully specified version , this field will be exactly equal to it. If orchestratorVersion was , this field will contain the full version being used. + * If orchestratorVersion is a fully specified version , this field will be exactly equal to it. If orchestratorVersion is , this field will contain the full version being used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentOrchestratorVersion?: string; @@ -233,8 +225,6 @@ export interface ManagedClusterAgentPoolProfileProperties { availabilityZones?: string[]; /** Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. */ enableNodePublicIP?: boolean; - /** When set to true, AKS deploys a daemonset and host services to sync custom certificate authorities from a user-provided config map into node trust stores. Defaults to false. */ - enableCustomCATrust?: boolean; /** This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName} */ nodePublicIPPrefixID?: string; /** The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. */ @@ -265,8 +255,6 @@ export interface ManagedClusterAgentPoolProfileProperties { gpuInstanceProfile?: GPUInstanceProfile; /** CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. */ creationData?: CreationData; - /** AKS will associate the specified agent pool with the Capacity Reservation Group. */ - capacityReservationGroupID?: string; /** This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). */ hostGroupID?: string; } @@ -375,6 +363,12 @@ export interface SysctlConfig { vmVfsCachePressure?: number; } +/** Data used when creating a target resource from a source resource. */ +export interface CreationData { + /** This is the ARM ID of the source object to be used to create the target object. */ + sourceResourceId?: string; +} + /** Profile for Linux VMs in the container service cluster. */ export interface ContainerServiceLinuxProfile { /** The administrator username to use for Linux VMs. */ @@ -514,23 +508,10 @@ export interface ManagedClusterPodIdentityException { podLabels: { [propertyName: string]: string }; } -/** The OIDC issuer profile of the Managed Cluster. */ -export interface ManagedClusterOidcIssuerProfile { - /** - * The OIDC issuer url of the Managed Cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly issuerURL?: string; - /** Whether the OIDC issuer is enabled. */ - enabled?: boolean; -} - /** Profile of network configuration. */ export interface ContainerServiceNetworkProfile { /** Network plugin used for building the Kubernetes network. */ networkPlugin?: NetworkPlugin; - /** Network plugin mode used for building the Kubernetes network. */ - networkPluginMode?: NetworkPluginMode; /** Network policy used for building the Kubernetes network. */ networkPolicy?: NetworkPolicy; /** This cannot be specified if networkPlugin is anything other than 'azure'. */ @@ -693,10 +674,6 @@ export interface ManagedClusterAPIServerAccessProfile { enablePrivateClusterPublicFqdn?: boolean; /** Whether to disable run command for the cluster or not. */ disableRunCommand?: boolean; - /** Whether to enable apiserver vnet integration for the cluster or not. */ - enableVnetIntegration?: boolean; - /** It is required when: 1. creating a new cluster with BYO Vnet; 2. updating an existing cluster to enable apiserver vnet integration. */ - subnetId?: string; } /** A private link resource */ @@ -726,11 +703,6 @@ export interface ManagedClusterHttpProxyConfig { httpsProxy?: string; /** The endpoints that should not go through proxy. */ noProxy?: string[]; - /** - * A read-only list of all endpoints for which traffic should not be sent to the proxy. This list is a superset of noProxy and values injected by AKS. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly effectiveNoProxy?: string[]; /** Alternative CA cert to use for connecting to proxy servers. */ trustedCa?: string; } @@ -741,8 +713,6 @@ export interface ManagedClusterSecurityProfile { defender?: ManagedClusterSecurityProfileDefender; /** Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile. */ azureKeyVaultKms?: AzureKeyVaultKms; - /** [Workload Identity](https://azure.github.io/azure-workload-identity/docs/) settings for the security profile. */ - workloadIdentity?: ManagedClusterSecurityProfileWorkloadIdentity; } /** Microsoft Defender settings for the security profile. */ @@ -771,12 +741,6 @@ export interface AzureKeyVaultKms { keyVaultResourceId?: string; } -/** Workload Identity settings for the security profile. */ -export interface ManagedClusterSecurityProfileWorkloadIdentity { - /** Whether to enable Workload Identity */ - enabled?: boolean; -} - /** Storage profile for the container service cluster. */ export interface ManagedClusterStorageProfile { /** AzureDisk CSI Driver settings for the storage profile. */ @@ -785,16 +749,12 @@ export interface ManagedClusterStorageProfile { fileCSIDriver?: ManagedClusterStorageProfileFileCSIDriver; /** Snapshot Controller settings for the storage profile. */ snapshotController?: ManagedClusterStorageProfileSnapshotController; - /** AzureBlob CSI Driver settings for the storage profile. */ - blobCSIDriver?: ManagedClusterStorageProfileBlobCSIDriver; } /** AzureDisk CSI Driver settings for the storage profile. */ export interface ManagedClusterStorageProfileDiskCSIDriver { /** Whether to enable AzureDisk CSI Driver. The default value is true. */ enabled?: boolean; - /** The version of AzureDisk CSI Driver. The default value is v1. */ - version?: string; } /** AzureFile CSI Driver settings for the storage profile. */ @@ -809,38 +769,6 @@ export interface ManagedClusterStorageProfileSnapshotController { enabled?: boolean; } -/** AzureBlob CSI Driver settings for the storage profile. */ -export interface ManagedClusterStorageProfileBlobCSIDriver { - /** Whether to enable AzureBlob CSI Driver. The default value is false. */ - enabled?: boolean; -} - -/** Ingress profile for the container service cluster. */ -export interface ManagedClusterIngressProfile { - /** Web App Routing settings for the ingress profile. */ - webAppRouting?: ManagedClusterIngressProfileWebAppRouting; -} - -/** Web App Routing settings for the ingress profile. */ -export interface ManagedClusterIngressProfileWebAppRouting { - /** Whether to enable Web App Routing. */ - enabled?: boolean; - /** Resource ID of the DNS Zone to be associated with the web app. Used only when Web App Routing is enabled. */ - dnsZoneResourceId?: string; -} - -/** Workload Auto-scaler profile for the container service cluster. */ -export interface ManagedClusterWorkloadAutoScalerProfile { - /** KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile. */ - keda?: ManagedClusterWorkloadAutoScalerProfileKeda; -} - -/** KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile. */ -export interface ManagedClusterWorkloadAutoScalerProfileKeda { - /** Whether to enable KEDA. */ - enabled: boolean; -} - /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** @@ -1226,119 +1154,6 @@ export interface SnapshotListResult { readonly nextLink?: string; } -/** The response from the List Managed Cluster Snapshots operation. */ -export interface ManagedClusterSnapshotListResult { - /** The list of managed cluster snapshots. */ - value?: ManagedClusterSnapshot[]; - /** - * The URL to get the next set of managed cluster snapshot results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** managed cluster properties for snapshot, these properties are read only. */ -export interface ManagedClusterPropertiesForSnapshot { - /** The current kubernetes version. */ - kubernetesVersion?: string; - /** The current managed cluster sku. */ - sku?: ManagedClusterSKU; - /** Whether the cluster has enabled Kubernetes Role-Based Access Control or not. */ - enableRbac?: boolean; - /** - * The current network profile. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly networkProfile?: NetworkProfileForSnapshot; -} - -/** network profile for managed cluster snapshot, these properties are read only. */ -export interface NetworkProfileForSnapshot { - /** networkPlugin for managed cluster snapshot. */ - networkPlugin?: NetworkPlugin; - /** NetworkPluginMode for managed cluster snapshot. */ - networkPluginMode?: NetworkPluginMode; - /** networkPolicy for managed cluster snapshot. */ - networkPolicy?: NetworkPolicy; - /** networkMode for managed cluster snapshot. */ - networkMode?: NetworkMode; - /** loadBalancerSku for managed cluster snapshot. */ - loadBalancerSku?: LoadBalancerSku; -} - -/** List of trusted access roles */ -export interface TrustedAccessRoleListResult { - /** - * Role list - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: TrustedAccessRole[]; - /** - * Link to next page of resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Trusted access role definition. */ -export interface TrustedAccessRole { - /** - * Resource type of Azure resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceResourceType?: string; - /** - * Name of role, name is unique under a source resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * List of rules for the role. This maps to 'rules' property of [Kubernetes Cluster Role](https://kubernetes.io/docs/reference/kubernetes-api/authorization-resources/cluster-role-v1/#ClusterRole). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly rules?: TrustedAccessRoleRule[]; -} - -/** Rule for trusted access role */ -export interface TrustedAccessRoleRule { - /** - * List of allowed verbs - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly verbs?: string[]; - /** - * List of allowed apiGroups - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly apiGroups?: string[]; - /** - * List of allowed resources - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resources?: string[]; - /** - * List of allowed names - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceNames?: string[]; - /** - * List of allowed nonResourceURLs - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nonResourceURLs?: string[]; -} - -/** List of trusted access role bindings */ -export interface TrustedAccessRoleBindingListResult { - /** Role binding list */ - value?: TrustedAccessRoleBinding[]; - /** - * Link to next page of resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** Profile for the container service master. */ export interface ContainerServiceMasterProfile { /** Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default value is 1. */ @@ -1386,7 +1201,7 @@ export type ManagedClusterAgentPoolProfile = ManagedClusterAgentPoolProfilePrope }; /** Information of user assigned identity used by this add-on. */ -export type ManagedClusterAddonProfileIdentity = UserAssignedIdentity; +export type ManagedClusterAddonProfileIdentity = UserAssignedIdentity & {}; /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export type TrackedResource = Resource & { @@ -1396,19 +1211,6 @@ export type TrackedResource = Resource & { location: string; }; -/** Defines binding between a resource and role */ -export type TrustedAccessRoleBinding = Resource & { - /** - * The current provisioning state of trusted access role binding. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: TrustedAccessRoleBindingProvisioningState; - /** The ARM resource ID of source resource that trusted access is configured for. */ - sourceResourceId: string; - /** A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'. */ - roles: string[]; -}; - /** See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. */ export type MaintenanceConfiguration = SubResource & { /** @@ -1436,8 +1238,6 @@ export type AgentPool = SubResource & { kubeletDiskType?: KubeletDiskType; /** Determines the type of workload a node can run. */ workloadRuntime?: WorkloadRuntime; - /** A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). */ - messageOfTheDay?: string; /** If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */ vnetSubnetID?: string; /** If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */ @@ -1446,7 +1246,7 @@ export type AgentPool = SubResource & { maxPods?: number; /** The operating system type. The default is Linux. */ osType?: OSType; - /** Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. */ + /** Specifies an OS SKU. This value must not be specified if OSType is Windows. */ osSKU?: Ossku; /** The maximum number of nodes for auto-scaling */ maxCount?: number; @@ -1460,10 +1260,10 @@ export type AgentPool = SubResource & { typePropertiesType?: AgentPoolType; /** A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools */ mode?: AgentPoolMode; - /** Both patch version and are supported. When is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ + /** Both patch version (e.g. 1.20.13) and (e.g. 1.20) are supported. When is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ orchestratorVersion?: string; /** - * If orchestratorVersion was a fully specified version , this field will be exactly equal to it. If orchestratorVersion was , this field will contain the full version being used. + * If orchestratorVersion is a fully specified version , this field will be exactly equal to it. If orchestratorVersion is , this field will contain the full version being used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentOrchestratorVersion?: string; @@ -1485,8 +1285,6 @@ export type AgentPool = SubResource & { availabilityZones?: string[]; /** Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. */ enableNodePublicIP?: boolean; - /** When set to true, AKS deploys a daemonset and host services to sync custom certificate authorities from a user-provided config map into node trust stores. Defaults to false. */ - enableCustomCATrust?: boolean; /** This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName} */ nodePublicIPPrefixID?: string; /** The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. */ @@ -1517,8 +1315,6 @@ export type AgentPool = SubResource & { gpuInstanceProfile?: GPUInstanceProfile; /** CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. */ creationData?: CreationData; - /** AKS will associate the specified agent pool with the Capacity Reservation Group. */ - capacityReservationGroupID?: string; /** This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). */ hostGroupID?: string; }; @@ -1541,17 +1337,15 @@ export type ManagedCluster = TrackedResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly powerState?: PowerState; - /** CreationData to be used to specify the source Snapshot ID if the cluster will be created/upgraded using a snapshot. */ - creationData?: CreationData; /** * The max number of agent pools for the managed cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxAgentPools?: number; - /** When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. */ + /** Both patch version (e.g. 1.20.13) and (e.g. 1.20) are supported. When is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. */ kubernetesVersion?: string; /** - * The version of Kubernetes the Managed Cluster is running. + * If kubernetesVersion was a fully specified version , this field will be exactly equal to it. If kubernetesVersion was , this field will contain the full version being used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentKubernetesVersion?: string; @@ -1586,16 +1380,12 @@ export type ManagedCluster = TrackedResource & { addonProfiles?: { [propertyName: string]: ManagedClusterAddonProfile }; /** See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on AAD pod identity integration. */ podIdentityProfile?: ManagedClusterPodIdentityProfile; - /** The OIDC issuer profile of the Managed Cluster. */ - oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; /** The name of the resource group containing agent pool nodes. */ nodeResourceGroup?: string; /** Whether to enable Kubernetes Role-Based Access Control. */ enableRbac?: boolean; /** (DEPRECATING) Whether to enable Kubernetes pod security policy (preview). This feature is set for removal on October 15th, 2020. Learn more at aka.ms/aks/azpodpolicy. */ enablePodSecurityPolicy?: boolean; - /** The default value is false. It can be enabled/disabled on creation and updation of the managed cluster. See [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on Namespace as a ARM Resource. */ - enableNamespaceResources?: boolean; /** The network configuration profile. */ networkProfile?: ContainerServiceNetworkProfile; /** The Azure Active Directory configuration. */ @@ -1620,12 +1410,8 @@ export type ManagedCluster = TrackedResource & { securityProfile?: ManagedClusterSecurityProfile; /** Storage profile for the managed cluster. */ storageProfile?: ManagedClusterStorageProfile; - /** Ingress profile for the managed cluster. */ - ingressProfile?: ManagedClusterIngressProfile; /** Allow or deny public network access for AKS */ publicNetworkAccess?: PublicNetworkAccess; - /** Workload Auto-scaler profile for the container service cluster. */ - workloadAutoScalerProfile?: ManagedClusterWorkloadAutoScalerProfile; }; /** Managed cluster Access Profile. */ @@ -1656,7 +1442,7 @@ export type Snapshot = TrackedResource & { */ readonly osType?: OSType; /** - * Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. + * Specifies an OS SKU. This value must not be specified if OSType is Windows. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly osSku?: Ossku; @@ -1672,19 +1458,6 @@ export type Snapshot = TrackedResource & { readonly enableFips?: boolean; }; -/** A managed cluster snapshot resource. */ -export type ManagedClusterSnapshot = TrackedResource & { - /** CreationData to be used to specify the source resource ID to create this snapshot. */ - creationData?: CreationData; - /** The type of a snapshot. The default is NodePool. */ - snapshotType?: SnapshotType; - /** - * What the properties will be showed when getting managed cluster snapshot. Those properties are read-only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managedClusterPropertiesReadOnly?: ManagedClusterPropertiesForSnapshot; -}; - /** Defines headers for AgentPools_upgradeNodeImageVersion operation. */ export interface AgentPoolsUpgradeNodeImageVersionHeaders { /** URL to query for status of the operation. */ @@ -1830,9 +1603,7 @@ export type OSType = string; /** Known values of {@link Ossku} that the service accepts. */ export enum KnownOssku { Ubuntu = "Ubuntu", - CBLMariner = "CBLMariner", - Windows2019 = "Windows2019", - Windows2022 = "Windows2022" + CBLMariner = "CBLMariner" } /** @@ -1841,9 +1612,7 @@ export enum KnownOssku { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Ubuntu** \ - * **CBLMariner** \ - * **Windows2019** \ - * **Windows2022** + * **CBLMariner** */ export type Ossku = string; @@ -2003,7 +1772,7 @@ export enum KnownNetworkPlugin { Azure = "azure", /** Use the Kubenet network plugin. See [Kubenet (basic) networking](https://docs.microsoft.com/azure/aks/concepts-network#kubenet-basic-networking) for more information. */ Kubenet = "kubenet", - /** Do not use a network plugin. A custom CNI will need to be installed after cluster creation for networking functionality. */ + /** No CNI plugin is pre-installed. See [BYO CNI](https://docs.microsoft.com/en-us/azure/aks/use-byo-cni) for more information. */ None = "none" } @@ -2014,25 +1783,10 @@ export enum KnownNetworkPlugin { * ### Known values supported by the service * **azure**: Use the Azure CNI network plugin. See [Azure CNI (advanced) networking](https:\/\/docs.microsoft.com\/azure\/aks\/concepts-network#azure-cni-advanced-networking) for more information. \ * **kubenet**: Use the Kubenet network plugin. See [Kubenet (basic) networking](https:\/\/docs.microsoft.com\/azure\/aks\/concepts-network#kubenet-basic-networking) for more information. \ - * **none**: Do not use a network plugin. A custom CNI will need to be installed after cluster creation for networking functionality. + * **none**: No CNI plugin is pre-installed. See [BYO CNI](https:\/\/docs.microsoft.com\/en-us\/azure\/aks\/use-byo-cni) for more information. */ export type NetworkPlugin = string; -/** Known values of {@link NetworkPluginMode} that the service accepts. */ -export enum KnownNetworkPluginMode { - /** Pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet reference plugins host-local and bridge. */ - Overlay = "Overlay" -} - -/** - * Defines values for NetworkPluginMode. \ - * {@link KnownNetworkPluginMode} can be used interchangeably with NetworkPluginMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Overlay**: Pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet reference plugins host-local and bridge. - */ -export type NetworkPluginMode = string; - /** Known values of {@link NetworkPolicy} that the service accepts. */ export enum KnownNetworkPolicy { /** Use Calico network policies. See [differences between Azure and Calico policies](https://docs.microsoft.com/azure/aks/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. */ @@ -2317,9 +2071,7 @@ export type ConnectionStatus = string; /** Known values of {@link SnapshotType} that the service accepts. */ export enum KnownSnapshotType { /** The snapshot is a snapshot of a node pool. */ - NodePool = "NodePool", - /** The snapshot is a snapshot of a managed cluster. */ - ManagedCluster = "ManagedCluster" + NodePool = "NodePool" } /** @@ -2327,31 +2079,10 @@ export enum KnownSnapshotType { * {@link KnownSnapshotType} can be used interchangeably with SnapshotType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NodePool**: The snapshot is a snapshot of a node pool. \ - * **ManagedCluster**: The snapshot is a snapshot of a managed cluster. + * **NodePool**: The snapshot is a snapshot of a node pool. */ export type SnapshotType = string; -/** Known values of {@link TrustedAccessRoleBindingProvisioningState} that the service accepts. */ -export enum KnownTrustedAccessRoleBindingProvisioningState { - Succeeded = "Succeeded", - Failed = "Failed", - Updating = "Updating", - Deleting = "Deleting" -} - -/** - * Defines values for TrustedAccessRoleBindingProvisioningState. \ - * {@link KnownTrustedAccessRoleBindingProvisioningState} can be used interchangeably with TrustedAccessRoleBindingProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Updating** \ - * **Deleting** - */ -export type TrustedAccessRoleBindingProvisioningState = string; - /** Known values of {@link ContainerServiceVMSizeTypes} that the service accepts. */ export enum KnownContainerServiceVMSizeTypes { StandardA1 = "Standard_A1", @@ -2843,8 +2574,6 @@ export type ManagedClustersUpdateTagsResponse = ManagedCluster; /** Optional parameters. */ export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { - /** ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget */ - ignorePodDisruptionBudget?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -2878,15 +2607,6 @@ export interface ManagedClustersRotateClusterCertificatesOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedClustersRotateServiceAccountSigningKeysOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - /** Optional parameters. */ export interface ManagedClustersStopOptionalParams extends coreClient.OperationOptions { @@ -3013,8 +2733,6 @@ export type AgentPoolsCreateOrUpdateResponse = AgentPool; /** Optional parameters. */ export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOptions { - /** ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget */ - ignorePodDisruptionBudget?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3148,105 +2866,6 @@ export interface SnapshotsListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ export type SnapshotsListByResourceGroupNextResponse = SnapshotListResult; -/** Optional parameters. */ -export interface ManagedClusterSnapshotsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ManagedClusterSnapshotsListResponse = ManagedClusterSnapshotListResult; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ManagedClusterSnapshotsListByResourceGroupResponse = ManagedClusterSnapshotListResult; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedClusterSnapshotsGetResponse = ManagedClusterSnapshot; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedClusterSnapshotsCreateOrUpdateResponse = ManagedClusterSnapshot; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsUpdateTagsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the updateTags operation. */ -export type ManagedClusterSnapshotsUpdateTagsResponse = ManagedClusterSnapshot; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ManagedClusterSnapshotsListNextResponse = ManagedClusterSnapshotListResult; - -/** Optional parameters. */ -export interface ManagedClusterSnapshotsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedClusterSnapshotsListByResourceGroupNextResponse = ManagedClusterSnapshotListResult; - -/** Optional parameters. */ -export interface TrustedAccessRolesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type TrustedAccessRolesListResponse = TrustedAccessRoleListResult; - -/** Optional parameters. */ -export interface TrustedAccessRolesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type TrustedAccessRolesListNextResponse = TrustedAccessRoleListResult; - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type TrustedAccessRoleBindingsListResponse = TrustedAccessRoleBindingListResult; - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type TrustedAccessRoleBindingsGetResponse = TrustedAccessRoleBinding; - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type TrustedAccessRoleBindingsCreateOrUpdateResponse = TrustedAccessRoleBinding; - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface TrustedAccessRoleBindingsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type TrustedAccessRoleBindingsListNextResponse = TrustedAccessRoleBindingListResult; - /** Optional parameters. */ export interface ContainerServiceClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index d540673000d6..103159a89c1e 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -352,21 +352,6 @@ export const PowerState: coreClient.CompositeMapper = { } }; -export const CreationData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CreationData", - modelProperties: { - sourceResourceId: { - serializedName: "sourceResourceId", - type: { - name: "String" - } - } - } - } -}; - export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -412,12 +397,6 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe name: "String" } }, - messageOfTheDay: { - serializedName: "messageOfTheDay", - type: { - name: "String" - } - }, vnetSubnetID: { serializedName: "vnetSubnetID", type: { @@ -543,12 +522,6 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe name: "Boolean" } }, - enableCustomCATrust: { - serializedName: "enableCustomCATrust", - type: { - name: "Boolean" - } - }, nodePublicIPPrefixID: { serializedName: "nodePublicIPPrefixID", type: { @@ -652,12 +625,6 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe className: "CreationData" } }, - capacityReservationGroupID: { - serializedName: "capacityReservationGroupID", - type: { - name: "String" - } - }, hostGroupID: { serializedName: "hostGroupID", type: { @@ -977,6 +944,21 @@ export const SysctlConfig: coreClient.CompositeMapper = { } }; +export const CreationData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreationData", + modelProperties: { + sourceResourceId: { + serializedName: "sourceResourceId", + type: { + name: "String" + } + } + } + } +}; + export const ContainerServiceLinuxProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1385,28 +1367,6 @@ export const ManagedClusterPodIdentityException: coreClient.CompositeMapper = { } }; -export const ManagedClusterOidcIssuerProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterOidcIssuerProfile", - modelProperties: { - issuerURL: { - serializedName: "issuerURL", - readOnly: true, - type: { - name: "String" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1419,12 +1379,6 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { name: "String" } }, - networkPluginMode: { - serializedName: "networkPluginMode", - type: { - name: "String" - } - }, networkPolicy: { serializedName: "networkPolicy", type: { @@ -1987,18 +1941,6 @@ export const ManagedClusterAPIServerAccessProfile: coreClient.CompositeMapper = type: { name: "Boolean" } - }, - enableVnetIntegration: { - serializedName: "enableVnetIntegration", - type: { - name: "Boolean" - } - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String" - } } } } @@ -2083,18 +2025,6 @@ export const ManagedClusterHttpProxyConfig: coreClient.CompositeMapper = { } } }, - effectiveNoProxy: { - serializedName: "effectiveNoProxy", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, trustedCa: { serializedName: "trustedCa", type: { @@ -2123,13 +2053,6 @@ export const ManagedClusterSecurityProfile: coreClient.CompositeMapper = { name: "Composite", className: "AzureKeyVaultKms" } - }, - workloadIdentity: { - serializedName: "workloadIdentity", - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileWorkloadIdentity" - } } } } @@ -2206,21 +2129,6 @@ export const AzureKeyVaultKms: coreClient.CompositeMapper = { } }; -export const ManagedClusterSecurityProfileWorkloadIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileWorkloadIdentity", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - export const ManagedClusterStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2246,13 +2154,6 @@ export const ManagedClusterStorageProfile: coreClient.CompositeMapper = { name: "Composite", className: "ManagedClusterStorageProfileSnapshotController" } - }, - blobCSIDriver: { - serializedName: "blobCSIDriver", - type: { - name: "Composite", - className: "ManagedClusterStorageProfileBlobCSIDriver" - } } } } @@ -2268,12 +2169,6 @@ export const ManagedClusterStorageProfileDiskCSIDriver: coreClient.CompositeMapp type: { name: "Boolean" } - }, - version: { - serializedName: "version", - type: { - name: "String" - } } } } @@ -2309,90 +2204,6 @@ export const ManagedClusterStorageProfileSnapshotController: coreClient.Composit } }; -export const ManagedClusterStorageProfileBlobCSIDriver: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileBlobCSIDriver", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterIngressProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterIngressProfile", - modelProperties: { - webAppRouting: { - serializedName: "webAppRouting", - type: { - name: "Composite", - className: "ManagedClusterIngressProfileWebAppRouting" - } - } - } - } -}; - -export const ManagedClusterIngressProfileWebAppRouting: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterIngressProfileWebAppRouting", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - dnsZoneResourceId: { - serializedName: "dnsZoneResourceId", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterWorkloadAutoScalerProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfile", - modelProperties: { - keda: { - serializedName: "keda", - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfileKeda" - } - } - } - } -}; - -export const ManagedClusterWorkloadAutoScalerProfileKeda: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfileKeda", - modelProperties: { - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean" - } - } - } - } -}; - export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3299,271 +3110,6 @@ export const SnapshotListResult: coreClient.CompositeMapper = { } }; -export const ManagedClusterSnapshotListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSnapshotListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedClusterSnapshot" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterPropertiesForSnapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterPropertiesForSnapshot", - modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "ManagedClusterSKU" - } - }, - enableRbac: { - serializedName: "enableRbac", - type: { - name: "Boolean" - } - }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "NetworkProfileForSnapshot" - } - } - } - } -}; - -export const NetworkProfileForSnapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProfileForSnapshot", - modelProperties: { - networkPlugin: { - defaultValue: "kubenet", - serializedName: "networkPlugin", - type: { - name: "String" - } - }, - networkPluginMode: { - serializedName: "networkPluginMode", - type: { - name: "String" - } - }, - networkPolicy: { - serializedName: "networkPolicy", - type: { - name: "String" - } - }, - networkMode: { - serializedName: "networkMode", - type: { - name: "String" - } - }, - loadBalancerSku: { - serializedName: "loadBalancerSku", - type: { - name: "String" - } - } - } - } -}; - -export const TrustedAccessRoleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrustedAccessRole" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const TrustedAccessRole: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRole", - modelProperties: { - sourceResourceType: { - serializedName: "sourceResourceType", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - rules: { - serializedName: "rules", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrustedAccessRoleRule" - } - } - } - } - } - } -}; - -export const TrustedAccessRoleRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleRule", - modelProperties: { - verbs: { - serializedName: "verbs", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiGroups: { - serializedName: "apiGroups", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - resources: { - serializedName: "resources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - resourceNames: { - serializedName: "resourceNames", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - nonResourceURLs: { - serializedName: "nonResourceURLs", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleBindingListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrustedAccessRoleBinding" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const ContainerServiceMasterProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3724,42 +3270,6 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; -export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleBinding", - modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - sourceResourceId: { - serializedName: "properties.sourceResourceId", - required: true, - type: { - name: "String" - } - }, - roles: { - serializedName: "properties.roles", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const MaintenanceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3847,12 +3357,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "String" } }, - messageOfTheDay: { - serializedName: "properties.messageOfTheDay", - type: { - name: "String" - } - }, vnetSubnetID: { serializedName: "properties.vnetSubnetID", type: { @@ -3978,12 +3482,6 @@ export const AgentPool: coreClient.CompositeMapper = { name: "Boolean" } }, - enableCustomCATrust: { - serializedName: "properties.enableCustomCATrust", - type: { - name: "Boolean" - } - }, nodePublicIPPrefixID: { serializedName: "properties.nodePublicIPPrefixID", type: { @@ -4087,12 +3585,6 @@ export const AgentPool: coreClient.CompositeMapper = { className: "CreationData" } }, - capacityReservationGroupID: { - serializedName: "properties.capacityReservationGroupID", - type: { - name: "String" - } - }, hostGroupID: { serializedName: "properties.hostGroupID", type: { @@ -4144,13 +3636,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "PowerState" } }, - creationData: { - serializedName: "properties.creationData", - type: { - name: "Composite", - className: "CreationData" - } - }, maxAgentPools: { serializedName: "properties.maxAgentPools", readOnly: true, @@ -4253,13 +3738,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterPodIdentityProfile" } }, - oidcIssuerProfile: { - serializedName: "properties.oidcIssuerProfile", - type: { - name: "Composite", - className: "ManagedClusterOidcIssuerProfile" - } - }, nodeResourceGroup: { serializedName: "properties.nodeResourceGroup", type: { @@ -4278,12 +3756,6 @@ export const ManagedCluster: coreClient.CompositeMapper = { name: "Boolean" } }, - enableNamespaceResources: { - serializedName: "properties.enableNamespaceResources", - type: { - name: "Boolean" - } - }, networkProfile: { serializedName: "properties.networkProfile", type: { @@ -4373,25 +3845,11 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedClusterStorageProfile" } }, - ingressProfile: { - serializedName: "properties.ingressProfile", - type: { - name: "Composite", - className: "ManagedClusterIngressProfile" - } - }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { name: "String" } - }, - workloadAutoScalerProfile: { - serializedName: "properties.workloadAutoScalerProfile", - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfile" - } } } } @@ -4480,37 +3938,6 @@ export const Snapshot: coreClient.CompositeMapper = { } }; -export const ManagedClusterSnapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSnapshot", - modelProperties: { - ...TrackedResource.type.modelProperties, - creationData: { - serializedName: "properties.creationData", - type: { - name: "Composite", - className: "CreationData" - } - }, - snapshotType: { - defaultValue: "NodePool", - serializedName: "properties.snapshotType", - type: { - name: "String" - } - }, - managedClusterPropertiesReadOnly: { - serializedName: "properties.managedClusterPropertiesReadOnly", - type: { - name: "Composite", - className: "ManagedClusterPropertiesForSnapshot" - } - } - } - } -}; - export const AgentPoolsUpgradeNodeImageVersionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index a853769988d2..aab620d555dd 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -21,9 +21,7 @@ import { AgentPool as AgentPoolMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, PrivateLinkResource as PrivateLinkResourceMapper, - Snapshot as SnapshotMapper, - ManagedClusterSnapshot as ManagedClusterSnapshotMapper, - TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper + Snapshot as SnapshotMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -53,7 +51,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-05-02-preview", + defaultValue: "2022-07-01", isConstant: true, serializedName: "api-version", type: { @@ -186,16 +184,6 @@ export const parameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const ignorePodDisruptionBudget: OperationQueryParameter = { - parameterPath: ["options", "ignorePodDisruptionBudget"], - mapper: { - serializedName: "ignore-pod-disruption-budget", - type: { - name: "Boolean" - } - } -}; - export const parameters2: OperationParameter = { parameterPath: "parameters", mapper: ManagedClusterServicePrincipalProfileMapper @@ -291,28 +279,3 @@ export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: SnapshotMapper }; - -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedClusterSnapshotMapper -}; - -export const trustedAccessRoleBindingName: OperationURLParameter = { - parameterPath: "trustedAccessRoleBindingName", - mapper: { - constraints: { - MaxLength: 36, - MinLength: 1 - }, - serializedName: "trustedAccessRoleBindingName", - required: true, - type: { - name: "String" - } - } -}; - -export const trustedAccessRoleBinding: OperationParameter = { - parameterPath: "trustedAccessRoleBinding", - mapper: TrustedAccessRoleBindingMapper -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts index cef7bd8c5f6f..a369ccc10c2a 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts @@ -567,10 +567,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.ignorePodDisruptionBudget - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerservice/arm-containerservice/src/operations/index.ts b/sdk/containerservice/arm-containerservice/src/operations/index.ts index 9266846c2a40..6d786ed8c56d 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/index.ts @@ -14,6 +14,3 @@ export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./resolvePrivateLinkServiceId"; export * from "./snapshots"; -export * from "./managedClusterSnapshots"; -export * from "./trustedAccessRoles"; -export * from "./trustedAccessRoleBindings"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts deleted file mode 100644 index e6ac26542e18..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ManagedClusterSnapshots } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; -import { - ManagedClusterSnapshot, - ManagedClusterSnapshotsListNextOptionalParams, - ManagedClusterSnapshotsListOptionalParams, - ManagedClusterSnapshotsListByResourceGroupNextOptionalParams, - ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ManagedClusterSnapshotsListResponse, - ManagedClusterSnapshotsListByResourceGroupResponse, - ManagedClusterSnapshotsGetOptionalParams, - ManagedClusterSnapshotsGetResponse, - ManagedClusterSnapshotsCreateOrUpdateOptionalParams, - ManagedClusterSnapshotsCreateOrUpdateResponse, - TagsObject, - ManagedClusterSnapshotsUpdateTagsOptionalParams, - ManagedClusterSnapshotsUpdateTagsResponse, - ManagedClusterSnapshotsDeleteOptionalParams, - ManagedClusterSnapshotsListNextResponse, - ManagedClusterSnapshotsListByResourceGroupNextResponse -} from "../models"; - -/// -/** Class containing ManagedClusterSnapshots operations. */ -export class ManagedClusterSnapshotsImpl implements ManagedClusterSnapshots { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class ManagedClusterSnapshots class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * @param options The options parameters. - */ - public list( - options?: ManagedClusterSnapshotsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(options); - } - }; - } - - private async *listPagingPage( - options?: ManagedClusterSnapshotsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - options?: ManagedClusterSnapshotsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listByResourceGroupPagingPage(resourceGroupName, options); - } - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams - ): AsyncIterableIterator { - let result = await this._listByResourceGroup(resourceGroupName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { - yield* page; - } - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * @param options The options parameters. - */ - private _list( - options?: ManagedClusterSnapshotsListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } - - /** - * Gets a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - options?: ManagedClusterSnapshotsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - getOperationSpec - ); - } - - /** - * Creates or updates a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param parameters The managed cluster snapshot to create or update. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - parameters: ManagedClusterSnapshot, - options?: ManagedClusterSnapshotsCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, parameters, options }, - createOrUpdateOperationSpec - ); - } - - /** - * Updates tags on a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. - * @param options The options parameters. - */ - updateTags( - resourceGroupName: string, - resourceName: string, - parameters: TagsObject, - options?: ManagedClusterSnapshotsUpdateTagsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, parameters, options }, - updateTagsOperationSpec - ); - } - - /** - * Deletes a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - options?: ManagedClusterSnapshotsDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - deleteOperationSpec - ); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: ManagedClusterSnapshotsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: ManagedClusterSnapshotsListByResourceGroupNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshotListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshotListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshot - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshot - }, - 201: { - bodyMapper: Mappers.ManagedClusterSnapshot - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshot - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshotListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedClusterSnapshotListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index d5c53c65fd5b..fee316d8fce4 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -50,7 +50,6 @@ import { ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, ManagedClustersRotateClusterCertificatesOptionalParams, - ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersStopOptionalParams, ManagedClustersStartOptionalParams, RunCommandRequest, @@ -916,88 +915,6 @@ export class ManagedClustersImpl implements ManagedClusters { return poller.pollUntilDone(); } - /** - * Rotates the service account signing keys of a managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - async beginRotateServiceAccountSigningKeys( - resourceGroupName: string, - resourceName: string, - options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, resourceName, options }, - rotateServiceAccountSigningKeysOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Rotates the service account signing keys of a managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - async beginRotateServiceAccountSigningKeysAndWait( - resourceGroupName: string, - resourceName: string, - options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams - ): Promise { - const poller = await this.beginRotateServiceAccountSigningKeys( - resourceGroupName, - resourceName, - options - ); - return poller.pollUntilDone(); - } - /** * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster * stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A @@ -1637,10 +1554,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.ignorePodDisruptionBudget - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1723,29 +1637,6 @@ const rotateClusterCertificatesOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const rotateServiceAccountSigningKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; const stopOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop", diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts deleted file mode 100644 index d438aa167fb0..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts +++ /dev/null @@ -1,328 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { TrustedAccessRoleBindings } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; -import { - TrustedAccessRoleBinding, - TrustedAccessRoleBindingsListNextOptionalParams, - TrustedAccessRoleBindingsListOptionalParams, - TrustedAccessRoleBindingsListResponse, - TrustedAccessRoleBindingsGetOptionalParams, - TrustedAccessRoleBindingsGetResponse, - TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, - TrustedAccessRoleBindingsCreateOrUpdateResponse, - TrustedAccessRoleBindingsDeleteOptionalParams, - TrustedAccessRoleBindingsListNextResponse -} from "../models"; - -/// -/** Class containing TrustedAccessRoleBindings operations. */ -export class TrustedAccessRoleBindingsImpl - implements TrustedAccessRoleBindings { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class TrustedAccessRoleBindings class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * List trusted access role bindings. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, resourceName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(resourceGroupName, resourceName, options); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, resourceName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - resourceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - resourceName, - options - )) { - yield* page; - } - } - - /** - * List trusted access role bindings. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - listOperationSpec - ); - } - - /** - * Get a trusted access role binding. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - trustedAccessRoleBindingName, - options - }, - getOperationSpec - ); - } - - /** - * Create or update a trusted access role binding - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param trustedAccessRoleBinding A trusted access role binding - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - trustedAccessRoleBinding: TrustedAccessRoleBinding, - options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - trustedAccessRoleBindingName, - trustedAccessRoleBinding, - options - }, - createOrUpdateOperationSpec - ); - } - - /** - * Delete a trusted access role binding. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - trustedAccessRoleBindingName, - options - }, - deleteOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - resourceName: string, - nextLink: string, - options?: TrustedAccessRoleBindingsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleBindingListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleBinding - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.trustedAccessRoleBindingName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleBinding - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.trustedAccessRoleBinding, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.trustedAccessRoleBindingName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.trustedAccessRoleBindingName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleBindingListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts deleted file mode 100644 index f92b063034b9..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { TrustedAccessRoles } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; -import { - TrustedAccessRole, - TrustedAccessRolesListNextOptionalParams, - TrustedAccessRolesListOptionalParams, - TrustedAccessRolesListResponse, - TrustedAccessRolesListNextResponse -} from "../models"; - -/// -/** Class containing TrustedAccessRoles operations. */ -export class TrustedAccessRolesImpl implements TrustedAccessRoles { - private readonly client: ContainerServiceClient; - - /** - * Initialize a new instance of the class TrustedAccessRoles class. - * @param client Reference to the service client - */ - constructor(client: ContainerServiceClient) { - this.client = client; - } - - /** - * List supported trusted access roles. - * @param location The name of Azure region. - * @param options The options parameters. - */ - public list( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(location, options); - } - }; - } - - private async *listPagingPage( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(location, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext(location, continuationToken, options); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(location, options)) { - yield* page; - } - } - - /** - * List supported trusted access roles. - * @param location The name of Azure region. - * @param options The options parameters. - */ - private _list( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param location The name of Azure region. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - location: string, - nextLink: string, - options?: TrustedAccessRolesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.TrustedAccessRoleListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts index 9266846c2a40..6d786ed8c56d 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts @@ -14,6 +14,3 @@ export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./resolvePrivateLinkServiceId"; export * from "./snapshots"; -export * from "./managedClusterSnapshots"; -export * from "./trustedAccessRoles"; -export * from "./trustedAccessRoleBindings"; diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts deleted file mode 100644 index bec60709a6e4..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ManagedClusterSnapshot, - ManagedClusterSnapshotsListOptionalParams, - ManagedClusterSnapshotsListByResourceGroupOptionalParams, - ManagedClusterSnapshotsGetOptionalParams, - ManagedClusterSnapshotsGetResponse, - ManagedClusterSnapshotsCreateOrUpdateOptionalParams, - ManagedClusterSnapshotsCreateOrUpdateResponse, - TagsObject, - ManagedClusterSnapshotsUpdateTagsOptionalParams, - ManagedClusterSnapshotsUpdateTagsResponse, - ManagedClusterSnapshotsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a ManagedClusterSnapshots. */ -export interface ManagedClusterSnapshots { - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * @param options The options parameters. - */ - list( - options?: ManagedClusterSnapshotsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: ManagedClusterSnapshotsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - options?: ManagedClusterSnapshotsGetOptionalParams - ): Promise; - /** - * Creates or updates a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param parameters The managed cluster snapshot to create or update. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - parameters: ManagedClusterSnapshot, - options?: ManagedClusterSnapshotsCreateOrUpdateOptionalParams - ): Promise; - /** - * Updates tags on a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. - * @param options The options parameters. - */ - updateTags( - resourceGroupName: string, - resourceName: string, - parameters: TagsObject, - options?: ManagedClusterSnapshotsUpdateTagsOptionalParams - ): Promise; - /** - * Deletes a managed cluster snapshot. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - options?: ManagedClusterSnapshotsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts index 5d7cb831a154..ff803ac9e121 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts @@ -39,7 +39,6 @@ import { ManagedClusterAADProfile, ManagedClustersResetAADProfileOptionalParams, ManagedClustersRotateClusterCertificatesOptionalParams, - ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ManagedClustersStopOptionalParams, ManagedClustersStartOptionalParams, RunCommandRequest, @@ -321,28 +320,6 @@ export interface ManagedClusters { resourceName: string, options?: ManagedClustersRotateClusterCertificatesOptionalParams ): Promise; - /** - * Rotates the service account signing keys of a managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - beginRotateServiceAccountSigningKeys( - resourceGroupName: string, - resourceName: string, - options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams - ): Promise, void>>; - /** - * Rotates the service account signing keys of a managed cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - beginRotateServiceAccountSigningKeysAndWait( - resourceGroupName: string, - resourceName: string, - options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams - ): Promise; /** * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster * stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts deleted file mode 100644 index a1849299cbd5..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - TrustedAccessRoleBinding, - TrustedAccessRoleBindingsListOptionalParams, - TrustedAccessRoleBindingsGetOptionalParams, - TrustedAccessRoleBindingsGetResponse, - TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, - TrustedAccessRoleBindingsCreateOrUpdateResponse, - TrustedAccessRoleBindingsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a TrustedAccessRoleBindings. */ -export interface TrustedAccessRoleBindings { - /** - * List trusted access role bindings. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get a trusted access role binding. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsGetOptionalParams - ): Promise; - /** - * Create or update a trusted access role binding - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param trustedAccessRoleBinding A trusted access role binding - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - trustedAccessRoleBinding: TrustedAccessRoleBinding, - options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete a trusted access role binding. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param trustedAccessRoleBindingName The name of trusted access role binding. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts deleted file mode 100644 index 48bad47db1b5..000000000000 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - TrustedAccessRole, - TrustedAccessRolesListOptionalParams -} from "../models"; - -/// -/** Interface representing a TrustedAccessRoles. */ -export interface TrustedAccessRoles { - /** - * List supported trusted access roles. - * @param location The name of Azure region. - * @param options The options parameters. - */ - list( - location: string, - options?: TrustedAccessRolesListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/containerservice/arm-containerservice/test/sampleTest.ts b/sdk/containerservice/arm-containerservice/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/containerservice/arm-containerservice/tsconfig.json b/sdk/containerservice/arm-containerservice/tsconfig.json index 5bad5556bbfd..3e6ae96443f3 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-containerservice": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"