@alicloud/eventbridge20200401 6.7.1 → 6.7.2

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 (62) hide show
  1. package/dist/client.d.ts +10 -10
  2. package/dist/client.js +38 -13
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateEventBusRequest.d.ts +41 -0
  5. package/dist/models/CreateEventBusRequest.js +29 -1
  6. package/dist/models/CreateEventBusRequest.js.map +1 -1
  7. package/dist/models/CreateEventBusResponseBody.d.ts +2 -1
  8. package/dist/models/CreateEventBusResponseBody.js.map +1 -1
  9. package/dist/models/CreateEventStreamingRequest.d.ts +361 -341
  10. package/dist/models/CreateEventStreamingRequest.js +2 -0
  11. package/dist/models/CreateEventStreamingRequest.js.map +1 -1
  12. package/dist/models/CreateEventStreamingResponseBody.d.ts +2 -2
  13. package/dist/models/CreateEventStreamingShrinkRequest.d.ts +13 -5
  14. package/dist/models/CreateEventStreamingShrinkRequest.js +2 -0
  15. package/dist/models/CreateEventStreamingShrinkRequest.js.map +1 -1
  16. package/dist/models/GetEventBusResponseBody.d.ts +46 -5
  17. package/dist/models/GetEventBusResponseBody.js +29 -1
  18. package/dist/models/GetEventBusResponseBody.js.map +1 -1
  19. package/dist/models/GetEventStreamingResponseBody.d.ts +452 -449
  20. package/dist/models/GetEventStreamingResponseBody.js +2 -0
  21. package/dist/models/GetEventStreamingResponseBody.js.map +1 -1
  22. package/dist/models/ListEventBusesRequest.d.ts +12 -4
  23. package/dist/models/ListEventBusesRequest.js +2 -0
  24. package/dist/models/ListEventBusesRequest.js.map +1 -1
  25. package/dist/models/ListEventBusesResponseBody.d.ts +51 -11
  26. package/dist/models/ListEventBusesResponseBody.js +29 -1
  27. package/dist/models/ListEventBusesResponseBody.js.map +1 -1
  28. package/dist/models/ListEventStreamingsResponseBody.d.ts +8 -0
  29. package/dist/models/ListEventStreamingsResponseBody.js +2 -0
  30. package/dist/models/ListEventStreamingsResponseBody.js.map +1 -1
  31. package/dist/models/SinkBaiLianParameters.d.ts +23 -23
  32. package/dist/models/SourceMySqlparameters.d.ts +7 -7
  33. package/dist/models/UpdateAgentRequest.d.ts +8 -8
  34. package/dist/models/UpdateAgentResponseBody.d.ts +5 -5
  35. package/dist/models/UpdateAgentShrinkRequest.d.ts +7 -7
  36. package/dist/models/UpdateEventBusRequest.d.ts +33 -0
  37. package/dist/models/UpdateEventBusRequest.js +27 -1
  38. package/dist/models/UpdateEventBusRequest.js.map +1 -1
  39. package/dist/models/UpdateEventBusResponseBody.d.ts +3 -3
  40. package/dist/models/model.d.ts +4 -0
  41. package/dist/models/model.js +43 -35
  42. package/dist/models/model.js.map +1 -1
  43. package/package.json +2 -1
  44. package/src/client.ts +44 -14
  45. package/src/models/CreateEventBusRequest.ts +60 -0
  46. package/src/models/CreateEventBusResponseBody.ts +2 -1
  47. package/src/models/CreateEventStreamingRequest.ts +363 -341
  48. package/src/models/CreateEventStreamingResponseBody.ts +2 -2
  49. package/src/models/CreateEventStreamingShrinkRequest.ts +15 -5
  50. package/src/models/GetEventBusResponseBody.ts +65 -5
  51. package/src/models/GetEventStreamingResponseBody.ts +454 -449
  52. package/src/models/ListEventBusesRequest.ts +14 -4
  53. package/src/models/ListEventBusesResponseBody.ts +70 -11
  54. package/src/models/ListEventStreamingsResponseBody.ts +10 -0
  55. package/src/models/SinkBaiLianParameters.ts +23 -23
  56. package/src/models/SourceMySqlparameters.ts +7 -7
  57. package/src/models/UpdateAgentRequest.ts +8 -8
  58. package/src/models/UpdateAgentResponseBody.ts +5 -5
  59. package/src/models/UpdateAgentShrinkRequest.ts +7 -7
  60. package/src/models/UpdateEventBusRequest.ts +50 -0
  61. package/src/models/UpdateEventBusResponseBody.ts +3 -3
  62. package/src/models/model.ts +4 -0
@@ -35,7 +35,7 @@ export class CreateEventStreamingResponseBodyData extends $dara.Model {
35
35
  export class CreateEventStreamingResponseBody extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * The API return code. Valid values:
38
+ * The return code of the API operation. Valid values:
39
39
  * - Success: The operation is successful.
40
40
  * - Other values: An error code. For more information, see Error codes.
41
41
  *
@@ -66,7 +66,7 @@ export class CreateEventStreamingResponseBody extends $dara.Model {
66
66
  requestId?: string;
67
67
  /**
68
68
  * @remarks
69
- * Indicates whether the operation is successful. A value of true indicates that the operation is successful.
69
+ * Indicates whether the operation is successful.
70
70
  *
71
71
  * @example
72
72
  * true
@@ -63,7 +63,7 @@ export class CreateEventStreamingShrinkRequest extends $dara.Model {
63
63
  eventStreamingName?: string;
64
64
  /**
65
65
  * @remarks
66
- * The event filtering rule. If this parameter is not specified, all events are matched.
66
+ * The event filtering rule. If you do not specify this parameter, all events are matched.
67
67
  *
68
68
  * @example
69
69
  * {
@@ -87,12 +87,20 @@ export class CreateEventStreamingShrinkRequest extends $dara.Model {
87
87
  filterPattern?: string;
88
88
  /**
89
89
  * @remarks
90
- * The common JSON configurations for the event provider. This parameter is mutually exclusive with the Source parameter.
90
+ * The common JSON configurations for the event provider. This parameter is mutually exclusive with Source.
91
91
  *
92
92
  * @example
93
93
  * {"key":"value"}
94
94
  */
95
95
  metadata?: string;
96
+ /**
97
+ * @remarks
98
+ * The resource group ID. If you do not specify this parameter, the created event stream belongs to the default resource group of the account.
99
+ *
100
+ * @example
101
+ * rg-acfmxazb4ph6aiy****
102
+ */
103
+ resourceGroupId?: string;
96
104
  /**
97
105
  * @remarks
98
106
  * The runtime environment parameters.
@@ -100,12 +108,12 @@ export class CreateEventStreamingShrinkRequest extends $dara.Model {
100
108
  runOptionsShrink?: string;
101
109
  /**
102
110
  * @remarks
103
- * The event target. You must select one and only one sink.
111
+ * The event target. You must select exactly one type of sink to configure.
104
112
  */
105
113
  sinkShrink?: string;
106
114
  /**
107
115
  * @remarks
108
- * The event provider. You must specify exactly one source.
116
+ * The event provider. You must select exactly one source type and configure its parameters.
109
117
  */
110
118
  sourceShrink?: string;
111
119
  /**
@@ -115,7 +123,7 @@ export class CreateEventStreamingShrinkRequest extends $dara.Model {
115
123
  tags?: CreateEventStreamingShrinkRequestTags[];
116
124
  /**
117
125
  * @remarks
118
- * The transform configurations.
126
+ * The configuration for transforms.
119
127
  */
120
128
  transformsShrink?: string;
121
129
  static names(): { [key: string]: string } {
@@ -124,6 +132,7 @@ export class CreateEventStreamingShrinkRequest extends $dara.Model {
124
132
  eventStreamingName: 'EventStreamingName',
125
133
  filterPattern: 'FilterPattern',
126
134
  metadata: 'Metadata',
135
+ resourceGroupId: 'ResourceGroupId',
127
136
  runOptionsShrink: 'RunOptions',
128
137
  sinkShrink: 'Sink',
129
138
  sourceShrink: 'Source',
@@ -138,6 +147,7 @@ export class CreateEventStreamingShrinkRequest extends $dara.Model {
138
147
  eventStreamingName: 'string',
139
148
  filterPattern: 'string',
140
149
  metadata: 'string',
150
+ resourceGroupId: 'string',
141
151
  runOptionsShrink: 'string',
142
152
  sinkShrink: 'string',
143
153
  sourceShrink: 'string',
@@ -2,10 +2,50 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class GetEventBusResponseBodyDataTags extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The key of the first tag.
9
+ *
10
+ * @example
11
+ * department
12
+ */
13
+ key?: string;
14
+ /**
15
+ * @remarks
16
+ * The value of the first tag.
17
+ *
18
+ * @example
19
+ * R&D
20
+ */
21
+ value?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ key: 'Key',
25
+ value: 'Value',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ key: 'string',
32
+ value: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
5
45
  export class GetEventBusResponseBodyData extends $dara.Model {
6
46
  /**
7
47
  * @remarks
8
- * The timestamp that indicates when the event bus was created.
48
+ * The creation timestamp.
9
49
  *
10
50
  * @example
11
51
  * 1641781825000
@@ -35,12 +75,27 @@ export class GetEventBusResponseBodyData extends $dara.Model {
35
75
  * MyEventBus
36
76
  */
37
77
  eventBusName?: string;
78
+ /**
79
+ * @remarks
80
+ * The ID of the resource group to which the event bus belongs.
81
+ *
82
+ * @example
83
+ * rg-acfmxazb4ph6aiy****
84
+ */
85
+ resourceGroupId?: string;
86
+ /**
87
+ * @remarks
88
+ * The tag information.
89
+ */
90
+ tags?: GetEventBusResponseBodyDataTags[];
38
91
  static names(): { [key: string]: string } {
39
92
  return {
40
93
  createTimestamp: 'CreateTimestamp',
41
94
  description: 'Description',
42
95
  eventBusARN: 'EventBusARN',
43
96
  eventBusName: 'EventBusName',
97
+ resourceGroupId: 'ResourceGroupId',
98
+ tags: 'Tags',
44
99
  };
45
100
  }
46
101
 
@@ -50,10 +105,15 @@ export class GetEventBusResponseBodyData extends $dara.Model {
50
105
  description: 'string',
51
106
  eventBusARN: 'string',
52
107
  eventBusName: 'string',
108
+ resourceGroupId: 'string',
109
+ tags: { 'type': 'array', 'itemType': GetEventBusResponseBodyDataTags },
53
110
  };
54
111
  }
55
112
 
56
113
  validate() {
114
+ if(Array.isArray(this.tags)) {
115
+ $dara.Model.validateArray(this.tags);
116
+ }
57
117
  super.validate();
58
118
  }
59
119
 
@@ -65,7 +125,7 @@ export class GetEventBusResponseBodyData extends $dara.Model {
65
125
  export class GetEventBusResponseBody extends $dara.Model {
66
126
  /**
67
127
  * @remarks
68
- * The response code. The value Success indicates that the request was successful. Other values indicate that the request failed. For more information about error codes, see Error codes.
128
+ * The response code. A value of Success indicates that the request is successful. Other values indicate error codes. For more information, see Error codes.
69
129
  *
70
130
  * @example
71
131
  * Success
@@ -73,12 +133,12 @@ export class GetEventBusResponseBody extends $dara.Model {
73
133
  code?: string;
74
134
  /**
75
135
  * @remarks
76
- * The data returned.
136
+ * The returned result.
77
137
  */
78
138
  data?: GetEventBusResponseBodyData;
79
139
  /**
80
140
  * @remarks
81
- * The error message that is returned if the request failed.
141
+ * The error message.
82
142
  *
83
143
  * @example
84
144
  * EventBusNotExist
@@ -94,7 +154,7 @@ export class GetEventBusResponseBody extends $dara.Model {
94
154
  requestId?: string;
95
155
  /**
96
156
  * @remarks
97
- * Indicates whether the operation was successful. If the operation was successful, the value true is returned.
157
+ * Indicates whether the operation is successful.
98
158
  *
99
159
  * @example
100
160
  * true