// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListEnvironmentDashboardsResponseBodyDataDashboards extends $dara.Model { /** * @remarks * The UID of the folder. * * @example * 1374923841627893 */ folderUid?: string; /** * @remarks * The region ID. * * @example * cn-hangzhou */ region?: string; /** * @remarks * The keyword. */ tags?: string[]; /** * @remarks * The title of the Grafana dashboard. * * @example * kafka-instance */ title?: string; /** * @remarks * The unique identifier of the dashboard. * * @example * 1537863211936042 */ uid?: string; /** * @remarks * The complete URL of the dashboard. * * @example * http://xxx */ url?: string; static names(): { [key: string]: string } { return { folderUid: 'FolderUid', region: 'Region', tags: 'Tags', title: 'Title', uid: 'Uid', url: 'Url', }; } static types(): { [key: string]: any } { return { folderUid: 'string', region: 'string', tags: { 'type': 'array', 'itemType': 'string' }, title: 'string', uid: 'string', url: 'string', }; } validate() { if(Array.isArray(this.tags)) { $dara.Model.validateArray(this.tags); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEnvironmentDashboardsResponseBodyData extends $dara.Model { /** * @remarks * The dashboards. */ dashboards?: ListEnvironmentDashboardsResponseBodyDataDashboards[]; /** * @remarks * The total number of entries returned. * * @example * 1 */ total?: number; static names(): { [key: string]: string } { return { dashboards: 'Dashboards', total: 'Total', }; } static types(): { [key: string]: any } { return { dashboards: { 'type': 'array', 'itemType': ListEnvironmentDashboardsResponseBodyDataDashboards }, total: 'number', }; } validate() { if(Array.isArray(this.dashboards)) { $dara.Model.validateArray(this.dashboards); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEnvironmentDashboardsResponseBody extends $dara.Model { /** * @remarks * The HTTP status code. The status code 200 indicates that the request was successful. * * @example * 200 */ code?: number; /** * @remarks * The result of the operation. */ data?: ListEnvironmentDashboardsResponseBodyData; /** * @remarks * The returned message. * * @example * message */ message?: string; /** * @remarks * Id of the request * * @example * A5EC8221-08F2-4C95-9AF1-49FD998C647A */ requestId?: string; /** * @remarks * Indicates whether the request was successful. Valid values: * * * true * * false * * @example * true */ success?: boolean; static names(): { [key: string]: string } { return { code: 'Code', data: 'Data', message: 'Message', requestId: 'RequestId', success: 'Success', }; } static types(): { [key: string]: any } { return { code: 'number', data: ListEnvironmentDashboardsResponseBodyData, message: 'string', requestId: 'string', success: 'boolean', }; } validate() { if(this.data && typeof (this.data as any).validate === 'function') { (this.data as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }