@@ -154,20 +154,29 @@ export interface Container {
154
154
region : Region
155
155
}
156
156
157
+ /** Create trigger request. mnq nats client config. */
157
158
export interface CreateTriggerRequestMnqNatsClientConfig {
158
159
/** @deprecated */
159
160
mnqNamespaceId ?: string
161
+ /** Name of the NATS subject the trigger should listen to. */
160
162
subject : string
163
+ /** ID of the M&Q NATS account. */
164
+ mnqNatsAccountId : string
165
+ /** ID of the M&Q project. */
161
166
mnqProjectId : string
167
+ /** Region of the M&Q project. */
162
168
mnqRegion : string
163
- mnqNatsAccountId : string
164
169
}
165
170
171
+ /** Create trigger request. mnq sqs client config. */
166
172
export interface CreateTriggerRequestMnqSqsClientConfig {
173
+ /** Name of the SQS queue the trigger should listen to. */
174
+ queue : string
167
175
/** @deprecated */
168
176
mnqNamespaceId ?: string
169
- queue : string
177
+ /** ID of the M&Q project. You must have activated SQS on this project. */
170
178
mnqProjectId : string
179
+ /** Region in which the M&Q project is activated. */
171
180
mnqRegion : string
172
181
}
173
182
@@ -253,9 +262,12 @@ export interface ListTokensResponse {
253
262
totalCount : number
254
263
}
255
264
265
+ /** List triggers response. */
256
266
export interface ListTriggersResponse {
257
- triggers : Trigger [ ]
267
+ /** Total count of existing triggers (matching any filters specified). */
258
268
totalCount : number
269
+ /** Triggers on this page. */
270
+ triggers : Trigger [ ]
259
271
}
260
272
261
273
/** Log. */
@@ -337,47 +349,72 @@ export interface Token {
337
349
expiresAt ?: Date
338
350
}
339
351
352
+ /** Trigger. */
340
353
export interface Trigger {
354
+ /** ID of the trigger. */
341
355
id : string
356
+ /** Name of the trigger. */
342
357
name : string
358
+ /** Description of the trigger. */
343
359
description : string
360
+ /** ID of the container to trigger. */
361
+ containerId : string
362
+ /** Type of the input. */
344
363
inputType : TriggerInputType
364
+ /** Status of the trigger. */
345
365
status : TriggerStatus
366
+ /** Error message of the trigger. */
346
367
errorMessage ?: string
347
- containerId : string
348
368
/**
349
- * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
350
- * 'scwNatsConfig' could be set.
369
+ * Configuration for a Scaleway M&Q SQS queue.
370
+ *
371
+ * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
372
+ * 'sqsConfig' could be set.
351
373
*/
352
374
scwSqsConfig ?: TriggerMnqSqsClientConfig
353
375
/**
354
- * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
355
- * 'scwNatsConfig' could be set.
376
+ * Configuration for a Scaleway M&Q NATS subject.
377
+ *
378
+ * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
379
+ * 'sqsConfig' could be set.
356
380
*/
357
- sqsConfig ?: TriggerSqsClientConfig
381
+ scwNatsConfig ?: TriggerMnqNatsClientConfig
358
382
/**
359
- * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
360
- * 'scwNatsConfig' could be set.
383
+ * Configuration for an AWS SQS queue.
384
+ *
385
+ * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
386
+ * 'sqsConfig' could be set.
361
387
*/
362
- scwNatsConfig ?: TriggerMnqNatsClientConfig
388
+ sqsConfig ?: TriggerSqsClientConfig
363
389
}
364
390
391
+ /** Trigger. mnq nats client config. */
365
392
export interface TriggerMnqNatsClientConfig {
366
393
/** @deprecated */
367
394
mnqNamespaceId ?: string
395
+ /** Name of the NATS subject the trigger listens to. */
368
396
subject : string
397
+ /** ID of the M&Q NATS account. */
398
+ mnqNatsAccountId : string
399
+ /** ID of the M&Q project. */
369
400
mnqProjectId : string
401
+ /** Region of the M&Q project. */
370
402
mnqRegion : string
403
+ /** ID of the M&Q credentials used to subscribe to the NATS subject. */
371
404
mnqCredentialId ?: string
372
- mnqNatsAccountId : string
373
405
}
374
406
407
+ /** Trigger. mnq sqs client config. */
375
408
export interface TriggerMnqSqsClientConfig {
376
409
/** @deprecated */
377
410
mnqNamespaceId ?: string
411
+ /** Name of the SQS queue the trigger listens to. */
378
412
queue : string
413
+ /** ID of the M&Q project. */
379
414
mnqProjectId : string
415
+ /** Region in which the M&Q project is activated. */
380
416
mnqRegion : string
417
+ /** ID of the M&Q credentials used to read from the SQS queue. */
381
418
mnqCredentialId ?: string
382
419
}
383
420
@@ -829,24 +866,33 @@ export type CreateTriggerRequest = {
829
866
* config.
830
867
*/
831
868
region ?: Region
869
+ /** Name of the trigger. */
832
870
name : string
833
- description ?: string
871
+ /** ID of the container to trigger. */
834
872
containerId : string
873
+ /** Description of the trigger. */
874
+ description ?: string
835
875
/**
836
- * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
837
- * 'scwNatsConfig' could be set.
876
+ * Configuration for a Scaleway M&Q SQS queue.
877
+ *
878
+ * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
879
+ * 'sqsConfig' could be set.
838
880
*/
839
881
scwSqsConfig ?: CreateTriggerRequestMnqSqsClientConfig
840
882
/**
841
- * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
842
- * 'scwNatsConfig' could be set.
883
+ * Configuration for a Scaleway M&Q NATS subject.
884
+ *
885
+ * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
886
+ * 'sqsConfig' could be set.
843
887
*/
844
- sqsConfig ?: CreateTriggerRequestSqsClientConfig
888
+ scwNatsConfig ?: CreateTriggerRequestMnqNatsClientConfig
845
889
/**
846
- * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
847
- * 'scwNatsConfig' could be set.
890
+ * Configuration for an AWS SQS queue.
891
+ *
892
+ * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
893
+ * 'sqsConfig' could be set.
848
894
*/
849
- scwNatsConfig ?: CreateTriggerRequestMnqNatsClientConfig
895
+ sqsConfig ?: CreateTriggerRequestSqsClientConfig
850
896
}
851
897
852
898
export type GetTriggerRequest = {
@@ -855,6 +901,7 @@ export type GetTriggerRequest = {
855
901
* config.
856
902
*/
857
903
region ?: Region
904
+ /** ID of the trigger to get. */
858
905
triggerId : string
859
906
}
860
907
@@ -864,20 +911,29 @@ export type ListTriggersRequest = {
864
911
* config.
865
912
*/
866
913
region ?: Region
914
+ /** Page number to return. */
867
915
page ?: number
916
+ /** Maximum number of triggers to return per page. */
868
917
pageSize ?: number
918
+ /** Order in which to return results. */
869
919
orderBy ?: ListTriggersRequestOrderBy
870
920
/**
921
+ * ID of the container the triggers belongs to.
922
+ *
871
923
* One-of ('scope'): at most one of 'containerId', 'namespaceId', 'projectId'
872
924
* could be set.
873
925
*/
874
926
containerId ?: string
875
927
/**
928
+ * ID of the namespace the triggers belongs to.
929
+ *
876
930
* One-of ('scope'): at most one of 'containerId', 'namespaceId', 'projectId'
877
931
* could be set.
878
932
*/
879
933
namespaceId ?: string
880
934
/**
935
+ * ID of the project the triggers belongs to.
936
+ *
881
937
* One-of ('scope'): at most one of 'containerId', 'namespaceId', 'projectId'
882
938
* could be set.
883
939
*/
@@ -890,10 +946,17 @@ export type UpdateTriggerRequest = {
890
946
* config.
891
947
*/
892
948
region ?: Region
949
+ /** ID of the trigger to update. */
893
950
triggerId : string
951
+ /** Name of the trigger. */
894
952
name ?: string
953
+ /** Description of the trigger. */
895
954
description ?: string
896
- /** One-of ('config'): at most one of 'sqsConfig' could be set. */
955
+ /**
956
+ * Configuration for an AWS SQS queue.
957
+ *
958
+ * One-of ('config'): at most one of 'sqsConfig' could be set.
959
+ */
897
960
sqsConfig ?: UpdateTriggerRequestSqsClientConfig
898
961
}
899
962
@@ -903,5 +966,6 @@ export type DeleteTriggerRequest = {
903
966
* config.
904
967
*/
905
968
region ?: Region
969
+ /** ID of the trigger to delete. */
906
970
triggerId : string
907
971
}
0 commit comments