@alicloud/eventbridge20200401 6.4.0 → 6.5.0

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.
@@ -0,0 +1,162 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PutEventsRequestEventList extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The event payload.
9
+ *
10
+ * @example
11
+ * {"orderId": "1001", "amount": 99.9}
12
+ */
13
+ data?: any;
14
+ /**
15
+ * @remarks
16
+ * The data format.
17
+ *
18
+ * @example
19
+ * application/json
20
+ */
21
+ dataContentType?: string;
22
+ /**
23
+ * @remarks
24
+ * The data schema address.
25
+ *
26
+ * @example
27
+ * https://example.com/schema/v1
28
+ */
29
+ dataSchema?: string;
30
+ /**
31
+ * @remarks
32
+ * The event ID.
33
+ *
34
+ * This parameter is required.
35
+ *
36
+ * @example
37
+ * 5a2c8f4e-0001
38
+ */
39
+ id?: string;
40
+ /**
41
+ * @remarks
42
+ * The event source.
43
+ *
44
+ * This parameter is required.
45
+ *
46
+ * @example
47
+ * my.custom.source
48
+ */
49
+ source?: string;
50
+ /**
51
+ * @remarks
52
+ * The protocol version.
53
+ *
54
+ * @example
55
+ * 1.0
56
+ */
57
+ specVersion?: string;
58
+ /**
59
+ * @remarks
60
+ * The event subject.
61
+ *
62
+ * @example
63
+ * order-1001
64
+ */
65
+ subject?: string;
66
+ /**
67
+ * @remarks
68
+ * The event time.
69
+ *
70
+ * @example
71
+ * 2026-08-04T10:00:00Z
72
+ */
73
+ time?: string;
74
+ /**
75
+ * @remarks
76
+ * The event type.
77
+ *
78
+ * This parameter is required.
79
+ *
80
+ * @example
81
+ * order:created
82
+ */
83
+ type?: string;
84
+ static names(): { [key: string]: string } {
85
+ return {
86
+ data: 'Data',
87
+ dataContentType: 'DataContentType',
88
+ dataSchema: 'DataSchema',
89
+ id: 'Id',
90
+ source: 'Source',
91
+ specVersion: 'SpecVersion',
92
+ subject: 'Subject',
93
+ time: 'Time',
94
+ type: 'Type',
95
+ };
96
+ }
97
+
98
+ static types(): { [key: string]: any } {
99
+ return {
100
+ data: 'any',
101
+ dataContentType: 'string',
102
+ dataSchema: 'string',
103
+ id: 'string',
104
+ source: 'string',
105
+ specVersion: 'string',
106
+ subject: 'string',
107
+ time: 'string',
108
+ type: 'string',
109
+ };
110
+ }
111
+
112
+ validate() {
113
+ super.validate();
114
+ }
115
+
116
+ constructor(map?: { [key: string]: any }) {
117
+ super(map);
118
+ }
119
+ }
120
+
121
+ export class PutEventsRequest extends $dara.Model {
122
+ /**
123
+ * @remarks
124
+ * The name of the event bus.
125
+ *
126
+ * This parameter is required.
127
+ *
128
+ * @example
129
+ * my-bus
130
+ */
131
+ eventBusName?: string;
132
+ /**
133
+ * @remarks
134
+ * The list of events.
135
+ */
136
+ eventList?: PutEventsRequestEventList[];
137
+ static names(): { [key: string]: string } {
138
+ return {
139
+ eventBusName: 'EventBusName',
140
+ eventList: 'EventList',
141
+ };
142
+ }
143
+
144
+ static types(): { [key: string]: any } {
145
+ return {
146
+ eventBusName: 'string',
147
+ eventList: { 'type': 'array', 'itemType': PutEventsRequestEventList },
148
+ };
149
+ }
150
+
151
+ validate() {
152
+ if(Array.isArray(this.eventList)) {
153
+ $dara.Model.validateArray(this.eventList);
154
+ }
155
+ super.validate();
156
+ }
157
+
158
+ constructor(map?: { [key: string]: any }) {
159
+ super(map);
160
+ }
161
+ }
162
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { PutEventsResponseBody } from "./PutEventsResponseBody";
4
+
5
+
6
+ export class PutEventsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: PutEventsResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: PutEventsResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,174 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PutEventsResponseBodyDataEntryList extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The error code.
9
+ *
10
+ * @example
11
+ * Success indicates success. Other values indicate exceptions
12
+ */
13
+ errorCode?: string;
14
+ /**
15
+ * @remarks
16
+ * The detailed error description.
17
+ *
18
+ * @example
19
+ * triggerPicture failed
20
+ */
21
+ errorMessage?: string;
22
+ /**
23
+ * @remarks
24
+ * The event ID.
25
+ *
26
+ * @example
27
+ * 4c8b7500-2aea-4f5a-b7dd-9d9dd986c07d
28
+ */
29
+ eventId?: string;
30
+ /**
31
+ * @remarks
32
+ * The trace ID, which is used to query the exact call information.
33
+ *
34
+ * @example
35
+ * 4E17C677F5357FB23D1A7FF964CD1999
36
+ */
37
+ traceId?: string;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ errorCode: 'ErrorCode',
41
+ errorMessage: 'ErrorMessage',
42
+ eventId: 'EventId',
43
+ traceId: 'TraceId',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ errorCode: 'string',
50
+ errorMessage: 'string',
51
+ eventId: 'string',
52
+ traceId: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
65
+ export class PutEventsResponseBodyData extends $dara.Model {
66
+ /**
67
+ * @remarks
68
+ * The collection of event sending results.
69
+ */
70
+ entryList?: PutEventsResponseBodyDataEntryList[];
71
+ /**
72
+ * @remarks
73
+ * The number of events that failed to be sent.
74
+ *
75
+ * @example
76
+ * 2
77
+ */
78
+ failedEntryCount?: number;
79
+ static names(): { [key: string]: string } {
80
+ return {
81
+ entryList: 'EntryList',
82
+ failedEntryCount: 'FailedEntryCount',
83
+ };
84
+ }
85
+
86
+ static types(): { [key: string]: any } {
87
+ return {
88
+ entryList: { 'type': 'array', 'itemType': PutEventsResponseBodyDataEntryList },
89
+ failedEntryCount: 'number',
90
+ };
91
+ }
92
+
93
+ validate() {
94
+ if(Array.isArray(this.entryList)) {
95
+ $dara.Model.validateArray(this.entryList);
96
+ }
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
105
+ export class PutEventsResponseBody extends $dara.Model {
106
+ /**
107
+ * @remarks
108
+ * The status code. A value of 200 indicates success.
109
+ *
110
+ * @example
111
+ * 200
112
+ */
113
+ code?: string;
114
+ /**
115
+ * @remarks
116
+ * The returned data.
117
+ */
118
+ data?: PutEventsResponseBodyData;
119
+ /**
120
+ * @remarks
121
+ * The error message.
122
+ *
123
+ * @example
124
+ * EventBusNotExist
125
+ */
126
+ message?: string;
127
+ /**
128
+ * @remarks
129
+ * The unique identifier that Alibaba Cloud generated for the request.
130
+ *
131
+ * @example
132
+ * 2BC1857D-E633-5E79-B2C2-43EF5F7730D8
133
+ */
134
+ requestId?: string;
135
+ /**
136
+ * @remarks
137
+ * Indicates whether the operation was successful. Valid values: true: The operation was successful. false: The operation failed.
138
+ *
139
+ * @example
140
+ * true
141
+ */
142
+ success?: boolean;
143
+ static names(): { [key: string]: string } {
144
+ return {
145
+ code: 'Code',
146
+ data: 'Data',
147
+ message: 'Message',
148
+ requestId: 'RequestId',
149
+ success: 'Success',
150
+ };
151
+ }
152
+
153
+ static types(): { [key: string]: any } {
154
+ return {
155
+ code: 'string',
156
+ data: PutEventsResponseBodyData,
157
+ message: 'string',
158
+ requestId: 'string',
159
+ success: 'boolean',
160
+ };
161
+ }
162
+
163
+ validate() {
164
+ if(this.data && typeof (this.data as any).validate === 'function') {
165
+ (this.data as any).validate();
166
+ }
167
+ super.validate();
168
+ }
169
+
170
+ constructor(map?: { [key: string]: any }) {
171
+ super(map);
172
+ }
173
+ }
174
+
@@ -0,0 +1,43 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PutEventsShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The name of the event bus.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * my-bus
14
+ */
15
+ eventBusName?: string;
16
+ /**
17
+ * @remarks
18
+ * The list of events.
19
+ */
20
+ eventListShrink?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ eventBusName: 'EventBusName',
24
+ eventListShrink: 'EventList',
25
+ };
26
+ }
27
+
28
+ static types(): { [key: string]: any } {
29
+ return {
30
+ eventBusName: 'string',
31
+ eventListShrink: 'string',
32
+ };
33
+ }
34
+
35
+ validate() {
36
+ super.validate();
37
+ }
38
+
39
+ constructor(map?: { [key: string]: any }) {
40
+ super(map);
41
+ }
42
+ }
43
+
@@ -584,6 +584,9 @@ export { ListUserDefinedEventSourcesResponseBodyDataEventSourceListSourceSLSPara
584
584
  export { ListUserDefinedEventSourcesResponseBodyDataEventSourceListSourceScheduledEventParameters } from './ListUserDefinedEventSourcesResponseBody';
585
585
  export { ListUserDefinedEventSourcesResponseBodyDataEventSourceList } from './ListUserDefinedEventSourcesResponseBody';
586
586
  export { ListUserDefinedEventSourcesResponseBodyData } from './ListUserDefinedEventSourcesResponseBody';
587
+ export { PutEventsRequestEventList } from './PutEventsRequest';
588
+ export { PutEventsResponseBodyDataEntryList } from './PutEventsResponseBody';
589
+ export { PutEventsResponseBodyData } from './PutEventsResponseBody';
587
590
  export { PutTargetsRequestTargetsConcurrentConfig } from './PutTargetsRequest';
588
591
  export { PutTargetsRequestTargetsDeadLetterQueue } from './PutTargetsRequest';
589
592
  export { PutTargetsRequestTargetsParamList } from './PutTargetsRequest';
@@ -1009,6 +1012,10 @@ export { PauseEventStreamingResponse } from './PauseEventStreamingResponse';
1009
1012
  export { PollAskResultRequest } from './PollAskResultRequest';
1010
1013
  export { PollAskResultResponseBody } from './PollAskResultResponseBody';
1011
1014
  export { PollAskResultResponse } from './PollAskResultResponse';
1015
+ export { PutEventsRequest } from './PutEventsRequest';
1016
+ export { PutEventsShrinkRequest } from './PutEventsShrinkRequest';
1017
+ export { PutEventsResponseBody } from './PutEventsResponseBody';
1018
+ export { PutEventsResponse } from './PutEventsResponse';
1012
1019
  export { PutTargetsRequest } from './PutTargetsRequest';
1013
1020
  export { PutTargetsShrinkRequest } from './PutTargetsShrinkRequest';
1014
1021
  export { PutTargetsResponseBody } from './PutTargetsResponseBody';