@@ -176,12 +176,12 @@ type EventTrigger struct {
176176 EventProcessors map [string ]interface {} `json:"event_processors,omitempty"`
177177 Disabled * bool `json:"disabled,omitempty"`
178178 LastModified * int64 `json:"last_modified,omitempty"`
179- Config EventTriggerConfig `json:"config,omitempty"`
180179 ID string `json:"_id,omitempty"`
181180 Name string `json:"name,omitempty"`
182181 Type string `json:"type,omitempty"`
183182 FunctionID string `json:"function_id,omitempty"`
184183 FunctionName string `json:"function_name,omitempty"`
184+ Config EventTriggerConfig `json:"config,omitempty"`
185185}
186186
187187// EventTriggerRequest Represents a request of create a trigger.
@@ -196,21 +196,21 @@ type EventTriggerRequest struct {
196196
197197// EventTriggerConfig Represents a request of a trigger config.
198198type EventTriggerConfig struct {
199- OperationTypes []string `json:"operation_types,omitempty"`
200- Providers []string `json:"providers,omitempty"`
199+ Match interface {} `json:"match,omitempty"`
200+ Project interface {} `json:"project,omitempty"`
201+ Unordered * bool `json:"unordered,omitempty"`
201202 FullDocument * bool `json:"full_document,omitempty"`
202203 FullDocumentBeforeChange * bool `json:"full_document_before_change,omitempty"`
203- Unordered * bool `json:"unordered,omitempty"`
204204 TolerateResumeErrors * bool `json:"tolerate_resume_errors,omitempty"`
205205 SkipCatchupEvents * bool `json:"skip_catchup_events,omitempty"`
206206 MaximumThroughput * bool `json:"maximum_throughput,omitempty"`
207- Match interface {} `json:"match,omitempty"`
208- Project interface {} `json:"project,omitempty"`
207+ Collection string `json:"collection,omitempty"`
209208 OperationType string `json:"operation_type,omitempty"`
210209 Database string `json:"database,omitempty"`
211- Collection string `json:"collection,omitempty"`
212210 ServiceID string `json:"service_id,omitempty"`
213211 Schedule string `json:"schedule,omitempty"`
214212 ScheduleType string `json:"schedule_type,omitempty"`
215213 ClusterName string `json:"clusterName,omitempty"`
214+ Providers []string `json:"providers,omitempty"`
215+ OperationTypes []string `json:"operation_types,omitempty"`
216216}
0 commit comments