// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class NotificationChannelsFilter extends $dara.Model { /** * @remarks * The list of notification contacts in the rule contains any value in the array. This uses OR logic and corresponds to notification.contacts in V1. * * @example * ["张三","李四"] */ containsContacts?: string[]; /** * @remarks * The list of custom webhooks in the rule contains any value in the array. This uses OR logic and corresponds to notification.customWebhooks in V1. * * @example * ["https://my-service.example.com/webhook/alert"] */ containsCustomWebhooks?: string[]; /** * @remarks * The list of DingTalk webhooks in the rule contains any value in the array. This uses OR logic and corresponds to notification.dingWebhooks in V1. * * @example * ["https://oapi.dingtalk.com/robot/send?access_token=abc123"] */ containsDingWebhooks?: string[]; /** * @remarks * The list of Lark webhooks in the rule contains any value in the array. This uses OR logic and corresponds to notification.fsWebhooks in V1. * * @example * ["https://open.feishu.cn/open-apis/bot/v2/hook/abc123"] */ containsFsWebhooks?: string[]; /** * @remarks * The list of contact groups in the rule contains any value in the array. This uses OR logic and corresponds to notification.groups in V1. * * @example * ["运维组","SRE团队"] */ containsGroups?: string[]; /** * @remarks * The list of Slack webhooks in the rule contains any value in the array. This uses OR logic and corresponds to notification.slackWebhooks in V1. * * @example * ["https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXX"] */ containsSlackWebhooks?: string[]; /** * @remarks * The list of WeCom webhooks in the rule contains any value in the array. This uses OR logic and corresponds to notification.wxWebhooks in V1. * * @example * ["https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=abc123"] */ containsWxWebhooks?: string[]; static names(): { [key: string]: string } { return { containsContacts: 'containsContacts', containsCustomWebhooks: 'containsCustomWebhooks', containsDingWebhooks: 'containsDingWebhooks', containsFsWebhooks: 'containsFsWebhooks', containsGroups: 'containsGroups', containsSlackWebhooks: 'containsSlackWebhooks', containsWxWebhooks: 'containsWxWebhooks', }; } static types(): { [key: string]: any } { return { containsContacts: { 'type': 'array', 'itemType': 'string' }, containsCustomWebhooks: { 'type': 'array', 'itemType': 'string' }, containsDingWebhooks: { 'type': 'array', 'itemType': 'string' }, containsFsWebhooks: { 'type': 'array', 'itemType': 'string' }, containsGroups: { 'type': 'array', 'itemType': 'string' }, containsSlackWebhooks: { 'type': 'array', 'itemType': 'string' }, containsWxWebhooks: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.containsContacts)) { $dara.Model.validateArray(this.containsContacts); } if(Array.isArray(this.containsCustomWebhooks)) { $dara.Model.validateArray(this.containsCustomWebhooks); } if(Array.isArray(this.containsDingWebhooks)) { $dara.Model.validateArray(this.containsDingWebhooks); } if(Array.isArray(this.containsFsWebhooks)) { $dara.Model.validateArray(this.containsFsWebhooks); } if(Array.isArray(this.containsGroups)) { $dara.Model.validateArray(this.containsGroups); } if(Array.isArray(this.containsSlackWebhooks)) { $dara.Model.validateArray(this.containsSlackWebhooks); } if(Array.isArray(this.containsWxWebhooks)) { $dara.Model.validateArray(this.containsWxWebhooks); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }