// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class UpdatePrometheusViewRequestPrometheusInstances extends $dara.Model { /** * @remarks * The instance ID. * * @example * c7ba84651c71e442c8d0653085d862164 */ prometheusInstanceId?: string; /** * @remarks * The region. * * @example * cn-north-2-gov-1 */ regionId?: string; /** * @remarks * The user ID. * * @example * 16727123456789 */ userId?: string; static names(): { [key: string]: string } { return { prometheusInstanceId: 'prometheusInstanceId', regionId: 'regionId', userId: 'userId', }; } static types(): { [key: string]: any } { return { prometheusInstanceId: 'string', regionId: 'string', userId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdatePrometheusViewRequest extends $dara.Model { /** * @remarks * The authentication-free read policy. IP CIDR blocks and VPC IDs are supported. * * @example * { * "SourceIp": [ * "192.168.1.0/24", * "172.168.2.22" * ], * "SourceVpc": [ * "vpc-xx1", * "vpc-xx2" * ] * } * * @deprecated */ authFreeReadPolicy?: string; /** * @remarks * Specifies whether authentication-free read is supported. * * @example * true * * @deprecated */ enableAuthFreeRead?: boolean; /** * @remarks * Specifies whether authToken is supported. * * @example * false */ enableAuthToken?: boolean; /** * @remarks * The list of Prometheus instances. */ prometheusInstances?: UpdatePrometheusViewRequestPrometheusInstances[]; /** * @remarks * The name of the Prometheus view. * * @example * test-prom-view-name */ prometheusViewName?: string; /** * @remarks * The running status. * * @example * Running */ status?: string; /** * @remarks * The workspace to which the instance belongs. * * @example * default-cms-108490012345-cn-heyuan */ workspace?: string; static names(): { [key: string]: string } { return { authFreeReadPolicy: 'authFreeReadPolicy', enableAuthFreeRead: 'enableAuthFreeRead', enableAuthToken: 'enableAuthToken', prometheusInstances: 'prometheusInstances', prometheusViewName: 'prometheusViewName', status: 'status', workspace: 'workspace', }; } static types(): { [key: string]: any } { return { authFreeReadPolicy: 'string', enableAuthFreeRead: 'boolean', enableAuthToken: 'boolean', prometheusInstances: { 'type': 'array', 'itemType': UpdatePrometheusViewRequestPrometheusInstances }, prometheusViewName: 'string', status: 'string', workspace: 'string', }; } validate() { if(Array.isArray(this.prometheusInstances)) { $dara.Model.validateArray(this.prometheusInstances); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }