From 525756db9c3c4bdd8a6ac25c8f77eb3ef6509975 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 10 Mar 2022 02:25:09 +0000 Subject: [PATCH] CodeGen from PR 18127 in Azure/azure-rest-api-specs Microsoft.KubernetesConfiguration: Add `installedVersion` to 2022-03-01 (#18127) * Add blockchain to latest profile * Add additional types * Update extension with installedVersion * provisioningState to Succeeded with installedVersion Co-authored-by: Mark Cowlishaw --- .../arm-kubernetesconfiguration/CHANGELOG.md | 16 +- .../arm-kubernetesconfiguration/README.md | 2 +- .../arm-kubernetesconfiguration/_meta.json | 7 +- .../api-extractor.json | 25 +- .../arm-kubernetesconfiguration/package.json | 4 +- .../review/arm-kubernetesconfiguration.api.md | 214 ++------ .../src/models/index.ts | 403 +++++--------- .../src/models/mappers.ts | 517 ++++++------------ .../src/models/parameters.ts | 94 ++-- .../src/operations/clusterExtensionType.ts | 92 ---- .../src/operations/clusterExtensionTypes.ts | 240 -------- .../src/operations/extensionTypeVersions.ts | 177 ------ .../src/operations/extensions.ts | 134 +++-- .../operations/fluxConfigOperationStatus.ts | 14 +- .../src/operations/fluxConfigurations.ts | 134 +++-- .../src/operations/index.ts | 4 - .../src/operations/locationExtensionTypes.ts | 158 ------ .../src/operations/operationStatus.ts | 58 +- .../operations/sourceControlConfigurations.ts | 96 ++-- .../clusterExtensionType.ts | 37 -- .../clusterExtensionTypes.ts | 37 -- .../extensionTypeVersions.ts | 29 - .../src/operationsInterfaces/extensions.ts | 98 ++-- .../fluxConfigOperationStatus.ts | 14 +- .../fluxConfigurations.ts | 98 ++-- .../src/operationsInterfaces/index.ts | 4 - .../locationExtensionTypes.ts | 27 - .../operationsInterfaces/operationStatus.ts | 26 +- .../sourceControlConfigurations.ts | 62 +-- .../src/sourceControlConfigurationClient.ts | 20 +- .../arm-kubernetesconfiguration/tsconfig.json | 16 +- sdk/kubernetesconfiguration/ci.mgmt.yml | 7 +- 32 files changed, 784 insertions(+), 2080 deletions(-) delete mode 100644 sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionType.ts delete mode 100644 sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionTypes.ts delete mode 100644 sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensionTypeVersions.ts delete mode 100644 sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/locationExtensionTypes.ts delete mode 100644 sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/clusterExtensionType.ts delete mode 100644 sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/clusterExtensionTypes.ts delete mode 100644 sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/extensionTypeVersions.ts delete mode 100644 sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/locationExtensionTypes.ts diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/CHANGELOG.md b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/CHANGELOG.md index 7f01f2bf828a..5f2c46f46a33 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/CHANGELOG.md +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/CHANGELOG.md @@ -1,18 +1,8 @@ # Release History + +## 5.0.0 (2022-03-10) -## 5.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 5.0.0-beta.1 (2022-01-17) - -The package of @azure/arm-kubernetesconfiguration is using our next generation design principles since version 5.0.0-beta.1, which contains breaking changes. +The package of @azure/arm-kubernetesconfiguration is using our next generation design principles since version 5.0.0, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md index 8da8fc396a7a..7701b81ace29 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md @@ -6,7 +6,7 @@ KubernetesConfiguration Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-kubernetesconfiguration) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/_meta.json b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/_meta.json index 472837b09e4b..3e0f48c353af 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/_meta.json +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/_meta.json @@ -1,7 +1,8 @@ { - "commit": "dc439efcfc15448824877603f66fc1578d1c71c5", + "commit": "791255f0c5dd775015cd51f3e642549190fb3803", "readme": "specification/kubernetesconfiguration/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1", + "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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.1.1", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/api-extractor.json b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/api-extractor.json index 92eb2f2e14c3..a8b1c2fbae4b 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/api-extractor.json +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-kubernetesconfiguration.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json index a52daa2561af..314bd30accdc 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SourceControlConfigurationClient.", - "version": "5.0.0-beta.2", + "version": "5.0.0", "engines": { "node": ">=12.0.0" }, @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/review/arm-kubernetesconfiguration.api.md b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/review/arm-kubernetesconfiguration.api.md index 8e3595095215..c3fa1413646e 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/review/arm-kubernetesconfiguration.api.md +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/review/arm-kubernetesconfiguration.api.md @@ -10,6 +10,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; +// @public +export type AKSIdentityType = "SystemAssigned" | "UserAssigned"; + // @public export interface BucketDefinition { accessKey?: string; @@ -32,46 +35,6 @@ export interface BucketPatchDefinition { url?: string; } -// @public -export interface ClusterExtensionType { - get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionTypeName: string, options?: ClusterExtensionTypeGetOptionalParams): Promise; -} - -// @public -export interface ClusterExtensionTypeGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ClusterExtensionTypeGetResponse = ExtensionType; - -// @public -export interface ClusterExtensionTypes { - list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: ClusterExtensionTypesListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ClusterExtensionTypesListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ClusterExtensionTypesListNextResponse = ExtensionTypeList; - -// @public -export interface ClusterExtensionTypesListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ClusterExtensionTypesListResponse = ExtensionTypeList; - -// @public -export type ClusterScopeSettings = ProxyResource & { - allowMultipleInstances?: boolean; - defaultReleaseNamespace?: string; -}; - -// @public -export type ClusterTypes = "connectedClusters" | "managedClusters"; - // @public export type ComplianceStateType = string; @@ -86,17 +49,6 @@ export interface ComplianceStatus { // @public export type CreatedByType = string; -// @public -export interface DependsOnDefinition { - kustomizationName?: string; -} - -// @public -export type Enum0 = string; - -// @public -export type Enum1 = string; - // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -132,6 +84,7 @@ export type Extension = ProxyResource & { configurationProtectedSettings?: { [propertyName: string]: string; }; + readonly installedVersion?: string; readonly provisioningState?: ProvisioningState; statuses?: ExtensionStatus[]; readonly errorInfo?: ErrorDetail; @@ -146,19 +99,19 @@ export type Extension = ProxyResource & { export interface ExtensionPropertiesAksAssignedIdentity { readonly principalId?: string; readonly tenantId?: string; - type?: "SystemAssigned"; + type?: AKSIdentityType; } // @public export interface Extensions { - beginCreate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise, ExtensionsCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise, ExtensionsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise; - get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams): Promise; - list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: ExtensionsListOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise, ExtensionsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise, ExtensionsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise; + get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams): Promise; + list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: ExtensionsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -222,58 +175,12 @@ export interface ExtensionsUpdateOptionalParams extends coreClient.OperationOpti // @public export type ExtensionsUpdateResponse = Extension; -// @public -export interface ExtensionType { - readonly clusterTypes?: ClusterTypes; - readonly releaseTrains?: string[]; - readonly supportedScopes?: SupportedScopes; - readonly systemData?: SystemData; -} - -// @public -export interface ExtensionTypeList { - nextLink?: string; - value?: ExtensionType[]; -} - -// @public -export interface ExtensionTypeVersions { - list(location: string, extensionTypeName: string, options?: ExtensionTypeVersionsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ExtensionTypeVersionsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ExtensionTypeVersionsListNextResponse = ExtensionVersionList; - -// @public -export interface ExtensionTypeVersionsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ExtensionTypeVersionsListResponse = ExtensionVersionList; - -// @public -export interface ExtensionVersionList { - nextLink?: string; - readonly systemData?: SystemData; - versions?: ExtensionVersionListVersionsItem[]; -} - -// @public (undocumented) -export interface ExtensionVersionListVersionsItem { - releaseTrain?: string; - versions?: string[]; -} - // @public export type FluxComplianceState = string; // @public export interface FluxConfigOperationStatus { - get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, operationId: string, options?: FluxConfigOperationStatusGetOptionalParams): Promise; + get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, operationId: string, options?: FluxConfigOperationStatusGetOptionalParams): Promise; } // @public @@ -300,8 +207,9 @@ export type FluxConfiguration = ProxyResource & { }; readonly statuses?: (ObjectStatusDefinition | null)[]; readonly repositoryPublicKey?: string; - readonly lastSourceUpdatedCommitId?: string; - readonly lastSourceUpdatedAt?: Date; + readonly sourceSyncedCommitId?: string; + readonly sourceUpdatedAt?: Date; + readonly statusUpdatedAt?: Date; readonly complianceState?: FluxComplianceState; readonly provisioningState?: ProvisioningState; readonly errorMessage?: string; @@ -309,7 +217,7 @@ export type FluxConfiguration = ProxyResource & { // @public export interface FluxConfigurationPatch { - bucket?: BucketDefinition; + bucket?: BucketPatchDefinition; configurationProtectedSettings?: { [propertyName: string]: string; }; @@ -323,14 +231,14 @@ export interface FluxConfigurationPatch { // @public export interface FluxConfigurations { - beginCreateOrUpdate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise, FluxConfigurationsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise, FluxConfigurationsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise; - get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsGetOptionalParams): Promise; - list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: FluxConfigurationsListOptionalParams): PagedAsyncIterableIterator; + beginCreateOrUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise, FluxConfigurationsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise, FluxConfigurationsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise; + get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsGetOptionalParams): Promise; + list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: FluxConfigurationsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -415,7 +323,7 @@ export interface HelmOperatorProperties { chartVersion?: string; } -// @public (undocumented) +// @public export interface HelmReleasePropertiesDefinition { failureCount?: number; helmChartRef?: ObjectReferenceDefinition; @@ -457,22 +365,6 @@ export enum KnownCreatedByType { User = "User" } -// @public -export enum KnownEnum0 { - // (undocumented) - MicrosoftContainerService = "Microsoft.ContainerService", - // (undocumented) - MicrosoftKubernetes = "Microsoft.Kubernetes" -} - -// @public -export enum KnownEnum1 { - // (undocumented) - ConnectedClusters = "connectedClusters", - // (undocumented) - ManagedClusters = "managedClusters" -} - // @public export enum KnownFluxComplianceState { // (undocumented) @@ -579,8 +471,9 @@ export enum KnownSourceKindType { // @public export interface KustomizationDefinition { - dependsOn?: DependsOnDefinition[]; + dependsOn?: string[]; force?: boolean; + readonly name?: string; path?: string; prune?: boolean; retryIntervalInSeconds?: number; @@ -590,7 +483,7 @@ export interface KustomizationDefinition { // @public export interface KustomizationPatchDefinition { - dependsOn?: DependsOnDefinition[]; + dependsOn?: string[]; force?: boolean; path?: string; prune?: boolean; @@ -605,25 +498,6 @@ export type KustomizationValidationType = string; // @public export type LevelType = string; -// @public -export interface LocationExtensionTypes { - list(location: string, options?: LocationExtensionTypesListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface LocationExtensionTypesListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LocationExtensionTypesListNextResponse = ExtensionTypeList; - -// @public -export interface LocationExtensionTypesListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LocationExtensionTypesListResponse = ExtensionTypeList; - // @public export type MessageLevelType = string; @@ -674,8 +548,8 @@ export type OperationsListResponse = ResourceProviderOperationList; // @public export interface OperationStatus { - get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, operationId: string, options?: OperationStatusGetOptionalParams): Promise; - list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: OperationStatusListOptionalParams): PagedAsyncIterableIterator; + get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, operationId: string, options?: OperationStatusGetOptionalParams): Promise; + list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: OperationStatusListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -828,20 +702,12 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) - clusterExtensionType: ClusterExtensionType; - // (undocumented) - clusterExtensionTypes: ClusterExtensionTypes; - // (undocumented) extensions: Extensions; // (undocumented) - extensionTypeVersions: ExtensionTypeVersions; - // (undocumented) fluxConfigOperationStatus: FluxConfigOperationStatus; // (undocumented) fluxConfigurations: FluxConfigurations; // (undocumented) - locationExtensionTypes: LocationExtensionTypes; - // (undocumented) operations: Operations; // (undocumented) operationStatus: OperationStatus; @@ -866,11 +732,11 @@ export interface SourceControlConfigurationList { // @public export interface SourceControlConfigurations { - beginDelete(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: SourceControlConfiguration, options?: SourceControlConfigurationsCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsGetOptionalParams): Promise; - list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: SourceControlConfigurationsListOptionalParams): PagedAsyncIterableIterator; + beginDelete(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: SourceControlConfiguration, options?: SourceControlConfigurationsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsGetOptionalParams): Promise; + list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: SourceControlConfigurationsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -910,12 +776,6 @@ export type SourceControlConfigurationsListResponse = SourceControlConfiguration // @public export type SourceKindType = string; -// @public -export interface SupportedScopes { - clusterScopeSettings?: ClusterScopeSettings; - defaultScope?: string; -} - // @public export interface SystemData { createdAt?: Date; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts index d945e46e155d..3c68a46ada40 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts @@ -8,77 +8,38 @@ import * as coreClient from "@azure/core-client"; -/** Represents an Extension Type. */ -export interface ExtensionType { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * Extension release train: preview or stable - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly releaseTrains?: string[]; - /** - * Cluster types - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clusterTypes?: ClusterTypes; - /** - * Extension scopes - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly supportedScopes?: SupportedScopes; -} - -/** Extension scopes */ -export interface SupportedScopes { - /** Default extension scopes: cluster or namespace */ - defaultScope?: string; - /** Scope settings */ - clusterScopeSettings?: ClusterScopeSettings; +/** Scope of the extension. It can be either Cluster or Namespace; but not both. */ +export interface Scope { + /** Specifies that the scope of the extension is Cluster */ + cluster?: ScopeCluster; + /** Specifies that the scope of the extension is Namespace */ + namespace?: ScopeNamespace; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; +/** Specifies that the scope of the extension is Cluster */ +export interface ScopeCluster { + /** Namespace where the extension Release must be placed, for a Cluster scoped extension. If this namespace does not exist, it will be created */ + releaseNamespace?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; +/** Specifies that the scope of the extension is Namespace */ +export interface ScopeNamespace { + /** Namespace where the extension will be created for an Namespace scoped extension. If this namespace does not exist, it will be created */ + targetNamespace?: string; } -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; +/** Status from the extension. */ +export interface ExtensionStatus { + /** Status code provided by the Extension */ + code?: string; + /** Short description of status of the extension. */ + displayStatus?: string; + /** Level of the status. */ + level?: LevelType; + /** Detailed message of the status from the Extension. */ + message?: string; + /** DateLiteral (per ISO8601) noting the time of installation status. */ + time?: string; } /** The error detail. */ @@ -124,68 +85,6 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** List Extension Types */ -export interface ExtensionTypeList { - /** The list of Extension Types */ - value?: ExtensionType[]; - /** The link to fetch the next page of Extension Types */ - nextLink?: string; -} - -/** List versions for an Extension */ -export interface ExtensionVersionList { - /** Versions available for this Extension Type */ - versions?: ExtensionVersionListVersionsItem[]; - /** The link to fetch the next page of Extension Types */ - nextLink?: string; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -export interface ExtensionVersionListVersionsItem { - /** The release train for this Extension Type */ - releaseTrain?: string; - /** Versions available for this Extension Type and release train */ - versions?: string[]; -} - -/** Scope of the extension. It can be either Cluster or Namespace; but not both. */ -export interface Scope { - /** Specifies that the scope of the extension is Cluster */ - cluster?: ScopeCluster; - /** Specifies that the scope of the extension is Namespace */ - namespace?: ScopeNamespace; -} - -/** Specifies that the scope of the extension is Cluster */ -export interface ScopeCluster { - /** Namespace where the extension Release must be placed, for a Cluster scoped extension. If this namespace does not exist, it will be created */ - releaseNamespace?: string; -} - -/** Specifies that the scope of the extension is Namespace */ -export interface ScopeNamespace { - /** Namespace where the extension will be created for an Namespace scoped extension. If this namespace does not exist, it will be created */ - targetNamespace?: string; -} - -/** Status from the extension. */ -export interface ExtensionStatus { - /** Status code provided by the Extension */ - code?: string; - /** Short description of status of the extension. */ - displayStatus?: string; - /** Level of the status. */ - level?: LevelType; - /** Detailed message of the status from the Extension. */ - message?: string; - /** DateLiteral (per ISO8601) noting the time of installation status. */ - time?: string; -} - /** Identity of the Extension resource in an AKS cluster */ export interface ExtensionPropertiesAksAssignedIdentity { /** @@ -199,7 +98,7 @@ export interface ExtensionPropertiesAksAssignedIdentity { */ readonly tenantId?: string; /** The identity type. */ - type?: "SystemAssigned"; + type?: AKSIdentityType; } /** Identity for the resource. */ @@ -218,6 +117,47 @@ export interface Identity { type?: "SystemAssigned"; } +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + /** The Extension Patch Request object. */ export interface PatchExtension { /** Flag to note if this extension participates in auto upgrade of minor version, or not. */ @@ -315,10 +255,15 @@ export interface BucketDefinition { /** The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster. */ export interface KustomizationDefinition { + /** + * Name of the Kustomization, matching the key in the Kustomizations object map. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; /** The path in the source reference to reconcile on the cluster. */ path?: string; /** Specifies other Kustomizations that this Kustomization depends on. This Kustomization will not reconcile until all dependencies have completed their reconciliation. */ - dependsOn?: DependsOnDefinition[]; + dependsOn?: string[]; /** The maximum time to attempt to reconcile the Kustomization on the cluster. */ timeoutInSeconds?: number; /** The interval at which to re-reconcile the Kustomization on the cluster. */ @@ -331,12 +276,6 @@ export interface KustomizationDefinition { force?: boolean; } -/** Specify which kustomizations must succeed reconciliation on the cluster prior to reconciling this kustomization */ -export interface DependsOnDefinition { - /** Name of the kustomization to claim dependency on */ - kustomizationName?: string; -} - /** Statuses of objects deployed by the user-specified kustomizations from the git repository. */ export interface ObjectStatusDefinition { /** Name of the applied object */ @@ -377,6 +316,7 @@ export interface ObjectStatusConditionDefinition { type?: string; } +/** Properties for HelmRelease objects */ export interface HelmReleasePropertiesDefinition { /** The revision number of the last released object change */ lastRevisionApplied?: number; @@ -399,7 +339,7 @@ export interface FluxConfigurationPatch { /** Parameters to reconcile to the GitRepository source kind type. */ gitRepository?: GitRepositoryPatchDefinition; /** Parameters to reconcile to the Bucket source kind type. */ - bucket?: BucketDefinition; + bucket?: BucketPatchDefinition; /** Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster. */ kustomizations?: { [propertyName: string]: KustomizationPatchDefinition | null; @@ -428,12 +368,30 @@ export interface GitRepositoryPatchDefinition { localAuthRef?: string; } +/** Parameters to reconcile to the GitRepository source kind type. */ +export interface BucketPatchDefinition { + /** The URL to sync for the flux configuration S3 bucket. */ + url?: string; + /** The bucket name to sync from the url endpoint for the flux configuration. */ + bucketName?: string; + /** Specify whether to use insecure communication when puling data from the S3 bucket. */ + insecure?: boolean; + /** The maximum time to attempt to reconcile the cluster git repository source with the remote. */ + timeoutInSeconds?: number; + /** The interval at which to re-reconcile the cluster git repository source with the remote. */ + syncIntervalInSeconds?: number; + /** Plaintext access key used to securely access the S3 bucket */ + accessKey?: string; + /** Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets. */ + localAuthRef?: string; +} + /** The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster. */ export interface KustomizationPatchDefinition { /** The path in the source reference to reconcile on the cluster. */ path?: string; /** Specifies other Kustomizations that this Kustomization depends on. This Kustomization will not reconcile until all dependencies have completed their reconciliation. */ - dependsOn?: DependsOnDefinition[]; + dependsOn?: string[]; /** The maximum time to attempt to reconcile the Kustomization on the cluster. */ timeoutInSeconds?: number; /** The interval at which to re-reconcile the Kustomization on the cluster. */ @@ -552,35 +510,9 @@ export interface ResourceProviderOperationDisplay { description?: string; } -/** Parameters to reconcile to the GitRepository source kind type. */ -export interface BucketPatchDefinition { - /** The URL to sync for the flux configuration S3 bucket. */ - url?: string; - /** The bucket name to sync from the url endpoint for the flux configuration. */ - bucketName?: string; - /** Specify whether to use insecure communication when puling data from the S3 bucket. */ - insecure?: boolean; - /** The maximum time to attempt to reconcile the cluster git repository source with the remote. */ - timeoutInSeconds?: number; - /** The interval at which to re-reconcile the cluster git repository source with the remote. */ - syncIntervalInSeconds?: number; - /** Plaintext access key used to securely access the S3 bucket */ - accessKey?: string; - /** Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets. */ - localAuthRef?: string; -} - /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export type ProxyResource = Resource & {}; -/** Extension scope settings */ -export type ClusterScopeSettings = ProxyResource & { - /** Describes if multiple instances of the extension are allowed */ - allowMultipleInstances?: boolean; - /** Default extension release namespace */ - defaultReleaseNamespace?: string; -}; - /** The Extension object. */ export type Extension = ProxyResource & { /** Identity of the Extension resource */ @@ -596,7 +528,7 @@ export type Extension = ProxyResource & { autoUpgradeMinorVersion?: boolean; /** ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'. */ releaseTrain?: string; - /** Version of the extension for this extension, if it is 'pinned' to a specific version. autoUpgradeMinorVersion must be 'false'. */ + /** User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be 'false'. */ version?: string; /** Scope at which the extension is installed. */ scope?: Scope; @@ -604,6 +536,11 @@ export type Extension = ProxyResource & { configurationSettings?: { [propertyName: string]: string }; /** Configuration settings that are sensitive, as name-value pairs for configuring this extension. */ configurationProtectedSettings?: { [propertyName: string]: string }; + /** + * Installed version of the extension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly installedVersion?: string; /** * Status of installation of this extension. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -664,15 +601,20 @@ export type FluxConfiguration = ProxyResource & { */ readonly repositoryPublicKey?: string; /** - * Branch and SHA of the last source commit synced with the cluster. + * Branch and/or SHA of the source commit synced with the cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceSyncedCommitId?: string; + /** + * Datetime the fluxConfiguration synced its source on the cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastSourceUpdatedCommitId?: string; + readonly sourceUpdatedAt?: Date; /** - * Datetime the fluxConfiguration last synced its source on the cluster. + * Datetime the fluxConfiguration synced its status on the cluster with Azure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastSourceUpdatedAt?: Date; + readonly statusUpdatedAt?: Date; /** * Combined status of the Flux Kubernetes resources created by the fluxConfiguration or created by the managed objects. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -734,58 +676,6 @@ export type SourceControlConfiguration = ProxyResource & { readonly complianceStatus?: ComplianceStatus; }; -/** Known values of {@link Enum0} that the service accepts. */ -export enum KnownEnum0 { - MicrosoftContainerService = "Microsoft.ContainerService", - MicrosoftKubernetes = "Microsoft.Kubernetes" -} - -/** - * Defines values for Enum0. \ - * {@link KnownEnum0} can be used interchangeably with Enum0, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Microsoft.ContainerService** \ - * **Microsoft.Kubernetes** - */ -export type Enum0 = string; - -/** Known values of {@link Enum1} that the service accepts. */ -export enum KnownEnum1 { - ManagedClusters = "managedClusters", - ConnectedClusters = "connectedClusters" -} - -/** - * Defines values for Enum1. \ - * {@link KnownEnum1} can be used interchangeably with Enum1, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **managedClusters** \ - * **connectedClusters** - */ -export type Enum1 = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - User = "User", - Application = "Application", - ManagedIdentity = "ManagedIdentity", - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { Succeeded = "Succeeded", @@ -828,6 +718,26 @@ export enum KnownLevelType { */ export type LevelType = string; +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + /** Known values of {@link ScopeType} that the service accepts. */ export enum KnownScopeType { Cluster = "cluster", @@ -991,57 +901,8 @@ export enum KnownKustomizationValidationType { * **server** */ export type KustomizationValidationType = string; -/** Defines values for ClusterTypes. */ -export type ClusterTypes = "connectedClusters" | "managedClusters"; - -/** Optional parameters. */ -export interface ClusterExtensionTypeGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ClusterExtensionTypeGetResponse = ExtensionType; - -/** Optional parameters. */ -export interface ClusterExtensionTypesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ClusterExtensionTypesListResponse = ExtensionTypeList; - -/** Optional parameters. */ -export interface ClusterExtensionTypesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ClusterExtensionTypesListNextResponse = ExtensionTypeList; - -/** Optional parameters. */ -export interface ExtensionTypeVersionsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ExtensionTypeVersionsListResponse = ExtensionVersionList; - -/** Optional parameters. */ -export interface ExtensionTypeVersionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ExtensionTypeVersionsListNextResponse = ExtensionVersionList; - -/** Optional parameters. */ -export interface LocationExtensionTypesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type LocationExtensionTypesListResponse = ExtensionTypeList; - -/** Optional parameters. */ -export interface LocationExtensionTypesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type LocationExtensionTypesListNextResponse = ExtensionTypeList; +/** Defines values for AKSIdentityType. */ +export type AKSIdentityType = "SystemAssigned" | "UserAssigned"; /** Optional parameters. */ export interface ExtensionsCreateOptionalParams diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts index e6c709c12f90..e3e49d8796b4 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts @@ -8,93 +8,51 @@ import * as coreClient from "@azure/core-client"; -export const ExtensionType: coreClient.CompositeMapper = { +export const Scope: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtensionType", + className: "Scope", modelProperties: { - systemData: { - serializedName: "systemData", + cluster: { + serializedName: "cluster", type: { name: "Composite", - className: "SystemData" - } - }, - releaseTrains: { - serializedName: "properties.releaseTrains", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clusterTypes: { - serializedName: "properties.clusterTypes", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["connectedClusters", "managedClusters"] + className: "ScopeCluster" } }, - supportedScopes: { - serializedName: "properties.supportedScopes", + namespace: { + serializedName: "namespace", type: { name: "Composite", - className: "SupportedScopes" + className: "ScopeNamespace" } } } } }; -export const SupportedScopes: coreClient.CompositeMapper = { +export const ScopeCluster: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedScopes", + className: "ScopeCluster", modelProperties: { - defaultScope: { - serializedName: "defaultScope", + releaseNamespace: { + serializedName: "releaseNamespace", type: { name: "String" } - }, - clusterScopeSettings: { - serializedName: "clusterScopeSettings", - type: { - name: "Composite", - className: "ClusterScopeSettings" - } } } } }; -export const Resource: coreClient.CompositeMapper = { +export const ScopeNamespace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "ScopeNamespace", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, + targetNamespace: { + serializedName: "targetNamespace", type: { name: "String" } @@ -103,61 +61,40 @@ export const Resource: coreClient.CompositeMapper = { } }; -export const SystemData: coreClient.CompositeMapper = { +export const ExtensionStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "ExtensionStatus", modelProperties: { - createdBy: { - serializedName: "createdBy", + code: { + serializedName: "code", type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + displayStatus: { + serializedName: "displayStatus", type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + level: { + defaultValue: "Information", + serializedName: "level", type: { name: "String" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + message: { + serializedName: "message", type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", + time: { + serializedName: "time", type: { - name: "Composite", - className: "ErrorDetail" + name: "String" } } } @@ -244,123 +181,59 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { } }; -export const ExtensionTypeList: coreClient.CompositeMapper = { +export const ExtensionPropertiesAksAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtensionTypeList", + className: "ExtensionPropertiesAksAssignedIdentity", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtensionType" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ExtensionVersionList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtensionVersionList", - modelProperties: { - versions: { - serializedName: "versions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtensionVersionListVersionsItem" - } - } - } }, - nextLink: { - serializedName: "nextLink", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "String" } }, - systemData: { - serializedName: "systemData", + type: { + serializedName: "type", type: { - name: "Composite", - className: "SystemData" + name: "Enum", + allowedValues: ["SystemAssigned", "UserAssigned"] } } } } }; -export const ExtensionVersionListVersionsItem: coreClient.CompositeMapper = { +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtensionVersionListVersionsItem", + className: "Identity", modelProperties: { - releaseTrain: { - serializedName: "releaseTrain", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - versions: { - serializedName: "versions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const Scope: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Scope", - modelProperties: { - cluster: { - serializedName: "cluster", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Composite", - className: "ScopeCluster" + name: "String" } }, - namespace: { - serializedName: "namespace", - type: { - name: "Composite", - className: "ScopeNamespace" - } - } - } - } -}; - -export const ScopeCluster: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScopeCluster", - modelProperties: { - releaseNamespace: { - serializedName: "releaseNamespace", + type: { + defaultValue: "SystemAssigned", + isConstant: true, + serializedName: "type", type: { name: "String" } @@ -369,84 +242,73 @@ export const ScopeCluster: coreClient.CompositeMapper = { } }; -export const ScopeNamespace: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScopeNamespace", + className: "SystemData", modelProperties: { - targetNamespace: { - serializedName: "targetNamespace", + createdBy: { + serializedName: "createdBy", type: { name: "String" } - } - } - } -}; - -export const ExtensionStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtensionStatus", - modelProperties: { - code: { - serializedName: "code", + }, + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - displayStatus: { - serializedName: "displayStatus", + createdAt: { + serializedName: "createdAt", type: { - name: "String" + name: "DateTime" } }, - level: { - defaultValue: "Information", - serializedName: "level", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - message: { - serializedName: "message", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - time: { - serializedName: "time", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "String" + name: "DateTime" } } } } }; -export const ExtensionPropertiesAksAssignedIdentity: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtensionPropertiesAksAssignedIdentity", + className: "Resource", modelProperties: { - principalId: { - serializedName: "principalId", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, type: { - defaultValue: "SystemAssigned", - isConstant: true, serializedName: "type", + readOnly: true, type: { name: "String" } @@ -455,31 +317,16 @@ export const ExtensionPropertiesAksAssignedIdentity: coreClient.CompositeMapper } }; -export const Identity: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Identity", + className: "ErrorResponse", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String" - } - }, - type: { - defaultValue: "SystemAssigned", - isConstant: true, - serializedName: "type", + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorDetail" } } } @@ -507,6 +354,7 @@ export const PatchExtension: coreClient.CompositeMapper = { }, version: { serializedName: "properties.version", + nullable: true, type: { name: "String" } @@ -770,6 +618,13 @@ export const KustomizationDefinition: coreClient.CompositeMapper = { name: "Composite", className: "KustomizationDefinition", modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, path: { defaultValue: "", serializedName: "path", @@ -784,8 +639,7 @@ export const KustomizationDefinition: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "Composite", - className: "DependsOnDefinition" + name: "String" } } } @@ -831,21 +685,6 @@ export const KustomizationDefinition: coreClient.CompositeMapper = { } }; -export const DependsOnDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DependsOnDefinition", - modelProperties: { - kustomizationName: { - serializedName: "kustomizationName", - type: { - name: "String" - } - } - } - } -}; - export const ObjectStatusDefinition: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1041,7 +880,7 @@ export const FluxConfigurationPatch: coreClient.CompositeMapper = { serializedName: "properties.bucket", type: { name: "Composite", - className: "BucketDefinition" + className: "BucketPatchDefinition" } }, kustomizations: { @@ -1134,6 +973,64 @@ export const GitRepositoryPatchDefinition: coreClient.CompositeMapper = { } }; +export const BucketPatchDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BucketPatchDefinition", + modelProperties: { + url: { + serializedName: "url", + nullable: true, + type: { + name: "String" + } + }, + bucketName: { + serializedName: "bucketName", + nullable: true, + type: { + name: "String" + } + }, + insecure: { + serializedName: "insecure", + nullable: true, + type: { + name: "Boolean" + } + }, + timeoutInSeconds: { + serializedName: "timeoutInSeconds", + nullable: true, + type: { + name: "Number" + } + }, + syncIntervalInSeconds: { + serializedName: "syncIntervalInSeconds", + nullable: true, + type: { + name: "Number" + } + }, + accessKey: { + serializedName: "accessKey", + nullable: true, + type: { + name: "String" + } + }, + localAuthRef: { + serializedName: "localAuthRef", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + export const KustomizationPatchDefinition: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1153,8 +1050,7 @@ export const KustomizationPatchDefinition: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "Composite", - className: "DependsOnDefinition" + name: "String" } } } @@ -1437,64 +1333,6 @@ export const ResourceProviderOperationDisplay: coreClient.CompositeMapper = { } }; -export const BucketPatchDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BucketPatchDefinition", - modelProperties: { - url: { - serializedName: "url", - nullable: true, - type: { - name: "String" - } - }, - bucketName: { - serializedName: "bucketName", - nullable: true, - type: { - name: "String" - } - }, - insecure: { - serializedName: "insecure", - nullable: true, - type: { - name: "Boolean" - } - }, - timeoutInSeconds: { - serializedName: "timeoutInSeconds", - nullable: true, - type: { - name: "Number" - } - }, - syncIntervalInSeconds: { - serializedName: "syncIntervalInSeconds", - nullable: true, - type: { - name: "Number" - } - }, - accessKey: { - serializedName: "accessKey", - nullable: true, - type: { - name: "String" - } - }, - localAuthRef: { - serializedName: "localAuthRef", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1505,28 +1343,6 @@ export const ProxyResource: coreClient.CompositeMapper = { } }; -export const ClusterScopeSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterScopeSettings", - modelProperties: { - ...ProxyResource.type.modelProperties, - allowMultipleInstances: { - serializedName: "properties.allowMultipleInstances", - type: { - name: "Boolean" - } - }, - defaultReleaseNamespace: { - serializedName: "properties.defaultReleaseNamespace", - type: { - name: "String" - } - } - } - } -}; - export const Extension: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1569,6 +1385,7 @@ export const Extension: coreClient.CompositeMapper = { }, version: { serializedName: "properties.version", + nullable: true, type: { name: "String" } @@ -1596,6 +1413,14 @@ export const Extension: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, + installedVersion: { + serializedName: "properties.installedVersion", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -1745,16 +1570,24 @@ export const FluxConfiguration: coreClient.CompositeMapper = { name: "String" } }, - lastSourceUpdatedCommitId: { - serializedName: "properties.lastSourceUpdatedCommitId", + sourceSyncedCommitId: { + serializedName: "properties.sourceSyncedCommitId", readOnly: true, nullable: true, type: { name: "String" } }, - lastSourceUpdatedAt: { - serializedName: "properties.lastSourceUpdatedAt", + sourceUpdatedAt: { + serializedName: "properties.sourceUpdatedAt", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + statusUpdatedAt: { + serializedName: "properties.statusUpdatedAt", readOnly: true, nullable: true, type: { diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts index c03373657eba..80b2a09fb1e3 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts @@ -19,6 +19,23 @@ import { SourceControlConfiguration as SourceControlConfigurationMapper } from "../models/mappers"; +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const extension: OperationParameter = { + parameterPath: "extension", + mapper: ExtensionMapper +}; + export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -105,45 +122,10 @@ export const clusterName: OperationURLParameter = { } }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-01-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const extensionTypeName: OperationURLParameter = { - parameterPath: "extensionTypeName", - mapper: { - serializedName: "extensionTypeName", - required: true, - type: { - name: "String" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const location: OperationURLParameter = { - parameterPath: "location", +export const extensionName: OperationURLParameter = { + parameterPath: "extensionName", mapper: { - serializedName: "location", + serializedName: "extensionName", required: true, type: { name: "String" @@ -151,28 +133,12 @@ export const location: OperationURLParameter = { } }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - defaultValue: "application/json", + defaultValue: "2022-03-01", isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const extension: OperationParameter = { - parameterPath: "extension", - mapper: ExtensionMapper -}; - -export const extensionName: OperationURLParameter = { - parameterPath: "extensionName", - mapper: { - serializedName: "extensionName", - required: true, + serializedName: "api-version", type: { name: "String" } @@ -194,6 +160,18 @@ export const patchExtension: OperationParameter = { mapper: PatchExtensionMapper }; +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + export const operationId: OperationURLParameter = { parameterPath: "operationId", mapper: { diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionType.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionType.ts deleted file mode 100644 index d1843130d05e..000000000000 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionType.ts +++ /dev/null @@ -1,92 +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 { ClusterExtensionType } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient"; -import { - Enum0, - Enum1, - ClusterExtensionTypeGetOptionalParams, - ClusterExtensionTypeGetResponse -} from "../models"; - -/** Class containing ClusterExtensionType operations. */ -export class ClusterExtensionTypeImpl implements ClusterExtensionType { - private readonly client: SourceControlConfigurationClient; - - /** - * Initialize a new instance of the class ClusterExtensionType class. - * @param client Reference to the service client - */ - constructor(client: SourceControlConfigurationClient) { - this.client = client; - } - - /** - * Get Extension Type details - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). - * @param clusterName The name of the kubernetes cluster. - * @param extensionTypeName Extension type name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, - clusterName: string, - extensionTypeName: string, - options?: ClusterExtensionTypeGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterRp, - clusterResourceName, - clusterName, - extensionTypeName, - options - }, - getOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensionTypes/{extensionTypeName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExtensionType - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterRp, - Parameters.clusterResourceName, - Parameters.clusterName, - Parameters.extensionTypeName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionTypes.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionTypes.ts deleted file mode 100644 index 66e3ceec26ad..000000000000 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionTypes.ts +++ /dev/null @@ -1,240 +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 { ClusterExtensionTypes } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient"; -import { - ExtensionType, - Enum0, - Enum1, - ClusterExtensionTypesListNextOptionalParams, - ClusterExtensionTypesListOptionalParams, - ClusterExtensionTypesListResponse, - ClusterExtensionTypesListNextResponse -} from "../models"; - -/// -/** Class containing ClusterExtensionTypes operations. */ -export class ClusterExtensionTypesImpl implements ClusterExtensionTypes { - private readonly client: SourceControlConfigurationClient; - - /** - * Initialize a new instance of the class ClusterExtensionTypes class. - * @param client Reference to the service client - */ - constructor(client: SourceControlConfigurationClient) { - this.client = client; - } - - /** - * Get Extension Types - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). - * @param clusterName The name of the kubernetes cluster. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, - clusterName: string, - options?: ClusterExtensionTypesListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - clusterRp, - clusterResourceName, - clusterName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage( - resourceGroupName, - clusterRp, - clusterResourceName, - clusterName, - options - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, - clusterName: string, - options?: ClusterExtensionTypesListOptionalParams - ): AsyncIterableIterator { - let result = await this._list( - resourceGroupName, - clusterRp, - clusterResourceName, - clusterName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - clusterRp, - clusterResourceName, - clusterName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, - clusterName: string, - options?: ClusterExtensionTypesListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - clusterRp, - clusterResourceName, - clusterName, - options - )) { - yield* page; - } - } - - /** - * Get Extension Types - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). - * @param clusterName The name of the kubernetes cluster. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, - clusterName: string, - options?: ClusterExtensionTypesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterRp, - clusterResourceName, - clusterName, - options - }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). - * @param clusterName The name of the kubernetes cluster. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, - clusterName: string, - nextLink: string, - options?: ClusterExtensionTypesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterRp, - clusterResourceName, - clusterName, - nextLink, - options - }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensionTypes", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExtensionTypeList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterRp, - Parameters.clusterResourceName, - Parameters.clusterName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExtensionTypeList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterRp, - Parameters.clusterResourceName, - Parameters.clusterName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensionTypeVersions.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensionTypeVersions.ts deleted file mode 100644 index b72d6709d912..000000000000 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensionTypeVersions.ts +++ /dev/null @@ -1,177 +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 { ExtensionTypeVersions } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient"; -import { - ExtensionVersionListVersionsItem, - ExtensionTypeVersionsListNextOptionalParams, - ExtensionTypeVersionsListOptionalParams, - ExtensionTypeVersionsListResponse, - ExtensionTypeVersionsListNextResponse -} from "../models"; - -/// -/** Class containing ExtensionTypeVersions operations. */ -export class ExtensionTypeVersionsImpl implements ExtensionTypeVersions { - private readonly client: SourceControlConfigurationClient; - - /** - * Initialize a new instance of the class ExtensionTypeVersions class. - * @param client Reference to the service client - */ - constructor(client: SourceControlConfigurationClient) { - this.client = client; - } - - /** - * List available versions for an Extension Type - * @param location extension location - * @param extensionTypeName Extension type name - * @param options The options parameters. - */ - public list( - location: string, - extensionTypeName: string, - options?: ExtensionTypeVersionsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(location, extensionTypeName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(location, extensionTypeName, options); - } - }; - } - - private async *listPagingPage( - location: string, - extensionTypeName: string, - options?: ExtensionTypeVersionsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(location, extensionTypeName, options); - yield result.versions || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - location, - extensionTypeName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.versions || []; - } - } - - private async *listPagingAll( - location: string, - extensionTypeName: string, - options?: ExtensionTypeVersionsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - location, - extensionTypeName, - options - )) { - yield* page; - } - } - - /** - * List available versions for an Extension Type - * @param location extension location - * @param extensionTypeName Extension type name - * @param options The options parameters. - */ - private _list( - location: string, - extensionTypeName: string, - options?: ExtensionTypeVersionsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, extensionTypeName, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param location extension location - * @param extensionTypeName Extension type name - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - location: string, - extensionTypeName: string, - nextLink: string, - options?: ExtensionTypeVersionsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, extensionTypeName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KubernetesConfiguration/locations/{location}/extensionTypes/{extensionTypeName}/versions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExtensionVersionList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.extensionTypeName, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExtensionVersionList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.extensionTypeName, - Parameters.nextLink, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensions.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensions.ts index 39491891768e..0ec1f9bef102 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensions.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensions.ts @@ -16,8 +16,6 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { Extension, - Enum0, - Enum1, ExtensionsListNextOptionalParams, ExtensionsListOptionalParams, ExtensionsCreateOptionalParams, @@ -48,17 +46,17 @@ export class ExtensionsImpl implements Extensions { /** * List all Extensions in the cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ public list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: ExtensionsListOptionalParams ): PagedAsyncIterableIterator { @@ -90,8 +88,8 @@ export class ExtensionsImpl implements Extensions { private async *listPagingPage( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: ExtensionsListOptionalParams ): AsyncIterableIterator { @@ -120,8 +118,8 @@ export class ExtensionsImpl implements Extensions { private async *listPagingAll( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: ExtensionsListOptionalParams ): AsyncIterableIterator { @@ -139,10 +137,10 @@ export class ExtensionsImpl implements Extensions { /** * Create a new Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param extension Properties necessary to Create an Extension. @@ -150,8 +148,8 @@ export class ExtensionsImpl implements Extensions { */ async beginCreate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, @@ -224,10 +222,10 @@ export class ExtensionsImpl implements Extensions { /** * Create a new Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param extension Properties necessary to Create an Extension. @@ -235,8 +233,8 @@ export class ExtensionsImpl implements Extensions { */ async beginCreateAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, @@ -257,18 +255,18 @@ export class ExtensionsImpl implements Extensions { /** * Gets Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param options The options parameters. */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams @@ -290,18 +288,18 @@ export class ExtensionsImpl implements Extensions { * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the * cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams @@ -368,18 +366,18 @@ export class ExtensionsImpl implements Extensions { * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the * cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams @@ -398,10 +396,10 @@ export class ExtensionsImpl implements Extensions { /** * Patch an existing Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param patchExtension Properties to Patch in an existing Extension. @@ -409,8 +407,8 @@ export class ExtensionsImpl implements Extensions { */ async beginUpdate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, @@ -483,10 +481,10 @@ export class ExtensionsImpl implements Extensions { /** * Patch an existing Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param patchExtension Properties to Patch in an existing Extension. @@ -494,8 +492,8 @@ export class ExtensionsImpl implements Extensions { */ async beginUpdateAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, @@ -516,17 +514,17 @@ export class ExtensionsImpl implements Extensions { /** * List all Extensions in the cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ private _list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: ExtensionsListOptionalParams ): Promise { @@ -545,18 +543,18 @@ export class ExtensionsImpl implements Extensions { /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, nextLink: string, options?: ExtensionsListNextOptionalParams @@ -609,7 +607,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.extensionName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -696,7 +694,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.extensionName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/fluxConfigOperationStatus.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/fluxConfigOperationStatus.ts index 571ae2b96738..d6bba330a22c 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/fluxConfigOperationStatus.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/fluxConfigOperationStatus.ts @@ -12,8 +12,6 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient"; import { - Enum0, - Enum1, FluxConfigOperationStatusGetOptionalParams, FluxConfigOperationStatusGetResponse } from "../models"; @@ -34,10 +32,10 @@ export class FluxConfigOperationStatusImpl /** * Get Async Operation status * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param operationId operation Id @@ -45,8 +43,8 @@ export class FluxConfigOperationStatusImpl */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, operationId: string, diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/fluxConfigurations.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/fluxConfigurations.ts index 628ca03ea1e8..02d440e0ef84 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/fluxConfigurations.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/fluxConfigurations.ts @@ -16,8 +16,6 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { FluxConfiguration, - Enum0, - Enum1, FluxConfigurationsListNextOptionalParams, FluxConfigurationsListOptionalParams, FluxConfigurationsGetOptionalParams, @@ -48,17 +46,17 @@ export class FluxConfigurationsImpl implements FluxConfigurations { /** * List all Flux Configurations. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ public list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: FluxConfigurationsListOptionalParams ): PagedAsyncIterableIterator { @@ -90,8 +88,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations { private async *listPagingPage( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: FluxConfigurationsListOptionalParams ): AsyncIterableIterator { @@ -120,8 +118,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations { private async *listPagingAll( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: FluxConfigurationsListOptionalParams ): AsyncIterableIterator { @@ -139,18 +137,18 @@ export class FluxConfigurationsImpl implements FluxConfigurations { /** * Gets details of the Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param options The options parameters. */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsGetOptionalParams @@ -171,10 +169,10 @@ export class FluxConfigurationsImpl implements FluxConfigurations { /** * Create a new Kubernetes Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param fluxConfiguration Properties necessary to Create a FluxConfiguration. @@ -182,8 +180,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations { */ async beginCreateOrUpdate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, @@ -256,10 +254,10 @@ export class FluxConfigurationsImpl implements FluxConfigurations { /** * Create a new Kubernetes Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param fluxConfiguration Properties necessary to Create a FluxConfiguration. @@ -267,8 +265,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations { */ async beginCreateOrUpdateAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, @@ -289,10 +287,10 @@ export class FluxConfigurationsImpl implements FluxConfigurations { /** * Update an existing Kubernetes Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration. @@ -300,8 +298,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations { */ async beginUpdate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, @@ -374,10 +372,10 @@ export class FluxConfigurationsImpl implements FluxConfigurations { /** * Update an existing Kubernetes Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration. @@ -385,8 +383,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations { */ async beginUpdateAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, @@ -408,18 +406,18 @@ export class FluxConfigurationsImpl implements FluxConfigurations { * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from * the source repo. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams @@ -486,18 +484,18 @@ export class FluxConfigurationsImpl implements FluxConfigurations { * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from * the source repo. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams @@ -516,17 +514,17 @@ export class FluxConfigurationsImpl implements FluxConfigurations { /** * List all Flux Configurations. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ private _list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: FluxConfigurationsListOptionalParams ): Promise { @@ -545,18 +543,18 @@ export class FluxConfigurationsImpl implements FluxConfigurations { /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, nextLink: string, options?: FluxConfigurationsListNextOptionalParams @@ -634,7 +632,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.fluxConfigurationName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -670,7 +668,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.fluxConfigurationName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/index.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/index.ts index 40edc4a76577..7275e5b03369 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/index.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/index.ts @@ -6,10 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./clusterExtensionType"; -export * from "./clusterExtensionTypes"; -export * from "./extensionTypeVersions"; -export * from "./locationExtensionTypes"; export * from "./extensions"; export * from "./operationStatus"; export * from "./fluxConfigurations"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/locationExtensionTypes.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/locationExtensionTypes.ts deleted file mode 100644 index 24de5afbd4c5..000000000000 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/locationExtensionTypes.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 { LocationExtensionTypes } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient"; -import { - ExtensionType, - LocationExtensionTypesListNextOptionalParams, - LocationExtensionTypesListOptionalParams, - LocationExtensionTypesListResponse, - LocationExtensionTypesListNextResponse -} from "../models"; - -/// -/** Class containing LocationExtensionTypes operations. */ -export class LocationExtensionTypesImpl implements LocationExtensionTypes { - private readonly client: SourceControlConfigurationClient; - - /** - * Initialize a new instance of the class LocationExtensionTypes class. - * @param client Reference to the service client - */ - constructor(client: SourceControlConfigurationClient) { - this.client = client; - } - - /** - * List all Extension Types - * @param location extension location - * @param options The options parameters. - */ - public list( - location: string, - options?: LocationExtensionTypesListOptionalParams - ): 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?: LocationExtensionTypesListOptionalParams - ): 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?: LocationExtensionTypesListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(location, options)) { - yield* page; - } - } - - /** - * List all Extension Types - * @param location extension location - * @param options The options parameters. - */ - private _list( - location: string, - options?: LocationExtensionTypesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param location extension location - * @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?: LocationExtensionTypesListNextOptionalParams - ): 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.KubernetesConfiguration/locations/{location}/extensionTypes", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExtensionTypeList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - 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.ExtensionTypeList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/operationStatus.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/operationStatus.ts index f87b17c0e819..a0200eae4009 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/operationStatus.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/operationStatus.ts @@ -14,8 +14,6 @@ import * as Parameters from "../models/parameters"; import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient"; import { OperationStatusResult, - Enum0, - Enum1, OperationStatusListNextOptionalParams, OperationStatusListOptionalParams, OperationStatusGetOptionalParams, @@ -40,17 +38,17 @@ export class OperationStatusImpl implements OperationStatus { /** * List Async Operations, currently in progress, in a cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ public list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: OperationStatusListOptionalParams ): PagedAsyncIterableIterator { @@ -82,8 +80,8 @@ export class OperationStatusImpl implements OperationStatus { private async *listPagingPage( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: OperationStatusListOptionalParams ): AsyncIterableIterator { @@ -112,8 +110,8 @@ export class OperationStatusImpl implements OperationStatus { private async *listPagingAll( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: OperationStatusListOptionalParams ): AsyncIterableIterator { @@ -131,10 +129,10 @@ export class OperationStatusImpl implements OperationStatus { /** * Get Async Operation status * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param operationId operation Id @@ -142,8 +140,8 @@ export class OperationStatusImpl implements OperationStatus { */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, operationId: string, @@ -166,17 +164,17 @@ export class OperationStatusImpl implements OperationStatus { /** * List Async Operations, currently in progress, in a cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ private _list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: OperationStatusListOptionalParams ): Promise { @@ -195,18 +193,18 @@ export class OperationStatusImpl implements OperationStatus { /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, nextLink: string, options?: OperationStatusListNextOptionalParams diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/sourceControlConfigurations.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/sourceControlConfigurations.ts index d8076e715d22..22eb3829ffce 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/sourceControlConfigurations.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/sourceControlConfigurations.ts @@ -16,8 +16,6 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { SourceControlConfiguration, - Enum0, - Enum1, SourceControlConfigurationsListNextOptionalParams, SourceControlConfigurationsListOptionalParams, SourceControlConfigurationsGetOptionalParams, @@ -46,17 +44,17 @@ export class SourceControlConfigurationsImpl /** * List all Source Control Configurations. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ public list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: SourceControlConfigurationsListOptionalParams ): PagedAsyncIterableIterator { @@ -88,8 +86,8 @@ export class SourceControlConfigurationsImpl private async *listPagingPage( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: SourceControlConfigurationsListOptionalParams ): AsyncIterableIterator { @@ -118,8 +116,8 @@ export class SourceControlConfigurationsImpl private async *listPagingAll( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: SourceControlConfigurationsListOptionalParams ): AsyncIterableIterator { @@ -137,18 +135,18 @@ export class SourceControlConfigurationsImpl /** * Gets details of the Source Control Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param options The options parameters. */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsGetOptionalParams @@ -169,10 +167,10 @@ export class SourceControlConfigurationsImpl /** * Create a new Kubernetes Source Control Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration. @@ -180,8 +178,8 @@ export class SourceControlConfigurationsImpl */ createOrUpdate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: SourceControlConfiguration, @@ -205,18 +203,18 @@ export class SourceControlConfigurationsImpl * This will delete the YAML file used to set up the Source control configuration, thus stopping future * sync from the source repo. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams @@ -282,18 +280,18 @@ export class SourceControlConfigurationsImpl * This will delete the YAML file used to set up the Source control configuration, thus stopping future * sync from the source repo. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams @@ -312,17 +310,17 @@ export class SourceControlConfigurationsImpl /** * List all Source Control Configurations. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ private _list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: SourceControlConfigurationsListOptionalParams ): Promise { @@ -341,18 +339,18 @@ export class SourceControlConfigurationsImpl /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, nextLink: string, options?: SourceControlConfigurationsListNextOptionalParams @@ -424,7 +422,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.sourceControlConfigurationName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/clusterExtensionType.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/clusterExtensionType.ts deleted file mode 100644 index 126fccf0ff18..000000000000 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/clusterExtensionType.ts +++ /dev/null @@ -1,37 +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 { - Enum0, - Enum1, - ClusterExtensionTypeGetOptionalParams, - ClusterExtensionTypeGetResponse -} from "../models"; - -/** Interface representing a ClusterExtensionType. */ -export interface ClusterExtensionType { - /** - * Get Extension Type details - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). - * @param clusterName The name of the kubernetes cluster. - * @param extensionTypeName Extension type name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, - clusterName: string, - extensionTypeName: string, - options?: ClusterExtensionTypeGetOptionalParams - ): Promise; -} diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/clusterExtensionTypes.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/clusterExtensionTypes.ts deleted file mode 100644 index 8f63b8b35093..000000000000 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/clusterExtensionTypes.ts +++ /dev/null @@ -1,37 +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 { - ExtensionType, - Enum0, - Enum1, - ClusterExtensionTypesListOptionalParams -} from "../models"; - -/// -/** Interface representing a ClusterExtensionTypes. */ -export interface ClusterExtensionTypes { - /** - * Get Extension Types - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). - * @param clusterName The name of the kubernetes cluster. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, - clusterName: string, - options?: ClusterExtensionTypesListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/extensionTypeVersions.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/extensionTypeVersions.ts deleted file mode 100644 index 491ddcc61479..000000000000 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/extensionTypeVersions.ts +++ /dev/null @@ -1,29 +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 { - ExtensionVersionListVersionsItem, - ExtensionTypeVersionsListOptionalParams -} from "../models"; - -/// -/** Interface representing a ExtensionTypeVersions. */ -export interface ExtensionTypeVersions { - /** - * List available versions for an Extension Type - * @param location extension location - * @param extensionTypeName Extension type name - * @param options The options parameters. - */ - list( - location: string, - extensionTypeName: string, - options?: ExtensionTypeVersionsListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/extensions.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/extensions.ts index 97d12e058f7d..6bf11bb9bf8f 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/extensions.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/extensions.ts @@ -10,8 +10,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { Extension, - Enum0, - Enum1, ExtensionsListOptionalParams, ExtensionsCreateOptionalParams, ExtensionsCreateResponse, @@ -29,27 +27,27 @@ export interface Extensions { /** * List all Extensions in the cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: ExtensionsListOptionalParams ): PagedAsyncIterableIterator; /** * Create a new Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param extension Properties necessary to Create an Extension. @@ -57,8 +55,8 @@ export interface Extensions { */ beginCreate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, @@ -72,10 +70,10 @@ export interface Extensions { /** * Create a new Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param extension Properties necessary to Create an Extension. @@ -83,8 +81,8 @@ export interface Extensions { */ beginCreateAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, @@ -93,18 +91,18 @@ export interface Extensions { /** * Gets Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param options The options parameters. */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams @@ -113,18 +111,18 @@ export interface Extensions { * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the * cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param options The options parameters. */ beginDelete( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams @@ -133,18 +131,18 @@ export interface Extensions { * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the * cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams @@ -152,10 +150,10 @@ export interface Extensions { /** * Patch an existing Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param patchExtension Properties to Patch in an existing Extension. @@ -163,8 +161,8 @@ export interface Extensions { */ beginUpdate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, @@ -178,10 +176,10 @@ export interface Extensions { /** * Patch an existing Kubernetes Cluster Extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param patchExtension Properties to Patch in an existing Extension. @@ -189,8 +187,8 @@ export interface Extensions { */ beginUpdateAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/fluxConfigOperationStatus.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/fluxConfigOperationStatus.ts index 9d3fc3b32944..e64d4b16a9cf 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/fluxConfigOperationStatus.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/fluxConfigOperationStatus.ts @@ -7,8 +7,6 @@ */ import { - Enum0, - Enum1, FluxConfigOperationStatusGetOptionalParams, FluxConfigOperationStatusGetResponse } from "../models"; @@ -18,10 +16,10 @@ export interface FluxConfigOperationStatus { /** * Get Async Operation status * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param operationId operation Id @@ -29,8 +27,8 @@ export interface FluxConfigOperationStatus { */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, operationId: string, diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/fluxConfigurations.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/fluxConfigurations.ts index 8e43d5bae8d7..f387d891b40c 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/fluxConfigurations.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/fluxConfigurations.ts @@ -10,8 +10,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { FluxConfiguration, - Enum0, - Enum1, FluxConfigurationsListOptionalParams, FluxConfigurationsGetOptionalParams, FluxConfigurationsGetResponse, @@ -29,35 +27,35 @@ export interface FluxConfigurations { /** * List all Flux Configurations. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: FluxConfigurationsListOptionalParams ): PagedAsyncIterableIterator; /** * Gets details of the Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param options The options parameters. */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsGetOptionalParams @@ -65,10 +63,10 @@ export interface FluxConfigurations { /** * Create a new Kubernetes Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param fluxConfiguration Properties necessary to Create a FluxConfiguration. @@ -76,8 +74,8 @@ export interface FluxConfigurations { */ beginCreateOrUpdate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, @@ -91,10 +89,10 @@ export interface FluxConfigurations { /** * Create a new Kubernetes Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param fluxConfiguration Properties necessary to Create a FluxConfiguration. @@ -102,8 +100,8 @@ export interface FluxConfigurations { */ beginCreateOrUpdateAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, @@ -112,10 +110,10 @@ export interface FluxConfigurations { /** * Update an existing Kubernetes Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration. @@ -123,8 +121,8 @@ export interface FluxConfigurations { */ beginUpdate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, @@ -138,10 +136,10 @@ export interface FluxConfigurations { /** * Update an existing Kubernetes Flux Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration. @@ -149,8 +147,8 @@ export interface FluxConfigurations { */ beginUpdateAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, @@ -160,18 +158,18 @@ export interface FluxConfigurations { * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from * the source repo. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param options The options parameters. */ beginDelete( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams @@ -180,18 +178,18 @@ export interface FluxConfigurations { * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from * the source repo. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param fluxConfigurationName Name of the Flux Configuration. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/index.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/index.ts index 40edc4a76577..7275e5b03369 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/index.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/index.ts @@ -6,10 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./clusterExtensionType"; -export * from "./clusterExtensionTypes"; -export * from "./extensionTypeVersions"; -export * from "./locationExtensionTypes"; export * from "./extensions"; export * from "./operationStatus"; export * from "./fluxConfigurations"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/locationExtensionTypes.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/locationExtensionTypes.ts deleted file mode 100644 index eb9b41481210..000000000000 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/locationExtensionTypes.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 { - ExtensionType, - LocationExtensionTypesListOptionalParams -} from "../models"; - -/// -/** Interface representing a LocationExtensionTypes. */ -export interface LocationExtensionTypes { - /** - * List all Extension Types - * @param location extension location - * @param options The options parameters. - */ - list( - location: string, - options?: LocationExtensionTypesListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/operationStatus.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/operationStatus.ts index 3f8600fe5599..9538ccbe0e0d 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/operationStatus.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/operationStatus.ts @@ -9,8 +9,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { OperationStatusResult, - Enum0, - Enum1, OperationStatusListOptionalParams, OperationStatusGetOptionalParams, OperationStatusGetResponse @@ -22,27 +20,27 @@ export interface OperationStatus { /** * List Async Operations, currently in progress, in a cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: OperationStatusListOptionalParams ): PagedAsyncIterableIterator; /** * Get Async Operation status * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param extensionName Name of the Extension. * @param operationId operation Id @@ -50,8 +48,8 @@ export interface OperationStatus { */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, extensionName: string, operationId: string, diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/sourceControlConfigurations.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/sourceControlConfigurations.ts index 77c6f57ea40b..e395c2c2c785 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/sourceControlConfigurations.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operationsInterfaces/sourceControlConfigurations.ts @@ -10,8 +10,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { SourceControlConfiguration, - Enum0, - Enum1, SourceControlConfigurationsListOptionalParams, SourceControlConfigurationsGetOptionalParams, SourceControlConfigurationsGetResponse, @@ -26,35 +24,35 @@ export interface SourceControlConfigurations { /** * List all Source Control Configurations. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param options The options parameters. */ list( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, options?: SourceControlConfigurationsListOptionalParams ): PagedAsyncIterableIterator; /** * Gets details of the Source Control Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param options The options parameters. */ get( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsGetOptionalParams @@ -62,10 +60,10 @@ export interface SourceControlConfigurations { /** * Create a new Kubernetes Source Control Configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration. @@ -73,8 +71,8 @@ export interface SourceControlConfigurations { */ createOrUpdate( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: SourceControlConfiguration, @@ -84,18 +82,18 @@ export interface SourceControlConfigurations { * This will delete the YAML file used to set up the Source control configuration, thus stopping future * sync from the source repo. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param options The options parameters. */ beginDelete( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams @@ -104,18 +102,18 @@ export interface SourceControlConfigurations { * This will delete the YAML file used to set up the Source control configuration, thus stopping future * sync from the source repo. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or - * Microsoft.Kubernetes (for OnPrem K8S clusters). - * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS - * clusters) or connectedClusters (for OnPrem K8S clusters). + * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, + * Microsoft.HybridContainerService. + * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, + * connectedClusters, provisionedClusters. * @param clusterName The name of the kubernetes cluster. * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, - clusterRp: Enum0, - clusterResourceName: Enum1, + clusterRp: string, + clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts index 342d01fc9014..548e1fbee5ac 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts @@ -9,10 +9,6 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; import { - ClusterExtensionTypeImpl, - ClusterExtensionTypesImpl, - ExtensionTypeVersionsImpl, - LocationExtensionTypesImpl, ExtensionsImpl, OperationStatusImpl, FluxConfigurationsImpl, @@ -21,10 +17,6 @@ import { OperationsImpl } from "./operations"; import { - ClusterExtensionType, - ClusterExtensionTypes, - ExtensionTypeVersions, - LocationExtensionTypes, Extensions, OperationStatus, FluxConfigurations, @@ -66,7 +58,7 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-kubernetesconfiguration/5.0.0-beta.1`; + const packageDetails = `azsdk-js-arm-kubernetesconfiguration/5.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -89,11 +81,7 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-01-01-preview"; - this.clusterExtensionType = new ClusterExtensionTypeImpl(this); - this.clusterExtensionTypes = new ClusterExtensionTypesImpl(this); - this.extensionTypeVersions = new ExtensionTypeVersionsImpl(this); - this.locationExtensionTypes = new LocationExtensionTypesImpl(this); + this.apiVersion = options.apiVersion || "2022-03-01"; this.extensions = new ExtensionsImpl(this); this.operationStatus = new OperationStatusImpl(this); this.fluxConfigurations = new FluxConfigurationsImpl(this); @@ -104,10 +92,6 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient { this.operations = new OperationsImpl(this); } - clusterExtensionType: ClusterExtensionType; - clusterExtensionTypes: ClusterExtensionTypes; - extensionTypeVersions: ExtensionTypeVersions; - locationExtensionTypes: LocationExtensionTypes; extensions: Extensions; operationStatus: OperationStatus; fluxConfigurations: FluxConfigurations; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/tsconfig.json b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/tsconfig.json +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/kubernetesconfiguration/ci.mgmt.yml b/sdk/kubernetesconfiguration/ci.mgmt.yml index b5a3a8198dca..a42586ee5898 100644 --- a/sdk/kubernetesconfiguration/ci.mgmt.yml +++ b/sdk/kubernetesconfiguration/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -10,6 +10,7 @@ trigger: include: - sdk/kubernetesconfiguration/ci.mgmt.yml - sdk/kubernetesconfiguration/arm-kubernetesconfiguration/ + - sdk/kubernetesconfiguration/arm-kubernetesconfiguration pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/kubernetesconfiguration/ci.mgmt.yml - sdk/kubernetesconfiguration/arm-kubernetesconfiguration/ - + - sdk/kubernetesconfiguration/arm-kubernetesconfiguration extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: kubernetesconfiguration Artifacts: - name: azure-arm-kubernetesconfiguration - safeName: azurearmkubernetesconfiguration \ No newline at end of file + safeName: azurearmkubernetesconfiguration