Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.25 KB

PatchSegmentExpiringTargetInstruction.md

File metadata and controls

28 lines (22 loc) · 1.25 KB

LaunchDarklyApi::PatchSegmentExpiringTargetInstruction

Properties

Name Type Description Notes
kind String The type of change to make to the context's removal date from this segment
context_key String A unique key used to represent the context
context_kind String The kind of context
target_type String The segment's target type
value Integer The time, in Unix milliseconds, when the context should be removed from this segment. Required if <code>kind</code> is <code>addExpiringTarget</code> or <code>updateExpiringTarget</code>. [optional]
version Integer The version of the expiring target to update. Optional and only used if <code>kind</code> is <code>updateExpiringTarget</code>. If included, update will fail if version doesn't match current version of the expiring target. [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::PatchSegmentExpiringTargetInstruction.new(
  kind: addExpiringTarget,
  context_key: null,
  context_kind: user,
  target_type: null,
  value: 1653469200000,
  version: 1
)