forked from TomTucka/go-circleci-v2
/
model_workflow_1.go
35 lines (34 loc) · 1.38 KB
/
model_workflow_1.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* CircleCI API
*
* This describes the resources that make up the CircleCI API v2. API v2 is currently in Preview. Additional documentation for this API can be found in the [API Preview Docs](https://github.com/CircleCI-Public/api-preview-docs/tree/master/docs). Breaking changes to the API will be announced in the [Breaking Changes log](https://github.com/CircleCI-Public/api-preview-docs/blob/master/docs/breaking.md).
*
* API version: v2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package circleci
import (
"time"
)
// A workflow
type Workflow1 struct {
// The ID of the pipeline this workflow belongs to.
PipelineId string `json:"pipeline_id"`
CanceledBy string `json:"canceled_by,omitempty"`
// The unique ID of the workflow.
Id string `json:"id"`
// The name of the workflow.
Name string `json:"name"`
// The project-slug for the pipeline this workflow belongs to.
ProjectSlug string `json:"project_slug"`
ErroredBy string `json:"errored_by,omitempty"`
// The current status of the workflow.
Status string `json:"status"`
StartedBy string `json:"started_by"`
// The number of the pipeline this workflow belongs to.
PipelineNumber int64 `json:"pipeline_number"`
// The date and time the workflow was created.
CreatedAt time.Time `json:"created_at"`
// The date and time the workflow stopped.
StoppedAt time.Time `json:"stopped_at"`
}