@@ -34,6 +34,12 @@ export type ListCombinedEventsRequestOrderBy =
3434
3535export type ListEventsRequestOrderBy = 'recorded_at_desc' | 'recorded_at_asc'
3636
37+ export type ListExportJobsRequestOrderBy =
38+ | 'name_asc'
39+ | 'name_desc'
40+ | 'created_at_asc'
41+ | 'created_at_desc'
42+
3743export type ResourceType =
3844 | 'unknown_type'
3945 | 'secm_secret'
@@ -444,11 +450,6 @@ export interface SystemEvent {
444450 productName : string
445451}
446452
447- export interface ProductService {
448- name : string
449- methods : string [ ]
450- }
451-
452453export interface ExportJobS3 {
453454 bucket : string
454455 /**
@@ -459,6 +460,11 @@ export interface ExportJobS3 {
459460 projectId ?: string
460461}
461462
463+ export interface ProductService {
464+ name : string
465+ methods : string [ ]
466+ }
467+
462468export interface ListCombinedEventsResponseCombinedEvent {
463469 /**
464470 *
@@ -477,6 +483,39 @@ export interface ListCombinedEventsResponseCombinedEvent {
477483 system ?: SystemEvent
478484}
479485
486+ export interface ExportJob {
487+ /**
488+ * ID of the export job.
489+ */
490+ id : string
491+ /**
492+ * ID of the targeted Organization.
493+ */
494+ organizationId : string
495+ /**
496+ * Name of the export.
497+ */
498+ name : string
499+ /**
500+ * Destination in an S3 storage.
501+ *
502+ * One-of ('destination'): at most one of 's3' could be set.
503+ */
504+ s3 ?: ExportJobS3
505+ /**
506+ * Export job creation date.
507+ */
508+ createdAt ?: Date
509+ /**
510+ * Last export date.
511+ */
512+ lastRunAt ?: Date
513+ /**
514+ * Tags of the export.
515+ */
516+ tags : Record < string , string >
517+ }
518+
480519export interface Product {
481520 /**
482521 * Product title.
@@ -528,39 +567,6 @@ export type DeleteExportJobRequest = {
528567 exportJobId : string
529568}
530569
531- export interface ExportJob {
532- /**
533- * ID of the export job.
534- */
535- id : string
536- /**
537- * ID of the targeted Organization.
538- */
539- organizationId : string
540- /**
541- * Name of the export.
542- */
543- name : string
544- /**
545- * Destination in an S3 storage.
546- *
547- * One-of ('destination'): at most one of 's3' could be set.
548- */
549- s3 ?: ExportJobS3
550- /**
551- * Export job creation date.
552- */
553- createdAt ?: Date
554- /**
555- * Last export date.
556- */
557- lastRunAt ?: Date
558- /**
559- * Tags of the export.
560- */
561- tags : Record < string , string >
562- }
563-
564570export type ListAuthenticationEventsRequest = {
565571 /**
566572 * Region to target. If none is passed will use default region from the config.
@@ -668,6 +674,39 @@ export interface ListEventsResponse {
668674 nextPageToken ?: string
669675}
670676
677+ export type ListExportJobsRequest = {
678+ /**
679+ * Region to target. If none is passed will use default region from the config.
680+ */
681+ region ?: ScwRegion
682+ /**
683+ * Filter by Organization ID.
684+ */
685+ organizationId ?: string
686+ /**
687+ * (Optional) Filter by export name.
688+ */
689+ name ?: string
690+ /**
691+ * (Optional) List of tags to filter on.
692+ */
693+ tags ?: Record < string , string >
694+ page ?: number
695+ pageSize ?: number
696+ orderBy ?: ListExportJobsRequestOrderBy
697+ }
698+
699+ export interface ListExportJobsResponse {
700+ /**
701+ * Single page of export jobs matching the requested criteria.
702+ */
703+ exportJobs : ExportJob [ ]
704+ /**
705+ * Total count of export jobs matching the requested criteria.
706+ */
707+ totalCount : number
708+ }
709+
671710export type ListProductsRequest = {
672711 /**
673712 * Region to target. If none is passed will use default region from the config.
0 commit comments