import type { IProviderSettings } from '@spinnaker/core' ; import { SETTINGS } from '@spinnaker/core' ; export interface IClassicLaunchAllowlist { region : string ; credentials : string ; } export interface ITencentcloudProviderSettings extends IProviderSettings { defaults : { account ? : string ; region ? : string ; subnetType ? : string ; vpc ? : string ; } ; defaultSecurityGroups ? : string [ ] ; loadBalancers ? : { inferInternalFlagFromSubnet : boolean ; certificateTypes ? : string [ ] ; } ; classicLaunchLockout ? : number ; classicLaunchAllowlist ? : IClassicLaunchAllowlist [ ] ; metrics ? : { customNamespaces ? : string [ ] ; } ; minRootVolumeSize ? : number ; disableSpotPricing ? : boolean ; } export const TencentcloudProviderSettings = ( SETTINGS . providers . tencentcloud as ITencentcloudProviderSettings ) || { defaults : { } } ; if ( TencentcloudProviderSettings ) { TencentcloudProviderSettings . resetToOriginal = SETTINGS . resetProvider ( 'tencentcloud' ) ; }