@alicloud/eventbridge20200401 5.1.0 → 5.1.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 (44) hide show
  1. package/dist/client.js +12 -0
  2. package/dist/client.js.map +1 -1
  3. package/dist/models/CreateEventSourceRequest.d.ts +32 -0
  4. package/dist/models/CreateEventSourceRequest.js +60 -1
  5. package/dist/models/CreateEventSourceRequest.js.map +1 -1
  6. package/dist/models/CreateEventSourceShrinkRequest.d.ts +1 -0
  7. package/dist/models/CreateEventSourceShrinkRequest.js +2 -0
  8. package/dist/models/CreateEventSourceShrinkRequest.js.map +1 -1
  9. package/dist/models/CreateEventStreamingRequest.d.ts +158 -0
  10. package/dist/models/CreateEventStreamingRequest.js +283 -3
  11. package/dist/models/CreateEventStreamingRequest.js.map +1 -1
  12. package/dist/models/GetEventStreamingResponseBody.d.ts +158 -0
  13. package/dist/models/GetEventStreamingResponseBody.js +283 -3
  14. package/dist/models/GetEventStreamingResponseBody.js.map +1 -1
  15. package/dist/models/ListEventStreamingsResponseBody.d.ts +142 -0
  16. package/dist/models/ListEventStreamingsResponseBody.js +255 -3
  17. package/dist/models/ListEventStreamingsResponseBody.js.map +1 -1
  18. package/dist/models/ListUserDefinedEventSourcesResponseBody.d.ts +16 -0
  19. package/dist/models/ListUserDefinedEventSourcesResponseBody.js +32 -1
  20. package/dist/models/ListUserDefinedEventSourcesResponseBody.js.map +1 -1
  21. package/dist/models/UpdateEventSourceRequest.d.ts +32 -0
  22. package/dist/models/UpdateEventSourceRequest.js +60 -1
  23. package/dist/models/UpdateEventSourceRequest.js.map +1 -1
  24. package/dist/models/UpdateEventSourceShrinkRequest.d.ts +1 -0
  25. package/dist/models/UpdateEventSourceShrinkRequest.js +2 -0
  26. package/dist/models/UpdateEventSourceShrinkRequest.js.map +1 -1
  27. package/dist/models/UpdateEventStreamingRequest.d.ts +158 -0
  28. package/dist/models/UpdateEventStreamingRequest.js +283 -3
  29. package/dist/models/UpdateEventStreamingRequest.js.map +1 -1
  30. package/dist/models/model.d.ts +40 -0
  31. package/dist/models/model.js +629 -548
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/client.ts +16 -0
  35. package/src/models/CreateEventSourceRequest.ts +73 -0
  36. package/src/models/CreateEventSourceShrinkRequest.ts +3 -0
  37. package/src/models/CreateEventStreamingRequest.ts +357 -0
  38. package/src/models/GetEventStreamingResponseBody.ts +357 -0
  39. package/src/models/ListEventStreamingsResponseBody.ts +322 -0
  40. package/src/models/ListUserDefinedEventSourcesResponseBody.ts +38 -0
  41. package/src/models/UpdateEventSourceRequest.ts +73 -0
  42. package/src/models/UpdateEventSourceShrinkRequest.ts +3 -0
  43. package/src/models/UpdateEventStreamingRequest.ts +357 -0
  44. package/src/models/model.ts +40 -0
@@ -250,6 +250,292 @@ export class CreateEventStreamingRequestRunOptions extends $dara.Model {
250
250
  }
251
251
  }
252
252
 
253
+ export class CreateEventStreamingRequestSinkSinkApacheKafkaParametersHeaders extends $dara.Model {
254
+ form?: string;
255
+ template?: string;
256
+ value?: string;
257
+ static names(): { [key: string]: string } {
258
+ return {
259
+ form: 'Form',
260
+ template: 'Template',
261
+ value: 'Value',
262
+ };
263
+ }
264
+
265
+ static types(): { [key: string]: any } {
266
+ return {
267
+ form: 'string',
268
+ template: 'string',
269
+ value: 'string',
270
+ };
271
+ }
272
+
273
+ validate() {
274
+ super.validate();
275
+ }
276
+
277
+ constructor(map?: { [key: string]: any }) {
278
+ super(map);
279
+ }
280
+ }
281
+
282
+ export class CreateEventStreamingRequestSinkSinkApacheKafkaParametersKey extends $dara.Model {
283
+ form?: string;
284
+ template?: string;
285
+ value?: string;
286
+ static names(): { [key: string]: string } {
287
+ return {
288
+ form: 'Form',
289
+ template: 'Template',
290
+ value: 'Value',
291
+ };
292
+ }
293
+
294
+ static types(): { [key: string]: any } {
295
+ return {
296
+ form: 'string',
297
+ template: 'string',
298
+ value: 'string',
299
+ };
300
+ }
301
+
302
+ validate() {
303
+ super.validate();
304
+ }
305
+
306
+ constructor(map?: { [key: string]: any }) {
307
+ super(map);
308
+ }
309
+ }
310
+
311
+ export class CreateEventStreamingRequestSinkSinkApacheKafkaParametersNetworkType extends $dara.Model {
312
+ form?: string;
313
+ template?: string;
314
+ value?: string;
315
+ static names(): { [key: string]: string } {
316
+ return {
317
+ form: 'Form',
318
+ template: 'Template',
319
+ value: 'Value',
320
+ };
321
+ }
322
+
323
+ static types(): { [key: string]: any } {
324
+ return {
325
+ form: 'string',
326
+ template: 'string',
327
+ value: 'string',
328
+ };
329
+ }
330
+
331
+ validate() {
332
+ super.validate();
333
+ }
334
+
335
+ constructor(map?: { [key: string]: any }) {
336
+ super(map);
337
+ }
338
+ }
339
+
340
+ export class CreateEventStreamingRequestSinkSinkApacheKafkaParametersSecurityGroupId extends $dara.Model {
341
+ form?: string;
342
+ template?: string;
343
+ value?: string;
344
+ static names(): { [key: string]: string } {
345
+ return {
346
+ form: 'Form',
347
+ template: 'Template',
348
+ value: 'Value',
349
+ };
350
+ }
351
+
352
+ static types(): { [key: string]: any } {
353
+ return {
354
+ form: 'string',
355
+ template: 'string',
356
+ value: 'string',
357
+ };
358
+ }
359
+
360
+ validate() {
361
+ super.validate();
362
+ }
363
+
364
+ constructor(map?: { [key: string]: any }) {
365
+ super(map);
366
+ }
367
+ }
368
+
369
+ export class CreateEventStreamingRequestSinkSinkApacheKafkaParametersVSwitchIds extends $dara.Model {
370
+ form?: string;
371
+ template?: string;
372
+ value?: string;
373
+ static names(): { [key: string]: string } {
374
+ return {
375
+ form: 'Form',
376
+ template: 'Template',
377
+ value: 'Value',
378
+ };
379
+ }
380
+
381
+ static types(): { [key: string]: any } {
382
+ return {
383
+ form: 'string',
384
+ template: 'string',
385
+ value: 'string',
386
+ };
387
+ }
388
+
389
+ validate() {
390
+ super.validate();
391
+ }
392
+
393
+ constructor(map?: { [key: string]: any }) {
394
+ super(map);
395
+ }
396
+ }
397
+
398
+ export class CreateEventStreamingRequestSinkSinkApacheKafkaParametersValue extends $dara.Model {
399
+ form?: string;
400
+ template?: string;
401
+ value?: string;
402
+ static names(): { [key: string]: string } {
403
+ return {
404
+ form: 'Form',
405
+ template: 'Template',
406
+ value: 'Value',
407
+ };
408
+ }
409
+
410
+ static types(): { [key: string]: any } {
411
+ return {
412
+ form: 'string',
413
+ template: 'string',
414
+ value: 'string',
415
+ };
416
+ }
417
+
418
+ validate() {
419
+ super.validate();
420
+ }
421
+
422
+ constructor(map?: { [key: string]: any }) {
423
+ super(map);
424
+ }
425
+ }
426
+
427
+ export class CreateEventStreamingRequestSinkSinkApacheKafkaParametersVpcId extends $dara.Model {
428
+ form?: string;
429
+ template?: string;
430
+ value?: string;
431
+ static names(): { [key: string]: string } {
432
+ return {
433
+ form: 'Form',
434
+ template: 'Template',
435
+ value: 'Value',
436
+ };
437
+ }
438
+
439
+ static types(): { [key: string]: any } {
440
+ return {
441
+ form: 'string',
442
+ template: 'string',
443
+ value: 'string',
444
+ };
445
+ }
446
+
447
+ validate() {
448
+ super.validate();
449
+ }
450
+
451
+ constructor(map?: { [key: string]: any }) {
452
+ super(map);
453
+ }
454
+ }
455
+
456
+ export class CreateEventStreamingRequestSinkSinkApacheKafkaParameters extends $dara.Model {
457
+ acks?: string;
458
+ bootstraps?: string;
459
+ headers?: CreateEventStreamingRequestSinkSinkApacheKafkaParametersHeaders;
460
+ key?: CreateEventStreamingRequestSinkSinkApacheKafkaParametersKey;
461
+ networkType?: CreateEventStreamingRequestSinkSinkApacheKafkaParametersNetworkType;
462
+ saslMechanism?: string;
463
+ saslPassword?: string;
464
+ saslUser?: string;
465
+ securityGroupId?: CreateEventStreamingRequestSinkSinkApacheKafkaParametersSecurityGroupId;
466
+ securityProtocol?: string;
467
+ topic?: string;
468
+ vSwitchIds?: CreateEventStreamingRequestSinkSinkApacheKafkaParametersVSwitchIds;
469
+ value?: CreateEventStreamingRequestSinkSinkApacheKafkaParametersValue;
470
+ vpcId?: CreateEventStreamingRequestSinkSinkApacheKafkaParametersVpcId;
471
+ static names(): { [key: string]: string } {
472
+ return {
473
+ acks: 'Acks',
474
+ bootstraps: 'Bootstraps',
475
+ headers: 'Headers',
476
+ key: 'Key',
477
+ networkType: 'NetworkType',
478
+ saslMechanism: 'SaslMechanism',
479
+ saslPassword: 'SaslPassword',
480
+ saslUser: 'SaslUser',
481
+ securityGroupId: 'SecurityGroupId',
482
+ securityProtocol: 'SecurityProtocol',
483
+ topic: 'Topic',
484
+ vSwitchIds: 'VSwitchIds',
485
+ value: 'Value',
486
+ vpcId: 'VpcId',
487
+ };
488
+ }
489
+
490
+ static types(): { [key: string]: any } {
491
+ return {
492
+ acks: 'string',
493
+ bootstraps: 'string',
494
+ headers: CreateEventStreamingRequestSinkSinkApacheKafkaParametersHeaders,
495
+ key: CreateEventStreamingRequestSinkSinkApacheKafkaParametersKey,
496
+ networkType: CreateEventStreamingRequestSinkSinkApacheKafkaParametersNetworkType,
497
+ saslMechanism: 'string',
498
+ saslPassword: 'string',
499
+ saslUser: 'string',
500
+ securityGroupId: CreateEventStreamingRequestSinkSinkApacheKafkaParametersSecurityGroupId,
501
+ securityProtocol: 'string',
502
+ topic: 'string',
503
+ vSwitchIds: CreateEventStreamingRequestSinkSinkApacheKafkaParametersVSwitchIds,
504
+ value: CreateEventStreamingRequestSinkSinkApacheKafkaParametersValue,
505
+ vpcId: CreateEventStreamingRequestSinkSinkApacheKafkaParametersVpcId,
506
+ };
507
+ }
508
+
509
+ validate() {
510
+ if(this.headers && typeof (this.headers as any).validate === 'function') {
511
+ (this.headers as any).validate();
512
+ }
513
+ if(this.key && typeof (this.key as any).validate === 'function') {
514
+ (this.key as any).validate();
515
+ }
516
+ if(this.networkType && typeof (this.networkType as any).validate === 'function') {
517
+ (this.networkType as any).validate();
518
+ }
519
+ if(this.securityGroupId && typeof (this.securityGroupId as any).validate === 'function') {
520
+ (this.securityGroupId as any).validate();
521
+ }
522
+ if(this.vSwitchIds && typeof (this.vSwitchIds as any).validate === 'function') {
523
+ (this.vSwitchIds as any).validate();
524
+ }
525
+ if(this.value && typeof (this.value as any).validate === 'function') {
526
+ (this.value as any).validate();
527
+ }
528
+ if(this.vpcId && typeof (this.vpcId as any).validate === 'function') {
529
+ (this.vpcId as any).validate();
530
+ }
531
+ super.validate();
532
+ }
533
+
534
+ constructor(map?: { [key: string]: any }) {
535
+ super(map);
536
+ }
537
+ }
538
+
253
539
  export class CreateEventStreamingRequestSinkSinkApacheRocketMQCheckpointParametersConsumeTimestamp extends $dara.Model {
254
540
  form?: string;
255
541
  template?: string;
@@ -5591,6 +5877,7 @@ export class CreateEventStreamingRequestSinkSinkSLSParameters extends $dara.Mode
5591
5877
  }
5592
5878
 
5593
5879
  export class CreateEventStreamingRequestSink extends $dara.Model {
5880
+ sinkApacheKafkaParameters?: CreateEventStreamingRequestSinkSinkApacheKafkaParameters;
5594
5881
  sinkApacheRocketMQCheckpointParameters?: CreateEventStreamingRequestSinkSinkApacheRocketMQCheckpointParameters;
5595
5882
  sinkBaiLianParameters?: SinkBaiLianParameters;
5596
5883
  sinkCustomizedKafkaConnectorParameters?: CreateEventStreamingRequestSinkSinkCustomizedKafkaConnectorParameters;
@@ -5646,6 +5933,7 @@ export class CreateEventStreamingRequestSink extends $dara.Model {
5646
5933
  sinkSLSParameters?: CreateEventStreamingRequestSinkSinkSLSParameters;
5647
5934
  static names(): { [key: string]: string } {
5648
5935
  return {
5936
+ sinkApacheKafkaParameters: 'SinkApacheKafkaParameters',
5649
5937
  sinkApacheRocketMQCheckpointParameters: 'SinkApacheRocketMQCheckpointParameters',
5650
5938
  sinkBaiLianParameters: 'SinkBaiLianParameters',
5651
5939
  sinkCustomizedKafkaConnectorParameters: 'SinkCustomizedKafkaConnectorParameters',
@@ -5668,6 +5956,7 @@ export class CreateEventStreamingRequestSink extends $dara.Model {
5668
5956
 
5669
5957
  static types(): { [key: string]: any } {
5670
5958
  return {
5959
+ sinkApacheKafkaParameters: CreateEventStreamingRequestSinkSinkApacheKafkaParameters,
5671
5960
  sinkApacheRocketMQCheckpointParameters: CreateEventStreamingRequestSinkSinkApacheRocketMQCheckpointParameters,
5672
5961
  sinkBaiLianParameters: SinkBaiLianParameters,
5673
5962
  sinkCustomizedKafkaConnectorParameters: CreateEventStreamingRequestSinkSinkCustomizedKafkaConnectorParameters,
@@ -5689,6 +5978,9 @@ export class CreateEventStreamingRequestSink extends $dara.Model {
5689
5978
  }
5690
5979
 
5691
5980
  validate() {
5981
+ if(this.sinkApacheKafkaParameters && typeof (this.sinkApacheKafkaParameters as any).validate === 'function') {
5982
+ (this.sinkApacheKafkaParameters as any).validate();
5983
+ }
5692
5984
  if(this.sinkApacheRocketMQCheckpointParameters && typeof (this.sinkApacheRocketMQCheckpointParameters as any).validate === 'function') {
5693
5985
  (this.sinkApacheRocketMQCheckpointParameters as any).validate();
5694
5986
  }
@@ -5748,6 +6040,65 @@ export class CreateEventStreamingRequestSink extends $dara.Model {
5748
6040
  }
5749
6041
  }
5750
6042
 
6043
+ export class CreateEventStreamingRequestSourceSourceApacheKafkaParameters extends $dara.Model {
6044
+ bootstraps?: string;
6045
+ consumerGroup?: string;
6046
+ networkType?: string;
6047
+ offsetReset?: string;
6048
+ saslMechanism?: string;
6049
+ saslPassword?: string;
6050
+ saslUser?: string;
6051
+ securityGroupId?: string;
6052
+ securityProtocol?: string;
6053
+ topic?: string;
6054
+ vSwitchIds?: string;
6055
+ valueDataType?: string;
6056
+ vpcId?: string;
6057
+ static names(): { [key: string]: string } {
6058
+ return {
6059
+ bootstraps: 'Bootstraps',
6060
+ consumerGroup: 'ConsumerGroup',
6061
+ networkType: 'NetworkType',
6062
+ offsetReset: 'OffsetReset',
6063
+ saslMechanism: 'SaslMechanism',
6064
+ saslPassword: 'SaslPassword',
6065
+ saslUser: 'SaslUser',
6066
+ securityGroupId: 'SecurityGroupId',
6067
+ securityProtocol: 'SecurityProtocol',
6068
+ topic: 'Topic',
6069
+ vSwitchIds: 'VSwitchIds',
6070
+ valueDataType: 'ValueDataType',
6071
+ vpcId: 'VpcId',
6072
+ };
6073
+ }
6074
+
6075
+ static types(): { [key: string]: any } {
6076
+ return {
6077
+ bootstraps: 'string',
6078
+ consumerGroup: 'string',
6079
+ networkType: 'string',
6080
+ offsetReset: 'string',
6081
+ saslMechanism: 'string',
6082
+ saslPassword: 'string',
6083
+ saslUser: 'string',
6084
+ securityGroupId: 'string',
6085
+ securityProtocol: 'string',
6086
+ topic: 'string',
6087
+ vSwitchIds: 'string',
6088
+ valueDataType: 'string',
6089
+ vpcId: 'string',
6090
+ };
6091
+ }
6092
+
6093
+ validate() {
6094
+ super.validate();
6095
+ }
6096
+
6097
+ constructor(map?: { [key: string]: any }) {
6098
+ super(map);
6099
+ }
6100
+ }
6101
+
5751
6102
  export class CreateEventStreamingRequestSourceSourceApacheRocketMQCheckpointParameters extends $dara.Model {
5752
6103
  instanceEndpoint?: string;
5753
6104
  instancePassword?: string;
@@ -6843,6 +7194,7 @@ export class CreateEventStreamingRequestSourceSourceSLSParameters extends $dara.
6843
7194
  }
6844
7195
 
6845
7196
  export class CreateEventStreamingRequestSource extends $dara.Model {
7197
+ sourceApacheKafkaParameters?: CreateEventStreamingRequestSourceSourceApacheKafkaParameters;
6846
7198
  sourceApacheRocketMQCheckpointParameters?: CreateEventStreamingRequestSourceSourceApacheRocketMQCheckpointParameters;
6847
7199
  sourceCustomizedKafkaConnectorParameters?: CreateEventStreamingRequestSourceSourceCustomizedKafkaConnectorParameters;
6848
7200
  sourceCustomizedKafkaParameters?: CreateEventStreamingRequestSourceSourceCustomizedKafkaParameters;
@@ -6893,6 +7245,7 @@ export class CreateEventStreamingRequestSource extends $dara.Model {
6893
7245
  sourceSLSParameters?: CreateEventStreamingRequestSourceSourceSLSParameters;
6894
7246
  static names(): { [key: string]: string } {
6895
7247
  return {
7248
+ sourceApacheKafkaParameters: 'SourceApacheKafkaParameters',
6896
7249
  sourceApacheRocketMQCheckpointParameters: 'SourceApacheRocketMQCheckpointParameters',
6897
7250
  sourceCustomizedKafkaConnectorParameters: 'SourceCustomizedKafkaConnectorParameters',
6898
7251
  sourceCustomizedKafkaParameters: 'SourceCustomizedKafkaParameters',
@@ -6914,6 +7267,7 @@ export class CreateEventStreamingRequestSource extends $dara.Model {
6914
7267
 
6915
7268
  static types(): { [key: string]: any } {
6916
7269
  return {
7270
+ sourceApacheKafkaParameters: CreateEventStreamingRequestSourceSourceApacheKafkaParameters,
6917
7271
  sourceApacheRocketMQCheckpointParameters: CreateEventStreamingRequestSourceSourceApacheRocketMQCheckpointParameters,
6918
7272
  sourceCustomizedKafkaConnectorParameters: CreateEventStreamingRequestSourceSourceCustomizedKafkaConnectorParameters,
6919
7273
  sourceCustomizedKafkaParameters: CreateEventStreamingRequestSourceSourceCustomizedKafkaParameters,
@@ -6934,6 +7288,9 @@ export class CreateEventStreamingRequestSource extends $dara.Model {
6934
7288
  }
6935
7289
 
6936
7290
  validate() {
7291
+ if(this.sourceApacheKafkaParameters && typeof (this.sourceApacheKafkaParameters as any).validate === 'function') {
7292
+ (this.sourceApacheKafkaParameters as any).validate();
7293
+ }
6937
7294
  if(this.sourceApacheRocketMQCheckpointParameters && typeof (this.sourceApacheRocketMQCheckpointParameters as any).validate === 'function') {
6938
7295
  (this.sourceApacheRocketMQCheckpointParameters as any).validate();
6939
7296
  }