Skip to content

Commit

Permalink
Added trigger capture groups. Added enabled and query to FpTrigger. (#10
Browse files Browse the repository at this point in the history
)

* feat: trigger capture groups

* feat: added enabled and query to FpTrigger

---------

Co-authored-by: Graza <[email protected]>
  • Loading branch information
vhadianto and graza-io authored Jan 19, 2024
1 parent aa74ca8 commit ce86a25
Show file tree
Hide file tree
Showing 9 changed files with 849 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ docs/FlowpipeRequire.md
docs/FpPipeline.md
docs/FpPipelineParam.md
docs/FpTrigger.md
docs/FpTriggerPipeline.md
docs/ListPipelineResponse.md
docs/ListProcessLogJSONResponse.md
docs/ListProcessResponse.md
Expand Down Expand Up @@ -60,6 +61,7 @@ model_flowpipe_require.go
model_fp_pipeline.go
model_fp_pipeline_param.go
model_fp_trigger.go
model_fp_trigger_pipeline.go
model_list_pipeline_response.go
model_list_process_log_json_response.go
model_list_process_response.go
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Class | Method | HTTP request | Description
- [FpPipeline](docs/FpPipeline.md)
- [FpPipelineParam](docs/FpPipelineParam.md)
- [FpTrigger](docs/FpTrigger.md)
- [FpTriggerPipeline](docs/FpTriggerPipeline.md)
- [ListPipelineResponse](docs/ListPipelineResponse.md)
- [ListProcessLogJSONResponse](docs/ListProcessLogJSONResponse.md)
- [ListProcessResponse](docs/ListProcessResponse.md)
Expand Down
82 changes: 73 additions & 9 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,11 @@ components:
value: "{}"
resolved: true
mod: mod
file_name: file_name
documentation: documentation
name: name
description: description
end_line_number: 0
params:
- default: "{}"
name: name
Expand All @@ -844,6 +846,7 @@ components:
description: description
optional: true
type: type
start_line_number: 6
title: title
steps:
- "{}"
Expand All @@ -855,6 +858,10 @@ components:
type: string
documentation:
type: string
end_line_number:
type: integer
file_name:
type: string
mod:
type: string
name:
Expand All @@ -867,6 +874,8 @@ components:
items:
$ref: '#/components/schemas/FpPipelineParam'
type: array
start_line_number:
type: integer
steps:
items:
type: object
Expand Down Expand Up @@ -899,27 +908,48 @@ components:
type: object
FpTrigger:
example:
pipeline: pipeline
schedule: schedule
file_name: file_name
documentation: documentation
name: name
query: query
description: description
end_line_number: 0
start_line_number: 6
title: title
type: type
enabled: true
url: url
tags:
key: tags
schedule: schedule
pipelines:
- pipeline: pipeline
capture_group: capture_group
- pipeline: pipeline
capture_group: capture_group
name: name
properties:
description:
type: string
documentation:
type: string
enabled:
type: boolean
end_line_number:
type: integer
file_name:
type: string
name:
type: string
pipeline:
pipelines:
items:
$ref: '#/components/schemas/FpTriggerPipeline'
type: array
query:
type: string
schedule:
type: string
start_line_number:
type: integer
tags:
additionalProperties:
type: string
Expand All @@ -931,6 +961,16 @@ components:
url:
type: string
type: object
FpTriggerPipeline:
example:
pipeline: pipeline
capture_group: capture_group
properties:
capture_group:
type: string
pipeline:
type: string
type: object
ListPipelineResponse:
example:
next_token: next_token
Expand All @@ -951,9 +991,11 @@ components:
value: "{}"
resolved: true
mod: mod
file_name: file_name
documentation: documentation
name: name
description: description
end_line_number: 0
params:
- default: "{}"
name: name
Expand All @@ -965,6 +1007,7 @@ components:
description: description
optional: true
type: type
start_line_number: 6
title: title
steps:
- "{}"
Expand All @@ -987,9 +1030,11 @@ components:
value: "{}"
resolved: true
mod: mod
file_name: file_name
documentation: documentation
name: name
description: description
end_line_number: 0
params:
- default: "{}"
name: name
Expand All @@ -1001,6 +1046,7 @@ components:
description: description
optional: true
type: type
start_line_number: 6
title: title
steps:
- "{}"
Expand Down Expand Up @@ -1057,26 +1103,44 @@ components:
example:
next_token: next_token
items:
- pipeline: pipeline
schedule: schedule
- file_name: file_name
documentation: documentation
name: name
query: query
description: description
end_line_number: 0
start_line_number: 6
title: title
type: type
enabled: true
url: url
tags:
key: tags
- pipeline: pipeline
schedule: schedule
documentation: documentation
pipelines:
- pipeline: pipeline
capture_group: capture_group
- pipeline: pipeline
capture_group: capture_group
name: name
- file_name: file_name
documentation: documentation
query: query
description: description
end_line_number: 0
start_line_number: 6
title: title
type: type
enabled: true
url: url
tags:
key: tags
schedule: schedule
pipelines:
- pipeline: pipeline
capture_group: capture_group
- pipeline: pipeline
capture_group: capture_group
name: name
properties:
items:
items:
Expand Down
78 changes: 78 additions & 0 deletions docs/FpPipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Description** | Pointer to **string** | | [optional]
**Documentation** | Pointer to **string** | | [optional]
**EndLineNumber** | Pointer to **int32** | | [optional]
**FileName** | Pointer to **string** | | [optional]
**Mod** | Pointer to **string** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Outputs** | Pointer to [**[]ModconfigPipelineOutput**](ModconfigPipelineOutput.md) | | [optional]
**Params** | Pointer to [**[]FpPipelineParam**](FpPipelineParam.md) | | [optional]
**StartLineNumber** | Pointer to **int32** | | [optional]
**Steps** | Pointer to **[]map[string]interface{}** | | [optional]
**Tags** | Pointer to **map[string]string** | | [optional]
**Title** | Pointer to **string** | | [optional]
Expand Down Expand Up @@ -83,6 +86,56 @@ SetDocumentation sets Documentation field to given value.

HasDocumentation returns a boolean if a field has been set.

### GetEndLineNumber

`func (o *FpPipeline) GetEndLineNumber() int32`

GetEndLineNumber returns the EndLineNumber field if non-nil, zero value otherwise.

### GetEndLineNumberOk

`func (o *FpPipeline) GetEndLineNumberOk() (*int32, bool)`

GetEndLineNumberOk returns a tuple with the EndLineNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetEndLineNumber

`func (o *FpPipeline) SetEndLineNumber(v int32)`

SetEndLineNumber sets EndLineNumber field to given value.

### HasEndLineNumber

`func (o *FpPipeline) HasEndLineNumber() bool`

HasEndLineNumber returns a boolean if a field has been set.

### GetFileName

`func (o *FpPipeline) GetFileName() string`

GetFileName returns the FileName field if non-nil, zero value otherwise.

### GetFileNameOk

`func (o *FpPipeline) GetFileNameOk() (*string, bool)`

GetFileNameOk returns a tuple with the FileName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetFileName

`func (o *FpPipeline) SetFileName(v string)`

SetFileName sets FileName field to given value.

### HasFileName

`func (o *FpPipeline) HasFileName() bool`

HasFileName returns a boolean if a field has been set.

### GetMod

`func (o *FpPipeline) GetMod() string`
Expand Down Expand Up @@ -183,6 +236,31 @@ SetParams sets Params field to given value.

HasParams returns a boolean if a field has been set.

### GetStartLineNumber

`func (o *FpPipeline) GetStartLineNumber() int32`

GetStartLineNumber returns the StartLineNumber field if non-nil, zero value otherwise.

### GetStartLineNumberOk

`func (o *FpPipeline) GetStartLineNumberOk() (*int32, bool)`

GetStartLineNumberOk returns a tuple with the StartLineNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetStartLineNumber

`func (o *FpPipeline) SetStartLineNumber(v int32)`

SetStartLineNumber sets StartLineNumber field to given value.

### HasStartLineNumber

`func (o *FpPipeline) HasStartLineNumber() bool`

HasStartLineNumber returns a boolean if a field has been set.

### GetSteps

`func (o *FpPipeline) GetSteps() []map[string]interface{}`
Expand Down
Loading

0 comments on commit ce86a25

Please sign in to comment.