Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.57 KB

FeatureFlagBody.md

File metadata and controls

36 lines (30 loc) · 1.57 KB

LaunchDarklyApi::FeatureFlagBody

Properties

Name Type Description Notes
name String A human-friendly name for the feature flag
key String A unique key used to reference the flag in your code
description String Description of the feature flag [optional]
include_in_snippet Boolean Deprecated, use <code>clientSideAvailability</code>. Whether this flag should be made available to the client-side JavaScript SDK. [optional]
client_side_availability ClientSideAvailabilityPost [optional]
variations Array<Variation> An array of possible variations for the flag. The variation values must be unique. [optional]
temporary Boolean Whether the flag is a temporary flag. Defaults to true. [optional]
tags Array<String> Tags for the feature flag [optional]
custom_properties Hash<String, CustomProperty> [optional]
defaults Defaults [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::FeatureFlagBody.new(
  name: My flag,
  key: my-flag,
  description: This flag controls the example widgets,
  include_in_snippet: null,
  client_side_availability: null,
  variations: [{&quot;value&quot;:true},{&quot;value&quot;:false}],
  temporary: false,
  tags: [&quot;example-tag&quot;],
  custom_properties: null,
  defaults: null
)