diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 7adce4d66edc..63e4a6325edb 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4123,7 +4123,7 @@ packages: dependencies: semver: 7.3.7 shelljs: 0.8.5 - typescript: 4.9.0-dev.20221027 + typescript: 5.0.0-dev.20221101 dev: false /downlevel-dts/0.8.0: @@ -9196,8 +9196,8 @@ packages: hasBin: true dev: false - /typescript/4.9.0-dev.20221027: - resolution: {integrity: sha512-CIkuppg1AjXN2O+njxomS97BHqIMH+NqXXD661ViFdVvesx9YLsNjiATUlfIkeVtVyG0PGpzES8lmzIhoSaniA==} + /typescript/5.0.0-dev.20221101: + resolution: {integrity: sha512-toPkTrYmviWyzo9Vj/fEG0iWkVTo6wB5HHaZu8eV070sOA8yON5vKKsROt0AyeveDhSfzPX8MXEc5oiNeDCGeA==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -10325,7 +10325,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-fKOda1/Pg3Y3PDVROg4wzHR4RAbGwWOjUP1DuYWdan/zJ/I1Zmx71XxHLWrb3ekRKeG1IMieYlFk2cymIjYUig==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-nDE3NgLXXXxuvcwjzKjg0a710dW3gDK4ZPj0eDANOaSKnrtzGOd0A1g3AAMvG6J62ob9qOMxmSAGhJbKDe5baQ==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -10372,7 +10372,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -12989,7 +12988,7 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-JvDwhvt9AGN3dr/HcjRL5wWDMnQBjPsZzHjRwhqZ53rXNXI9syyZSrf/8rmmrX05wZGrc+cCwHHRyk8PAlLQng==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-WwF07CTmi4DimF60T5Q1b3Y1o7X+qtNTWAIi50Y+G0Vj+BdI5DTh/7cb4EXR5Iov353ANAiZsR5hyiXqzGmN4g==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: @@ -13001,6 +13000,8 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.79.0 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.0 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.0 + '@types/chai': 4.3.1 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 @@ -13008,11 +13009,10 @@ packages: rollup: 2.79.0 rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.0 tslib: 2.4.0 - typescript: 4.2.4 + typescript: 4.6.4 uglify-js: 3.16.3 transitivePeerDependencies: - '@types/node' - - encoding - supports-color dev: false diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/CHANGELOG.md b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/CHANGELOG.md index baaa3ee5d6b2..f78433497289 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/CHANGELOG.md +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/CHANGELOG.md @@ -1,15 +1,24 @@ # Release History - -## 5.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 5.1.0 (2022-11-01) + +**Features** + + - Added Interface AzureBlobDefinition + - Added Interface AzureBlobPatchDefinition + - Added Interface Extension + - Added Interface FluxConfiguration + - Added Interface ManagedIdentityDefinition + - Added Interface ManagedIdentityPatchDefinition + - Added Interface Plan + - Added Interface ProxyResource + - Added Interface ServicePrincipalDefinition + - Added Interface ServicePrincipalPatchDefinition + - Added Interface SourceControlConfiguration + - Interface FluxConfigurationPatch has a new optional parameter azureBlob + - Enum KnownSourceKindType has a new value AzureBlob + + ## 5.0.0 (2022-04-06) The package of @azure/arm-kubernetesconfiguration is using our next generation design principles since version 5.0.0, which contains breaking changes. diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/_meta.json b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/_meta.json index 88f6f7278747..9e5d28594b6a 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/_meta.json +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/_meta.json @@ -1,8 +1,8 @@ { - "commit": "e4b7e666673125aeb2b130f2a196e6aa7f8aca72", + "commit": "35eea6c85f34b32eb79a4dd53c1018295ff226ef", "readme": "specification/kubernetesconfiguration/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\kubernetesconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.18.20220329.1 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.2", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.1", - "use": "@autorest/typescript@6.0.0-alpha.18.20220329.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.4", + "use": "@autorest/typescript@6.0.0-rc.2" } \ No newline at end of file diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json index 329e34a77583..ba6f48c92eb0 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.1", + "version": "5.1.0", "engines": { "node": ">=14.0.0" }, @@ -11,9 +11,9 @@ "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.0.0", + "@azure/core-client": "^1.5.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.1.0", + "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" }, "keywords": [ @@ -36,13 +36,17 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.2.0", + "typescript": "~4.6.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration", "repository": { @@ -93,9 +97,8 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -106,13 +109,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration?view=azure-node-preview" - } -} + "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 c3fa1413646e..d5fffe2ae2c5 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/review/arm-kubernetesconfiguration.api.md +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/review/arm-kubernetesconfiguration.api.md @@ -13,6 +13,32 @@ import { PollOperationState } from '@azure/core-lro'; // @public export type AKSIdentityType = "SystemAssigned" | "UserAssigned"; +// @public +export interface AzureBlobDefinition { + accountKey?: string; + containerName?: string; + localAuthRef?: string; + managedIdentity?: ManagedIdentityDefinition; + sasToken?: string; + servicePrincipal?: ServicePrincipalDefinition; + syncIntervalInSeconds?: number; + timeoutInSeconds?: number; + url?: string; +} + +// @public +export interface AzureBlobPatchDefinition { + accountKey?: string; + containerName?: string; + localAuthRef?: string; + managedIdentity?: ManagedIdentityPatchDefinition; + sasToken?: string; + servicePrincipal?: ServicePrincipalPatchDefinition; + syncIntervalInSeconds?: number; + timeoutInSeconds?: number; + url?: string; +} + // @public export interface BucketDefinition { accessKey?: string; @@ -70,30 +96,32 @@ export interface ErrorResponse { } // @public -export type Extension = ProxyResource & { - identity?: Identity; - readonly systemData?: SystemData; - extensionType?: string; +export interface Extension extends ProxyResource { + aksAssignedIdentity?: ExtensionPropertiesAksAssignedIdentity; autoUpgradeMinorVersion?: boolean; - releaseTrain?: string; - version?: string; - scope?: Scope; - configurationSettings?: { + configurationProtectedSettings?: { [propertyName: string]: string; }; - configurationProtectedSettings?: { + configurationSettings?: { [propertyName: string]: string; }; - readonly installedVersion?: string; - readonly provisioningState?: ProvisioningState; - statuses?: ExtensionStatus[]; - readonly errorInfo?: ErrorDetail; + readonly currentVersion?: string; readonly customLocationSettings?: { [propertyName: string]: string; }; + readonly errorInfo?: ErrorDetail; + extensionType?: string; + identity?: Identity; + readonly isSystemExtension?: boolean; readonly packageUri?: string; - aksAssignedIdentity?: ExtensionPropertiesAksAssignedIdentity; -}; + plan?: Plan; + readonly provisioningState?: ProvisioningState; + releaseTrain?: string; + scope?: Scope; + statuses?: ExtensionStatus[]; + readonly systemData?: SystemData; + version?: string; +} // @public export interface ExtensionPropertiesAksAssignedIdentity { @@ -191,32 +219,34 @@ export interface FluxConfigOperationStatusGetOptionalParams extends coreClient.O export type FluxConfigOperationStatusGetResponse = OperationStatusResult; // @public -export type FluxConfiguration = ProxyResource & { - readonly systemData?: SystemData; - scope?: ScopeType; - namespace?: string; - sourceKind?: SourceKindType; - suspend?: boolean; - gitRepository?: GitRepositoryDefinition; +export interface FluxConfiguration extends ProxyResource { + azureBlob?: AzureBlobDefinition; bucket?: BucketDefinition; - kustomizations?: { - [propertyName: string]: KustomizationDefinition | null; - }; + readonly complianceState?: FluxComplianceState; configurationProtectedSettings?: { [propertyName: string]: string; }; - readonly statuses?: (ObjectStatusDefinition | null)[]; + readonly errorMessage?: string; + gitRepository?: GitRepositoryDefinition; + kustomizations?: { + [propertyName: string]: KustomizationDefinition | null; + }; + namespace?: string; + readonly provisioningState?: ProvisioningState; readonly repositoryPublicKey?: string; + scope?: ScopeType; + sourceKind?: SourceKindType; readonly sourceSyncedCommitId?: string; readonly sourceUpdatedAt?: Date; + readonly statuses?: (ObjectStatusDefinition | null)[]; readonly statusUpdatedAt?: Date; - readonly complianceState?: FluxComplianceState; - readonly provisioningState?: ProvisioningState; - readonly errorMessage?: string; -}; + suspend?: boolean; + readonly systemData?: SystemData; +} // @public export interface FluxConfigurationPatch { + azureBlob?: AzureBlobPatchDefinition; bucket?: BucketPatchDefinition; configurationProtectedSettings?: { [propertyName: string]: string; @@ -341,131 +371,91 @@ export interface Identity { // @public export enum KnownComplianceStateType { - // (undocumented) Compliant = "Compliant", - // (undocumented) Failed = "Failed", - // (undocumented) Installed = "Installed", - // (undocumented) Noncompliant = "Noncompliant", - // (undocumented) Pending = "Pending" } // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } // @public export enum KnownFluxComplianceState { - // (undocumented) Compliant = "Compliant", - // (undocumented) NonCompliant = "Non-Compliant", - // (undocumented) Pending = "Pending", - // (undocumented) Suspended = "Suspended", - // (undocumented) Unknown = "Unknown" } // @public export enum KnownKustomizationValidationType { - // (undocumented) Client = "client", - // (undocumented) None = "none", - // (undocumented) Server = "server" } // @public export enum KnownLevelType { - // (undocumented) Error = "Error", - // (undocumented) Information = "Information", - // (undocumented) Warning = "Warning" } // @public export enum KnownMessageLevelType { - // (undocumented) Error = "Error", - // (undocumented) Information = "Information", - // (undocumented) Warning = "Warning" } // @public export enum KnownOperatorScopeType { - // (undocumented) Cluster = "cluster", - // (undocumented) Namespace = "namespace" } // @public export enum KnownOperatorType { - // (undocumented) Flux = "Flux" } // @public export enum KnownProvisioningState { - // (undocumented) Canceled = "Canceled", - // (undocumented) Creating = "Creating", - // (undocumented) Deleting = "Deleting", - // (undocumented) Failed = "Failed", - // (undocumented) Succeeded = "Succeeded", - // (undocumented) Updating = "Updating" } // @public export enum KnownProvisioningStateType { - // (undocumented) Accepted = "Accepted", - // (undocumented) Deleting = "Deleting", - // (undocumented) Failed = "Failed", - // (undocumented) Running = "Running", - // (undocumented) Succeeded = "Succeeded" } // @public export enum KnownScopeType { - // (undocumented) Cluster = "cluster", - // (undocumented) Namespace = "namespace" } // @public export enum KnownSourceKindType { - // (undocumented) + AzureBlob = "AzureBlob", Bucket = "Bucket", - // (undocumented) GitRepository = "GitRepository" } @@ -498,6 +488,16 @@ export type KustomizationValidationType = string; // @public export type LevelType = string; +// @public +export interface ManagedIdentityDefinition { + clientId?: string; +} + +// @public +export interface ManagedIdentityPatchDefinition { + clientId?: string; +} + // @public export type MessageLevelType = string; @@ -609,6 +609,15 @@ export interface PatchExtension { version?: string; } +// @public +export interface Plan { + name: string; + product: string; + promotionCode?: string; + publisher: string; + version?: string; +} + // @public export type ProvisioningState = string; @@ -616,7 +625,8 @@ export type ProvisioningState = string; export type ProvisioningStateType = string; // @public -export type ProxyResource = Resource & {}; +export interface ProxyResource extends Resource { +} // @public export interface RepositoryRefDefinition { @@ -675,24 +685,44 @@ export interface ScopeNamespace { export type ScopeType = string; // @public -export type SourceControlConfiguration = ProxyResource & { - readonly systemData?: SystemData; - repositoryUrl?: string; - operatorNamespace?: string; - operatorInstanceName?: string; - operatorType?: OperatorType; - operatorParams?: string; +export interface ServicePrincipalDefinition { + clientCertificate?: string; + clientCertificatePassword?: string; + clientCertificateSendChain?: boolean; + clientId?: string; + clientSecret?: string; + tenantId?: string; +} + +// @public +export interface ServicePrincipalPatchDefinition { + clientCertificate?: string; + clientCertificatePassword?: string; + clientCertificateSendChain?: boolean; + clientId?: string; + clientSecret?: string; + tenantId?: string; +} + +// @public +export interface SourceControlConfiguration extends ProxyResource { + readonly complianceStatus?: ComplianceStatus; configurationProtectedSettings?: { [propertyName: string]: string; }; - operatorScope?: OperatorScopeType; - readonly repositoryPublicKey?: string; - sshKnownHostsContents?: string; enableHelmOperator?: boolean; helmOperatorProperties?: HelmOperatorProperties; + operatorInstanceName?: string; + operatorNamespace?: string; + operatorParams?: string; + operatorScope?: OperatorScopeType; + operatorType?: OperatorType; readonly provisioningState?: ProvisioningStateType; - readonly complianceStatus?: ComplianceStatus; -}; + readonly repositoryPublicKey?: string; + repositoryUrl?: string; + sshKnownHostsContents?: string; + readonly systemData?: SystemData; +} // @public (undocumented) export class SourceControlConfigurationClient extends coreClient.ServiceClient { diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts index 3c68a46ada40..0e5802dc3dcb 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts @@ -133,6 +133,20 @@ export interface SystemData { lastModifiedAt?: Date; } +/** Plan for the resource. */ +export interface Plan { + /** A user defined name of the 3rd Party Artifact that is being procured. */ + name: string; + /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */ + publisher: string; + /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */ + product: string; + /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */ + promotionCode?: string; + /** The version of the desired product/artifact. */ + version?: string; +} + /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** @@ -235,7 +249,7 @@ export interface RepositoryRefDefinition { commit?: string; } -/** Parameters to reconcile to the GitRepository source kind type. */ +/** Parameters to reconcile to the Bucket source kind type. */ export interface BucketDefinition { /** The URL to sync for the flux configuration S3 bucket. */ url?: string; @@ -243,9 +257,9 @@ export interface BucketDefinition { 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. */ + /** The maximum time to attempt to reconcile the cluster bucket source with the remote. */ timeoutInSeconds?: number; - /** The interval at which to re-reconcile the cluster git repository source with the remote. */ + /** The interval at which to re-reconcile the cluster bucket source with the remote. */ syncIntervalInSeconds?: number; /** Plaintext access key used to securely access the S3 bucket */ accessKey?: string; @@ -253,6 +267,50 @@ export interface BucketDefinition { localAuthRef?: string; } +/** Parameters to reconcile to the AzureBlob source kind type. */ +export interface AzureBlobDefinition { + /** The URL to sync for the flux configuration Azure Blob storage account. */ + url?: string; + /** The Azure Blob container name to sync from the url endpoint for the flux configuration. */ + containerName?: string; + /** The maximum time to attempt to reconcile the cluster Azure Blob source with the remote. */ + timeoutInSeconds?: number; + /** The interval at which to re-reconcile the cluster Azure Blob source with the remote. */ + syncIntervalInSeconds?: number; + /** Parameters to authenticate using Service Principal. */ + servicePrincipal?: ServicePrincipalDefinition; + /** The account key (shared key) to access the storage account */ + accountKey?: string; + /** The Shared Access token to access the storage container */ + sasToken?: string; + /** Parameters to authenticate using a Managed Identity. */ + managedIdentity?: ManagedIdentityDefinition; + /** 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; +} + +/** Parameters to authenticate using Service Principal. */ +export interface ServicePrincipalDefinition { + /** The client Id for authenticating a Service Principal. */ + clientId?: string; + /** The tenant Id for authenticating a Service Principal */ + tenantId?: string; + /** The client secret for authenticating a Service Principal */ + clientSecret?: string; + /** Base64-encoded certificate used to authenticate a Service Principal */ + clientCertificate?: string; + /** The password for the certificate used to authenticate a Service Principal */ + clientCertificatePassword?: string; + /** Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the Client Certificate */ + clientCertificateSendChain?: boolean; +} + +/** Parameters to authenticate using a Managed Identity. */ +export interface ManagedIdentityDefinition { + /** The client Id for authenticating a Managed Identity. */ + clientId?: string; +} + /** The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster. */ export interface KustomizationDefinition { /** @@ -340,6 +398,8 @@ export interface FluxConfigurationPatch { gitRepository?: GitRepositoryPatchDefinition; /** Parameters to reconcile to the Bucket source kind type. */ bucket?: BucketPatchDefinition; + /** Parameters to reconcile to the AzureBlob source kind type. */ + azureBlob?: AzureBlobPatchDefinition; /** Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster. */ kustomizations?: { [propertyName: string]: KustomizationPatchDefinition | null; @@ -368,7 +428,7 @@ export interface GitRepositoryPatchDefinition { localAuthRef?: string; } -/** Parameters to reconcile to the GitRepository source kind type. */ +/** Parameters to reconcile to the Bucket source kind type. */ export interface BucketPatchDefinition { /** The URL to sync for the flux configuration S3 bucket. */ url?: string; @@ -376,9 +436,9 @@ export interface BucketPatchDefinition { 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. */ + /** The maximum time to attempt to reconcile the cluster bucket source with the remote. */ timeoutInSeconds?: number; - /** The interval at which to re-reconcile the cluster git repository source with the remote. */ + /** The interval at which to re-reconcile the cluster bucket source with the remote. */ syncIntervalInSeconds?: number; /** Plaintext access key used to securely access the S3 bucket */ accessKey?: string; @@ -386,6 +446,50 @@ export interface BucketPatchDefinition { localAuthRef?: string; } +/** Parameters to reconcile to the AzureBlob source kind type. */ +export interface AzureBlobPatchDefinition { + /** The URL to sync for the flux configuration Azure Blob storage account. */ + url?: string; + /** The Azure Blob container name to sync from the url endpoint for the flux configuration. */ + containerName?: string; + /** The maximum time to attempt to reconcile the cluster Azure Blob source with the remote. */ + timeoutInSeconds?: number; + /** The interval at which to re-reconcile the cluster Azure Blob source with the remote. */ + syncIntervalInSeconds?: number; + /** Parameters to authenticate using Service Principal. */ + servicePrincipal?: ServicePrincipalPatchDefinition; + /** The account key (shared key) to access the storage account */ + accountKey?: string; + /** The Shared Access token to access the storage container */ + sasToken?: string; + /** Parameters to authenticate using a Managed Identity. */ + managedIdentity?: ManagedIdentityPatchDefinition; + /** 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; +} + +/** Parameters to authenticate using Service Principal. */ +export interface ServicePrincipalPatchDefinition { + /** The client Id for authenticating a Service Principal. */ + clientId?: string; + /** The tenant Id for authenticating a Service Principal */ + tenantId?: string; + /** The client secret for authenticating a Service Principal */ + clientSecret?: string; + /** Base64-encoded certificate used to authenticate a Service Principal */ + clientCertificate?: string; + /** The password for the certificate used to authenticate a Service Principal */ + clientCertificatePassword?: string; + /** Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the Client Certificate */ + clientCertificateSendChain?: boolean; +} + +/** Parameters to authenticate using a Managed Identity. */ +export interface ManagedIdentityPatchDefinition { + /** The client Id for authenticating a Managed Identity. */ + clientId?: 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. */ @@ -511,10 +615,10 @@ export interface ResourceProviderOperationDisplay { } /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export type ProxyResource = Resource & {}; +export interface ProxyResource extends Resource {} /** The Extension object. */ -export type Extension = ProxyResource & { +export interface Extension extends ProxyResource { /** Identity of the Extension resource */ identity?: Identity; /** @@ -522,6 +626,8 @@ export type Extension = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; + /** The plan information. */ + plan?: Plan; /** Type of the Extension, of which this resource is an instance of. It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher. */ extensionType?: string; /** Flag to note if this extension participates in auto upgrade of minor version, or not. */ @@ -537,10 +643,10 @@ export type Extension = ProxyResource & { /** Configuration settings that are sensitive, as name-value pairs for configuring this extension. */ configurationProtectedSettings?: { [propertyName: string]: string }; /** - * Installed version of the extension. + * Currently installed version of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly installedVersion?: string; + readonly currentVersion?: string; /** * Status of installation of this extension. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -565,10 +671,15 @@ export type Extension = ProxyResource & { readonly packageUri?: string; /** Identity of the Extension resource in an AKS cluster */ aksAssignedIdentity?: ExtensionPropertiesAksAssignedIdentity; -}; + /** + * Flag to note if this extension is a system extension + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isSystemExtension?: boolean; +} /** The Flux Configuration object returned in Get & Put response. */ -export type FluxConfiguration = ProxyResource & { +export interface FluxConfiguration extends ProxyResource { /** * Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources * NOTE: This property will not be serialized. It can only be populated by the server. @@ -586,6 +697,8 @@ export type FluxConfiguration = ProxyResource & { gitRepository?: GitRepositoryDefinition; /** Parameters to reconcile to the Bucket source kind type. */ bucket?: BucketDefinition; + /** Parameters to reconcile to the AzureBlob source kind type. */ + azureBlob?: AzureBlobDefinition; /** Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster. */ kustomizations?: { [propertyName: string]: KustomizationDefinition | null }; /** Key-value pairs of protected configuration settings for the configuration */ @@ -630,10 +743,10 @@ export type FluxConfiguration = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; -}; +} /** The SourceControl Configuration object returned in Get & Put response. */ -export type SourceControlConfiguration = ProxyResource & { +export interface SourceControlConfiguration extends ProxyResource { /** * Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources * NOTE: This property will not be serialized. It can only be populated by the server. @@ -674,15 +787,21 @@ export type SourceControlConfiguration = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly complianceStatus?: ComplianceStatus; -}; +} /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed", + /** Canceled */ Canceled = "Canceled", + /** Creating */ Creating = "Creating", + /** Updating */ Updating = "Updating", + /** Deleting */ Deleting = "Deleting" } @@ -702,8 +821,11 @@ export type ProvisioningState = string; /** Known values of {@link LevelType} that the service accepts. */ export enum KnownLevelType { + /** Error */ Error = "Error", + /** Warning */ Warning = "Warning", + /** Information */ Information = "Information" } @@ -720,9 +842,13 @@ export type LevelType = string; /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { + /** User */ User = "User", + /** Application */ Application = "Application", + /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", + /** Key */ Key = "Key" } @@ -740,7 +866,9 @@ export type CreatedByType = string; /** Known values of {@link ScopeType} that the service accepts. */ export enum KnownScopeType { + /** Cluster */ Cluster = "cluster", + /** Namespace */ Namespace = "namespace" } @@ -756,8 +884,12 @@ export type ScopeType = string; /** Known values of {@link SourceKindType} that the service accepts. */ export enum KnownSourceKindType { + /** GitRepository */ GitRepository = "GitRepository", - Bucket = "Bucket" + /** Bucket */ + Bucket = "Bucket", + /** AzureBlob */ + AzureBlob = "AzureBlob" } /** @@ -766,16 +898,22 @@ export enum KnownSourceKindType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **GitRepository** \ - * **Bucket** + * **Bucket** \ + * **AzureBlob** */ export type SourceKindType = string; /** Known values of {@link FluxComplianceState} that the service accepts. */ export enum KnownFluxComplianceState { + /** Compliant */ Compliant = "Compliant", + /** NonCompliant */ NonCompliant = "Non-Compliant", + /** Pending */ Pending = "Pending", + /** Suspended */ Suspended = "Suspended", + /** Unknown */ Unknown = "Unknown" } @@ -794,6 +932,7 @@ export type FluxComplianceState = string; /** Known values of {@link OperatorType} that the service accepts. */ export enum KnownOperatorType { + /** Flux */ Flux = "Flux" } @@ -808,7 +947,9 @@ export type OperatorType = string; /** Known values of {@link OperatorScopeType} that the service accepts. */ export enum KnownOperatorScopeType { + /** Cluster */ Cluster = "cluster", + /** Namespace */ Namespace = "namespace" } @@ -824,10 +965,15 @@ export type OperatorScopeType = string; /** Known values of {@link ProvisioningStateType} that the service accepts. */ export enum KnownProvisioningStateType { + /** Accepted */ Accepted = "Accepted", + /** Deleting */ Deleting = "Deleting", + /** Running */ Running = "Running", + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed" } @@ -846,10 +992,15 @@ export type ProvisioningStateType = string; /** Known values of {@link ComplianceStateType} that the service accepts. */ export enum KnownComplianceStateType { + /** Pending */ Pending = "Pending", + /** Compliant */ Compliant = "Compliant", + /** Noncompliant */ Noncompliant = "Noncompliant", + /** Installed */ Installed = "Installed", + /** Failed */ Failed = "Failed" } @@ -868,8 +1019,11 @@ export type ComplianceStateType = string; /** Known values of {@link MessageLevelType} that the service accepts. */ export enum KnownMessageLevelType { + /** Error */ Error = "Error", + /** Warning */ Warning = "Warning", + /** Information */ Information = "Information" } @@ -886,8 +1040,11 @@ export type MessageLevelType = string; /** Known values of {@link KustomizationValidationType} that the service accepts. */ export enum KnownKustomizationValidationType { + /** None */ None = "none", + /** Client */ Client = "client", + /** Server */ Server = "server" } diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts index e3e49d8796b4..b43824e71936 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts @@ -287,6 +287,48 @@ export const SystemData: coreClient.CompositeMapper = { } }; +export const Plan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Plan", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + required: true, + type: { + name: "String" + } + }, + product: { + serializedName: "product", + required: true, + type: { + name: "String" + } + }, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -613,6 +655,147 @@ export const BucketDefinition: coreClient.CompositeMapper = { } }; +export const AzureBlobDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureBlobDefinition", + modelProperties: { + url: { + serializedName: "url", + nullable: true, + type: { + name: "String" + } + }, + containerName: { + serializedName: "containerName", + nullable: true, + type: { + name: "String" + } + }, + timeoutInSeconds: { + defaultValue: 600, + serializedName: "timeoutInSeconds", + nullable: true, + type: { + name: "Number" + } + }, + syncIntervalInSeconds: { + defaultValue: 600, + serializedName: "syncIntervalInSeconds", + nullable: true, + type: { + name: "Number" + } + }, + servicePrincipal: { + serializedName: "servicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDefinition" + } + }, + accountKey: { + serializedName: "accountKey", + nullable: true, + type: { + name: "String" + } + }, + sasToken: { + serializedName: "sasToken", + nullable: true, + type: { + name: "String" + } + }, + managedIdentity: { + serializedName: "managedIdentity", + type: { + name: "Composite", + className: "ManagedIdentityDefinition" + } + }, + localAuthRef: { + serializedName: "localAuthRef", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicePrincipalDefinition", + modelProperties: { + clientId: { + serializedName: "clientId", + nullable: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + nullable: true, + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "clientSecret", + nullable: true, + type: { + name: "String" + } + }, + clientCertificate: { + serializedName: "clientCertificate", + nullable: true, + type: { + name: "String" + } + }, + clientCertificatePassword: { + serializedName: "clientCertificatePassword", + nullable: true, + type: { + name: "String" + } + }, + clientCertificateSendChain: { + defaultValue: false, + serializedName: "clientCertificateSendChain", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedIdentityDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedIdentityDefinition", + modelProperties: { + clientId: { + serializedName: "clientId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + export const KustomizationDefinition: coreClient.CompositeMapper = { type: { name: "Composite", @@ -883,6 +1066,13 @@ export const FluxConfigurationPatch: coreClient.CompositeMapper = { className: "BucketPatchDefinition" } }, + azureBlob: { + serializedName: "properties.azureBlob", + type: { + name: "Composite", + className: "AzureBlobPatchDefinition" + } + }, kustomizations: { serializedName: "properties.kustomizations", nullable: true, @@ -1031,6 +1221,144 @@ export const BucketPatchDefinition: coreClient.CompositeMapper = { } }; +export const AzureBlobPatchDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureBlobPatchDefinition", + modelProperties: { + url: { + serializedName: "url", + nullable: true, + type: { + name: "String" + } + }, + containerName: { + serializedName: "containerName", + nullable: true, + type: { + name: "String" + } + }, + timeoutInSeconds: { + serializedName: "timeoutInSeconds", + nullable: true, + type: { + name: "Number" + } + }, + syncIntervalInSeconds: { + serializedName: "syncIntervalInSeconds", + nullable: true, + type: { + name: "Number" + } + }, + servicePrincipal: { + serializedName: "servicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalPatchDefinition" + } + }, + accountKey: { + serializedName: "accountKey", + nullable: true, + type: { + name: "String" + } + }, + sasToken: { + serializedName: "sasToken", + nullable: true, + type: { + name: "String" + } + }, + managedIdentity: { + serializedName: "managedIdentity", + type: { + name: "Composite", + className: "ManagedIdentityPatchDefinition" + } + }, + localAuthRef: { + serializedName: "localAuthRef", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalPatchDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicePrincipalPatchDefinition", + modelProperties: { + clientId: { + serializedName: "clientId", + nullable: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + nullable: true, + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "clientSecret", + nullable: true, + type: { + name: "String" + } + }, + clientCertificate: { + serializedName: "clientCertificate", + nullable: true, + type: { + name: "String" + } + }, + clientCertificatePassword: { + serializedName: "clientCertificatePassword", + nullable: true, + type: { + name: "String" + } + }, + clientCertificateSendChain: { + serializedName: "clientCertificateSendChain", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedIdentityPatchDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedIdentityPatchDefinition", + modelProperties: { + clientId: { + serializedName: "clientId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + export const KustomizationPatchDefinition: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1363,6 +1691,13 @@ export const Extension: coreClient.CompositeMapper = { className: "SystemData" } }, + plan: { + serializedName: "plan", + type: { + name: "Composite", + className: "Plan" + } + }, extensionType: { serializedName: "properties.extensionType", type: { @@ -1413,8 +1748,8 @@ export const Extension: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - installedVersion: { - serializedName: "properties.installedVersion", + currentVersion: { + serializedName: "properties.currentVersion", readOnly: true, nullable: true, type: { @@ -1471,6 +1806,14 @@ export const Extension: coreClient.CompositeMapper = { name: "Composite", className: "ExtensionPropertiesAksAssignedIdentity" } + }, + isSystemExtension: { + defaultValue: false, + serializedName: "properties.isSystemExtension", + readOnly: true, + type: { + name: "Boolean" + } } } } @@ -1530,6 +1873,13 @@ export const FluxConfiguration: coreClient.CompositeMapper = { className: "BucketDefinition" } }, + azureBlob: { + serializedName: "properties.azureBlob", + type: { + name: "Composite", + className: "AzureBlobDefinition" + } + }, kustomizations: { serializedName: "properties.kustomizations", nullable: true, diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts index 80b2a09fb1e3..30bb397bcbf0 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts @@ -136,7 +136,7 @@ export const extensionName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-03-01", + defaultValue: "2022-11-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts index 950e3bd52a49..650fecfb959a 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts @@ -7,6 +7,12 @@ */ import * as coreClient from "@azure/core-client"; +import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { ExtensionsImpl, @@ -58,7 +64,7 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-kubernetesconfiguration/5.0.1`; + const packageDetails = `azsdk-js-arm-kubernetesconfiguration/5.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -77,12 +83,42 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient { options.endpoint ?? options.baseUri ?? "https://management.azure.com" }; super(optionsWithDefaults); + + let bearerTokenAuthenticationPolicyFound: boolean = false; + if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + (pipelinePolicy) => + pipelinePolicy.name === + coreRestPipeline.bearerTokenAuthenticationPolicyName + ); + } + if ( + !options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound + ) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: `${optionsWithDefaults.credentialScopes}`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } // Parameter assignments this.subscriptionId = subscriptionId; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-03-01"; + this.apiVersion = options.apiVersion || "2022-11-01"; this.extensions = new ExtensionsImpl(this); this.operationStatus = new OperationStatusImpl(this); this.fluxConfigurations = new FluxConfigurationsImpl(this); @@ -91,6 +127,35 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient { this ); this.operations = new OperationsImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } extensions: Extensions; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/test/sampleTest.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/test/sampleTest.ts index 7ed89b043e1b..25aeb3ebcc36 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/test/sampleTest.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/test/sampleTest.ts @@ -7,35 +7,30 @@ */ import { - env, - record, - RecorderEnvironmentSetup, - Recorder + Recorder, + RecorderStartOptions, + env } from "@azure-tools/test-recorder"; -import * as assert from "assert"; +import { assert } from "chai"; +import { Context } from "mocha"; -const recorderEnvSetup: RecorderEnvironmentSetup = { - replaceableVariables: { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" - }, - customizationsOnRecordings: [ - (recording: any): any => - recording.replace( - /"access_token":"[^"]*"/g, - `"access_token":"access_token"` - ) - ], - queryParametersToSkip: [] +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; describe("My test", () => { let recorder: Recorder; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); }); afterEach(async function() { diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/tsconfig.json b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/tsconfig.json index 5341a8d13163..3e6ae96443f3 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/tsconfig.json +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-kubernetesconfiguration": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"