/
model_feature.go
51 lines (50 loc) · 2.27 KB
/
model_feature.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Harness NextGen Software Delivery Platform API Reference
*
* This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub # Authentication <!-- ReDoc-Inject: <security-definitions> -->
*
* API version: 3.0
* Contact: contact@harness.io
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package nextgen
// A Feature Flag response
type Feature struct {
// Indicates if the flag has been archived and is no longer used
Archived bool `json:"archived,omitempty"`
// The date the flag was created in milliseconds
CreatedAt int64 `json:"createdAt"`
// The default value returned when a flag is off
DefaultOffVariation string `json:"defaultOffVariation"`
// The default value returned when a flag is on
DefaultOnVariation string `json:"defaultOnVariation"`
// A description for this flag
Description string `json:"description,omitempty"`
EnvProperties *FeatureEnvProperties `json:"envProperties,omitempty"`
// The value that the flag will return for the current user
Evaluation string `json:"evaluation,omitempty"`
// The identifier for the returned evaluation
EvaluationIdentifier string `json:"evaluationIdentifier,omitempty"`
// The Feature Flag identifier
Identifier string `json:"identifier"`
// The type of Feature flag
Kind string `json:"kind"`
// The date the flag was last modified in milliseconds
ModifiedAt int64 `json:"modifiedAt,omitempty"`
// The name of the Feature Flag
Name string `json:"name"`
// The user who created the flag
Owner []string `json:"owner,omitempty"`
// Indicates if this is a permanent flag, or one that should expire
Permanent bool `json:"permanent,omitempty"`
Prerequisites []Prerequisite `json:"prerequisites,omitempty"`
// The project this Feature belongs to
Project string `json:"project"`
// The results shows which variations have been evaluated, and how many times each of these have been evaluated.
Results []Results `json:"results,omitempty"`
Status *FeatureStatus `json:"status,omitempty"`
// A list of tags for this Feature Flag
Tags []Tag `json:"tags,omitempty"`
// The variations that can be returned for this flag
Variations []Variation `json:"variations"`
}