// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListContactsRequest extends $dara.Model { /** * @remarks * The IDs of the contacts. */ contactIds?: string[]; /** * @remarks * The email address of the contact. * * @example * test@aliyun.com */ email?: string; /** * @remarks * The ID of the contact group to which the contact belongs. * * @example * group-id-123 */ groupId?: string; /** * @remarks * The name of the contact. * * @example * test */ name?: string; /** * @remarks * The page number. Default value: 1. * * @example * 1 */ pageNumber?: number; /** * @remarks * The number of entries per page. Default value: 100. * * @example * 100 */ pageSize?: number; /** * @remarks * The mobile phone number of the contact. * * @example * 15012345678 */ phone?: string; /** * @remarks * Specifies whether to query only ungrouped contacts. * * @example * true */ queryUngroupedContacts?: boolean; /** * @remarks * The name of the workspace. Format: `default-cms-{accountId}-{region}`, such as `default-cms-1744108686100472-cn-hangzhou`. You can call the ListWorkspaces API operation to obtain valid workspace names. * * @example * default-cms-1744108686100472-cn-hangzhou */ workspace?: string; static names(): { [key: string]: string } { return { contactIds: 'contactIds', email: 'email', groupId: 'groupId', name: 'name', pageNumber: 'pageNumber', pageSize: 'pageSize', phone: 'phone', queryUngroupedContacts: 'queryUngroupedContacts', workspace: 'workspace', }; } static types(): { [key: string]: any } { return { contactIds: { 'type': 'array', 'itemType': 'string' }, email: 'string', groupId: 'string', name: 'string', pageNumber: 'number', pageSize: 'number', phone: 'string', queryUngroupedContacts: 'boolean', workspace: 'string', }; } validate() { if(Array.isArray(this.contactIds)) { $dara.Model.validateArray(this.contactIds); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }