@alicloud/eventbridge20200401 6.0.4 → 6.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/client.d.ts +6 -6
  2. package/dist/client.js +6 -6
  3. package/dist/models/Agent.d.ts +20 -0
  4. package/dist/models/Agent.js +72 -0
  5. package/dist/models/Agent.js.map +1 -0
  6. package/dist/models/AguiMessage.d.ts +77 -0
  7. package/dist/models/AguiMessage.js +166 -0
  8. package/dist/models/AguiMessage.js.map +1 -0
  9. package/dist/models/BaiLianAgentTransformParameters.d.ts +0 -2
  10. package/dist/models/BaiLianAgentTransformParameters.js +0 -2
  11. package/dist/models/BaiLianAgentTransformParameters.js.map +1 -1
  12. package/dist/models/Catalog.d.ts +20 -0
  13. package/dist/models/Catalog.js +69 -0
  14. package/dist/models/Catalog.js.map +1 -0
  15. package/dist/models/Column.d.ts +17 -0
  16. package/dist/models/Column.js +64 -0
  17. package/dist/models/Column.js.map +1 -0
  18. package/dist/models/Conversation.d.ts +17 -0
  19. package/dist/models/Conversation.js +64 -0
  20. package/dist/models/Conversation.js.map +1 -0
  21. package/dist/models/CreateEventStreamingRequest.d.ts +79 -0
  22. package/dist/models/CreateEventStreamingRequest.js +86 -3
  23. package/dist/models/CreateEventStreamingRequest.js.map +1 -1
  24. package/dist/models/EventTableQueryHistogram.d.ts +16 -0
  25. package/dist/models/EventTableQueryHistogram.js +62 -0
  26. package/dist/models/EventTableQueryHistogram.js.map +1 -0
  27. package/dist/models/ListEventStreamingsResponseBody.d.ts +79 -0
  28. package/dist/models/ListEventStreamingsResponseBody.js +85 -3
  29. package/dist/models/ListEventStreamingsResponseBody.js.map +1 -1
  30. package/dist/models/Metadata.d.ts +28 -0
  31. package/dist/models/Metadata.js +82 -0
  32. package/dist/models/Metadata.js.map +1 -0
  33. package/dist/models/Namespace.d.ts +21 -0
  34. package/dist/models/Namespace.js +64 -0
  35. package/dist/models/Namespace.js.map +1 -0
  36. package/dist/models/Row.d.ts +15 -0
  37. package/dist/models/Row.js +62 -0
  38. package/dist/models/Row.js.map +1 -0
  39. package/dist/models/Table.d.ts +50 -0
  40. package/dist/models/Table.js +122 -0
  41. package/dist/models/Table.js.map +1 -0
  42. package/dist/models/UpdateEventStreamingRequest.d.ts +79 -0
  43. package/dist/models/UpdateEventStreamingRequest.js +85 -2
  44. package/dist/models/UpdateEventStreamingRequest.js.map +1 -1
  45. package/dist/models/model.d.ts +26 -0
  46. package/dist/models/model.js +364 -311
  47. package/dist/models/model.js.map +1 -1
  48. package/package.json +1 -1
  49. package/src/client.ts +6 -6
  50. package/src/models/Agent.ts +46 -0
  51. package/src/models/AguiMessage.ts +160 -0
  52. package/src/models/BaiLianAgentTransformParameters.ts +0 -2
  53. package/src/models/Catalog.ts +42 -0
  54. package/src/models/Column.ts +36 -0
  55. package/src/models/Conversation.ts +36 -0
  56. package/src/models/CreateEventStreamingRequest.ts +134 -0
  57. package/src/models/EventTableQueryHistogram.ts +33 -0
  58. package/src/models/ListEventStreamingsResponseBody.ts +134 -0
  59. package/src/models/Metadata.ts +56 -0
  60. package/src/models/Namespace.ts +40 -0
  61. package/src/models/Row.ts +31 -0
  62. package/src/models/Table.ts +109 -0
  63. package/src/models/UpdateEventStreamingRequest.ts +134 -0
  64. package/src/models/model.ts +26 -0
@@ -1982,6 +1982,134 @@ export class CreateEventStreamingRequestSinkSinkDorisParameters extends $dara.Mo
1982
1982
  }
1983
1983
  }
1984
1984
 
1985
+ export class CreateEventStreamingRequestSinkSinkEventHouseParametersMappingRulesColumnValue extends $dara.Model {
1986
+ /**
1987
+ * @example
1988
+ * JSONPATH
1989
+ */
1990
+ form?: string;
1991
+ /**
1992
+ * @example
1993
+ * The value of ${key} is ${value}!
1994
+ */
1995
+ template?: string;
1996
+ /**
1997
+ * @example
1998
+ * $.data.value
1999
+ */
2000
+ value?: string;
2001
+ static names(): { [key: string]: string } {
2002
+ return {
2003
+ form: 'Form',
2004
+ template: 'Template',
2005
+ value: 'Value',
2006
+ };
2007
+ }
2008
+
2009
+ static types(): { [key: string]: any } {
2010
+ return {
2011
+ form: 'string',
2012
+ template: 'string',
2013
+ value: 'string',
2014
+ };
2015
+ }
2016
+
2017
+ validate() {
2018
+ super.validate();
2019
+ }
2020
+
2021
+ constructor(map?: { [key: string]: any }) {
2022
+ super(map);
2023
+ }
2024
+ }
2025
+
2026
+ export class CreateEventStreamingRequestSinkSinkEventHouseParametersMappingRules extends $dara.Model {
2027
+ /**
2028
+ * @example
2029
+ * age
2030
+ */
2031
+ columnName?: string;
2032
+ /**
2033
+ * @example
2034
+ * text
2035
+ */
2036
+ columnType?: string;
2037
+ columnValue?: CreateEventStreamingRequestSinkSinkEventHouseParametersMappingRulesColumnValue;
2038
+ static names(): { [key: string]: string } {
2039
+ return {
2040
+ columnName: 'ColumnName',
2041
+ columnType: 'ColumnType',
2042
+ columnValue: 'ColumnValue',
2043
+ };
2044
+ }
2045
+
2046
+ static types(): { [key: string]: any } {
2047
+ return {
2048
+ columnName: 'string',
2049
+ columnType: 'string',
2050
+ columnValue: CreateEventStreamingRequestSinkSinkEventHouseParametersMappingRulesColumnValue,
2051
+ };
2052
+ }
2053
+
2054
+ validate() {
2055
+ if(this.columnValue && typeof (this.columnValue as any).validate === 'function') {
2056
+ (this.columnValue as any).validate();
2057
+ }
2058
+ super.validate();
2059
+ }
2060
+
2061
+ constructor(map?: { [key: string]: any }) {
2062
+ super(map);
2063
+ }
2064
+ }
2065
+
2066
+ export class CreateEventStreamingRequestSinkSinkEventHouseParameters extends $dara.Model {
2067
+ /**
2068
+ * @example
2069
+ * demo
2070
+ */
2071
+ catalogName?: string;
2072
+ /**
2073
+ * @example
2074
+ * demo-table
2075
+ */
2076
+ eventTableName?: string;
2077
+ mappingRules?: CreateEventStreamingRequestSinkSinkEventHouseParametersMappingRules[];
2078
+ /**
2079
+ * @example
2080
+ * name1
2081
+ */
2082
+ namespaceName?: string;
2083
+ static names(): { [key: string]: string } {
2084
+ return {
2085
+ catalogName: 'CatalogName',
2086
+ eventTableName: 'EventTableName',
2087
+ mappingRules: 'MappingRules',
2088
+ namespaceName: 'NamespaceName',
2089
+ };
2090
+ }
2091
+
2092
+ static types(): { [key: string]: any } {
2093
+ return {
2094
+ catalogName: 'string',
2095
+ eventTableName: 'string',
2096
+ mappingRules: { 'type': 'array', 'itemType': CreateEventStreamingRequestSinkSinkEventHouseParametersMappingRules },
2097
+ namespaceName: 'string',
2098
+ };
2099
+ }
2100
+
2101
+ validate() {
2102
+ if(Array.isArray(this.mappingRules)) {
2103
+ $dara.Model.validateArray(this.mappingRules);
2104
+ }
2105
+ super.validate();
2106
+ }
2107
+
2108
+ constructor(map?: { [key: string]: any }) {
2109
+ super(map);
2110
+ }
2111
+ }
2112
+
1985
2113
  export class CreateEventStreamingRequestSinkSinkFcParametersBody extends $dara.Model {
1986
2114
  /**
1987
2115
  * @remarks
@@ -6019,6 +6147,7 @@ export class CreateEventStreamingRequestSink extends $dara.Model {
6019
6147
  sinkDataHubParameters?: CreateEventStreamingRequestSinkSinkDataHubParameters;
6020
6148
  sinkDataWorksTriggerParameters?: SinkDataWorksTriggerParameters;
6021
6149
  sinkDorisParameters?: CreateEventStreamingRequestSinkSinkDorisParameters;
6150
+ sinkEventHouseParameters?: CreateEventStreamingRequestSinkSinkEventHouseParameters;
6022
6151
  /**
6023
6152
  * @remarks
6024
6153
  * The parameters that are configured if you specify Function Compute as the event target.
@@ -6078,6 +6207,7 @@ export class CreateEventStreamingRequestSink extends $dara.Model {
6078
6207
  sinkDataHubParameters: 'SinkDataHubParameters',
6079
6208
  sinkDataWorksTriggerParameters: 'SinkDataWorksTriggerParameters',
6080
6209
  sinkDorisParameters: 'SinkDorisParameters',
6210
+ sinkEventHouseParameters: 'SinkEventHouseParameters',
6081
6211
  sinkFcParameters: 'SinkFcParameters',
6082
6212
  sinkFnfParameters: 'SinkFnfParameters',
6083
6213
  sinkHttpsParameters: 'SinkHttpsParameters',
@@ -6108,6 +6238,7 @@ export class CreateEventStreamingRequestSink extends $dara.Model {
6108
6238
  sinkDataHubParameters: CreateEventStreamingRequestSinkSinkDataHubParameters,
6109
6239
  sinkDataWorksTriggerParameters: SinkDataWorksTriggerParameters,
6110
6240
  sinkDorisParameters: CreateEventStreamingRequestSinkSinkDorisParameters,
6241
+ sinkEventHouseParameters: CreateEventStreamingRequestSinkSinkEventHouseParameters,
6111
6242
  sinkFcParameters: CreateEventStreamingRequestSinkSinkFcParameters,
6112
6243
  sinkFnfParameters: CreateEventStreamingRequestSinkSinkFnfParameters,
6113
6244
  sinkHttpsParameters: SinkHttpsParameters,
@@ -6157,6 +6288,9 @@ export class CreateEventStreamingRequestSink extends $dara.Model {
6157
6288
  if(this.sinkDorisParameters && typeof (this.sinkDorisParameters as any).validate === 'function') {
6158
6289
  (this.sinkDorisParameters as any).validate();
6159
6290
  }
6291
+ if(this.sinkEventHouseParameters && typeof (this.sinkEventHouseParameters as any).validate === 'function') {
6292
+ (this.sinkEventHouseParameters as any).validate();
6293
+ }
6160
6294
  if(this.sinkFcParameters && typeof (this.sinkFcParameters as any).validate === 'function') {
6161
6295
  (this.sinkFcParameters as any).validate();
6162
6296
  }
@@ -0,0 +1,33 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class EventTableQueryHistogram extends $dara.Model {
6
+ count?: number;
7
+ from?: number;
8
+ to?: number;
9
+ static names(): { [key: string]: string } {
10
+ return {
11
+ count: 'Count',
12
+ from: 'From',
13
+ to: 'To',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ count: 'number',
20
+ from: 'number',
21
+ to: 'number',
22
+ };
23
+ }
24
+
25
+ validate() {
26
+ super.validate();
27
+ }
28
+
29
+ constructor(map?: { [key: string]: any }) {
30
+ super(map);
31
+ }
32
+ }
33
+
@@ -1603,6 +1603,134 @@ export class ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkDorisPara
1603
1603
  }
1604
1604
  }
1605
1605
 
1606
+ export class ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParametersMappingRulesColumnValue extends $dara.Model {
1607
+ /**
1608
+ * @example
1609
+ * JSONPATH
1610
+ */
1611
+ form?: string;
1612
+ /**
1613
+ * @example
1614
+ * The value of ${key} is ${value}!
1615
+ */
1616
+ template?: string;
1617
+ /**
1618
+ * @example
1619
+ * $.data.value
1620
+ */
1621
+ value?: string;
1622
+ static names(): { [key: string]: string } {
1623
+ return {
1624
+ form: 'Form',
1625
+ template: 'Template',
1626
+ value: 'Value',
1627
+ };
1628
+ }
1629
+
1630
+ static types(): { [key: string]: any } {
1631
+ return {
1632
+ form: 'string',
1633
+ template: 'string',
1634
+ value: 'string',
1635
+ };
1636
+ }
1637
+
1638
+ validate() {
1639
+ super.validate();
1640
+ }
1641
+
1642
+ constructor(map?: { [key: string]: any }) {
1643
+ super(map);
1644
+ }
1645
+ }
1646
+
1647
+ export class ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParametersMappingRules extends $dara.Model {
1648
+ /**
1649
+ * @example
1650
+ * age
1651
+ */
1652
+ columnName?: string;
1653
+ /**
1654
+ * @example
1655
+ * text
1656
+ */
1657
+ columnType?: string;
1658
+ columnValue?: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParametersMappingRulesColumnValue;
1659
+ static names(): { [key: string]: string } {
1660
+ return {
1661
+ columnName: 'ColumnName',
1662
+ columnType: 'ColumnType',
1663
+ columnValue: 'ColumnValue',
1664
+ };
1665
+ }
1666
+
1667
+ static types(): { [key: string]: any } {
1668
+ return {
1669
+ columnName: 'string',
1670
+ columnType: 'string',
1671
+ columnValue: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParametersMappingRulesColumnValue,
1672
+ };
1673
+ }
1674
+
1675
+ validate() {
1676
+ if(this.columnValue && typeof (this.columnValue as any).validate === 'function') {
1677
+ (this.columnValue as any).validate();
1678
+ }
1679
+ super.validate();
1680
+ }
1681
+
1682
+ constructor(map?: { [key: string]: any }) {
1683
+ super(map);
1684
+ }
1685
+ }
1686
+
1687
+ export class ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParameters extends $dara.Model {
1688
+ /**
1689
+ * @example
1690
+ * cat1
1691
+ */
1692
+ catalogName?: string;
1693
+ /**
1694
+ * @example
1695
+ * table1
1696
+ */
1697
+ eventTableName?: string;
1698
+ mappingRules?: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParametersMappingRules[];
1699
+ /**
1700
+ * @example
1701
+ * name1
1702
+ */
1703
+ namespaceName?: string;
1704
+ static names(): { [key: string]: string } {
1705
+ return {
1706
+ catalogName: 'CatalogName',
1707
+ eventTableName: 'EventTableName',
1708
+ mappingRules: 'MappingRules',
1709
+ namespaceName: 'NamespaceName',
1710
+ };
1711
+ }
1712
+
1713
+ static types(): { [key: string]: any } {
1714
+ return {
1715
+ catalogName: 'string',
1716
+ eventTableName: 'string',
1717
+ mappingRules: { 'type': 'array', 'itemType': ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParametersMappingRules },
1718
+ namespaceName: 'string',
1719
+ };
1720
+ }
1721
+
1722
+ validate() {
1723
+ if(Array.isArray(this.mappingRules)) {
1724
+ $dara.Model.validateArray(this.mappingRules);
1725
+ }
1726
+ super.validate();
1727
+ }
1728
+
1729
+ constructor(map?: { [key: string]: any }) {
1730
+ super(map);
1731
+ }
1732
+ }
1733
+
1606
1734
  export class ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkFcParametersBody extends $dara.Model {
1607
1735
  /**
1608
1736
  * @remarks
@@ -5031,6 +5159,7 @@ export class ListEventStreamingsResponseBodyDataEventStreamingsSink extends $dar
5031
5159
  sinkDashVectorParameters?: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkDashVectorParameters;
5032
5160
  sinkDataHubParameters?: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkDataHubParameters;
5033
5161
  sinkDorisParameters?: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkDorisParameters;
5162
+ sinkEventHouseParameters?: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParameters;
5034
5163
  /**
5035
5164
  * @remarks
5036
5165
  * The parameters that are returned if Function Compute is specified as the event target.
@@ -5083,6 +5212,7 @@ export class ListEventStreamingsResponseBodyDataEventStreamingsSink extends $dar
5083
5212
  sinkDashVectorParameters: 'SinkDashVectorParameters',
5084
5213
  sinkDataHubParameters: 'SinkDataHubParameters',
5085
5214
  sinkDorisParameters: 'SinkDorisParameters',
5215
+ sinkEventHouseParameters: 'SinkEventHouseParameters',
5086
5216
  sinkFcParameters: 'SinkFcParameters',
5087
5217
  sinkFnfParameters: 'SinkFnfParameters',
5088
5218
  sinkHttpsParameters: 'SinkHttpsParameters',
@@ -5110,6 +5240,7 @@ export class ListEventStreamingsResponseBodyDataEventStreamingsSink extends $dar
5110
5240
  sinkDashVectorParameters: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkDashVectorParameters,
5111
5241
  sinkDataHubParameters: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkDataHubParameters,
5112
5242
  sinkDorisParameters: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkDorisParameters,
5243
+ sinkEventHouseParameters: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkEventHouseParameters,
5113
5244
  sinkFcParameters: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkFcParameters,
5114
5245
  sinkFnfParameters: ListEventStreamingsResponseBodyDataEventStreamingsSinkSinkFnfParameters,
5115
5246
  sinkHttpsParameters: SinkHttpsParameters,
@@ -5152,6 +5283,9 @@ export class ListEventStreamingsResponseBodyDataEventStreamingsSink extends $dar
5152
5283
  if(this.sinkDorisParameters && typeof (this.sinkDorisParameters as any).validate === 'function') {
5153
5284
  (this.sinkDorisParameters as any).validate();
5154
5285
  }
5286
+ if(this.sinkEventHouseParameters && typeof (this.sinkEventHouseParameters as any).validate === 'function') {
5287
+ (this.sinkEventHouseParameters as any).validate();
5288
+ }
5155
5289
  if(this.sinkFcParameters && typeof (this.sinkFcParameters as any).validate === 'function') {
5156
5290
  (this.sinkFcParameters as any).validate();
5157
5291
  }
@@ -0,0 +1,56 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MetadataAttachments extends $dara.Model {
6
+ arn?: string;
7
+ mimeType?: string;
8
+ static names(): { [key: string]: string } {
9
+ return {
10
+ arn: 'Arn',
11
+ mimeType: 'MimeType',
12
+ };
13
+ }
14
+
15
+ static types(): { [key: string]: any } {
16
+ return {
17
+ arn: 'string',
18
+ mimeType: 'string',
19
+ };
20
+ }
21
+
22
+ validate() {
23
+ super.validate();
24
+ }
25
+
26
+ constructor(map?: { [key: string]: any }) {
27
+ super(map);
28
+ }
29
+ }
30
+
31
+ export class Metadata extends $dara.Model {
32
+ attachments?: MetadataAttachments[];
33
+ static names(): { [key: string]: string } {
34
+ return {
35
+ attachments: 'Attachments',
36
+ };
37
+ }
38
+
39
+ static types(): { [key: string]: any } {
40
+ return {
41
+ attachments: { 'type': 'array', 'itemType': MetadataAttachments },
42
+ };
43
+ }
44
+
45
+ validate() {
46
+ if(Array.isArray(this.attachments)) {
47
+ $dara.Model.validateArray(this.attachments);
48
+ }
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class Namespace extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ catalog?: string;
11
+ comment?: string;
12
+ name?: string;
13
+ properties?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ catalog: 'Catalog',
17
+ comment: 'Comment',
18
+ name: 'Name',
19
+ properties: 'properties',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ catalog: 'string',
26
+ comment: 'string',
27
+ name: 'string',
28
+ properties: 'string',
29
+ };
30
+ }
31
+
32
+ validate() {
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { Column } from "./Column";
4
+
5
+
6
+ export class Row extends $dara.Model {
7
+ columns?: Column[];
8
+ static names(): { [key: string]: string } {
9
+ return {
10
+ columns: 'Columns',
11
+ };
12
+ }
13
+
14
+ static types(): { [key: string]: any } {
15
+ return {
16
+ columns: { 'type': 'array', 'itemType': Column },
17
+ };
18
+ }
19
+
20
+ validate() {
21
+ if(Array.isArray(this.columns)) {
22
+ $dara.Model.validateArray(this.columns);
23
+ }
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,109 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class TableColumns extends $dara.Model {
6
+ comment?: string;
7
+ name?: string;
8
+ type?: string;
9
+ static names(): { [key: string]: string } {
10
+ return {
11
+ comment: 'Comment',
12
+ name: 'Name',
13
+ type: 'Type',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ comment: 'string',
20
+ name: 'string',
21
+ type: 'string',
22
+ };
23
+ }
24
+
25
+ validate() {
26
+ super.validate();
27
+ }
28
+
29
+ constructor(map?: { [key: string]: any }) {
30
+ super(map);
31
+ }
32
+ }
33
+
34
+ export class TableRetentionPolicy extends $dara.Model {
35
+ coldTTL?: number;
36
+ hotTTL?: number;
37
+ static names(): { [key: string]: string } {
38
+ return {
39
+ coldTTL: 'ColdTTL',
40
+ hotTTL: 'HotTTL',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ coldTTL: 'number',
47
+ hotTTL: 'number',
48
+ };
49
+ }
50
+
51
+ validate() {
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
60
+ export class Table extends $dara.Model {
61
+ catalog?: string;
62
+ columns?: TableColumns[];
63
+ comment?: string;
64
+ createTime?: number;
65
+ name?: string;
66
+ namespace?: string;
67
+ retentionPolicy?: TableRetentionPolicy;
68
+ updateTime?: number;
69
+ static names(): { [key: string]: string } {
70
+ return {
71
+ catalog: 'Catalog',
72
+ columns: 'Columns',
73
+ comment: 'Comment',
74
+ createTime: 'CreateTime',
75
+ name: 'Name',
76
+ namespace: 'Namespace',
77
+ retentionPolicy: 'RetentionPolicy',
78
+ updateTime: 'UpdateTime',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
83
+ return {
84
+ catalog: 'string',
85
+ columns: { 'type': 'array', 'itemType': TableColumns },
86
+ comment: 'string',
87
+ createTime: 'number',
88
+ name: 'string',
89
+ namespace: 'string',
90
+ retentionPolicy: TableRetentionPolicy,
91
+ updateTime: 'number',
92
+ };
93
+ }
94
+
95
+ validate() {
96
+ if(Array.isArray(this.columns)) {
97
+ $dara.Model.validateArray(this.columns);
98
+ }
99
+ if(this.retentionPolicy && typeof (this.retentionPolicy as any).validate === 'function') {
100
+ (this.retentionPolicy as any).validate();
101
+ }
102
+ super.validate();
103
+ }
104
+
105
+ constructor(map?: { [key: string]: any }) {
106
+ super(map);
107
+ }
108
+ }
109
+