Skip to content

Commit

Permalink
Added Variable APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
vhadianto committed May 22, 2024
1 parent a259c24 commit cd54be5
Show file tree
Hide file tree
Showing 23 changed files with 1,692 additions and 46 deletions.
10 changes: 8 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ docs/FpPipeline.md
docs/FpPipelineParam.md
docs/FpTrigger.md
docs/FpTriggerPipeline.md
docs/FpVariable.md
docs/HclPos.md
docs/HclRange.md
docs/HclRangeStart.md
docs/IntegrationApi.md
docs/ListIntegrationResponse.md
docs/ListNotifierResponse.md
Expand Down Expand Up @@ -54,7 +58,6 @@ docs/ProcessApi.md
docs/ProcessEventLog.md
docs/Require.md
docs/TriggerApi.md
docs/Variable.md
docs/VariableApi.md
git_push.sh
go.mod
Expand All @@ -74,6 +77,10 @@ model_fp_pipeline.go
model_fp_pipeline_param.go
model_fp_trigger.go
model_fp_trigger_pipeline.go
model_fp_variable.go
model_hcl_pos.go
model_hcl_range.go
model_hcl_range_start.go
model_list_integration_response.go
model_list_notifier_response.go
model_list_pipeline_response.go
Expand All @@ -96,6 +103,5 @@ model_perr_error_model.go
model_process.go
model_process_event_log.go
model_require.go
model_variable.go
response.go
utils.go
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ Class | Method | HTTP request | Description
- [FpPipelineParam](docs/FpPipelineParam.md)
- [FpTrigger](docs/FpTrigger.md)
- [FpTriggerPipeline](docs/FpTriggerPipeline.md)
- [FpVariable](docs/FpVariable.md)
- [HclPos](docs/HclPos.md)
- [HclRange](docs/HclRange.md)
- [HclRangeStart](docs/HclRangeStart.md)
- [ListIntegrationResponse](docs/ListIntegrationResponse.md)
- [ListNotifierResponse](docs/ListNotifierResponse.md)
- [ListPipelineResponse](docs/ListPipelineResponse.md)
Expand All @@ -137,7 +141,6 @@ Class | Method | HTTP request | Description
- [Process](docs/Process.md)
- [ProcessEventLog](docs/ProcessEventLog.md)
- [Require](docs/Require.md)
- [Variable](docs/Variable.md)


## Documentation For Authorization
Expand Down
131 changes: 106 additions & 25 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Variable'
$ref: '#/components/schemas/FpVariable'
description: OK
"400":
content:
Expand Down Expand Up @@ -1152,6 +1152,7 @@ components:
url:
type: string
webhook_url:
description: slack & msteams
type: string
type: object
FpNotifier:
Expand Down Expand Up @@ -1260,6 +1261,9 @@ components:
- depends_on
name: name
description: description
Range:
filename: filename
start: null
value: "{}"
resolved: true
- credential_depends_on:
Expand All @@ -1270,6 +1274,9 @@ components:
- depends_on
name: name
description: description
Range:
filename: filename
start: null
value: "{}"
resolved: true
mod: mod
Expand Down Expand Up @@ -1417,6 +1424,28 @@ components:
pipeline:
type: string
type: object
FpVariable:
example:
default: ""
name: name
description: description
type: type
value: ""
mod_name: mod_name
properties:
default:
type: AnyType
description:
type: string
mod_name:
type: string
name:
type: string
type:
type: string
value:
type: AnyType
type: object
ListIntegrationResponse:
example:
next_token: next_token
Expand Down Expand Up @@ -1582,6 +1611,9 @@ components:
- depends_on
name: name
description: description
Range:
filename: filename
start: null
value: "{}"
resolved: true
- credential_depends_on:
Expand All @@ -1592,6 +1624,9 @@ components:
- depends_on
name: name
description: description
Range:
filename: filename
start: null
value: "{}"
resolved: true
mod: mod
Expand Down Expand Up @@ -1628,6 +1663,9 @@ components:
- depends_on
name: name
description: description
Range:
filename: filename
start: null
value: "{}"
resolved: true
- credential_depends_on:
Expand All @@ -1638,6 +1676,9 @@ components:
- depends_on
name: name
description: description
Range:
filename: filename
start: null
value: "{}"
resolved: true
mod: mod
Expand Down Expand Up @@ -1765,20 +1806,22 @@ components:
example:
next_token: next_token
items:
- default: "{}"
- default: ""
name: name
description: description
type: type
value: "{}"
- default: "{}"
value: ""
mod_name: mod_name
- default: ""
name: name
description: description
type: type
value: "{}"
value: ""
mod_name: mod_name
properties:
items:
items:
$ref: '#/components/schemas/Variable'
$ref: '#/components/schemas/FpVariable'
type: array
next_token:
type: string
Expand Down Expand Up @@ -1898,25 +1941,6 @@ components:
$ref: '#/components/schemas/ModVersionConstraint'
type: array
type: object
Variable:
example:
default: "{}"
name: name
description: description
type: type
value: "{}"
properties:
default:
type: object
description:
type: string
name:
type: string
type:
type: string
value:
type: object
type: object
execution.Execution:
example:
pipeline_executions:
Expand Down Expand Up @@ -2368,6 +2392,47 @@ components:
$ref: '#/components/schemas/execution.StepExecution'
type: array
type: object
hcl.Pos:
properties:
byte:
description: |-
Byte is the byte offset into the file where the indicated character
begins. This is a zero-based offset to the first byte of the first
UTF-8 codepoint sequence in the character, and thus gives a position
that can be resolved _without_ awareness of Unicode characters.
type: integer
column:
description: |-
Column is the source code column where this position points, in
unicode characters, with counting starting at 1.
Column counts characters as they appear visually, so for example a
latin letter with a combining diacritic mark counts as one character.
This is intended for rendering visual markers against source code in
contexts where these diacritics would be rendered in a single character
cell. Technically speaking, Column is counting grapheme clusters as
used in unicode normalization.
type: integer
line:
description: |-
Line is the source code line where this position points. Lines are
counted starting at 1 and incremented for each newline character
encountered.
type: integer
type: object
hcl.Range:
example:
filename: filename
start: null
properties:
filename:
description: |-
Filename is the name of the file into which this range's positions
point.
type: string
start:
$ref: '#/components/schemas/hcl_Range_start'
type: object
modconfig.Input:
additionalProperties: true
type: object
Expand All @@ -2392,6 +2457,10 @@ components:
type: array
failure_mode:
type: string
flowpipe:
additionalProperties: true
description: "Flowpipe metadata, contains started_at, finished_at"
type: object
status:
type: string
type: object
Expand All @@ -2408,9 +2477,14 @@ components:
- depends_on
name: name
description: description
Range:
filename: filename
start: null
value: "{}"
resolved: true
properties:
Range:
$ref: '#/components/schemas/hcl.Range'
credential_depends_on:
items:
type: string
Expand Down Expand Up @@ -2561,6 +2635,13 @@ components:
- $ref: '#/components/schemas/modconfig.StepForEach'
description: for_each controls
type: object
hcl_Range_start:
allOf:
- $ref: '#/components/schemas/hcl.Pos'
description: |-
Start and End represent the bounds of this range. Start is inclusive
and End is exclusive.
type: object
securitySchemes:
ApiKeyAuth:
in: header
Expand Down
8 changes: 4 additions & 4 deletions api_variable.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions docs/ExecutionStepExecutionOutput.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**Data** | Pointer to **map[string]interface{}** | | [optional]
**Errors** | Pointer to [**[]ModconfigStepError**](ModconfigStepError.md) | | [optional]
**FailureMode** | Pointer to **string** | | [optional]
**Flowpipe** | Pointer to **map[string]interface{}** | Flowpipe metadata, contains started_at, finished_at | [optional]
**Status** | Pointer to **string** | | [optional]

## Methods
Expand Down Expand Up @@ -103,6 +104,31 @@ SetFailureMode sets FailureMode field to given value.

HasFailureMode returns a boolean if a field has been set.

### GetFlowpipe

`func (o *ExecutionStepExecutionOutput) GetFlowpipe() map[string]interface{}`

GetFlowpipe returns the Flowpipe field if non-nil, zero value otherwise.

### GetFlowpipeOk

`func (o *ExecutionStepExecutionOutput) GetFlowpipeOk() (*map[string]interface{}, bool)`

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

### SetFlowpipe

`func (o *ExecutionStepExecutionOutput) SetFlowpipe(v map[string]interface{})`

SetFlowpipe sets Flowpipe field to given value.

### HasFlowpipe

`func (o *ExecutionStepExecutionOutput) HasFlowpipe() bool`

HasFlowpipe returns a boolean if a field has been set.

### GetStatus

`func (o *ExecutionStepExecutionOutput) GetStatus() string`
Expand Down
2 changes: 1 addition & 1 deletion docs/FpIntegration.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Name | Type | Description | Notes
**Token** | Pointer to **string** | slack | [optional]
**Type** | Pointer to **string** | | [optional]
**Url** | Pointer to **string** | | [optional]
**WebhookUrl** | Pointer to **string** | | [optional]
**WebhookUrl** | Pointer to **string** | slack & msteams | [optional]

## Methods

Expand Down
Loading

0 comments on commit cd54be5

Please sign in to comment.