|
1 | 1 | // This file is auto-generated, don't edit it |
2 | 2 | import * as $dara from '@darabonba/typescript'; |
3 | | -import { ListConsoleProductResponseBodyData } from "./ListConsoleProductResponseBodyData"; |
4 | 3 |
|
5 | 4 |
|
| 5 | +/** |
| 6 | + */ |
| 7 | +export class ListConsoleProductResponseBodyData extends $dara.Model { |
| 8 | + belongedCategory?: string; |
| 9 | + categories?: string[]; |
| 10 | + channelLinks?: string[]; |
| 11 | + docId?: string; |
| 12 | + keywords?: string[]; |
| 13 | + names?: string; |
| 14 | + pinyin?: string; |
| 15 | + productId?: string; |
| 16 | + relatedConsoleAppId?: string; |
| 17 | + relatedPipId?: string; |
| 18 | + showInNav?: boolean; |
| 19 | + supportedAccounts?: string[]; |
| 20 | + supportedChannels?: string[]; |
| 21 | + tag?: string; |
| 22 | + tagExpireTime?: string; |
| 23 | + static names(): { [key: string]: string } { |
| 24 | + return { |
| 25 | + belongedCategory: 'BelongedCategory', |
| 26 | + categories: 'Categories', |
| 27 | + channelLinks: 'ChannelLinks', |
| 28 | + docId: 'DocId', |
| 29 | + keywords: 'Keywords', |
| 30 | + names: 'Names', |
| 31 | + pinyin: 'Pinyin', |
| 32 | + productId: 'ProductId', |
| 33 | + relatedConsoleAppId: 'RelatedConsoleAppId', |
| 34 | + relatedPipId: 'RelatedPipId', |
| 35 | + showInNav: 'ShowInNav', |
| 36 | + supportedAccounts: 'SupportedAccounts', |
| 37 | + supportedChannels: 'SupportedChannels', |
| 38 | + tag: 'Tag', |
| 39 | + tagExpireTime: 'TagExpireTime', |
| 40 | + }; |
| 41 | + } |
| 42 | + |
| 43 | + static types(): { [key: string]: any } { |
| 44 | + return { |
| 45 | + belongedCategory: 'string', |
| 46 | + categories: { 'type': 'array', 'itemType': 'string' }, |
| 47 | + channelLinks: { 'type': 'array', 'itemType': 'string' }, |
| 48 | + docId: 'string', |
| 49 | + keywords: { 'type': 'array', 'itemType': 'string' }, |
| 50 | + names: 'string', |
| 51 | + pinyin: 'string', |
| 52 | + productId: 'string', |
| 53 | + relatedConsoleAppId: 'string', |
| 54 | + relatedPipId: 'string', |
| 55 | + showInNav: 'boolean', |
| 56 | + supportedAccounts: { 'type': 'array', 'itemType': 'string' }, |
| 57 | + supportedChannels: { 'type': 'array', 'itemType': 'string' }, |
| 58 | + tag: 'string', |
| 59 | + tagExpireTime: 'string', |
| 60 | + }; |
| 61 | + } |
| 62 | + |
| 63 | + validate() { |
| 64 | + if(Array.isArray(this.categories)) { |
| 65 | + $dara.Model.validateArray(this.categories); |
| 66 | + } |
| 67 | + if(Array.isArray(this.channelLinks)) { |
| 68 | + $dara.Model.validateArray(this.channelLinks); |
| 69 | + } |
| 70 | + if(Array.isArray(this.keywords)) { |
| 71 | + $dara.Model.validateArray(this.keywords); |
| 72 | + } |
| 73 | + if(Array.isArray(this.supportedAccounts)) { |
| 74 | + $dara.Model.validateArray(this.supportedAccounts); |
| 75 | + } |
| 76 | + if(Array.isArray(this.supportedChannels)) { |
| 77 | + $dara.Model.validateArray(this.supportedChannels); |
| 78 | + } |
| 79 | + super.validate(); |
| 80 | + } |
| 81 | + |
| 82 | + constructor(map?: { [key: string]: any }) { |
| 83 | + super(map); |
| 84 | + } |
| 85 | +} |
| 86 | + |
6 | 87 | export class ListConsoleProductResponseBody extends $dara.Model { |
7 | 88 | code?: string; |
8 | 89 | data?: ListConsoleProductResponseBodyData[]; |
|
0 commit comments