// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class QueryMetricByPageResponseBodyData extends $dara.Model { /** * @remarks * Whether the paging query ends. * * true: end. * false: Need to continue pagination (continue to query after CurrentPage+1). * * @example * false */ completed?: boolean; /** * @remarks * The data entries returned. */ items?: { [key: string]: any }[]; /** * @remarks * The page number of the returned page. * * @example * 1 */ page?: number; /** * @remarks * The number of entries returned per page. * * @example * 1 */ pageSize?: number; /** * @remarks * The total number of entries returned. * * @example * 2 */ total?: number; static names(): { [key: string]: string } { return { completed: 'Completed', items: 'Items', page: 'Page', pageSize: 'PageSize', total: 'Total', }; } static types(): { [key: string]: any } { return { completed: 'boolean', items: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } }, page: 'number', pageSize: 'number', total: 'number', }; } validate() { if(Array.isArray(this.items)) { $dara.Model.validateArray(this.items); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryMetricByPageResponseBody extends $dara.Model { /** * @remarks * The HTTP status code returned for the request. Valid values: * * * 2XX: The request was successful. * * 3XX: A redirection message was returned. * * 4XX: The request was invalid. * * 5XX: A server error occurred. * * @example * 200 */ code?: string; /** * @remarks * The information about the array object. */ data?: QueryMetricByPageResponseBodyData; /** * @remarks * The error message returned if the call fails. * * @example * StartTime is mandatory for this action. */ message?: string; /** * @remarks * The request ID. * * @example * 687F9CB7-4798-57BF-A6EE-E6CC76****** */ requestId?: string; /** * @remarks * Indicates whether the call was successful. Valid values: * * * `true`: The call was successful. * * `false`: The call failed. * * @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: 'string', data: QueryMetricByPageResponseBodyData, 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); } }