github.com/launchdarkly/api-client-go@v5.3.0+incompatible/model_environment_post.go (about) 1 /* 2 * LaunchDarkly REST API 3 * 4 * Build custom integrations with the LaunchDarkly REST API 5 * 6 * API version: 5.3.0 7 * Contact: support@launchdarkly.com 8 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 9 */ 10 11 package ldapi 12 13 type EnvironmentPost struct { 14 // The name of the new environment. 15 Name string `json:"name"` 16 // A project-unique key for the new environment. 17 Key string `json:"key"` 18 // A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8). 19 Color string `json:"color"` 20 // The default TTL for the new environment. 21 DefaultTtl float32 `json:"defaultTtl,omitempty"` 22 // Determines whether the environment is in secure mode. 23 SecureMode bool `json:"secureMode,omitempty"` 24 // Set to true to send detailed event information for newly created flags. 25 DefaultTrackEvents bool `json:"defaultTrackEvents,omitempty"` 26 // An array of tags for this environment. 27 Tags []string `json:"tags,omitempty"` 28 // Determines if this environment requires comments for flag and segment changes. 29 RequireComments bool `json:"requireComments,omitempty"` 30 // Determines if this environment requires confirmation for flag and segment changes. 31 ConfirmChanges bool `json:"confirmChanges,omitempty"` 32 }