Skip to content

Commit 32c7dc3

Browse files
committed
Generated ts 2016-04-06 for Consolecs.
1 parent 27fdf2b commit 32c7dc3

File tree

4 files changed

+84
-89
lines changed

4 files changed

+84
-89
lines changed

consolecs-20160406/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/consolecs20160406",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

consolecs-20160406/src/models/ListConsoleProductResponseBody.ts

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,89 @@
11
// This file is auto-generated, don't edit it
22
import * as $dara from '@darabonba/typescript';
3-
import { ListConsoleProductResponseBodyData } from "./ListConsoleProductResponseBodyData";
43

54

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+
687
export class ListConsoleProductResponseBody extends $dara.Model {
788
code?: string;
889
data?: ListConsoleProductResponseBodyData[];

consolecs-20160406/src/models/ListConsoleProductResponseBodyData.ts

Lines changed: 0 additions & 86 deletions
This file was deleted.

consolecs-20160406/src/models/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { ListConsoleProductResponseBodyData } from './ListConsoleProductResponseBodyData';
1+
export { ListConsoleProductResponseBodyData } from './ListConsoleProductResponseBody';
22
export { GetOpenApiListRequest } from './GetOpenApiListRequest';
33
export { GetOpenApiListResponseBody } from './GetOpenApiListResponseBody';
44
export { GetOpenApiListResponse } from './GetOpenApiListResponse';

0 commit comments

Comments
 (0)