LaunchDarklyApi::Environment
Name
Type
Description
Notes
_links
Hash<String, Link>
Links to related resources.
_id
String
key
String
A project-unique key for the new environment.
name
String
A human-friendly name for the new environment.
api_key
String
API key to use with client-side SDKs.
mobile_key
String
API key to use with mobile SDKs.
color
String
The color used to indicate this environment in the UI.
default_ttl
Integer
The default time (in minutes) that the PHP SDK can cache feature flag rules locally.
secure_mode
Boolean
Secure mode ensures that a user of the client-side SDK cannot impersonate another user.
default_track_events
Boolean
Enables tracking detailed information for new flags by default.
require_comments
Boolean
confirm_changes
Boolean
tags
Array<String>
approval_settings
ApprovalSettings
[optional]
require 'launchdarkly_api'
instance = LaunchDarklyApi ::Environment . new (
_links : { " ; self " ; :{ " ; href " ; :" ; /api/v 2 /projects /my -project /environments /my -environment " ; , " ; type " ; :" ; application /json " ; } } ,
_id : 57 be1db38b75bf0772d11384 ,
key : my -environment ,
name : My Environment ,
api_key : XYZ ,
mobile_key : XYZ ,
color : F5A623 ,
default_ttl : 5 ,
secure_mode : true ,
default_track_events : false ,
require_comments : null ,
confirm_changes : null ,
tags : [ " ; ops " ; ] ,
approval_settings : null
)