launchdarkly_api 5.4.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (850) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +3 -1
  3. data/README.md +304 -261
  4. data/Rakefile +2 -0
  5. data/docs/AccessDeniedReasonRep.md +28 -0
  6. data/docs/AccessDeniedRep.md +20 -0
  7. data/docs/AccessRep.md +18 -0
  8. data/docs/AccessTokenPost.md +30 -0
  9. data/docs/AccessTokensApi.md +239 -126
  10. data/docs/AccountMembersApi.md +376 -0
  11. data/docs/AccountUsageBetaApi.md +647 -0
  12. data/docs/ApprovalSettings.md +32 -0
  13. data/docs/ApprovalsApi.md +554 -0
  14. data/docs/AuditLogApi.md +93 -55
  15. data/docs/AuditLogEntryListingRep.md +52 -0
  16. data/docs/AuditLogEntryListingRepCollection.md +20 -0
  17. data/docs/AuditLogEntryRep.md +64 -0
  18. data/docs/AuthorizedAppDataRep.md +26 -0
  19. data/docs/BigSegmentTarget.md +22 -0
  20. data/docs/BranchCollectionRep.md +20 -0
  21. data/docs/BranchRep.md +28 -0
  22. data/docs/Clause.md +21 -7
  23. data/docs/ClientSideAvailability.md +15 -4
  24. data/docs/ClientSideAvailabilityPost.md +20 -0
  25. data/docs/CodeReferencesApi.md +975 -0
  26. data/docs/ConfidenceIntervalRep.md +20 -0
  27. data/docs/Conflict.md +20 -0
  28. data/docs/CopiedFromEnv.md +20 -0
  29. data/docs/CreateCopyFlagConfigApprovalRequestRequest.md +28 -0
  30. data/docs/CreateFlagConfigApprovalRequestRequest.md +30 -0
  31. data/docs/CustomProperty.md +15 -4
  32. data/docs/CustomRole.md +25 -8
  33. data/docs/CustomRolePost.md +24 -0
  34. data/docs/CustomRolePostData.md +24 -0
  35. data/docs/CustomRoles.md +15 -4
  36. data/docs/CustomRolesApi.md +197 -101
  37. data/docs/DataExportDestinationsApi.md +205 -117
  38. data/docs/DefaultClientSideAvailabilityPost.md +20 -0
  39. data/docs/Defaults.md +15 -4
  40. data/docs/DependentFlag.md +19 -6
  41. data/docs/DependentFlagEnvironment.md +19 -6
  42. data/docs/DependentFlagsByEnvironment.md +17 -5
  43. data/docs/Destination.md +27 -9
  44. data/docs/DestinationPost.md +24 -0
  45. data/docs/Destinations.md +15 -4
  46. data/docs/Environment.md +35 -16
  47. data/docs/EnvironmentPost.md +29 -11
  48. data/docs/EnvironmentsApi.md +246 -144
  49. data/docs/ExperimentAllocationRep.md +20 -0
  50. data/docs/ExperimentEnabledPeriodRep.md +20 -0
  51. data/docs/ExperimentEnvironmentSettingRep.md +22 -0
  52. data/docs/ExperimentInfoRep.md +20 -0
  53. data/docs/ExperimentMetadataRep.md +18 -0
  54. data/docs/ExperimentRep.md +24 -0
  55. data/docs/ExperimentResultsRep.md +28 -0
  56. data/docs/ExperimentStatsRep.md +24 -0
  57. data/docs/ExperimentTimeSeriesSlice.md +20 -0
  58. data/docs/ExperimentTimeSeriesVariationSlice.md +32 -0
  59. data/docs/ExperimentTotalsRep.md +32 -0
  60. data/docs/ExperimentsBetaApi.md +168 -0
  61. data/docs/ExpiringUserTargetError.md +20 -0
  62. data/docs/ExpiringUserTargetGetResponse.md +20 -0
  63. data/docs/ExpiringUserTargetItem.md +30 -0
  64. data/docs/ExpiringUserTargetPatchResponse.md +28 -0
  65. data/docs/Extinction.md +26 -0
  66. data/docs/ExtinctionCollectionRep.md +20 -0
  67. data/docs/ExtinctionRep.md +26 -0
  68. data/docs/FeatureFlag.md +55 -22
  69. data/docs/FeatureFlagBody.md +33 -11
  70. data/docs/FeatureFlagConfig.md +47 -17
  71. data/docs/FeatureFlagScheduledChange.md +27 -6
  72. data/docs/FeatureFlagScheduledChanges.md +15 -4
  73. data/docs/FeatureFlagStatus.md +17 -6
  74. data/docs/FeatureFlagStatusAcrossEnvironments.md +17 -5
  75. data/docs/FeatureFlagStatuses.md +15 -4
  76. data/docs/FeatureFlags.md +17 -5
  77. data/docs/FeatureFlagsApi.md +451 -1184
  78. data/docs/FeatureFlagsBetaApi.md +157 -0
  79. data/docs/FlagConfigApprovalRequestResponse.md +54 -0
  80. data/docs/FlagConfigApprovalRequestsResponse.md +20 -0
  81. data/docs/FlagCopyConfigEnvironment.md +20 -0
  82. data/docs/FlagCopyConfigPost.md +26 -0
  83. data/docs/FlagGlobalAttributesRep.md +58 -0
  84. data/docs/FlagListingRep.md +24 -0
  85. data/docs/FlagScheduledChangesInput.md +20 -0
  86. data/docs/FlagStatusRep.md +24 -0
  87. data/docs/FlagSummary.md +18 -0
  88. data/docs/HunkRep.md +26 -0
  89. data/docs/InlineObject.md +26 -0
  90. data/docs/InlineObject1.md +28 -0
  91. data/docs/InlineResponse200.md +20 -0
  92. data/docs/IntegrationMetadata.md +24 -0
  93. data/docs/IntegrationStatus.md +20 -0
  94. data/docs/IpList.md +20 -0
  95. data/docs/LastSeenMetadata.md +18 -0
  96. data/docs/Link.md +15 -4
  97. data/docs/Member.md +45 -14
  98. data/docs/MemberDataRep.md +26 -0
  99. data/docs/MemberPermissionGrantSummaryRep.md +22 -0
  100. data/docs/MemberSummaryRep.md +28 -0
  101. data/docs/MemberTeamSummaryRep.md +22 -0
  102. data/docs/Members.md +17 -5
  103. data/docs/MetricCollectionRep.md +20 -0
  104. data/docs/MetricListingRep.md +52 -0
  105. data/docs/MetricPost.md +40 -0
  106. data/docs/MetricRep.md +62 -0
  107. data/docs/MetricsApi.md +376 -0
  108. data/docs/Modification.md +18 -0
  109. data/docs/MultiEnvironmentDependentFlag.md +17 -7
  110. data/docs/MultiEnvironmentDependentFlags.md +17 -5
  111. data/docs/NewMemberForm.md +28 -0
  112. data/docs/OtherApi.md +282 -0
  113. data/docs/ParentResourceRep.md +22 -0
  114. data/docs/PatchOperation.md +17 -5
  115. data/docs/PatchSegmentInstruction.md +26 -0
  116. data/docs/PatchSegmentRequest.md +20 -0
  117. data/docs/PatchWithComment.md +20 -0
  118. data/docs/PostApprovalRequestApplyRequest.md +18 -0
  119. data/docs/PostApprovalRequestReviewRequest.md +20 -0
  120. data/docs/PostFlagScheduledChangesInput.md +22 -0
  121. data/docs/Prerequisite.md +15 -4
  122. data/docs/Project.md +27 -10
  123. data/docs/ProjectListingRep.md +30 -0
  124. data/docs/ProjectPost.md +28 -0
  125. data/docs/Projects.md +15 -4
  126. data/docs/ProjectsApi.md +196 -100
  127. data/docs/PubNubDetailRep.md +20 -0
  128. data/docs/ReferenceRep.md +22 -0
  129. data/docs/RelayAutoConfigCollectionRep.md +18 -0
  130. data/docs/RelayAutoConfigPost.md +20 -0
  131. data/docs/RelayAutoConfigRep.md +34 -0
  132. data/docs/RelayProxyConfigurationsApi.md +244 -129
  133. data/docs/RepositoryCollectionRep.md +20 -0
  134. data/docs/RepositoryPost.md +28 -0
  135. data/docs/RepositoryRep.md +38 -0
  136. data/docs/ResourceAccess.md +20 -0
  137. data/docs/ResourceIDResponse.md +26 -0
  138. data/docs/ReviewResponse.md +26 -0
  139. data/docs/Rollout.md +19 -4
  140. data/docs/Rule.md +23 -8
  141. data/docs/ScheduledChangesApi.md +404 -0
  142. data/docs/SdkListRep.md +20 -0
  143. data/docs/SdkVersionListRep.md +20 -0
  144. data/docs/SdkVersionRep.md +20 -0
  145. data/docs/SegmentBody.md +26 -0
  146. data/docs/SegmentMetadata.md +28 -0
  147. data/docs/SegmentUserList.md +20 -0
  148. data/docs/SegmentUserState.md +20 -0
  149. data/docs/SegmentsApi.md +695 -0
  150. data/docs/SeriesListRep.md +22 -0
  151. data/docs/SourceFlag.md +20 -0
  152. data/docs/Statement.md +21 -7
  153. data/docs/StatementPost.md +26 -0
  154. data/docs/StatementPostData.md +26 -0
  155. data/docs/StatementRep.md +26 -0
  156. data/docs/StatisticCollectionRep.md +20 -0
  157. data/docs/StatisticRep.md +30 -0
  158. data/docs/StatisticsRoot.md +20 -0
  159. data/docs/SubjectDataRep.md +22 -0
  160. data/docs/Target.md +15 -4
  161. data/docs/TargetResourceRep.md +22 -0
  162. data/docs/TitleRep.md +32 -0
  163. data/docs/Token.md +43 -17
  164. data/docs/TokenDataRep.md +26 -0
  165. data/docs/Tokens.md +15 -4
  166. data/docs/UrlPost.md +24 -0
  167. data/docs/User.md +25 -13
  168. data/docs/UserAttributeNamesRep.md +22 -0
  169. data/docs/UserFlagSetting.md +17 -5
  170. data/docs/UserFlagSettings.md +15 -4
  171. data/docs/UserRecord.md +21 -7
  172. data/docs/UserSegment.md +47 -14
  173. data/docs/UserSegmentRule.md +19 -5
  174. data/docs/UserSegments.md +15 -4
  175. data/docs/UserSettingsApi.md +217 -137
  176. data/docs/Users.md +17 -5
  177. data/docs/UsersApi.md +184 -115
  178. data/docs/UsersBetaApi.md +81 -0
  179. data/docs/ValuePut.md +20 -0
  180. data/docs/Variate.md +24 -0
  181. data/docs/Variation.md +19 -6
  182. data/docs/VariationOrRolloutRep.md +20 -0
  183. data/docs/VariationSummary.md +30 -0
  184. data/docs/VersionsRep.md +24 -0
  185. data/docs/Webhook.md +29 -10
  186. data/docs/WebhookPost.md +30 -0
  187. data/docs/Webhooks.md +15 -4
  188. data/docs/WebhooksApi.md +199 -103
  189. data/docs/WeightedVariation.md +17 -4
  190. data/git_push.sh +12 -10
  191. data/launchdarkly_api.gemspec +6 -14
  192. data/lib/launchdarkly_api/api/access_tokens_api.rb +190 -122
  193. data/lib/launchdarkly_api/api/account_members_api.rb +351 -0
  194. data/lib/launchdarkly_api/api/account_usage_beta_api.rb +598 -0
  195. data/lib/launchdarkly_api/api/approvals_api.rb +601 -0
  196. data/lib/launchdarkly_api/api/audit_log_api.rb +72 -51
  197. data/lib/launchdarkly_api/api/code_references_api.rb +898 -0
  198. data/lib/launchdarkly_api/api/custom_roles_api.rb +163 -106
  199. data/lib/launchdarkly_api/api/data_export_destinations_api.rb +202 -145
  200. data/lib/launchdarkly_api/api/environments_api.rb +197 -132
  201. data/lib/launchdarkly_api/api/experiments_beta_api.rb +188 -0
  202. data/lib/launchdarkly_api/api/feature_flags_api.rb +487 -1390
  203. data/lib/launchdarkly_api/api/feature_flags_beta_api.rb +166 -0
  204. data/lib/launchdarkly_api/api/metrics_api.rb +369 -0
  205. data/lib/launchdarkly_api/api/other_api.rb +248 -0
  206. data/lib/launchdarkly_api/api/projects_api.rb +147 -90
  207. data/lib/launchdarkly_api/api/relay_proxy_configurations_api.rb +195 -127
  208. data/lib/launchdarkly_api/api/scheduled_changes_api.rb +435 -0
  209. data/lib/launchdarkly_api/api/segments_api.rb +719 -0
  210. data/lib/launchdarkly_api/api/user_settings_api.rb +237 -180
  211. data/lib/launchdarkly_api/api/users_api.rb +180 -138
  212. data/lib/launchdarkly_api/api/users_beta_api.rb +91 -0
  213. data/lib/launchdarkly_api/api/webhooks_api.rb +170 -113
  214. data/lib/launchdarkly_api/api_client.rb +87 -88
  215. data/lib/launchdarkly_api/api_error.rb +23 -4
  216. data/lib/launchdarkly_api/configuration.rb +83 -15
  217. data/lib/launchdarkly_api/models/access_denied_reason_rep.rb +276 -0
  218. data/lib/launchdarkly_api/models/access_denied_rep.rb +237 -0
  219. data/lib/launchdarkly_api/models/access_rep.rb +225 -0
  220. data/lib/launchdarkly_api/models/access_token_post.rb +317 -0
  221. data/lib/launchdarkly_api/models/approval_settings.rb +331 -0
  222. data/lib/launchdarkly_api/models/audit_log_entry_listing_rep.rb +420 -0
  223. data/lib/launchdarkly_api/models/audit_log_entry_listing_rep_collection.rb +241 -0
  224. data/lib/launchdarkly_api/models/audit_log_entry_rep.rb +481 -0
  225. data/lib/launchdarkly_api/models/authorized_app_data_rep.rb +256 -0
  226. data/lib/launchdarkly_api/models/big_segment_target.rb +254 -0
  227. data/lib/launchdarkly_api/models/branch_collection_rep.rb +241 -0
  228. data/lib/launchdarkly_api/models/branch_rep.rb +267 -0
  229. data/lib/launchdarkly_api/models/clause.rb +78 -24
  230. data/lib/launchdarkly_api/models/client_side_availability.rb +65 -33
  231. data/lib/launchdarkly_api/models/client_side_availability_post.rb +237 -0
  232. data/lib/launchdarkly_api/models/confidence_interval_rep.rb +227 -0
  233. data/lib/launchdarkly_api/models/conflict.rb +230 -0
  234. data/lib/launchdarkly_api/models/copied_from_env.rb +233 -0
  235. data/lib/launchdarkly_api/models/create_copy_flag_config_approval_request_request.rb +281 -0
  236. data/lib/launchdarkly_api/models/create_flag_config_approval_request_request.rb +297 -0
  237. data/lib/launchdarkly_api/models/custom_property.rb +59 -23
  238. data/lib/launchdarkly_api/models/custom_role.rb +101 -34
  239. data/lib/launchdarkly_api/models/custom_role_post.rb +265 -0
  240. data/lib/launchdarkly_api/models/custom_role_post_data.rb +265 -0
  241. data/lib/launchdarkly_api/models/custom_roles.rb +58 -22
  242. data/lib/launchdarkly_api/models/default_client_side_availability_post.rb +237 -0
  243. data/lib/launchdarkly_api/models/defaults.rb +56 -25
  244. data/lib/launchdarkly_api/models/dependent_flag.rb +76 -25
  245. data/lib/launchdarkly_api/models/dependent_flag_environment.rb +76 -25
  246. data/lib/launchdarkly_api/models/dependent_flags_by_environment.rb +75 -24
  247. data/lib/launchdarkly_api/models/destination.rb +88 -47
  248. data/lib/launchdarkly_api/models/destination_post.rb +281 -0
  249. data/lib/launchdarkly_api/models/destinations.rb +58 -22
  250. data/lib/launchdarkly_api/models/environment.rb +144 -73
  251. data/lib/launchdarkly_api/models/environment_post.rb +90 -56
  252. data/lib/launchdarkly_api/models/experiment_allocation_rep.rb +237 -0
  253. data/lib/launchdarkly_api/models/experiment_enabled_period_rep.rb +227 -0
  254. data/lib/launchdarkly_api/models/experiment_environment_setting_rep.rb +238 -0
  255. data/lib/launchdarkly_api/models/experiment_info_rep.rb +239 -0
  256. data/lib/launchdarkly_api/models/experiment_metadata_rep.rb +219 -0
  257. data/lib/launchdarkly_api/models/experiment_rep.rb +249 -0
  258. data/lib/launchdarkly_api/models/experiment_results_rep.rb +271 -0
  259. data/lib/launchdarkly_api/models/experiment_stats_rep.rb +245 -0
  260. data/lib/launchdarkly_api/models/experiment_time_series_slice.rb +229 -0
  261. data/lib/launchdarkly_api/models/experiment_time_series_variation_slice.rb +281 -0
  262. data/lib/launchdarkly_api/models/experiment_totals_rep.rb +281 -0
  263. data/lib/launchdarkly_api/models/expiring_user_target_error.rb +237 -0
  264. data/lib/launchdarkly_api/models/expiring_user_target_get_response.rb +236 -0
  265. data/lib/launchdarkly_api/models/expiring_user_target_item.rb +300 -0
  266. data/lib/launchdarkly_api/models/expiring_user_target_patch_response.rb +274 -0
  267. data/lib/launchdarkly_api/models/extinction.rb +274 -0
  268. data/lib/launchdarkly_api/models/extinction_collection_rep.rb +241 -0
  269. data/lib/launchdarkly_api/models/extinction_rep.rb +279 -0
  270. data/lib/launchdarkly_api/models/feature_flag.rb +276 -123
  271. data/lib/launchdarkly_api/models/feature_flag_body.rb +105 -55
  272. data/lib/launchdarkly_api/models/feature_flag_config.rb +184 -55
  273. data/lib/launchdarkly_api/models/feature_flag_scheduled_change.rb +142 -38
  274. data/lib/launchdarkly_api/models/feature_flag_scheduled_changes.rb +73 -32
  275. data/lib/launchdarkly_api/models/feature_flag_status.rb +70 -71
  276. data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +71 -33
  277. data/lib/launchdarkly_api/models/feature_flag_statuses.rb +64 -23
  278. data/lib/launchdarkly_api/models/feature_flags.rb +78 -32
  279. data/lib/launchdarkly_api/models/flag_config_approval_request_response.rb +448 -0
  280. data/lib/launchdarkly_api/models/flag_config_approval_requests_response.rb +242 -0
  281. data/lib/launchdarkly_api/models/flag_copy_config_environment.rb +232 -0
  282. data/lib/launchdarkly_api/models/flag_copy_config_post.rb +290 -0
  283. data/lib/launchdarkly_api/models/flag_global_attributes_rep.rb +514 -0
  284. data/lib/launchdarkly_api/models/flag_listing_rep.rb +257 -0
  285. data/lib/launchdarkly_api/models/flag_scheduled_changes_input.rb +234 -0
  286. data/lib/launchdarkly_api/models/flag_status_rep.rb +256 -0
  287. data/lib/launchdarkly_api/models/flag_summary.rb +223 -0
  288. data/lib/launchdarkly_api/models/hunk_rep.rb +256 -0
  289. data/lib/launchdarkly_api/models/inline_object.rb +274 -0
  290. data/lib/launchdarkly_api/models/inline_object1.rb +276 -0
  291. data/lib/launchdarkly_api/models/inline_response200.rb +227 -0
  292. data/lib/launchdarkly_api/models/integration_metadata.rb +265 -0
  293. data/lib/launchdarkly_api/models/integration_status.rb +237 -0
  294. data/lib/launchdarkly_api/models/ip_list.rb +241 -0
  295. data/lib/launchdarkly_api/models/last_seen_metadata.rb +219 -0
  296. data/lib/launchdarkly_api/models/link.rb +54 -20
  297. data/lib/launchdarkly_api/models/member.rb +213 -67
  298. data/lib/launchdarkly_api/models/member_data_rep.rb +256 -0
  299. data/lib/launchdarkly_api/models/member_permission_grant_summary_rep.rb +253 -0
  300. data/lib/launchdarkly_api/models/member_summary_rep.rb +285 -0
  301. data/lib/launchdarkly_api/models/member_team_summary_rep.rb +253 -0
  302. data/lib/launchdarkly_api/models/members.rb +78 -32
  303. data/lib/launchdarkly_api/models/metric_collection_rep.rb +231 -0
  304. data/lib/launchdarkly_api/models/metric_listing_rep.rb +444 -0
  305. data/lib/launchdarkly_api/models/metric_post.rb +368 -0
  306. data/lib/launchdarkly_api/models/metric_rep.rb +493 -0
  307. data/lib/launchdarkly_api/models/modification.rb +218 -0
  308. data/lib/launchdarkly_api/models/multi_environment_dependent_flag.rb +69 -43
  309. data/lib/launchdarkly_api/models/multi_environment_dependent_flags.rb +75 -24
  310. data/lib/launchdarkly_api/models/new_member_form.rb +276 -0
  311. data/lib/launchdarkly_api/models/parent_resource_rep.rb +239 -0
  312. data/lib/launchdarkly_api/models/patch_operation.rb +59 -26
  313. data/lib/launchdarkly_api/models/patch_segment_instruction.rb +273 -0
  314. data/lib/launchdarkly_api/models/patch_segment_request.rb +236 -0
  315. data/lib/launchdarkly_api/models/patch_with_comment.rb +234 -0
  316. data/lib/launchdarkly_api/models/post_approval_request_apply_request.rb +218 -0
  317. data/lib/launchdarkly_api/models/post_approval_request_review_request.rb +227 -0
  318. data/lib/launchdarkly_api/models/post_flag_scheduled_changes_input.rb +248 -0
  319. data/lib/launchdarkly_api/models/prerequisite.rb +64 -20
  320. data/lib/launchdarkly_api/models/project.rb +120 -50
  321. data/lib/launchdarkly_api/models/project_listing_rep.rb +306 -0
  322. data/lib/launchdarkly_api/models/project_post.rb +281 -0
  323. data/lib/launchdarkly_api/models/projects.rb +70 -22
  324. data/lib/launchdarkly_api/models/pub_nub_detail_rep.rb +227 -0
  325. data/lib/launchdarkly_api/models/reference_rep.rb +238 -0
  326. data/lib/launchdarkly_api/models/relay_auto_config_collection_rep.rb +225 -0
  327. data/lib/launchdarkly_api/models/relay_auto_config_post.rb +240 -0
  328. data/lib/launchdarkly_api/models/relay_auto_config_rep.rb +327 -0
  329. data/lib/launchdarkly_api/models/repository_collection_rep.rb +241 -0
  330. data/lib/launchdarkly_api/models/repository_post.rb +304 -0
  331. data/lib/launchdarkly_api/models/repository_rep.rb +342 -0
  332. data/lib/launchdarkly_api/models/resource_access.rb +228 -0
  333. data/lib/launchdarkly_api/models/resource_id_response.rb +254 -0
  334. data/lib/launchdarkly_api/models/review_response.rb +302 -0
  335. data/lib/launchdarkly_api/models/rollout.rb +89 -32
  336. data/lib/launchdarkly_api/models/rule.rb +77 -33
  337. data/lib/launchdarkly_api/models/sdk_list_rep.rb +241 -0
  338. data/lib/launchdarkly_api/models/sdk_version_list_rep.rb +241 -0
  339. data/lib/launchdarkly_api/models/sdk_version_rep.rb +237 -0
  340. data/lib/launchdarkly_api/models/segment_body.rb +270 -0
  341. data/lib/launchdarkly_api/models/segment_metadata.rb +263 -0
  342. data/lib/launchdarkly_api/models/segment_user_list.rb +231 -0
  343. data/lib/launchdarkly_api/models/segment_user_state.rb +227 -0
  344. data/lib/launchdarkly_api/models/series_list_rep.rb +257 -0
  345. data/lib/launchdarkly_api/models/source_flag.rb +233 -0
  346. data/lib/launchdarkly_api/models/statement.rb +66 -63
  347. data/lib/launchdarkly_api/models/statement_post.rb +271 -0
  348. data/lib/launchdarkly_api/models/statement_post_data.rb +271 -0
  349. data/lib/launchdarkly_api/models/statement_rep.rb +266 -0
  350. data/lib/launchdarkly_api/models/statistic_collection_rep.rb +241 -0
  351. data/lib/launchdarkly_api/models/statistic_rep.rb +309 -0
  352. data/lib/launchdarkly_api/models/statistics_root.rb +229 -0
  353. data/lib/launchdarkly_api/models/subject_data_rep.rb +238 -0
  354. data/lib/launchdarkly_api/models/target.rb +64 -20
  355. data/lib/launchdarkly_api/models/target_resource_rep.rb +240 -0
  356. data/lib/launchdarkly_api/models/title_rep.rb +281 -0
  357. data/lib/launchdarkly_api/models/token.rb +159 -93
  358. data/lib/launchdarkly_api/models/token_data_rep.rb +256 -0
  359. data/lib/launchdarkly_api/models/tokens.rb +68 -32
  360. data/lib/launchdarkly_api/models/url_post.rb +279 -0
  361. data/lib/launchdarkly_api/models/user.rb +97 -96
  362. data/lib/launchdarkly_api/models/user_attribute_names_rep.rb +245 -0
  363. data/lib/launchdarkly_api/models/user_flag_setting.rb +68 -27
  364. data/lib/launchdarkly_api/models/user_flag_settings.rb +78 -32
  365. data/lib/launchdarkly_api/models/user_record.rb +69 -34
  366. data/lib/launchdarkly_api/models/user_segment.rb +186 -69
  367. data/lib/launchdarkly_api/models/user_segment_rule.rb +71 -23
  368. data/lib/launchdarkly_api/models/user_segments.rb +78 -32
  369. data/lib/launchdarkly_api/models/users.rb +72 -26
  370. data/lib/launchdarkly_api/models/value_put.rb +229 -0
  371. data/lib/launchdarkly_api/models/variate.rb +246 -0
  372. data/lib/launchdarkly_api/models/variation.rb +70 -38
  373. data/lib/launchdarkly_api/models/variation_or_rollout_rep.rb +227 -0
  374. data/lib/launchdarkly_api/models/variation_summary.rb +287 -0
  375. data/lib/launchdarkly_api/models/versions_rep.rb +262 -0
  376. data/lib/launchdarkly_api/models/webhook.rb +120 -55
  377. data/lib/launchdarkly_api/models/webhook_post.rb +297 -0
  378. data/lib/launchdarkly_api/models/webhooks.rb +68 -22
  379. data/lib/launchdarkly_api/models/weighted_variation.rb +77 -24
  380. data/lib/launchdarkly_api/version.rb +5 -5
  381. data/lib/launchdarkly_api.rb +129 -97
  382. data/spec/api/access_tokens_api_spec.rb +23 -17
  383. data/spec/api/account_members_api_spec.rb +99 -0
  384. data/spec/api/account_usage_beta_api_spec.rb +156 -0
  385. data/spec/api/approvals_api_spec.rb +141 -0
  386. data/spec/api/audit_log_api_spec.rb +19 -17
  387. data/spec/api/code_references_api_spec.rb +206 -0
  388. data/spec/api/custom_roles_api_spec.rb +23 -18
  389. data/spec/api/data_export_destinations_api_spec.rb +30 -25
  390. data/spec/api/environments_api_spec.rb +31 -26
  391. data/spec/api/experiments_beta_api_spec.rb +67 -0
  392. data/spec/api/feature_flags_api_spec.rb +70 -267
  393. data/spec/api/feature_flags_beta_api_spec.rb +62 -0
  394. data/spec/api/metrics_api_spec.rb +100 -0
  395. data/spec/api/other_api_spec.rb +79 -0
  396. data/spec/api/projects_api_spec.rb +22 -17
  397. data/spec/api/relay_proxy_configurations_api_spec.rb +37 -31
  398. data/spec/api/scheduled_changes_api_spec.rb +112 -0
  399. data/spec/api/segments_api_spec.rb +164 -0
  400. data/spec/api/user_settings_api_spec.rb +41 -36
  401. data/spec/api/users_api_spec.rb +33 -29
  402. data/spec/api/users_beta_api_spec.rb +48 -0
  403. data/spec/api/webhooks_api_spec.rb +27 -22
  404. data/spec/api_client_spec.rb +5 -22
  405. data/spec/configuration_spec.rb +7 -7
  406. data/spec/models/access_denied_reason_rep_spec.rb +64 -0
  407. data/spec/models/access_denied_rep_spec.rb +40 -0
  408. data/spec/models/access_rep_spec.rb +34 -0
  409. data/spec/models/access_token_post_spec.rb +74 -0
  410. data/spec/models/approval_settings_spec.rb +76 -0
  411. data/spec/models/audit_log_entry_listing_rep_collection_spec.rb +40 -0
  412. data/spec/models/audit_log_entry_listing_rep_spec.rb +136 -0
  413. data/spec/models/audit_log_entry_rep_spec.rb +172 -0
  414. data/spec/models/authorized_app_data_rep_spec.rb +58 -0
  415. data/spec/models/big_segment_target_spec.rb +46 -0
  416. data/spec/models/branch_collection_rep_spec.rb +40 -0
  417. data/spec/models/branch_rep_spec.rb +64 -0
  418. data/spec/models/clause_spec.rb +8 -15
  419. data/spec/models/client_side_availability_post_spec.rb +40 -0
  420. data/spec/models/client_side_availability_spec.rb +10 -17
  421. data/spec/models/confidence_interval_rep_spec.rb +40 -0
  422. data/spec/models/conflict_spec.rb +40 -0
  423. data/spec/models/copied_from_env_spec.rb +40 -0
  424. data/spec/models/create_copy_flag_config_approval_request_request_spec.rb +64 -0
  425. data/spec/models/create_flag_config_approval_request_request_spec.rb +70 -0
  426. data/spec/models/custom_property_spec.rb +8 -15
  427. data/spec/models/custom_role_post_data_spec.rb +52 -0
  428. data/spec/models/custom_role_post_spec.rb +52 -0
  429. data/spec/models/custom_role_spec.rb +14 -15
  430. data/spec/models/custom_roles_spec.rb +8 -15
  431. data/spec/models/default_client_side_availability_post_spec.rb +40 -0
  432. data/spec/models/defaults_spec.rb +8 -15
  433. data/spec/models/dependent_flag_environment_spec.rb +8 -15
  434. data/spec/models/dependent_flag_spec.rb +8 -15
  435. data/spec/models/dependent_flags_by_environment_spec.rb +8 -15
  436. data/spec/models/destination_post_spec.rb +56 -0
  437. data/spec/models/destination_spec.rb +19 -20
  438. data/spec/models/destinations_spec.rb +8 -15
  439. data/spec/models/environment_post_spec.rb +10 -17
  440. data/spec/models/environment_spec.rb +8 -27
  441. data/spec/models/experiment_allocation_rep_spec.rb +40 -0
  442. data/spec/models/experiment_enabled_period_rep_spec.rb +40 -0
  443. data/spec/models/experiment_environment_setting_rep_spec.rb +46 -0
  444. data/spec/models/experiment_info_rep_spec.rb +40 -0
  445. data/spec/models/experiment_metadata_rep_spec.rb +34 -0
  446. data/spec/models/experiment_rep_spec.rb +52 -0
  447. data/spec/models/experiment_results_rep_spec.rb +64 -0
  448. data/spec/models/experiment_stats_rep_spec.rb +52 -0
  449. data/spec/models/experiment_time_series_slice_spec.rb +40 -0
  450. data/spec/models/experiment_time_series_variation_slice_spec.rb +76 -0
  451. data/spec/models/experiment_totals_rep_spec.rb +76 -0
  452. data/spec/models/expiring_user_target_error_spec.rb +40 -0
  453. data/spec/models/expiring_user_target_get_response_spec.rb +40 -0
  454. data/spec/models/expiring_user_target_item_spec.rb +70 -0
  455. data/spec/models/expiring_user_target_patch_response_spec.rb +64 -0
  456. data/spec/models/extinction_collection_rep_spec.rb +40 -0
  457. data/spec/models/extinction_rep_spec.rb +58 -0
  458. data/spec/models/extinction_spec.rb +58 -0
  459. data/spec/models/feature_flag_body_spec.rb +24 -19
  460. data/spec/models/feature_flag_config_spec.rb +28 -17
  461. data/spec/models/feature_flag_scheduled_change_spec.rb +34 -17
  462. data/spec/models/feature_flag_scheduled_changes_spec.rb +10 -17
  463. data/spec/models/feature_flag_spec.rb +39 -30
  464. data/spec/models/feature_flag_status_across_environments_spec.rb +10 -17
  465. data/spec/models/feature_flag_status_spec.rb +8 -25
  466. data/spec/models/feature_flag_statuses_spec.rb +8 -15
  467. data/spec/models/feature_flags_spec.rb +10 -17
  468. data/spec/models/flag_config_approval_request_response_spec.rb +142 -0
  469. data/spec/models/flag_config_approval_requests_response_spec.rb +40 -0
  470. data/spec/models/flag_copy_config_environment_spec.rb +40 -0
  471. data/spec/models/flag_copy_config_post_spec.rb +66 -0
  472. data/spec/models/flag_global_attributes_rep_spec.rb +158 -0
  473. data/spec/models/flag_listing_rep_spec.rb +52 -0
  474. data/spec/models/flag_scheduled_changes_input_spec.rb +40 -0
  475. data/spec/models/flag_status_rep_spec.rb +52 -0
  476. data/spec/models/flag_summary_spec.rb +34 -0
  477. data/spec/models/hunk_rep_spec.rb +58 -0
  478. data/spec/models/inline_object1_spec.rb +64 -0
  479. data/spec/models/inline_object_spec.rb +58 -0
  480. data/spec/models/inline_response200_spec.rb +40 -0
  481. data/spec/models/integration_metadata_spec.rb +52 -0
  482. data/spec/models/integration_status_spec.rb +40 -0
  483. data/spec/models/ip_list_spec.rb +40 -0
  484. data/spec/models/last_seen_metadata_spec.rb +34 -0
  485. data/spec/models/link_spec.rb +8 -15
  486. data/spec/models/member_data_rep_spec.rb +58 -0
  487. data/spec/models/member_permission_grant_summary_rep_spec.rb +46 -0
  488. data/spec/models/member_spec.rb +44 -21
  489. data/spec/models/member_summary_rep_spec.rb +64 -0
  490. data/spec/models/member_team_summary_rep_spec.rb +46 -0
  491. data/spec/models/members_spec.rb +10 -17
  492. data/spec/models/metric_collection_rep_spec.rb +40 -0
  493. data/spec/models/metric_listing_rep_spec.rb +140 -0
  494. data/spec/models/metric_post_spec.rb +104 -0
  495. data/spec/models/metric_rep_spec.rb +170 -0
  496. data/spec/models/modification_spec.rb +34 -0
  497. data/spec/models/multi_environment_dependent_flag_spec.rb +8 -27
  498. data/spec/models/multi_environment_dependent_flags_spec.rb +8 -15
  499. data/spec/models/new_member_form_spec.rb +64 -0
  500. data/spec/models/parent_resource_rep_spec.rb +46 -0
  501. data/spec/models/patch_operation_spec.rb +8 -15
  502. data/spec/models/patch_segment_instruction_spec.rb +58 -0
  503. data/spec/models/patch_segment_request_spec.rb +40 -0
  504. data/spec/models/patch_with_comment_spec.rb +40 -0
  505. data/spec/models/post_approval_request_apply_request_spec.rb +34 -0
  506. data/spec/models/post_approval_request_review_request_spec.rb +40 -0
  507. data/spec/models/post_flag_scheduled_changes_input_spec.rb +46 -0
  508. data/spec/models/prerequisite_spec.rb +8 -15
  509. data/spec/models/project_listing_rep_spec.rb +70 -0
  510. data/spec/models/project_post_spec.rb +64 -0
  511. data/spec/models/project_spec.rb +12 -19
  512. data/spec/models/projects_spec.rb +8 -15
  513. data/spec/models/pub_nub_detail_rep_spec.rb +40 -0
  514. data/spec/models/reference_rep_spec.rb +46 -0
  515. data/spec/models/relay_auto_config_collection_rep_spec.rb +34 -0
  516. data/spec/models/relay_auto_config_post_spec.rb +40 -0
  517. data/spec/models/relay_auto_config_rep_spec.rb +82 -0
  518. data/spec/models/repository_collection_rep_spec.rb +40 -0
  519. data/spec/models/repository_post_spec.rb +68 -0
  520. data/spec/models/repository_rep_spec.rb +94 -0
  521. data/spec/models/resource_access_spec.rb +40 -0
  522. data/spec/models/resource_id_response_spec.rb +58 -0
  523. data/spec/models/review_response_spec.rb +62 -0
  524. data/spec/models/rollout_spec.rb +22 -17
  525. data/spec/models/rule_spec.rb +11 -18
  526. data/spec/models/sdk_list_rep_spec.rb +40 -0
  527. data/spec/models/sdk_version_list_rep_spec.rb +40 -0
  528. data/spec/models/sdk_version_rep_spec.rb +40 -0
  529. data/spec/models/segment_body_spec.rb +58 -0
  530. data/spec/models/segment_metadata_spec.rb +64 -0
  531. data/spec/models/segment_user_list_spec.rb +40 -0
  532. data/spec/models/segment_user_state_spec.rb +40 -0
  533. data/spec/models/series_list_rep_spec.rb +46 -0
  534. data/spec/models/source_flag_spec.rb +40 -0
  535. data/spec/models/statement_post_data_spec.rb +58 -0
  536. data/spec/models/statement_post_spec.rb +58 -0
  537. data/spec/models/statement_rep_spec.rb +58 -0
  538. data/spec/models/statement_spec.rb +8 -19
  539. data/spec/models/statistic_collection_rep_spec.rb +40 -0
  540. data/spec/models/statistic_rep_spec.rb +70 -0
  541. data/spec/models/statistics_root_spec.rb +40 -0
  542. data/spec/models/subject_data_rep_spec.rb +46 -0
  543. data/spec/models/target_resource_rep_spec.rb +46 -0
  544. data/spec/models/target_spec.rb +8 -15
  545. data/spec/models/title_rep_spec.rb +76 -0
  546. data/spec/models/token_data_rep_spec.rb +58 -0
  547. data/spec/models/token_spec.rb +27 -28
  548. data/spec/models/tokens_spec.rb +10 -17
  549. data/spec/models/url_post_spec.rb +56 -0
  550. data/spec/models/user_attribute_names_rep_spec.rb +46 -0
  551. data/spec/models/user_flag_setting_spec.rb +8 -15
  552. data/spec/models/user_flag_settings_spec.rb +10 -17
  553. data/spec/models/user_record_spec.rb +9 -16
  554. data/spec/models/user_segment_rule_spec.rb +14 -15
  555. data/spec/models/user_segment_spec.rb +52 -23
  556. data/spec/models/user_segments_spec.rb +10 -17
  557. data/spec/models/user_spec.rb +15 -46
  558. data/spec/models/users_spec.rb +8 -15
  559. data/spec/models/value_put_spec.rb +40 -0
  560. data/spec/models/variate_spec.rb +52 -0
  561. data/spec/models/variation_or_rollout_rep_spec.rb +40 -0
  562. data/spec/models/variation_spec.rb +10 -17
  563. data/spec/models/variation_summary_spec.rb +70 -0
  564. data/spec/models/versions_rep_spec.rb +52 -0
  565. data/spec/models/webhook_post_spec.rb +70 -0
  566. data/spec/models/webhook_spec.rb +18 -19
  567. data/spec/models/webhooks_spec.rb +8 -15
  568. data/spec/models/weighted_variation_spec.rb +14 -15
  569. data/spec/spec_helper.rb +4 -4
  570. metadata +815 -582
  571. data/docs/ApprovalRequest.md +0 -21
  572. data/docs/ApprovalRequestApplyConfigBody.md +0 -8
  573. data/docs/ApprovalRequestConfigBody.md +0 -13
  574. data/docs/ApprovalRequestFlagConfigCopyBody.md +0 -13
  575. data/docs/ApprovalRequestReview.md +0 -11
  576. data/docs/ApprovalRequestReviewConfigBody.md +0 -9
  577. data/docs/ApprovalRequestReviewStatus.md +0 -7
  578. data/docs/ApprovalRequests.md +0 -9
  579. data/docs/AuditLogEntries.md +0 -9
  580. data/docs/AuditLogEntry.md +0 -19
  581. data/docs/AuditLogEntryTarget.md +0 -10
  582. data/docs/BigSegmentTargetChanges.md +0 -9
  583. data/docs/BigSegmentTargetsBody.md +0 -9
  584. data/docs/CopyActions.md +0 -7
  585. data/docs/CustomPropertyValues.md +0 -7
  586. data/docs/CustomRoleBody.md +0 -11
  587. data/docs/CustomerMetricsApi.md +0 -511
  588. data/docs/DependentFlagEnvironmentLinks.md +0 -9
  589. data/docs/DependentFlagLinks.md +0 -8
  590. data/docs/DependentFlagsLinks.md +0 -9
  591. data/docs/DestinationAmazonKinesis.md +0 -10
  592. data/docs/DestinationBody.md +0 -11
  593. data/docs/DestinationGooglePubSub.md +0 -9
  594. data/docs/DestinationMParticle.md +0 -11
  595. data/docs/DestinationSegment.md +0 -8
  596. data/docs/EnvironmentApprovalSettings.md +0 -13
  597. data/docs/EvaluationUsageError.md +0 -9
  598. data/docs/Events.md +0 -8
  599. data/docs/Fallthrough.md +0 -9
  600. data/docs/FeatureFlagCopyBody.md +0 -12
  601. data/docs/FeatureFlagCopyObject.md +0 -9
  602. data/docs/FeatureFlagScheduledChangesConflicts.md +0 -8
  603. data/docs/FeatureFlagScheduledChangesConflictsInstructions.md +0 -9
  604. data/docs/FeatureFlagStatusForQueriedEnvironment.md +0 -10
  605. data/docs/FeatureFlagStatusLinks.md +0 -9
  606. data/docs/FlagConfigScheduledChangesConflictsBody.md +0 -9
  607. data/docs/FlagConfigScheduledChangesPatchBody.md +0 -9
  608. data/docs/FlagConfigScheduledChangesPostBody.md +0 -10
  609. data/docs/FlagListItem.md +0 -11
  610. data/docs/HierarchicalLinks.md +0 -9
  611. data/docs/Id.md +0 -7
  612. data/docs/Integration.md +0 -9
  613. data/docs/IntegrationSubscription.md +0 -16
  614. data/docs/IntegrationSubscriptionStatus.md +0 -10
  615. data/docs/Integrations.md +0 -9
  616. data/docs/IntegrationsApi.md +0 -334
  617. data/docs/Links.md +0 -9
  618. data/docs/MAU.md +0 -10
  619. data/docs/MAUMetadata.md +0 -7
  620. data/docs/MAUbyCategory.md +0 -10
  621. data/docs/MemberLastSeenMetadata.md +0 -8
  622. data/docs/MembersBody.md +0 -13
  623. data/docs/PatchComment.md +0 -9
  624. data/docs/Policy.md +0 -12
  625. data/docs/ProjectBody.md +0 -13
  626. data/docs/RelayProxyConfig.md +0 -15
  627. data/docs/RelayProxyConfigBody.md +0 -9
  628. data/docs/RelayProxyConfigs.md +0 -8
  629. data/docs/Role.md +0 -7
  630. data/docs/RootApi.md +0 -56
  631. data/docs/ScheduledChangesFeatureFlagConflict.md +0 -9
  632. data/docs/SemanticPatchInstruction.md +0 -7
  633. data/docs/SemanticPatchInstructionInner.md +0 -8
  634. data/docs/SemanticPatchOperation.md +0 -9
  635. data/docs/Site.md +0 -9
  636. data/docs/Source.md +0 -9
  637. data/docs/Stream.md +0 -10
  638. data/docs/StreamBySDK.md +0 -10
  639. data/docs/StreamBySDKLinks.md +0 -9
  640. data/docs/StreamBySDKLinksMetadata.md +0 -10
  641. data/docs/StreamLinks.md +0 -10
  642. data/docs/StreamSDKVersion.md +0 -9
  643. data/docs/StreamSDKVersionData.md +0 -9
  644. data/docs/StreamUsageError.md +0 -9
  645. data/docs/StreamUsageLinks.md +0 -10
  646. data/docs/StreamUsageMetadata.md +0 -10
  647. data/docs/StreamUsageSeries.md +0 -9
  648. data/docs/Streams.md +0 -8
  649. data/docs/SubscriptionBody.md +0 -12
  650. data/docs/TeamMembersApi.md +0 -329
  651. data/docs/TokenBody.md +0 -13
  652. data/docs/Usage.md +0 -9
  653. data/docs/UsageError.md +0 -8
  654. data/docs/UsageLinks.md +0 -10
  655. data/docs/UserSegmentBody.md +0 -12
  656. data/docs/UserSegmentsApi.md +0 -488
  657. data/docs/UserSettingsBody.md +0 -8
  658. data/docs/UserTargetingExpirationForFlag.md +0 -14
  659. data/docs/UserTargetingExpirationForFlags.md +0 -9
  660. data/docs/UserTargetingExpirationForSegment.md +0 -14
  661. data/docs/UserTargetingExpirationOnFlagsForUser.md +0 -9
  662. data/docs/UserTargetingExpirationResourceIdForFlag.md +0 -12
  663. data/docs/WebhookBody.md +0 -14
  664. data/lib/launchdarkly_api/api/customer_metrics_api.rb +0 -519
  665. data/lib/launchdarkly_api/api/integrations_api.rb +0 -358
  666. data/lib/launchdarkly_api/api/root_api.rb +0 -69
  667. data/lib/launchdarkly_api/api/team_members_api.rb +0 -340
  668. data/lib/launchdarkly_api/api/user_segments_api.rb +0 -548
  669. data/lib/launchdarkly_api/models/approval_request.rb +0 -346
  670. data/lib/launchdarkly_api/models/approval_request_apply_config_body.rb +0 -185
  671. data/lib/launchdarkly_api/models/approval_request_config_body.rb +0 -250
  672. data/lib/launchdarkly_api/models/approval_request_flag_config_copy_body.rb +0 -254
  673. data/lib/launchdarkly_api/models/approval_request_review.rb +0 -212
  674. data/lib/launchdarkly_api/models/approval_request_review_config_body.rb +0 -234
  675. data/lib/launchdarkly_api/models/approval_request_review_status.rb +0 -31
  676. data/lib/launchdarkly_api/models/approval_requests.rb +0 -195
  677. data/lib/launchdarkly_api/models/audit_log_entries.rb +0 -195
  678. data/lib/launchdarkly_api/models/audit_log_entry.rb +0 -283
  679. data/lib/launchdarkly_api/models/audit_log_entry_target.rb +0 -204
  680. data/lib/launchdarkly_api/models/big_segment_target_changes.rb +0 -199
  681. data/lib/launchdarkly_api/models/big_segment_targets_body.rb +0 -193
  682. data/lib/launchdarkly_api/models/copy_actions.rb +0 -34
  683. data/lib/launchdarkly_api/models/custom_property_values.rb +0 -176
  684. data/lib/launchdarkly_api/models/custom_role_body.rb +0 -231
  685. data/lib/launchdarkly_api/models/dependent_flag__links.rb +0 -184
  686. data/lib/launchdarkly_api/models/dependent_flag_environment__links.rb +0 -193
  687. data/lib/launchdarkly_api/models/dependent_flags_links.rb +0 -193
  688. data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +0 -202
  689. data/lib/launchdarkly_api/models/destination_body.rb +0 -264
  690. data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +0 -193
  691. data/lib/launchdarkly_api/models/destination_m_particle.rb +0 -211
  692. data/lib/launchdarkly_api/models/destination_segment.rb +0 -184
  693. data/lib/launchdarkly_api/models/environment_approval_settings.rb +0 -272
  694. data/lib/launchdarkly_api/models/evaluation_usage_error.rb +0 -193
  695. data/lib/launchdarkly_api/models/events.rb +0 -184
  696. data/lib/launchdarkly_api/models/fallthrough.rb +0 -193
  697. data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +0 -227
  698. data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +0 -200
  699. data/lib/launchdarkly_api/models/feature_flag_scheduled_changes_conflicts.rb +0 -186
  700. data/lib/launchdarkly_api/models/feature_flag_scheduled_changes_conflicts_instructions.rb +0 -196
  701. data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +0 -237
  702. data/lib/launchdarkly_api/models/feature_flag_status_links.rb +0 -193
  703. data/lib/launchdarkly_api/models/flag_config_scheduled_changes_conflicts_body.rb +0 -194
  704. data/lib/launchdarkly_api/models/flag_config_scheduled_changes_patch_body.rb +0 -194
  705. data/lib/launchdarkly_api/models/flag_config_scheduled_changes_post_body.rb +0 -204
  706. data/lib/launchdarkly_api/models/flag_list_item.rb +0 -211
  707. data/lib/launchdarkly_api/models/hierarchical_links.rb +0 -193
  708. data/lib/launchdarkly_api/models/id.rb +0 -176
  709. data/lib/launchdarkly_api/models/integration.rb +0 -195
  710. data/lib/launchdarkly_api/models/integration_subscription.rb +0 -265
  711. data/lib/launchdarkly_api/models/integration_subscription__status.rb +0 -203
  712. data/lib/launchdarkly_api/models/integrations.rb +0 -196
  713. data/lib/launchdarkly_api/models/links.rb +0 -193
  714. data/lib/launchdarkly_api/models/ma_uby_category.rb +0 -206
  715. data/lib/launchdarkly_api/models/mau.rb +0 -206
  716. data/lib/launchdarkly_api/models/mau_metadata.rb +0 -175
  717. data/lib/launchdarkly_api/models/member__last_seen_metadata.rb +0 -185
  718. data/lib/launchdarkly_api/models/members_body.rb +0 -238
  719. data/lib/launchdarkly_api/models/patch_comment.rb +0 -195
  720. data/lib/launchdarkly_api/models/policy.rb +0 -231
  721. data/lib/launchdarkly_api/models/project_body.rb +0 -243
  722. data/lib/launchdarkly_api/models/relay_proxy_config.rb +0 -289
  723. data/lib/launchdarkly_api/models/relay_proxy_config_body.rb +0 -196
  724. data/lib/launchdarkly_api/models/relay_proxy_configs.rb +0 -186
  725. data/lib/launchdarkly_api/models/role.rb +0 -32
  726. data/lib/launchdarkly_api/models/scheduled_changes_feature_flag_conflict.rb +0 -195
  727. data/lib/launchdarkly_api/models/semantic_patch_instruction.rb +0 -175
  728. data/lib/launchdarkly_api/models/semantic_patch_instruction_inner.rb +0 -185
  729. data/lib/launchdarkly_api/models/semantic_patch_operation.rb +0 -198
  730. data/lib/launchdarkly_api/models/site.rb +0 -193
  731. data/lib/launchdarkly_api/models/source.rb +0 -195
  732. data/lib/launchdarkly_api/models/stream.rb +0 -206
  733. data/lib/launchdarkly_api/models/stream_by_sdk.rb +0 -206
  734. data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +0 -193
  735. data/lib/launchdarkly_api/models/stream_by_sdk_links_metadata.rb +0 -202
  736. data/lib/launchdarkly_api/models/stream_links.rb +0 -205
  737. data/lib/launchdarkly_api/models/stream_sdk_version.rb +0 -195
  738. data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +0 -195
  739. data/lib/launchdarkly_api/models/stream_usage_error.rb +0 -193
  740. data/lib/launchdarkly_api/models/stream_usage_links.rb +0 -205
  741. data/lib/launchdarkly_api/models/stream_usage_metadata.rb +0 -204
  742. data/lib/launchdarkly_api/models/stream_usage_series.rb +0 -195
  743. data/lib/launchdarkly_api/models/streams.rb +0 -184
  744. data/lib/launchdarkly_api/models/subscription_body.rb +0 -238
  745. data/lib/launchdarkly_api/models/token_body.rb +0 -238
  746. data/lib/launchdarkly_api/models/usage.rb +0 -195
  747. data/lib/launchdarkly_api/models/usage_error.rb +0 -184
  748. data/lib/launchdarkly_api/models/usage_links.rb +0 -205
  749. data/lib/launchdarkly_api/models/user_segment_body.rb +0 -237
  750. data/lib/launchdarkly_api/models/user_settings_body.rb +0 -185
  751. data/lib/launchdarkly_api/models/user_targeting_expiration_for_flag.rb +0 -241
  752. data/lib/launchdarkly_api/models/user_targeting_expiration_for_flags.rb +0 -195
  753. data/lib/launchdarkly_api/models/user_targeting_expiration_for_segment.rb +0 -241
  754. data/lib/launchdarkly_api/models/user_targeting_expiration_on_flags_for_user.rb +0 -195
  755. data/lib/launchdarkly_api/models/user_targeting_expiration_resource_id_for_flag.rb +0 -220
  756. data/lib/launchdarkly_api/models/webhook_body.rb +0 -263
  757. data/openapi.yml +0 -4922
  758. data/spec/api/customer_metrics_api_spec.rb +0 -141
  759. data/spec/api/integrations_api_spec.rb +0 -105
  760. data/spec/api/root_api_spec.rb +0 -45
  761. data/spec/api/team_members_api_spec.rb +0 -104
  762. data/spec/api/user_segments_api_spec.rb +0 -142
  763. data/spec/models/approval_request_apply_config_body_spec.rb +0 -41
  764. data/spec/models/approval_request_config_body_spec.rb +0 -71
  765. data/spec/models/approval_request_flag_config_copy_body_spec.rb +0 -71
  766. data/spec/models/approval_request_review_config_body_spec.rb +0 -51
  767. data/spec/models/approval_request_review_spec.rb +0 -59
  768. data/spec/models/approval_request_review_status_spec.rb +0 -35
  769. data/spec/models/approval_request_spec.rb +0 -123
  770. data/spec/models/approval_requests_spec.rb +0 -47
  771. data/spec/models/audit_log_entries_spec.rb +0 -47
  772. data/spec/models/audit_log_entry_spec.rb +0 -107
  773. data/spec/models/audit_log_entry_target_spec.rb +0 -53
  774. data/spec/models/big_segment_target_changes_spec.rb +0 -47
  775. data/spec/models/big_segment_targets_body_spec.rb +0 -47
  776. data/spec/models/copy_actions_spec.rb +0 -35
  777. data/spec/models/custom_property_values_spec.rb +0 -35
  778. data/spec/models/custom_role_body_spec.rb +0 -59
  779. data/spec/models/dependent_flag__links_spec.rb +0 -41
  780. data/spec/models/dependent_flag_environment__links_spec.rb +0 -47
  781. data/spec/models/dependent_flags_links_spec.rb +0 -47
  782. data/spec/models/destination_amazon_kinesis_spec.rb +0 -53
  783. data/spec/models/destination_body_spec.rb +0 -63
  784. data/spec/models/destination_google_pub_sub_spec.rb +0 -47
  785. data/spec/models/destination_m_particle_spec.rb +0 -59
  786. data/spec/models/destination_segment_spec.rb +0 -41
  787. data/spec/models/environment_approval_settings_spec.rb +0 -75
  788. data/spec/models/evaluation_usage_error_spec.rb +0 -47
  789. data/spec/models/events_spec.rb +0 -41
  790. data/spec/models/fallthrough_spec.rb +0 -47
  791. data/spec/models/feature_flag_copy_body_spec.rb +0 -65
  792. data/spec/models/feature_flag_copy_object_spec.rb +0 -47
  793. data/spec/models/feature_flag_scheduled_changes_conflicts_instructions_spec.rb +0 -47
  794. data/spec/models/feature_flag_scheduled_changes_conflicts_spec.rb +0 -41
  795. data/spec/models/feature_flag_status_for_queried_environment_spec.rb +0 -57
  796. data/spec/models/feature_flag_status_links_spec.rb +0 -47
  797. data/spec/models/flag_config_scheduled_changes_conflicts_body_spec.rb +0 -47
  798. data/spec/models/flag_config_scheduled_changes_patch_body_spec.rb +0 -47
  799. data/spec/models/flag_config_scheduled_changes_post_body_spec.rb +0 -53
  800. data/spec/models/flag_list_item_spec.rb +0 -59
  801. data/spec/models/hierarchical_links_spec.rb +0 -47
  802. data/spec/models/id_spec.rb +0 -35
  803. data/spec/models/integration_spec.rb +0 -47
  804. data/spec/models/integration_subscription__status_spec.rb +0 -53
  805. data/spec/models/integration_subscription_spec.rb +0 -89
  806. data/spec/models/integrations_spec.rb +0 -47
  807. data/spec/models/links_spec.rb +0 -47
  808. data/spec/models/ma_uby_category_spec.rb +0 -53
  809. data/spec/models/mau_metadata_spec.rb +0 -35
  810. data/spec/models/mau_spec.rb +0 -53
  811. data/spec/models/member__last_seen_metadata_spec.rb +0 -41
  812. data/spec/models/members_body_spec.rb +0 -71
  813. data/spec/models/patch_comment_spec.rb +0 -47
  814. data/spec/models/policy_spec.rb +0 -65
  815. data/spec/models/project_body_spec.rb +0 -71
  816. data/spec/models/relay_proxy_config_body_spec.rb +0 -47
  817. data/spec/models/relay_proxy_config_spec.rb +0 -83
  818. data/spec/models/relay_proxy_configs_spec.rb +0 -41
  819. data/spec/models/role_spec.rb +0 -35
  820. data/spec/models/scheduled_changes_feature_flag_conflict_spec.rb +0 -47
  821. data/spec/models/semantic_patch_instruction_inner_spec.rb +0 -41
  822. data/spec/models/semantic_patch_instruction_spec.rb +0 -35
  823. data/spec/models/semantic_patch_operation_spec.rb +0 -47
  824. data/spec/models/site_spec.rb +0 -47
  825. data/spec/models/source_spec.rb +0 -47
  826. data/spec/models/stream_by_sdk_links_metadata_spec.rb +0 -53
  827. data/spec/models/stream_by_sdk_links_spec.rb +0 -47
  828. data/spec/models/stream_by_sdk_spec.rb +0 -53
  829. data/spec/models/stream_links_spec.rb +0 -53
  830. data/spec/models/stream_sdk_version_data_spec.rb +0 -47
  831. data/spec/models/stream_sdk_version_spec.rb +0 -47
  832. data/spec/models/stream_spec.rb +0 -53
  833. data/spec/models/stream_usage_error_spec.rb +0 -47
  834. data/spec/models/stream_usage_links_spec.rb +0 -53
  835. data/spec/models/stream_usage_metadata_spec.rb +0 -53
  836. data/spec/models/stream_usage_series_spec.rb +0 -47
  837. data/spec/models/streams_spec.rb +0 -41
  838. data/spec/models/subscription_body_spec.rb +0 -65
  839. data/spec/models/token_body_spec.rb +0 -71
  840. data/spec/models/usage_error_spec.rb +0 -41
  841. data/spec/models/usage_links_spec.rb +0 -53
  842. data/spec/models/usage_spec.rb +0 -47
  843. data/spec/models/user_segment_body_spec.rb +0 -65
  844. data/spec/models/user_settings_body_spec.rb +0 -41
  845. data/spec/models/user_targeting_expiration_for_flag_spec.rb +0 -77
  846. data/spec/models/user_targeting_expiration_for_flags_spec.rb +0 -47
  847. data/spec/models/user_targeting_expiration_for_segment_spec.rb +0 -77
  848. data/spec/models/user_targeting_expiration_on_flags_for_user_spec.rb +0 -47
  849. data/spec/models/user_targeting_expiration_resource_id_for_flag_spec.rb +0 -65
  850. data/spec/models/webhook_body_spec.rb +0 -77
@@ -1,11 +1,22 @@
1
1
  # LaunchDarklyApi::FeatureFlagStatus
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **name** | **String** | | Name | Description | | --------:| ----------- | | new | the feature flag was created within the last 7 days, and has not been requested yet | | active | the feature flag was requested by your servers or clients within the last 7 days | | inactive | the feature flag was created more than 7 days ago, and hasn't been requested by your servers or clients within the past 7 days | | launched | one variation of the feature flag has been rolled out to all your users for at least 7 days | | [optional]
7
- **last_requested** | **String** | | [optional]
8
- **default** | **Object** | | [optional]
9
- **_links** | [**FeatureFlagStatusLinks**](FeatureFlagStatusLinks.md) | | [optional]
10
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Status of the flag | |
8
+ | **last_requested** | **Time** | Timestamp of last time flag was requested | [optional] |
9
+ | **default** | **Object** | Default value seen from code | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'launchdarkly_api'
15
+
16
+ instance = LaunchDarklyApi::FeatureFlagStatus.new(
17
+ name: inactive,
18
+ last_requested: 2020-02-05T18:17:01.514Z,
19
+ default: null
20
+ )
21
+ ```
11
22
 
@@ -1,10 +1,22 @@
1
1
  # LaunchDarklyApi::FeatureFlagStatusAcrossEnvironments
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **_links** | [**FeatureFlagStatusLinks**](FeatureFlagStatusLinks.md) | | [optional]
7
- **key** | **String** | | [optional]
8
- **environments** | [**Hash<String, FeatureFlagStatusForQueriedEnvironment>**](FeatureFlagStatusForQueriedEnvironment.md) | | [optional]
9
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **environments** | [**Hash<String, FeatureFlagStatus>**](FeatureFlagStatus.md) | Flag status for environment. | [optional] |
8
+ | **key** | **String** | feature flag key | [optional] |
9
+ | **_links** | [**Hash<String, Link>**](Link.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'launchdarkly_api'
15
+
16
+ instance = LaunchDarklyApi::FeatureFlagStatusAcrossEnvironments.new(
17
+ environments: {"production":{"lastRequested":"2020-02-05T18:17:01.514Z","name":"inactive"}},
18
+ key: my-flag,
19
+ _links: {"parent":{"href":"/api/v2/flag-status","type":"application/json"},"self":{"href":"/api/v2/flag-status/my-project/my-flag","type":"application/json"}}
20
+ )
21
+ ```
10
22
 
@@ -1,9 +1,20 @@
1
1
  # LaunchDarklyApi::FeatureFlagStatuses
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **_links** | [**FeatureFlagStatusLinks**](FeatureFlagStatusLinks.md) | | [optional]
7
- **items** | [**Array<FeatureFlagStatus>**](FeatureFlagStatus.md) | | [optional]
8
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_links** | [**Hash<String, Link>**](Link.md) | | |
8
+ | **items** | [**Array<FlagStatusRep>**](FlagStatusRep.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'launchdarkly_api'
14
+
15
+ instance = LaunchDarklyApi::FeatureFlagStatuses.new(
16
+ _links: {"self":{"href":"/api/v2/flag-statuses/my-project/my-environment","type":"application/json"}},
17
+ items: null
18
+ )
19
+ ```
9
20
 
data/docs/FeatureFlags.md CHANGED
@@ -1,10 +1,22 @@
1
1
  # LaunchDarklyApi::FeatureFlags
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **_links** | [**Links**](Links.md) | | [optional]
7
- **items** | [**Array<FeatureFlag>**](FeatureFlag.md) | | [optional]
8
- **total_count** | **Float** | | [optional]
9
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<FeatureFlag>**](FeatureFlag.md) | | |
8
+ | **_links** | [**Hash<String, Link>**](Link.md) | | |
9
+ | **total_count** | **Integer** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'launchdarkly_api'
15
+
16
+ instance = LaunchDarklyApi::FeatureFlags.new(
17
+ items: null,
18
+ _links: {"self":{"href":"/api/v2/flags/default","type":"application/json"}},
19
+ total_count: 1
20
+ )
21
+ ```
10
22
 
@@ -1,1457 +1,774 @@
1
1
  # LaunchDarklyApi::FeatureFlagsApi
2
2
 
3
- All URIs are relative to *https://app.launchdarkly.com/api/v2*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**copy_feature_flag**](FeatureFlagsApi.md#copy_feature_flag) | **POST** /flags/{projectKey}/{featureFlagKey}/copy | Copies the feature flag configuration from one environment to the same feature flag in another environment.
8
- [**delete_approval_request**](FeatureFlagsApi.md#delete_approval_request) | **DELETE** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId} | Delete an approval request for a feature flag config
9
- [**delete_feature_flag**](FeatureFlagsApi.md#delete_feature_flag) | **DELETE** /flags/{projectKey}/{featureFlagKey} | Delete a feature flag in all environments. Be careful-- only delete feature flags that are no longer being used by your application.
10
- [**delete_flag_config_scheduled_changes**](FeatureFlagsApi.md#delete_flag_config_scheduled_changes) | **DELETE** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{scheduledChangeId} | Delete a scheduled change on a feature flag in an environment.
11
- [**flags_project_key_environment_key_feature_flag_key_dependent_flags_get**](FeatureFlagsApi.md#flags_project_key_environment_key_feature_flag_key_dependent_flags_get) | **GET** /flags/{projectKey}/{environmentKey}/{featureFlagKey}/dependent-flags | Get dependent flags for the flag in the environment specified in path parameters
12
- [**flags_project_key_feature_flag_key_dependent_flags_get**](FeatureFlagsApi.md#flags_project_key_feature_flag_key_dependent_flags_get) | **GET** /flags/{projectKey}/{featureFlagKey}/dependent-flags | Get dependent flags across all environments for the flag specified in the path parameters
13
- [**get_approval_request**](FeatureFlagsApi.md#get_approval_request) | **GET** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId} | Get a single approval request for a feature flag config
14
- [**get_approval_requests**](FeatureFlagsApi.md#get_approval_requests) | **GET** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests | Get all approval requests for a feature flag config
15
- [**get_expiring_user_targets**](FeatureFlagsApi.md#get_expiring_user_targets) | **GET** /flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey} | Get expiring user targets for feature flag
16
- [**get_feature_flag**](FeatureFlagsApi.md#get_feature_flag) | **GET** /flags/{projectKey}/{featureFlagKey} | Get a single feature flag by key.
17
- [**get_feature_flag_status**](FeatureFlagsApi.md#get_feature_flag_status) | **GET** /flag-statuses/{projectKey}/{environmentKey}/{featureFlagKey} | Get the status for a particular feature flag.
18
- [**get_feature_flag_status_across_environments**](FeatureFlagsApi.md#get_feature_flag_status_across_environments) | **GET** /flag-status/{projectKey}/{featureFlagKey} | Get the status for a particular feature flag across environments
19
- [**get_feature_flag_statuses**](FeatureFlagsApi.md#get_feature_flag_statuses) | **GET** /flag-statuses/{projectKey}/{environmentKey} | Get a list of statuses for all feature flags. The status includes the last time the feature flag was requested, as well as the state of the flag.
20
- [**get_feature_flags**](FeatureFlagsApi.md#get_feature_flags) | **GET** /flags/{projectKey} | Get a list of all features in the given project.
21
- [**get_flag_config_scheduled_change**](FeatureFlagsApi.md#get_flag_config_scheduled_change) | **GET** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{scheduledChangeId} | Get a scheduled change on a feature flag by id.
22
- [**get_flag_config_scheduled_changes**](FeatureFlagsApi.md#get_flag_config_scheduled_changes) | **GET** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes | Get all scheduled workflows for a feature flag by key.
23
- [**get_flag_config_scheduled_changes_conflicts**](FeatureFlagsApi.md#get_flag_config_scheduled_changes_conflicts) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes-conflicts | Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
24
- [**patch_expiring_user_targets**](FeatureFlagsApi.md#patch_expiring_user_targets) | **PATCH** /flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey} | Update, add, or delete expiring user targets on feature flag
25
- [**patch_feature_flag**](FeatureFlagsApi.md#patch_feature_flag) | **PATCH** /flags/{projectKey}/{featureFlagKey} | Perform a partial update to a feature.
26
- [**patch_flag_config_scheduled_change**](FeatureFlagsApi.md#patch_flag_config_scheduled_change) | **PATCH** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{scheduledChangeId} | Updates an existing scheduled-change on a feature flag in an environment.
27
- [**post_apply_approval_request**](FeatureFlagsApi.md#post_apply_approval_request) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId}/apply | Apply approval request for a feature flag config
28
- [**post_approval_request**](FeatureFlagsApi.md#post_approval_request) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId} | Create an approval request for a feature flag config
29
- [**post_approval_request_flag_copy**](FeatureFlagsApi.md#post_approval_request_flag_copy) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests-flag-copy | Create an approval request to copy feature flag config
30
- [**post_feature_flag**](FeatureFlagsApi.md#post_feature_flag) | **POST** /flags/{projectKey} | Creates a new feature flag.
31
- [**post_flag_config_scheduled_changes**](FeatureFlagsApi.md#post_flag_config_scheduled_changes) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes | Creates a new scheduled change for a feature flag.
32
- [**post_review_approval_request**](FeatureFlagsApi.md#post_review_approval_request) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId}/review | Review approval request for a feature flag config
33
-
34
-
35
- # **copy_feature_flag**
36
- > FeatureFlag copy_feature_flag(project_key, feature_flag_key, feature_flag_copy_body)
37
-
38
- Copies the feature flag configuration from one environment to the same feature flag in another environment.
39
-
40
- ### Example
41
- ```ruby
42
- # load the gem
43
- require 'launchdarkly_api'
44
- # setup authorization
45
- LaunchDarklyApi.configure do |config|
46
- # Configure API key authorization: Token
47
- config.api_key['Authorization'] = 'YOUR API KEY'
48
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
49
- #config.api_key_prefix['Authorization'] = 'Bearer'
50
- end
51
-
52
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
53
-
54
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
55
-
56
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
57
-
58
- feature_flag_copy_body = LaunchDarklyApi::FeatureFlagCopyBody.new # FeatureFlagCopyBody | Copy feature flag configurations between environments.
59
-
60
-
61
- begin
62
- #Copies the feature flag configuration from one environment to the same feature flag in another environment.
63
- result = api_instance.copy_feature_flag(project_key, feature_flag_key, feature_flag_copy_body)
64
- p result
65
- rescue LaunchDarklyApi::ApiError => e
66
- puts "Exception when calling FeatureFlagsApi->copy_feature_flag: #{e}"
67
- end
68
- ```
69
-
70
- ### Parameters
71
-
72
- Name | Type | Description | Notes
73
- ------------- | ------------- | ------------- | -------------
74
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
75
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
76
- **feature_flag_copy_body** | [**FeatureFlagCopyBody**](FeatureFlagCopyBody.md)| Copy feature flag configurations between environments. |
77
-
78
- ### Return type
79
-
80
- [**FeatureFlag**](FeatureFlag.md)
81
-
82
- ### Authorization
83
-
84
- [Token](../README.md#Token)
85
-
86
- ### HTTP request headers
87
-
88
- - **Content-Type**: application/json
89
- - **Accept**: application/json
90
-
91
-
92
-
93
- # **delete_approval_request**
94
- > delete_approval_request(project_key, environment_key, feature_flag_key, approval_request_id, , opts)
95
-
96
- Delete an approval request for a feature flag config
97
-
98
- ### Example
99
- ```ruby
100
- # load the gem
101
- require 'launchdarkly_api'
102
- # setup authorization
103
- LaunchDarklyApi.configure do |config|
104
- # Configure API key authorization: Token
105
- config.api_key['Authorization'] = 'YOUR API KEY'
106
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
107
- #config.api_key_prefix['Authorization'] = 'Bearer'
108
- end
109
-
110
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
111
-
112
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
113
-
114
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
115
-
116
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
117
-
118
- approval_request_id = 'approval_request_id_example' # String | The approval request ID
119
-
120
- opts = {
121
- approval_request_config_body: LaunchDarklyApi::ApprovalRequestConfigBody.new # ApprovalRequestConfigBody | Create a new approval request
122
- }
123
-
124
- begin
125
- #Delete an approval request for a feature flag config
126
- api_instance.delete_approval_request(project_key, environment_key, feature_flag_key, approval_request_id, , opts)
127
- rescue LaunchDarklyApi::ApiError => e
128
- puts "Exception when calling FeatureFlagsApi->delete_approval_request: #{e}"
129
- end
130
- ```
131
-
132
- ### Parameters
133
-
134
- Name | Type | Description | Notes
135
- ------------- | ------------- | ------------- | -------------
136
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
137
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
138
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
139
- **approval_request_id** | **String**| The approval request ID |
140
- **approval_request_config_body** | [**ApprovalRequestConfigBody**](ApprovalRequestConfigBody.md)| Create a new approval request | [optional]
141
-
142
- ### Return type
143
-
144
- nil (empty response body)
145
-
146
- ### Authorization
147
-
148
- [Token](../README.md#Token)
149
-
150
- ### HTTP request headers
151
-
152
- - **Content-Type**: application/json
153
- - **Accept**: application/json
154
-
155
-
156
-
157
- # **delete_feature_flag**
158
- > delete_feature_flag(project_key, feature_flag_key, )
159
-
160
- Delete a feature flag in all environments. Be careful-- only delete feature flags that are no longer being used by your application.
161
-
162
- ### Example
163
- ```ruby
164
- # load the gem
165
- require 'launchdarkly_api'
166
- # setup authorization
167
- LaunchDarklyApi.configure do |config|
168
- # Configure API key authorization: Token
169
- config.api_key['Authorization'] = 'YOUR API KEY'
170
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
171
- #config.api_key_prefix['Authorization'] = 'Bearer'
172
- end
173
-
174
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
175
-
176
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
177
-
178
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
179
-
180
-
181
- begin
182
- #Delete a feature flag in all environments. Be careful-- only delete feature flags that are no longer being used by your application.
183
- api_instance.delete_feature_flag(project_key, feature_flag_key, )
184
- rescue LaunchDarklyApi::ApiError => e
185
- puts "Exception when calling FeatureFlagsApi->delete_feature_flag: #{e}"
186
- end
187
- ```
188
-
189
- ### Parameters
190
-
191
- Name | Type | Description | Notes
192
- ------------- | ------------- | ------------- | -------------
193
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
194
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
195
-
196
- ### Return type
197
-
198
- nil (empty response body)
199
-
200
- ### Authorization
201
-
202
- [Token](../README.md#Token)
203
-
204
- ### HTTP request headers
205
-
206
- - **Content-Type**: application/json
207
- - **Accept**: application/json
208
-
209
-
210
-
211
- # **delete_flag_config_scheduled_changes**
212
- > delete_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, scheduled_change_id)
213
-
214
- Delete a scheduled change on a feature flag in an environment.
215
-
216
- ### Example
217
- ```ruby
218
- # load the gem
219
- require 'launchdarkly_api'
220
- # setup authorization
221
- LaunchDarklyApi.configure do |config|
222
- # Configure API key authorization: Token
223
- config.api_key['Authorization'] = 'YOUR API KEY'
224
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
225
- #config.api_key_prefix['Authorization'] = 'Bearer'
226
- end
227
-
228
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
229
-
230
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
231
-
232
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
233
-
234
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
235
-
236
- scheduled_change_id = 'scheduled_change_id_example' # String | The id of the scheduled change
237
-
238
-
239
- begin
240
- #Delete a scheduled change on a feature flag in an environment.
241
- api_instance.delete_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, scheduled_change_id)
242
- rescue LaunchDarklyApi::ApiError => e
243
- puts "Exception when calling FeatureFlagsApi->delete_flag_config_scheduled_changes: #{e}"
244
- end
245
- ```
246
-
247
- ### Parameters
248
-
249
- Name | Type | Description | Notes
250
- ------------- | ------------- | ------------- | -------------
251
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
252
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
253
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
254
- **scheduled_change_id** | **String**| The id of the scheduled change |
255
-
256
- ### Return type
257
-
258
- nil (empty response body)
259
-
260
- ### Authorization
261
-
262
- [Token](../README.md#Token)
263
-
264
- ### HTTP request headers
265
-
266
- - **Content-Type**: application/json
267
- - **Accept**: application/json
268
-
269
-
270
-
271
- # **flags_project_key_environment_key_feature_flag_key_dependent_flags_get**
272
- > DependentFlagsByEnvironment flags_project_key_environment_key_feature_flag_key_dependent_flags_get(project_key, environment_key, feature_flag_key, )
273
-
274
- Get dependent flags for the flag in the environment specified in path parameters
275
-
276
- ### Example
277
- ```ruby
278
- # load the gem
279
- require 'launchdarkly_api'
280
- # setup authorization
281
- LaunchDarklyApi.configure do |config|
282
- # Configure API key authorization: Token
283
- config.api_key['Authorization'] = 'YOUR API KEY'
284
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
285
- #config.api_key_prefix['Authorization'] = 'Bearer'
286
- end
287
-
288
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
289
-
290
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
291
-
292
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
293
-
294
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
295
-
296
-
297
- begin
298
- #Get dependent flags for the flag in the environment specified in path parameters
299
- result = api_instance.flags_project_key_environment_key_feature_flag_key_dependent_flags_get(project_key, environment_key, feature_flag_key, )
300
- p result
301
- rescue LaunchDarklyApi::ApiError => e
302
- puts "Exception when calling FeatureFlagsApi->flags_project_key_environment_key_feature_flag_key_dependent_flags_get: #{e}"
303
- end
304
- ```
305
-
306
- ### Parameters
307
-
308
- Name | Type | Description | Notes
309
- ------------- | ------------- | ------------- | -------------
310
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
311
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
312
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
313
-
314
- ### Return type
315
-
316
- [**DependentFlagsByEnvironment**](DependentFlagsByEnvironment.md)
317
-
318
- ### Authorization
319
-
320
- [Token](../README.md#Token)
321
-
322
- ### HTTP request headers
323
-
324
- - **Content-Type**: application/json
325
- - **Accept**: application/json
326
-
327
-
328
-
329
- # **flags_project_key_feature_flag_key_dependent_flags_get**
330
- > MultiEnvironmentDependentFlags flags_project_key_feature_flag_key_dependent_flags_get(project_key, feature_flag_key, )
331
-
332
- Get dependent flags across all environments for the flag specified in the path parameters
333
-
334
- ### Example
335
- ```ruby
336
- # load the gem
337
- require 'launchdarkly_api'
338
- # setup authorization
339
- LaunchDarklyApi.configure do |config|
340
- # Configure API key authorization: Token
341
- config.api_key['Authorization'] = 'YOUR API KEY'
342
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
343
- #config.api_key_prefix['Authorization'] = 'Bearer'
344
- end
345
-
346
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
347
-
348
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
349
-
350
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
351
-
352
-
353
- begin
354
- #Get dependent flags across all environments for the flag specified in the path parameters
355
- result = api_instance.flags_project_key_feature_flag_key_dependent_flags_get(project_key, feature_flag_key, )
356
- p result
357
- rescue LaunchDarklyApi::ApiError => e
358
- puts "Exception when calling FeatureFlagsApi->flags_project_key_feature_flag_key_dependent_flags_get: #{e}"
359
- end
360
- ```
361
-
362
- ### Parameters
363
-
364
- Name | Type | Description | Notes
365
- ------------- | ------------- | ------------- | -------------
366
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
367
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
368
-
369
- ### Return type
370
-
371
- [**MultiEnvironmentDependentFlags**](MultiEnvironmentDependentFlags.md)
372
-
373
- ### Authorization
374
-
375
- [Token](../README.md#Token)
376
-
377
- ### HTTP request headers
378
-
379
- - **Content-Type**: application/json
380
- - **Accept**: application/json
381
-
382
-
383
-
384
- # **get_approval_request**
385
- > ApprovalRequest get_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, )
386
-
387
- Get a single approval request for a feature flag config
388
-
389
- ### Example
390
- ```ruby
391
- # load the gem
392
- require 'launchdarkly_api'
393
- # setup authorization
394
- LaunchDarklyApi.configure do |config|
395
- # Configure API key authorization: Token
396
- config.api_key['Authorization'] = 'YOUR API KEY'
397
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
398
- #config.api_key_prefix['Authorization'] = 'Bearer'
399
- end
400
-
401
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
402
-
403
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
404
-
405
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
406
-
407
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
408
-
409
- approval_request_id = 'approval_request_id_example' # String | The approval request ID
410
-
411
-
412
- begin
413
- #Get a single approval request for a feature flag config
414
- result = api_instance.get_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, )
415
- p result
416
- rescue LaunchDarklyApi::ApiError => e
417
- puts "Exception when calling FeatureFlagsApi->get_approval_request: #{e}"
418
- end
419
- ```
420
-
421
- ### Parameters
422
-
423
- Name | Type | Description | Notes
424
- ------------- | ------------- | ------------- | -------------
425
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
426
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
427
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
428
- **approval_request_id** | **String**| The approval request ID |
429
-
430
- ### Return type
431
-
432
- [**ApprovalRequest**](ApprovalRequest.md)
433
-
434
- ### Authorization
435
-
436
- [Token](../README.md#Token)
437
-
438
- ### HTTP request headers
439
-
440
- - **Content-Type**: application/json
441
- - **Accept**: application/json
442
-
443
-
444
-
445
- # **get_approval_requests**
446
- > ApprovalRequests get_approval_requests(project_key, feature_flag_key, environment_key, )
447
-
448
- Get all approval requests for a feature flag config
449
-
450
- ### Example
451
- ```ruby
452
- # load the gem
453
- require 'launchdarkly_api'
454
- # setup authorization
455
- LaunchDarklyApi.configure do |config|
456
- # Configure API key authorization: Token
457
- config.api_key['Authorization'] = 'YOUR API KEY'
458
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
459
- #config.api_key_prefix['Authorization'] = 'Bearer'
460
- end
461
-
462
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
463
-
464
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
465
-
466
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
467
-
468
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
469
-
470
-
471
- begin
472
- #Get all approval requests for a feature flag config
473
- result = api_instance.get_approval_requests(project_key, feature_flag_key, environment_key, )
474
- p result
475
- rescue LaunchDarklyApi::ApiError => e
476
- puts "Exception when calling FeatureFlagsApi->get_approval_requests: #{e}"
477
- end
478
- ```
479
-
480
- ### Parameters
481
-
482
- Name | Type | Description | Notes
483
- ------------- | ------------- | ------------- | -------------
484
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
485
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
486
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
487
-
488
- ### Return type
489
-
490
- [**ApprovalRequests**](ApprovalRequests.md)
491
-
492
- ### Authorization
493
-
494
- [Token](../README.md#Token)
495
-
496
- ### HTTP request headers
497
-
498
- - **Content-Type**: application/json
499
- - **Accept**: application/json
500
-
501
-
502
-
503
- # **get_expiring_user_targets**
504
- > UserTargetingExpirationForFlags get_expiring_user_targets(project_key, environment_key, feature_flag_key, )
505
-
506
- Get expiring user targets for feature flag
507
-
508
- ### Example
509
- ```ruby
510
- # load the gem
511
- require 'launchdarkly_api'
512
- # setup authorization
513
- LaunchDarklyApi.configure do |config|
514
- # Configure API key authorization: Token
515
- config.api_key['Authorization'] = 'YOUR API KEY'
516
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
517
- #config.api_key_prefix['Authorization'] = 'Bearer'
518
- end
519
-
520
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
521
-
522
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
523
-
524
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
525
-
526
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
527
-
528
-
529
- begin
530
- #Get expiring user targets for feature flag
531
- result = api_instance.get_expiring_user_targets(project_key, environment_key, feature_flag_key, )
532
- p result
533
- rescue LaunchDarklyApi::ApiError => e
534
- puts "Exception when calling FeatureFlagsApi->get_expiring_user_targets: #{e}"
535
- end
536
- ```
537
-
538
- ### Parameters
539
-
540
- Name | Type | Description | Notes
541
- ------------- | ------------- | ------------- | -------------
542
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
543
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
544
- **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
545
-
546
- ### Return type
547
-
548
- [**UserTargetingExpirationForFlags**](UserTargetingExpirationForFlags.md)
549
-
550
- ### Authorization
551
-
552
- [Token](../README.md#Token)
553
-
554
- ### HTTP request headers
555
-
556
- - **Content-Type**: application/json
557
- - **Accept**: application/json
558
-
559
-
560
-
561
- # **get_feature_flag**
562
- > FeatureFlag get_feature_flag(project_key, feature_flag_key, , opts)
563
-
564
- Get a single feature flag by key.
565
-
566
- ### Example
567
- ```ruby
568
- # load the gem
569
- require 'launchdarkly_api'
570
- # setup authorization
571
- LaunchDarklyApi.configure do |config|
572
- # Configure API key authorization: Token
573
- config.api_key['Authorization'] = 'YOUR API KEY'
574
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
575
- #config.api_key_prefix['Authorization'] = 'Bearer'
576
- end
577
-
578
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
579
-
580
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
581
-
582
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
583
-
584
- opts = {
585
- env: ['env_example'] # Array<String> | By default, each feature will include configurations for each environment. You can filter environments with the env query parameter. For example, setting env=[\"production\"] will restrict the returned configurations to just your production environment.
586
- }
587
-
588
- begin
589
- #Get a single feature flag by key.
590
- result = api_instance.get_feature_flag(project_key, feature_flag_key, , opts)
591
- p result
592
- rescue LaunchDarklyApi::ApiError => e
593
- puts "Exception when calling FeatureFlagsApi->get_feature_flag: #{e}"
594
- end
595
- ```
596
-
597
- ### Parameters
598
-
599
- Name | Type | Description | Notes
600
- ------------- | ------------- | ------------- | -------------
601
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
602
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
603
- **env** | [**Array&lt;String&gt;**](String.md)| By default, each feature will include configurations for each environment. You can filter environments with the env query parameter. For example, setting env&#x3D;[\&quot;production\&quot;] will restrict the returned configurations to just your production environment. | [optional]
604
-
605
- ### Return type
606
-
607
- [**FeatureFlag**](FeatureFlag.md)
608
-
609
- ### Authorization
3
+ All URIs are relative to *https://app.launchdarkly.com*
610
4
 
611
- [Token](../README.md#Token)
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**copy_feature_flag**](FeatureFlagsApi.md#copy_feature_flag) | **POST** /api/v2/flags/{projKey}/{featureFlagKey}/copy | Copy feature flag |
8
+ | [**delete_feature_flag**](FeatureFlagsApi.md#delete_feature_flag) | **DELETE** /api/v2/flags/{projKey}/{key} | Delete feature flag |
9
+ | [**get_expiring_user_targets**](FeatureFlagsApi.md#get_expiring_user_targets) | **GET** /api/v2/flags/{projKey}/{flagKey}/expiring-user-targets/{envKey} | Get expiring user targets for feature flag |
10
+ | [**get_feature_flag**](FeatureFlagsApi.md#get_feature_flag) | **GET** /api/v2/flags/{projKey}/{key} | Get feature flag |
11
+ | [**get_feature_flag_status**](FeatureFlagsApi.md#get_feature_flag_status) | **GET** /api/v2/flag-statuses/{projKey}/{envKey}/{key} | Get feature flag status |
12
+ | [**get_feature_flag_status_across_environments**](FeatureFlagsApi.md#get_feature_flag_status_across_environments) | **GET** /api/v2/flag-status/{projKey}/{key} | Get flag status across environments |
13
+ | [**get_feature_flag_statuses**](FeatureFlagsApi.md#get_feature_flag_statuses) | **GET** /api/v2/flag-statuses/{projKey}/{envKey} | List feature flag statuses |
14
+ | [**get_feature_flags**](FeatureFlagsApi.md#get_feature_flags) | **GET** /api/v2/flags/{projKey} | List feature flags |
15
+ | [**patch_expiring_user_targets**](FeatureFlagsApi.md#patch_expiring_user_targets) | **PATCH** /api/v2/flags/{projKey}/{flagKey}/expiring-user-targets/{envKey} | Update expiring user targets on feature flag |
16
+ | [**patch_feature_flag**](FeatureFlagsApi.md#patch_feature_flag) | **PATCH** /api/v2/flags/{projKey}/{key} | Update feature flag |
17
+ | [**post_feature_flag**](FeatureFlagsApi.md#post_feature_flag) | **POST** /api/v2/flags/{projKey} | Create a feature flag |
612
18
 
613
- ### HTTP request headers
614
19
 
615
- - **Content-Type**: application/json
616
- - **Accept**: application/json
20
+ ## copy_feature_flag
617
21
 
22
+ > <FeatureFlag> copy_feature_flag(proj_key, feature_flag_key, flag_copy_config_post)
618
23
 
24
+ Copy feature flag
619
25
 
620
- # **get_feature_flag_status**
621
- > FeatureFlagStatus get_feature_flag_status(project_key, environment_key, feature_flag_key, )
26
+ The includedActions and excludedActions define the parts of the flag configuration that are copied or not copied. By default, the entire flag configuration is copied. You can have either `includedActions` or `excludedActions` but not both. Valid `includedActions` and `excludedActions` include: - `updateOn` - `updatePrerequisites` - `updateTargets` - `updateRules` - `updateFallthrough` - `updateOffVariation` The `source` and `target` must be JSON objects if using curl, specifying the environment key and (optional) current flag configuration version in that environment. For example: ```json { \"key\": \"production\", \"currentVersion\": 3 } ``` If target is specified as above, the API will test to ensure that the current flag version in the `production` environment is `3`, and reject attempts to copy settings to `production` otherwise. You can use this to enforce optimistic locking on copy attempts.
622
27
 
623
- Get the status for a particular feature flag.
28
+ ### Examples
624
29
 
625
- ### Example
626
30
  ```ruby
627
- # load the gem
31
+ require 'time'
628
32
  require 'launchdarkly_api'
629
33
  # setup authorization
630
34
  LaunchDarklyApi.configure do |config|
631
- # Configure API key authorization: Token
632
- config.api_key['Authorization'] = 'YOUR API KEY'
35
+ # Configure API key authorization: ApiKey
36
+ config.api_key['ApiKey'] = 'YOUR API KEY'
633
37
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
634
- #config.api_key_prefix['Authorization'] = 'Bearer'
38
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
635
39
  end
636
40
 
637
41
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
638
-
639
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
640
-
641
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
642
-
42
+ proj_key = 'proj_key_example' # String | The project key.
643
43
  feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
644
-
44
+ flag_copy_config_post = LaunchDarklyApi::FlagCopyConfigPost.new({source: LaunchDarklyApi::FlagCopyConfigEnvironment.new({key: 'key_example'}), target: LaunchDarklyApi::FlagCopyConfigEnvironment.new({key: 'key_example'})}) # FlagCopyConfigPost |
645
45
 
646
46
  begin
647
- #Get the status for a particular feature flag.
648
- result = api_instance.get_feature_flag_status(project_key, environment_key, feature_flag_key, )
47
+ # Copy feature flag
48
+ result = api_instance.copy_feature_flag(proj_key, feature_flag_key, flag_copy_config_post)
649
49
  p result
650
50
  rescue LaunchDarklyApi::ApiError => e
651
- puts "Exception when calling FeatureFlagsApi->get_feature_flag_status: #{e}"
51
+ puts "Error when calling FeatureFlagsApi->copy_feature_flag: #{e}"
652
52
  end
653
53
  ```
654
54
 
655
- ### Parameters
656
-
657
- Name | Type | Description | Notes
658
- ------------- | ------------- | ------------- | -------------
659
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
660
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
661
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
662
-
663
- ### Return type
664
-
665
- [**FeatureFlagStatus**](FeatureFlagStatus.md)
666
-
667
- ### Authorization
668
-
669
- [Token](../README.md#Token)
670
-
671
- ### HTTP request headers
672
-
673
- - **Content-Type**: application/json
674
- - **Accept**: application/json
675
-
676
-
55
+ #### Using the copy_feature_flag_with_http_info variant
677
56
 
678
- # **get_feature_flag_status_across_environments**
679
- > FeatureFlagStatusAcrossEnvironments get_feature_flag_status_across_environments(project_key, feature_flag_key, )
57
+ This returns an Array which contains the response data, status code and headers.
680
58
 
681
- Get the status for a particular feature flag across environments
59
+ > <Array(<FeatureFlag>, Integer, Hash)> copy_feature_flag_with_http_info(proj_key, feature_flag_key, flag_copy_config_post)
682
60
 
683
- ### Example
684
61
  ```ruby
685
- # load the gem
686
- require 'launchdarkly_api'
687
- # setup authorization
688
- LaunchDarklyApi.configure do |config|
689
- # Configure API key authorization: Token
690
- config.api_key['Authorization'] = 'YOUR API KEY'
691
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
692
- #config.api_key_prefix['Authorization'] = 'Bearer'
693
- end
694
-
695
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
696
-
697
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
698
-
699
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
700
-
701
-
702
62
  begin
703
- #Get the status for a particular feature flag across environments
704
- result = api_instance.get_feature_flag_status_across_environments(project_key, feature_flag_key, )
705
- p result
63
+ # Copy feature flag
64
+ data, status_code, headers = api_instance.copy_feature_flag_with_http_info(proj_key, feature_flag_key, flag_copy_config_post)
65
+ p status_code # => 2xx
66
+ p headers # => { ... }
67
+ p data # => <FeatureFlag>
706
68
  rescue LaunchDarklyApi::ApiError => e
707
- puts "Exception when calling FeatureFlagsApi->get_feature_flag_status_across_environments: #{e}"
69
+ puts "Error when calling FeatureFlagsApi->copy_feature_flag_with_http_info: #{e}"
708
70
  end
709
71
  ```
710
72
 
711
73
  ### Parameters
712
74
 
713
- Name | Type | Description | Notes
714
- ------------- | ------------- | ------------- | -------------
715
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
716
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
75
+ | Name | Type | Description | Notes |
76
+ | ---- | ---- | ----------- | ----- |
77
+ | **proj_key** | **String** | The project key. | |
78
+ | **feature_flag_key** | **String** | The feature flag&#39;s key. The key identifies the flag in your code. | |
79
+ | **flag_copy_config_post** | [**FlagCopyConfigPost**](FlagCopyConfigPost.md) | | |
717
80
 
718
81
  ### Return type
719
82
 
720
- [**FeatureFlagStatusAcrossEnvironments**](FeatureFlagStatusAcrossEnvironments.md)
83
+ [**FeatureFlag**](FeatureFlag.md)
721
84
 
722
85
  ### Authorization
723
86
 
724
- [Token](../README.md#Token)
87
+ [ApiKey](../README.md#ApiKey)
725
88
 
726
89
  ### HTTP request headers
727
90
 
728
- - **Content-Type**: application/json
729
- - **Accept**: application/json
91
+ - **Content-Type**: application/json
92
+ - **Accept**: application/json
93
+
730
94
 
95
+ ## delete_feature_flag
731
96
 
97
+ > delete_feature_flag(proj_key, key)
732
98
 
733
- # **get_feature_flag_statuses**
734
- > FeatureFlagStatuses get_feature_flag_statuses(project_key, environment_key, )
99
+ Delete feature flag
735
100
 
736
- Get a list of statuses for all feature flags. The status includes the last time the feature flag was requested, as well as the state of the flag.
101
+ Delete a feature flag in all environments. Use with caution: only delete feature flags your application no longer uses.
102
+
103
+ ### Examples
737
104
 
738
- ### Example
739
105
  ```ruby
740
- # load the gem
106
+ require 'time'
741
107
  require 'launchdarkly_api'
742
108
  # setup authorization
743
109
  LaunchDarklyApi.configure do |config|
744
- # Configure API key authorization: Token
745
- config.api_key['Authorization'] = 'YOUR API KEY'
110
+ # Configure API key authorization: ApiKey
111
+ config.api_key['ApiKey'] = 'YOUR API KEY'
746
112
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
747
- #config.api_key_prefix['Authorization'] = 'Bearer'
113
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
748
114
  end
749
115
 
750
116
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
751
-
752
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
753
-
754
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
755
-
117
+ proj_key = 'proj_key_example' # String | The project key.
118
+ key = 'key_example' # String | The feature flag's key. The key identifies the flag in your code.
756
119
 
757
120
  begin
758
- #Get a list of statuses for all feature flags. The status includes the last time the feature flag was requested, as well as the state of the flag.
759
- result = api_instance.get_feature_flag_statuses(project_key, environment_key, )
760
- p result
121
+ # Delete feature flag
122
+ api_instance.delete_feature_flag(proj_key, key)
761
123
  rescue LaunchDarklyApi::ApiError => e
762
- puts "Exception when calling FeatureFlagsApi->get_feature_flag_statuses: #{e}"
124
+ puts "Error when calling FeatureFlagsApi->delete_feature_flag: #{e}"
763
125
  end
764
126
  ```
765
127
 
766
- ### Parameters
767
-
768
- Name | Type | Description | Notes
769
- ------------- | ------------- | ------------- | -------------
770
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
771
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
772
-
773
- ### Return type
774
-
775
- [**FeatureFlagStatuses**](FeatureFlagStatuses.md)
776
-
777
- ### Authorization
778
-
779
- [Token](../README.md#Token)
780
-
781
- ### HTTP request headers
128
+ #### Using the delete_feature_flag_with_http_info variant
782
129
 
783
- - **Content-Type**: application/json
784
- - **Accept**: application/json
130
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
785
131
 
132
+ > <Array(nil, Integer, Hash)> delete_feature_flag_with_http_info(proj_key, key)
786
133
 
787
-
788
- # **get_feature_flags**
789
- > FeatureFlags get_feature_flags(project_key, , opts)
790
-
791
- Get a list of all features in the given project.
792
-
793
- ### Example
794
134
  ```ruby
795
- # load the gem
796
- require 'launchdarkly_api'
797
- # setup authorization
798
- LaunchDarklyApi.configure do |config|
799
- # Configure API key authorization: Token
800
- config.api_key['Authorization'] = 'YOUR API KEY'
801
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
802
- #config.api_key_prefix['Authorization'] = 'Bearer'
803
- end
804
-
805
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
806
-
807
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
808
-
809
- opts = {
810
- env: ['env_example'] # Array<String> | By default, each feature will include configurations for each environment. You can filter environments with the env query parameter. For example, setting env=[\"production\"] will restrict the returned configurations to just your production environment.
811
- summary: true, # BOOLEAN | By default in api version >= 1, flags will _not_ include their list of prerequisites, targets or rules. Set summary=0 to include these fields for each flag returned.
812
- archived: true, # BOOLEAN | When set to 1, only archived flags will be included in the list of flags returned. By default, archived flags are not included in the list of flags.
813
- limit: 8.14, # Float | The number of objects to return. Defaults to -1, which returns everything.
814
- offset: 8.14, # Float | Where to start in the list. This is for use with pagination. For example, an offset of 10 would skip the first 10 items and then return the next limit items.
815
- filter: 'filter_example', # String | A comma-separated list of filters. Each filter is of the form field:value.
816
- sort: 'sort_example' # String | A comma-separated list of fields to sort by. A field prefixed by a - will be sorted in descending order.
817
- tag: 'tag_example' # String | Filter by tag. A tag can be used to group flags across projects.
818
- }
819
-
820
135
  begin
821
- #Get a list of all features in the given project.
822
- result = api_instance.get_feature_flags(project_key, , opts)
823
- p result
136
+ # Delete feature flag
137
+ data, status_code, headers = api_instance.delete_feature_flag_with_http_info(proj_key, key)
138
+ p status_code # => 2xx
139
+ p headers # => { ... }
140
+ p data # => nil
824
141
  rescue LaunchDarklyApi::ApiError => e
825
- puts "Exception when calling FeatureFlagsApi->get_feature_flags: #{e}"
142
+ puts "Error when calling FeatureFlagsApi->delete_feature_flag_with_http_info: #{e}"
826
143
  end
827
144
  ```
828
145
 
829
146
  ### Parameters
830
147
 
831
- Name | Type | Description | Notes
832
- ------------- | ------------- | ------------- | -------------
833
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
834
- **env** | [**Array&lt;String&gt;**](String.md)| By default, each feature will include configurations for each environment. You can filter environments with the env query parameter. For example, setting env&#x3D;[\&quot;production\&quot;] will restrict the returned configurations to just your production environment. | [optional]
835
- **summary** | **BOOLEAN**| By default in api version &gt;&#x3D; 1, flags will _not_ include their list of prerequisites, targets or rules. Set summary&#x3D;0 to include these fields for each flag returned. | [optional]
836
- **archived** | **BOOLEAN**| When set to 1, only archived flags will be included in the list of flags returned. By default, archived flags are not included in the list of flags. | [optional]
837
- **limit** | **Float**| The number of objects to return. Defaults to -1, which returns everything. | [optional]
838
- **offset** | **Float**| Where to start in the list. This is for use with pagination. For example, an offset of 10 would skip the first 10 items and then return the next limit items. | [optional]
839
- **filter** | **String**| A comma-separated list of filters. Each filter is of the form field:value. | [optional]
840
- **sort** | **String**| A comma-separated list of fields to sort by. A field prefixed by a - will be sorted in descending order. | [optional]
841
- **tag** | **String**| Filter by tag. A tag can be used to group flags across projects. | [optional]
148
+ | Name | Type | Description | Notes |
149
+ | ---- | ---- | ----------- | ----- |
150
+ | **proj_key** | **String** | The project key. | |
151
+ | **key** | **String** | The feature flag&#39;s key. The key identifies the flag in your code. | |
842
152
 
843
153
  ### Return type
844
154
 
845
- [**FeatureFlags**](FeatureFlags.md)
155
+ nil (empty response body)
846
156
 
847
157
  ### Authorization
848
158
 
849
- [Token](../README.md#Token)
159
+ [ApiKey](../README.md#ApiKey)
850
160
 
851
161
  ### HTTP request headers
852
162
 
853
- - **Content-Type**: application/json
854
- - **Accept**: application/json
163
+ - **Content-Type**: Not defined
164
+ - **Accept**: Not defined
855
165
 
856
166
 
167
+ ## get_expiring_user_targets
857
168
 
858
- # **get_flag_config_scheduled_change**
859
- > FeatureFlagScheduledChange get_flag_config_scheduled_change(project_key, feature_flag_key, environment_key, scheduled_change_id)
169
+ > <ExpiringUserTargetGetResponse> get_expiring_user_targets(proj_key, env_key, flag_key)
860
170
 
861
- Get a scheduled change on a feature flag by id.
171
+ Get expiring user targets for feature flag
172
+
173
+ Get a list of user targets on a feature flag that are scheduled for removal.
174
+
175
+ ### Examples
862
176
 
863
- ### Example
864
177
  ```ruby
865
- # load the gem
178
+ require 'time'
866
179
  require 'launchdarkly_api'
867
180
  # setup authorization
868
181
  LaunchDarklyApi.configure do |config|
869
- # Configure API key authorization: Token
870
- config.api_key['Authorization'] = 'YOUR API KEY'
182
+ # Configure API key authorization: ApiKey
183
+ config.api_key['ApiKey'] = 'YOUR API KEY'
871
184
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
872
- #config.api_key_prefix['Authorization'] = 'Bearer'
185
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
873
186
  end
874
187
 
875
188
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
876
-
877
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
878
-
879
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
880
-
881
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
882
-
883
- scheduled_change_id = 'scheduled_change_id_example' # String | The id of the scheduled change
884
-
189
+ proj_key = 'proj_key_example' # String | The project key.
190
+ env_key = 'env_key_example' # String | The environment key.
191
+ flag_key = 'flag_key_example' # String | The feature flag key.
885
192
 
886
193
  begin
887
- #Get a scheduled change on a feature flag by id.
888
- result = api_instance.get_flag_config_scheduled_change(project_key, feature_flag_key, environment_key, scheduled_change_id)
194
+ # Get expiring user targets for feature flag
195
+ result = api_instance.get_expiring_user_targets(proj_key, env_key, flag_key)
889
196
  p result
890
197
  rescue LaunchDarklyApi::ApiError => e
891
- puts "Exception when calling FeatureFlagsApi->get_flag_config_scheduled_change: #{e}"
198
+ puts "Error when calling FeatureFlagsApi->get_expiring_user_targets: #{e}"
892
199
  end
893
200
  ```
894
201
 
895
- ### Parameters
896
-
897
- Name | Type | Description | Notes
898
- ------------- | ------------- | ------------- | -------------
899
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
900
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
901
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
902
- **scheduled_change_id** | **String**| The id of the scheduled change |
903
-
904
- ### Return type
905
-
906
- [**FeatureFlagScheduledChange**](FeatureFlagScheduledChange.md)
907
-
908
- ### Authorization
909
-
910
- [Token](../README.md#Token)
911
-
912
- ### HTTP request headers
913
-
914
- - **Content-Type**: application/json
915
- - **Accept**: application/json
202
+ #### Using the get_expiring_user_targets_with_http_info variant
916
203
 
204
+ This returns an Array which contains the response data, status code and headers.
917
205
 
206
+ > <Array(<ExpiringUserTargetGetResponse>, Integer, Hash)> get_expiring_user_targets_with_http_info(proj_key, env_key, flag_key)
918
207
 
919
- # **get_flag_config_scheduled_changes**
920
- > FeatureFlagScheduledChanges get_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, )
921
-
922
- Get all scheduled workflows for a feature flag by key.
923
-
924
- ### Example
925
208
  ```ruby
926
- # load the gem
927
- require 'launchdarkly_api'
928
- # setup authorization
929
- LaunchDarklyApi.configure do |config|
930
- # Configure API key authorization: Token
931
- config.api_key['Authorization'] = 'YOUR API KEY'
932
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
933
- #config.api_key_prefix['Authorization'] = 'Bearer'
934
- end
935
-
936
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
937
-
938
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
939
-
940
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
941
-
942
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
943
-
944
-
945
209
  begin
946
- #Get all scheduled workflows for a feature flag by key.
947
- result = api_instance.get_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, )
948
- p result
210
+ # Get expiring user targets for feature flag
211
+ data, status_code, headers = api_instance.get_expiring_user_targets_with_http_info(proj_key, env_key, flag_key)
212
+ p status_code # => 2xx
213
+ p headers # => { ... }
214
+ p data # => <ExpiringUserTargetGetResponse>
949
215
  rescue LaunchDarklyApi::ApiError => e
950
- puts "Exception when calling FeatureFlagsApi->get_flag_config_scheduled_changes: #{e}"
216
+ puts "Error when calling FeatureFlagsApi->get_expiring_user_targets_with_http_info: #{e}"
951
217
  end
952
218
  ```
953
219
 
954
220
  ### Parameters
955
221
 
956
- Name | Type | Description | Notes
957
- ------------- | ------------- | ------------- | -------------
958
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
959
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
960
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
222
+ | Name | Type | Description | Notes |
223
+ | ---- | ---- | ----------- | ----- |
224
+ | **proj_key** | **String** | The project key. | |
225
+ | **env_key** | **String** | The environment key. | |
226
+ | **flag_key** | **String** | The feature flag key. | |
961
227
 
962
228
  ### Return type
963
229
 
964
- [**FeatureFlagScheduledChanges**](FeatureFlagScheduledChanges.md)
230
+ [**ExpiringUserTargetGetResponse**](ExpiringUserTargetGetResponse.md)
965
231
 
966
232
  ### Authorization
967
233
 
968
- [Token](../README.md#Token)
234
+ [ApiKey](../README.md#ApiKey)
969
235
 
970
236
  ### HTTP request headers
971
237
 
972
- - **Content-Type**: application/json
973
- - **Accept**: application/json
238
+ - **Content-Type**: Not defined
239
+ - **Accept**: application/json
974
240
 
975
241
 
242
+ ## get_feature_flag
976
243
 
977
- # **get_flag_config_scheduled_changes_conflicts**
978
- > FeatureFlagScheduledChangesConflicts get_flag_config_scheduled_changes_conflicts(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body)
244
+ > <FeatureFlag> get_feature_flag(proj_key, key, opts)
979
245
 
980
- Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
246
+ Get feature flag
247
+
248
+ Get a single feature flag by key. By default, this returns the configurations for all environments. You can filter environments with the `env` query parameter. For example, setting `env=production` restricts the returned configurations to just the `production` environment.
249
+
250
+ ### Examples
981
251
 
982
- ### Example
983
252
  ```ruby
984
- # load the gem
253
+ require 'time'
985
254
  require 'launchdarkly_api'
986
255
  # setup authorization
987
256
  LaunchDarklyApi.configure do |config|
988
- # Configure API key authorization: Token
989
- config.api_key['Authorization'] = 'YOUR API KEY'
257
+ # Configure API key authorization: ApiKey
258
+ config.api_key['ApiKey'] = 'YOUR API KEY'
990
259
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
991
- #config.api_key_prefix['Authorization'] = 'Bearer'
260
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
992
261
  end
993
262
 
994
263
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
264
+ proj_key = 'proj_key_example' # String | The project key
265
+ key = 'key_example' # String | The feature flag key
266
+ opts = {
267
+ env: 'env_example' # String | Filter configurations by environment
268
+ }
995
269
 
996
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
997
-
998
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
270
+ begin
271
+ # Get feature flag
272
+ result = api_instance.get_feature_flag(proj_key, key, opts)
273
+ p result
274
+ rescue LaunchDarklyApi::ApiError => e
275
+ puts "Error when calling FeatureFlagsApi->get_feature_flag: #{e}"
276
+ end
277
+ ```
999
278
 
1000
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
279
+ #### Using the get_feature_flag_with_http_info variant
1001
280
 
1002
- flag_config_scheduled_changes_conflicts_body = LaunchDarklyApi::FlagConfigScheduledChangesConflictsBody.new # FlagConfigScheduledChangesConflictsBody | Used to determine if a semantic patch will result in conflicts with scheduled changes on a feature flag.
281
+ This returns an Array which contains the response data, status code and headers.
1003
282
 
283
+ > <Array(<FeatureFlag>, Integer, Hash)> get_feature_flag_with_http_info(proj_key, key, opts)
1004
284
 
285
+ ```ruby
1005
286
  begin
1006
- #Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
1007
- result = api_instance.get_flag_config_scheduled_changes_conflicts(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body)
1008
- p result
287
+ # Get feature flag
288
+ data, status_code, headers = api_instance.get_feature_flag_with_http_info(proj_key, key, opts)
289
+ p status_code # => 2xx
290
+ p headers # => { ... }
291
+ p data # => <FeatureFlag>
1009
292
  rescue LaunchDarklyApi::ApiError => e
1010
- puts "Exception when calling FeatureFlagsApi->get_flag_config_scheduled_changes_conflicts: #{e}"
293
+ puts "Error when calling FeatureFlagsApi->get_feature_flag_with_http_info: #{e}"
1011
294
  end
1012
295
  ```
1013
296
 
1014
297
  ### Parameters
1015
298
 
1016
- Name | Type | Description | Notes
1017
- ------------- | ------------- | ------------- | -------------
1018
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1019
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1020
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1021
- **flag_config_scheduled_changes_conflicts_body** | [**FlagConfigScheduledChangesConflictsBody**](FlagConfigScheduledChangesConflictsBody.md)| Used to determine if a semantic patch will result in conflicts with scheduled changes on a feature flag. |
299
+ | Name | Type | Description | Notes |
300
+ | ---- | ---- | ----------- | ----- |
301
+ | **proj_key** | **String** | The project key | |
302
+ | **key** | **String** | The feature flag key | |
303
+ | **env** | **String** | Filter configurations by environment | [optional] |
1022
304
 
1023
305
  ### Return type
1024
306
 
1025
- [**FeatureFlagScheduledChangesConflicts**](FeatureFlagScheduledChangesConflicts.md)
307
+ [**FeatureFlag**](FeatureFlag.md)
1026
308
 
1027
309
  ### Authorization
1028
310
 
1029
- [Token](../README.md#Token)
311
+ [ApiKey](../README.md#ApiKey)
1030
312
 
1031
313
  ### HTTP request headers
1032
314
 
1033
- - **Content-Type**: application/json
1034
- - **Accept**: application/json
315
+ - **Content-Type**: Not defined
316
+ - **Accept**: application/json
317
+
1035
318
 
319
+ ## get_feature_flag_status
1036
320
 
321
+ > <FlagStatusRep> get_feature_flag_status(proj_key, env_key, key)
1037
322
 
1038
- # **patch_expiring_user_targets**
1039
- > UserTargetingExpirationForFlags patch_expiring_user_targets(project_key, environment_key, feature_flag_key, semantic_patch_with_comment)
323
+ Get feature flag status
324
+
325
+ Get the status for a particular feature flag.
1040
326
 
1041
- Update, add, or delete expiring user targets on feature flag
327
+ ### Examples
1042
328
 
1043
- ### Example
1044
329
  ```ruby
1045
- # load the gem
330
+ require 'time'
1046
331
  require 'launchdarkly_api'
1047
332
  # setup authorization
1048
333
  LaunchDarklyApi.configure do |config|
1049
- # Configure API key authorization: Token
1050
- config.api_key['Authorization'] = 'YOUR API KEY'
334
+ # Configure API key authorization: ApiKey
335
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1051
336
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1052
- #config.api_key_prefix['Authorization'] = 'Bearer'
337
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1053
338
  end
1054
339
 
1055
340
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
341
+ proj_key = 'proj_key_example' # String | The project key
342
+ env_key = 'env_key_example' # String | The environment key
343
+ key = 'key_example' # String | The feature flag key
1056
344
 
1057
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1058
-
1059
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
345
+ begin
346
+ # Get feature flag status
347
+ result = api_instance.get_feature_flag_status(proj_key, env_key, key)
348
+ p result
349
+ rescue LaunchDarklyApi::ApiError => e
350
+ puts "Error when calling FeatureFlagsApi->get_feature_flag_status: #{e}"
351
+ end
352
+ ```
1060
353
 
1061
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
354
+ #### Using the get_feature_flag_status_with_http_info variant
1062
355
 
1063
- semantic_patch_with_comment = nil # Object | Requires a Semantic Patch representation of the desired changes to the resource. 'https://apidocs.launchdarkly.com/reference#updates-via-semantic-patches'. The addition of comments is also supported.
356
+ This returns an Array which contains the response data, status code and headers.
1064
357
 
358
+ > <Array(<FlagStatusRep>, Integer, Hash)> get_feature_flag_status_with_http_info(proj_key, env_key, key)
1065
359
 
360
+ ```ruby
1066
361
  begin
1067
- #Update, add, or delete expiring user targets on feature flag
1068
- result = api_instance.patch_expiring_user_targets(project_key, environment_key, feature_flag_key, semantic_patch_with_comment)
1069
- p result
362
+ # Get feature flag status
363
+ data, status_code, headers = api_instance.get_feature_flag_status_with_http_info(proj_key, env_key, key)
364
+ p status_code # => 2xx
365
+ p headers # => { ... }
366
+ p data # => <FlagStatusRep>
1070
367
  rescue LaunchDarklyApi::ApiError => e
1071
- puts "Exception when calling FeatureFlagsApi->patch_expiring_user_targets: #{e}"
368
+ puts "Error when calling FeatureFlagsApi->get_feature_flag_status_with_http_info: #{e}"
1072
369
  end
1073
370
  ```
1074
371
 
1075
372
  ### Parameters
1076
373
 
1077
- Name | Type | Description | Notes
1078
- ------------- | ------------- | ------------- | -------------
1079
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1080
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1081
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1082
- **semantic_patch_with_comment** | **Object**| Requires a Semantic Patch representation of the desired changes to the resource. &#39;https://apidocs.launchdarkly.com/reference#updates-via-semantic-patches&#39;. The addition of comments is also supported. |
374
+ | Name | Type | Description | Notes |
375
+ | ---- | ---- | ----------- | ----- |
376
+ | **proj_key** | **String** | The project key | |
377
+ | **env_key** | **String** | The environment key | |
378
+ | **key** | **String** | The feature flag key | |
1083
379
 
1084
380
  ### Return type
1085
381
 
1086
- [**UserTargetingExpirationForFlags**](UserTargetingExpirationForFlags.md)
382
+ [**FlagStatusRep**](FlagStatusRep.md)
1087
383
 
1088
384
  ### Authorization
1089
385
 
1090
- [Token](../README.md#Token)
386
+ [ApiKey](../README.md#ApiKey)
1091
387
 
1092
388
  ### HTTP request headers
1093
389
 
1094
- - **Content-Type**: application/json
1095
- - **Accept**: application/json
390
+ - **Content-Type**: Not defined
391
+ - **Accept**: application/json
392
+
1096
393
 
394
+ ## get_feature_flag_status_across_environments
1097
395
 
396
+ > <FeatureFlagStatusAcrossEnvironments> get_feature_flag_status_across_environments(proj_key, key, opts)
1098
397
 
1099
- # **patch_feature_flag**
1100
- > FeatureFlag patch_feature_flag(project_key, feature_flag_key, patch_comment)
398
+ Get flag status across environments
1101
399
 
1102
- Perform a partial update to a feature.
400
+ Get the status for a particular feature flag across environments.
401
+
402
+ ### Examples
1103
403
 
1104
- ### Example
1105
404
  ```ruby
1106
- # load the gem
405
+ require 'time'
1107
406
  require 'launchdarkly_api'
1108
407
  # setup authorization
1109
408
  LaunchDarklyApi.configure do |config|
1110
- # Configure API key authorization: Token
1111
- config.api_key['Authorization'] = 'YOUR API KEY'
409
+ # Configure API key authorization: ApiKey
410
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1112
411
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1113
- #config.api_key_prefix['Authorization'] = 'Bearer'
412
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1114
413
  end
1115
414
 
1116
415
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
416
+ proj_key = 'proj_key_example' # String | The project key
417
+ key = 'key_example' # String | The feature flag key
418
+ opts = {
419
+ env: 'env_example' # String | Optional environment filter
420
+ }
1117
421
 
1118
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
422
+ begin
423
+ # Get flag status across environments
424
+ result = api_instance.get_feature_flag_status_across_environments(proj_key, key, opts)
425
+ p result
426
+ rescue LaunchDarklyApi::ApiError => e
427
+ puts "Error when calling FeatureFlagsApi->get_feature_flag_status_across_environments: #{e}"
428
+ end
429
+ ```
1119
430
 
1120
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
431
+ #### Using the get_feature_flag_status_across_environments_with_http_info variant
1121
432
 
1122
- patch_comment = LaunchDarklyApi::PatchComment.new # PatchComment | Requires a JSON Patch representation of the desired changes to the project, and an optional comment. 'http://jsonpatch.com/' Feature flag patches also support JSON Merge Patch format. 'https://tools.ietf.org/html/rfc7386' The addition of comments is also supported.
433
+ This returns an Array which contains the response data, status code and headers.
1123
434
 
435
+ > <Array(<FeatureFlagStatusAcrossEnvironments>, Integer, Hash)> get_feature_flag_status_across_environments_with_http_info(proj_key, key, opts)
1124
436
 
437
+ ```ruby
1125
438
  begin
1126
- #Perform a partial update to a feature.
1127
- result = api_instance.patch_feature_flag(project_key, feature_flag_key, patch_comment)
1128
- p result
439
+ # Get flag status across environments
440
+ data, status_code, headers = api_instance.get_feature_flag_status_across_environments_with_http_info(proj_key, key, opts)
441
+ p status_code # => 2xx
442
+ p headers # => { ... }
443
+ p data # => <FeatureFlagStatusAcrossEnvironments>
1129
444
  rescue LaunchDarklyApi::ApiError => e
1130
- puts "Exception when calling FeatureFlagsApi->patch_feature_flag: #{e}"
445
+ puts "Error when calling FeatureFlagsApi->get_feature_flag_status_across_environments_with_http_info: #{e}"
1131
446
  end
1132
447
  ```
1133
448
 
1134
449
  ### Parameters
1135
450
 
1136
- Name | Type | Description | Notes
1137
- ------------- | ------------- | ------------- | -------------
1138
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1139
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1140
- **patch_comment** | [**PatchComment**](PatchComment.md)| Requires a JSON Patch representation of the desired changes to the project, and an optional comment. &#39;http://jsonpatch.com/&#39; Feature flag patches also support JSON Merge Patch format. &#39;https://tools.ietf.org/html/rfc7386&#39; The addition of comments is also supported. |
451
+ | Name | Type | Description | Notes |
452
+ | ---- | ---- | ----------- | ----- |
453
+ | **proj_key** | **String** | The project key | |
454
+ | **key** | **String** | The feature flag key | |
455
+ | **env** | **String** | Optional environment filter | [optional] |
1141
456
 
1142
457
  ### Return type
1143
458
 
1144
- [**FeatureFlag**](FeatureFlag.md)
459
+ [**FeatureFlagStatusAcrossEnvironments**](FeatureFlagStatusAcrossEnvironments.md)
1145
460
 
1146
461
  ### Authorization
1147
462
 
1148
- [Token](../README.md#Token)
463
+ [ApiKey](../README.md#ApiKey)
1149
464
 
1150
465
  ### HTTP request headers
1151
466
 
1152
- - **Content-Type**: application/json
1153
- - **Accept**: application/json
467
+ - **Content-Type**: Not defined
468
+ - **Accept**: application/json
469
+
470
+
471
+ ## get_feature_flag_statuses
1154
472
 
473
+ > <FeatureFlagStatuses> get_feature_flag_statuses(proj_key, env_key)
1155
474
 
475
+ List feature flag statuses
1156
476
 
1157
- # **patch_flag_config_scheduled_change**
1158
- > FeatureFlagScheduledChange patch_flag_config_scheduled_change(project_key, feature_flag_key, flag_config_scheduled_changes_patch_body, environment_key, scheduled_change_id)
477
+ Get a list of statuses for all feature flags. The status includes the last time the feature flag was requested, as well as a state, which is one of the following: - `new`: the feature flag was created within the last seven days, and has not been requested yet - `active`: the feature flag was requested by your servers or clients within the last seven days - `inactive`: the feature flag was created more than seven days ago, and hasn't been requested by your servers or clients within the past seven days - `launched`: one variation of the feature flag has been rolled out to all your users for at least 7 days
1159
478
 
1160
- Updates an existing scheduled-change on a feature flag in an environment.
479
+ ### Examples
1161
480
 
1162
- ### Example
1163
481
  ```ruby
1164
- # load the gem
482
+ require 'time'
1165
483
  require 'launchdarkly_api'
1166
484
  # setup authorization
1167
485
  LaunchDarklyApi.configure do |config|
1168
- # Configure API key authorization: Token
1169
- config.api_key['Authorization'] = 'YOUR API KEY'
486
+ # Configure API key authorization: ApiKey
487
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1170
488
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1171
- #config.api_key_prefix['Authorization'] = 'Bearer'
489
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1172
490
  end
1173
491
 
1174
492
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
493
+ proj_key = 'proj_key_example' # String | The project key
494
+ env_key = 'env_key_example' # String | Filter configurations by environment
1175
495
 
1176
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1177
-
1178
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
1179
-
1180
- flag_config_scheduled_changes_patch_body = LaunchDarklyApi::FlagConfigScheduledChangesPatchBody.new # FlagConfigScheduledChangesPatchBody | Update scheduled changes on a feature flag.
496
+ begin
497
+ # List feature flag statuses
498
+ result = api_instance.get_feature_flag_statuses(proj_key, env_key)
499
+ p result
500
+ rescue LaunchDarklyApi::ApiError => e
501
+ puts "Error when calling FeatureFlagsApi->get_feature_flag_statuses: #{e}"
502
+ end
503
+ ```
1181
504
 
1182
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
505
+ #### Using the get_feature_flag_statuses_with_http_info variant
1183
506
 
1184
- scheduled_change_id = 'scheduled_change_id_example' # String | The id of the scheduled change
507
+ This returns an Array which contains the response data, status code and headers.
1185
508
 
509
+ > <Array(<FeatureFlagStatuses>, Integer, Hash)> get_feature_flag_statuses_with_http_info(proj_key, env_key)
1186
510
 
511
+ ```ruby
1187
512
  begin
1188
- #Updates an existing scheduled-change on a feature flag in an environment.
1189
- result = api_instance.patch_flag_config_scheduled_change(project_key, feature_flag_key, flag_config_scheduled_changes_patch_body, environment_key, scheduled_change_id)
1190
- p result
513
+ # List feature flag statuses
514
+ data, status_code, headers = api_instance.get_feature_flag_statuses_with_http_info(proj_key, env_key)
515
+ p status_code # => 2xx
516
+ p headers # => { ... }
517
+ p data # => <FeatureFlagStatuses>
1191
518
  rescue LaunchDarklyApi::ApiError => e
1192
- puts "Exception when calling FeatureFlagsApi->patch_flag_config_scheduled_change: #{e}"
519
+ puts "Error when calling FeatureFlagsApi->get_feature_flag_statuses_with_http_info: #{e}"
1193
520
  end
1194
521
  ```
1195
522
 
1196
523
  ### Parameters
1197
524
 
1198
- Name | Type | Description | Notes
1199
- ------------- | ------------- | ------------- | -------------
1200
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1201
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1202
- **flag_config_scheduled_changes_patch_body** | [**FlagConfigScheduledChangesPatchBody**](FlagConfigScheduledChangesPatchBody.md)| Update scheduled changes on a feature flag. |
1203
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1204
- **scheduled_change_id** | **String**| The id of the scheduled change |
525
+ | Name | Type | Description | Notes |
526
+ | ---- | ---- | ----------- | ----- |
527
+ | **proj_key** | **String** | The project key | |
528
+ | **env_key** | **String** | Filter configurations by environment | |
1205
529
 
1206
530
  ### Return type
1207
531
 
1208
- [**FeatureFlagScheduledChange**](FeatureFlagScheduledChange.md)
532
+ [**FeatureFlagStatuses**](FeatureFlagStatuses.md)
1209
533
 
1210
534
  ### Authorization
1211
535
 
1212
- [Token](../README.md#Token)
536
+ [ApiKey](../README.md#ApiKey)
1213
537
 
1214
538
  ### HTTP request headers
1215
539
 
1216
- - **Content-Type**: application/json
1217
- - **Accept**: application/json
540
+ - **Content-Type**: Not defined
541
+ - **Accept**: application/json
542
+
1218
543
 
544
+ ## get_feature_flags
1219
545
 
546
+ > <FeatureFlags> get_feature_flags(proj_key, opts)
1220
547
 
1221
- # **post_apply_approval_request**
1222
- > ApprovalRequest post_apply_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body)
548
+ List feature flags
1223
549
 
1224
- Apply approval request for a feature flag config
550
+ Get a list of all features in the given project. By default, each feature includes configurations for each environment. You can filter environments with the env query parameter. For example, setting `env=production` restricts the returned configurations to just your production environment. You can also filter feature flags by tag with the tag query parameter. We support the following fields for filters: - `query` is a string that matches against the flags' keys and names. It is not case sensitive. - `archived` is a boolean to filter the list to archived flags. When this is absent, only unarchived flags are returned. - `type` is a string allowing filtering to `temporary` or `permanent` flags. - `status` is a string allowing filtering to `new`, `inactive`, `active`, or `launched` flags in the specified environment. This filter also requires a `filterEnv` field to be set to a valid environment. For example: `filter=status:active,filterEnv:production`. - `tags` is a + separated list of tags. It filters the list to members who have all of the tags in the list. - `hasExperiment` is a boolean with values of true or false and returns any flags that have an attached metric. - `hasDataExport` is a boolean with values of true or false and returns any flags that are currently exporting data in the specified environment. This includes flags that are exporting data via Experimentation. This filter also requires a `filterEnv` field to be set to a valid environment key. e.g. `filter=hasExperiment:true,filterEnv:production` - `evaluated` is an object that contains a key of `after` and a value in Unix time in milliseconds. This returns all flags that have been evaluated since the time you specify in the environment provided. This filter also requires a `filterEnv` field to be set to a valid environment. For example: `filter=evaluated:{\"after\": 1590768455282},filterEnv:production`. - `filterEnv` is a string with the key of a valid environment. The filterEnv field is used for filters that are environment specific. If there are multiple environment specific filters you should only declare this parameter once. For example: `filter=evaluated:{\"after\": 1590768455282},filterEnv:production,status:active`. An example filter is `query:abc,tags:foo+bar`. This matches flags with the string `abc` in their key or name, ignoring case, which also have the tags `foo` and `bar`. By default, this returns all flags. You can page through the list with the `limit` parameter and by following the `first`, `prev`, `next`, and `last` links in the returned `_links` field. These links will not be present if the pages they refer to don't exist. For example, the `first` and `prev` links will be missing from the response on the first page.
551
+
552
+ ### Examples
1225
553
 
1226
- ### Example
1227
554
  ```ruby
1228
- # load the gem
555
+ require 'time'
1229
556
  require 'launchdarkly_api'
1230
557
  # setup authorization
1231
558
  LaunchDarklyApi.configure do |config|
1232
- # Configure API key authorization: Token
1233
- config.api_key['Authorization'] = 'YOUR API KEY'
559
+ # Configure API key authorization: ApiKey
560
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1234
561
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1235
- #config.api_key_prefix['Authorization'] = 'Bearer'
562
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1236
563
  end
1237
564
 
1238
565
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
566
+ proj_key = 'proj_key_example' # String | The project key
567
+ opts = {
568
+ env: 'env_example', # String | Filter configurations by environment
569
+ tag: 'tag_example', # String | Filter feature flags by tag
570
+ limit: 789, # Integer | The number of feature flags to return. Defaults to -1, which returns all flags
571
+ offset: 789, # Integer | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next limit items
572
+ query: 'query_example', # String | A string that matches against the flags' keys and names. It is not case sensitive
573
+ archived: true, # Boolean | A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned
574
+ summary: true, # Boolean | By default in API version >= 1, flags will _not_ include their list of prerequisites, targets or rules. Set summary=0 to include these fields for each flag returned
575
+ filter: 'filter_example', # String | A comma-separated list of filters. Each filter is of the form field:value
576
+ sort: 'sort_example' # String | A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order
577
+ }
1239
578
 
1240
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1241
-
1242
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
1243
-
1244
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
579
+ begin
580
+ # List feature flags
581
+ result = api_instance.get_feature_flags(proj_key, opts)
582
+ p result
583
+ rescue LaunchDarklyApi::ApiError => e
584
+ puts "Error when calling FeatureFlagsApi->get_feature_flags: #{e}"
585
+ end
586
+ ```
1245
587
 
1246
- approval_request_id = 'approval_request_id_example' # String | The approval request ID
588
+ #### Using the get_feature_flags_with_http_info variant
1247
589
 
1248
- approval_request_apply_config_body = LaunchDarklyApi::ApprovalRequestApplyConfigBody.new # ApprovalRequestApplyConfigBody | Apply an approval request
590
+ This returns an Array which contains the response data, status code and headers.
1249
591
 
592
+ > <Array(<FeatureFlags>, Integer, Hash)> get_feature_flags_with_http_info(proj_key, opts)
1250
593
 
594
+ ```ruby
1251
595
  begin
1252
- #Apply approval request for a feature flag config
1253
- result = api_instance.post_apply_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body)
1254
- p result
596
+ # List feature flags
597
+ data, status_code, headers = api_instance.get_feature_flags_with_http_info(proj_key, opts)
598
+ p status_code # => 2xx
599
+ p headers # => { ... }
600
+ p data # => <FeatureFlags>
1255
601
  rescue LaunchDarklyApi::ApiError => e
1256
- puts "Exception when calling FeatureFlagsApi->post_apply_approval_request: #{e}"
602
+ puts "Error when calling FeatureFlagsApi->get_feature_flags_with_http_info: #{e}"
1257
603
  end
1258
604
  ```
1259
605
 
1260
606
  ### Parameters
1261
607
 
1262
- Name | Type | Description | Notes
1263
- ------------- | ------------- | ------------- | -------------
1264
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1265
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1266
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1267
- **approval_request_id** | **String**| The approval request ID |
1268
- **approval_request_apply_config_body** | [**ApprovalRequestApplyConfigBody**](ApprovalRequestApplyConfigBody.md)| Apply an approval request |
608
+ | Name | Type | Description | Notes |
609
+ | ---- | ---- | ----------- | ----- |
610
+ | **proj_key** | **String** | The project key | |
611
+ | **env** | **String** | Filter configurations by environment | [optional] |
612
+ | **tag** | **String** | Filter feature flags by tag | [optional] |
613
+ | **limit** | **Integer** | The number of feature flags to return. Defaults to -1, which returns all flags | [optional] |
614
+ | **offset** | **Integer** | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next limit items | [optional] |
615
+ | **query** | **String** | A string that matches against the flags&#39; keys and names. It is not case sensitive | [optional] |
616
+ | **archived** | **Boolean** | A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned | [optional] |
617
+ | **summary** | **Boolean** | By default in API version &gt;&#x3D; 1, flags will _not_ include their list of prerequisites, targets or rules. Set summary&#x3D;0 to include these fields for each flag returned | [optional] |
618
+ | **filter** | **String** | A comma-separated list of filters. Each filter is of the form field:value | [optional] |
619
+ | **sort** | **String** | A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order | [optional] |
1269
620
 
1270
621
  ### Return type
1271
622
 
1272
- [**ApprovalRequest**](ApprovalRequest.md)
623
+ [**FeatureFlags**](FeatureFlags.md)
1273
624
 
1274
625
  ### Authorization
1275
626
 
1276
- [Token](../README.md#Token)
627
+ [ApiKey](../README.md#ApiKey)
1277
628
 
1278
629
  ### HTTP request headers
1279
630
 
1280
- - **Content-Type**: application/json
1281
- - **Accept**: application/json
631
+ - **Content-Type**: Not defined
632
+ - **Accept**: application/json
633
+
1282
634
 
635
+ ## patch_expiring_user_targets
1283
636
 
637
+ > <ExpiringUserTargetPatchResponse> patch_expiring_user_targets(proj_key, env_key, flag_key, patch_with_comment)
1284
638
 
1285
- # **post_approval_request**
1286
- > ApprovalRequest post_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, , opts)
639
+ Update expiring user targets on feature flag
1287
640
 
1288
- Create an approval request for a feature flag config
641
+ Update the list of user targets on a feature flag that are scheduled for removal.
642
+
643
+ ### Examples
1289
644
 
1290
- ### Example
1291
645
  ```ruby
1292
- # load the gem
646
+ require 'time'
1293
647
  require 'launchdarkly_api'
1294
648
  # setup authorization
1295
649
  LaunchDarklyApi.configure do |config|
1296
- # Configure API key authorization: Token
1297
- config.api_key['Authorization'] = 'YOUR API KEY'
650
+ # Configure API key authorization: ApiKey
651
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1298
652
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1299
- #config.api_key_prefix['Authorization'] = 'Bearer'
653
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1300
654
  end
1301
655
 
1302
656
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
657
+ proj_key = 'proj_key_example' # String | The project key.
658
+ env_key = 'env_key_example' # String | The environment key.
659
+ flag_key = 'flag_key_example' # String | The feature flag key.
660
+ patch_with_comment = LaunchDarklyApi::PatchWithComment.new({patch: [LaunchDarklyApi::PatchOperation.new({op: 'replace', path: '/biscuits', value: Chocolate Digestive})]}) # PatchWithComment |
1303
661
 
1304
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1305
-
1306
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
662
+ begin
663
+ # Update expiring user targets on feature flag
664
+ result = api_instance.patch_expiring_user_targets(proj_key, env_key, flag_key, patch_with_comment)
665
+ p result
666
+ rescue LaunchDarklyApi::ApiError => e
667
+ puts "Error when calling FeatureFlagsApi->patch_expiring_user_targets: #{e}"
668
+ end
669
+ ```
1307
670
 
1308
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
671
+ #### Using the patch_expiring_user_targets_with_http_info variant
1309
672
 
1310
- approval_request_id = 'approval_request_id_example' # String | The approval request ID
673
+ This returns an Array which contains the response data, status code and headers.
1311
674
 
1312
- opts = {
1313
- approval_request_config_body: LaunchDarklyApi::ApprovalRequestConfigBody.new # ApprovalRequestConfigBody | Create a new approval request
1314
- }
675
+ > <Array(<ExpiringUserTargetPatchResponse>, Integer, Hash)> patch_expiring_user_targets_with_http_info(proj_key, env_key, flag_key, patch_with_comment)
1315
676
 
677
+ ```ruby
1316
678
  begin
1317
- #Create an approval request for a feature flag config
1318
- result = api_instance.post_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, , opts)
1319
- p result
679
+ # Update expiring user targets on feature flag
680
+ data, status_code, headers = api_instance.patch_expiring_user_targets_with_http_info(proj_key, env_key, flag_key, patch_with_comment)
681
+ p status_code # => 2xx
682
+ p headers # => { ... }
683
+ p data # => <ExpiringUserTargetPatchResponse>
1320
684
  rescue LaunchDarklyApi::ApiError => e
1321
- puts "Exception when calling FeatureFlagsApi->post_approval_request: #{e}"
685
+ puts "Error when calling FeatureFlagsApi->patch_expiring_user_targets_with_http_info: #{e}"
1322
686
  end
1323
687
  ```
1324
688
 
1325
689
  ### Parameters
1326
690
 
1327
- Name | Type | Description | Notes
1328
- ------------- | ------------- | ------------- | -------------
1329
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1330
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1331
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1332
- **approval_request_id** | **String**| The approval request ID |
1333
- **approval_request_config_body** | [**ApprovalRequestConfigBody**](ApprovalRequestConfigBody.md)| Create a new approval request | [optional]
691
+ | Name | Type | Description | Notes |
692
+ | ---- | ---- | ----------- | ----- |
693
+ | **proj_key** | **String** | The project key. | |
694
+ | **env_key** | **String** | The environment key. | |
695
+ | **flag_key** | **String** | The feature flag key. | |
696
+ | **patch_with_comment** | [**PatchWithComment**](PatchWithComment.md) | | |
1334
697
 
1335
698
  ### Return type
1336
699
 
1337
- [**ApprovalRequest**](ApprovalRequest.md)
700
+ [**ExpiringUserTargetPatchResponse**](ExpiringUserTargetPatchResponse.md)
1338
701
 
1339
702
  ### Authorization
1340
703
 
1341
- [Token](../README.md#Token)
704
+ [ApiKey](../README.md#ApiKey)
1342
705
 
1343
706
  ### HTTP request headers
1344
707
 
1345
- - **Content-Type**: application/json
1346
- - **Accept**: application/json
708
+ - **Content-Type**: application/json
709
+ - **Accept**: application/json
710
+
1347
711
 
712
+ ## patch_feature_flag
1348
713
 
714
+ > <FeatureFlag> patch_feature_flag(proj_key, key, patch_with_comment)
1349
715
 
1350
- # **post_approval_request_flag_copy**
1351
- > ApprovalRequest post_approval_request_flag_copy(project_key, feature_flag_key, environment_key, , opts)
716
+ Update feature flag
1352
717
 
1353
- Create an approval request to copy feature flag config
718
+ Perform a partial update to a feature
719
+
720
+ ### Examples
1354
721
 
1355
- ### Example
1356
722
  ```ruby
1357
- # load the gem
723
+ require 'time'
1358
724
  require 'launchdarkly_api'
1359
725
  # setup authorization
1360
726
  LaunchDarklyApi.configure do |config|
1361
- # Configure API key authorization: Token
1362
- config.api_key['Authorization'] = 'YOUR API KEY'
727
+ # Configure API key authorization: ApiKey
728
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1363
729
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1364
- #config.api_key_prefix['Authorization'] = 'Bearer'
730
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1365
731
  end
1366
732
 
1367
733
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
1368
-
1369
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1370
-
1371
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
1372
-
1373
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
1374
-
1375
- opts = {
1376
- approval_request_flag_config_copy_body: LaunchDarklyApi::ApprovalRequestFlagConfigCopyBody.new # ApprovalRequestFlagConfigCopyBody | Create a new approval request
1377
- }
734
+ proj_key = 'proj_key_example' # String | The project key.
735
+ key = 'key_example' # String | The feature flag's key. The key identifies the flag in your code.
736
+ patch_with_comment = LaunchDarklyApi::PatchWithComment.new({patch: [LaunchDarklyApi::PatchOperation.new({op: 'replace', path: '/biscuits', value: Chocolate Digestive})]}) # PatchWithComment |
1378
737
 
1379
738
  begin
1380
- #Create an approval request to copy feature flag config
1381
- result = api_instance.post_approval_request_flag_copy(project_key, feature_flag_key, environment_key, , opts)
739
+ # Update feature flag
740
+ result = api_instance.patch_feature_flag(proj_key, key, patch_with_comment)
1382
741
  p result
1383
742
  rescue LaunchDarklyApi::ApiError => e
1384
- puts "Exception when calling FeatureFlagsApi->post_approval_request_flag_copy: #{e}"
743
+ puts "Error when calling FeatureFlagsApi->patch_feature_flag: #{e}"
1385
744
  end
1386
745
  ```
1387
746
 
1388
- ### Parameters
1389
-
1390
- Name | Type | Description | Notes
1391
- ------------- | ------------- | ------------- | -------------
1392
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1393
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1394
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1395
- **approval_request_flag_config_copy_body** | [**ApprovalRequestFlagConfigCopyBody**](ApprovalRequestFlagConfigCopyBody.md)| Create a new approval request | [optional]
1396
-
1397
- ### Return type
1398
-
1399
- [**ApprovalRequest**](ApprovalRequest.md)
1400
-
1401
- ### Authorization
1402
-
1403
- [Token](../README.md#Token)
1404
-
1405
- ### HTTP request headers
1406
-
1407
- - **Content-Type**: application/json
1408
- - **Accept**: application/json
747
+ #### Using the patch_feature_flag_with_http_info variant
1409
748
 
749
+ This returns an Array which contains the response data, status code and headers.
1410
750
 
751
+ > <Array(<FeatureFlag>, Integer, Hash)> patch_feature_flag_with_http_info(proj_key, key, patch_with_comment)
1411
752
 
1412
- # **post_feature_flag**
1413
- > FeatureFlag post_feature_flag(project_key, feature_flag_body, opts)
1414
-
1415
- Creates a new feature flag.
1416
-
1417
- ### Example
1418
753
  ```ruby
1419
- # load the gem
1420
- require 'launchdarkly_api'
1421
- # setup authorization
1422
- LaunchDarklyApi.configure do |config|
1423
- # Configure API key authorization: Token
1424
- config.api_key['Authorization'] = 'YOUR API KEY'
1425
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1426
- #config.api_key_prefix['Authorization'] = 'Bearer'
1427
- end
1428
-
1429
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
1430
-
1431
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1432
-
1433
- feature_flag_body = LaunchDarklyApi::FeatureFlagBody.new # FeatureFlagBody | Create a new feature flag.
1434
-
1435
- opts = {
1436
- clone: 'clone_example' # String | The key of the feature flag to be cloned. The key identifies the flag in your code. For example, setting clone=flagKey will copy the full targeting configuration for all environments (including on/off state) from the original flag to the new flag.
1437
- }
1438
-
1439
754
  begin
1440
- #Creates a new feature flag.
1441
- result = api_instance.post_feature_flag(project_key, feature_flag_body, opts)
1442
- p result
755
+ # Update feature flag
756
+ data, status_code, headers = api_instance.patch_feature_flag_with_http_info(proj_key, key, patch_with_comment)
757
+ p status_code # => 2xx
758
+ p headers # => { ... }
759
+ p data # => <FeatureFlag>
1443
760
  rescue LaunchDarklyApi::ApiError => e
1444
- puts "Exception when calling FeatureFlagsApi->post_feature_flag: #{e}"
761
+ puts "Error when calling FeatureFlagsApi->patch_feature_flag_with_http_info: #{e}"
1445
762
  end
1446
763
  ```
1447
764
 
1448
765
  ### Parameters
1449
766
 
1450
- Name | Type | Description | Notes
1451
- ------------- | ------------- | ------------- | -------------
1452
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1453
- **feature_flag_body** | [**FeatureFlagBody**](FeatureFlagBody.md)| Create a new feature flag. |
1454
- **clone** | **String**| The key of the feature flag to be cloned. The key identifies the flag in your code. For example, setting clone&#x3D;flagKey will copy the full targeting configuration for all environments (including on/off state) from the original flag to the new flag. | [optional]
767
+ | Name | Type | Description | Notes |
768
+ | ---- | ---- | ----------- | ----- |
769
+ | **proj_key** | **String** | The project key. | |
770
+ | **key** | **String** | The feature flag&#39;s key. The key identifies the flag in your code. | |
771
+ | **patch_with_comment** | [**PatchWithComment**](PatchWithComment.md) | | |
1455
772
 
1456
773
  ### Return type
1457
774
 
@@ -1459,137 +776,87 @@ Name | Type | Description | Notes
1459
776
 
1460
777
  ### Authorization
1461
778
 
1462
- [Token](../README.md#Token)
779
+ [ApiKey](../README.md#ApiKey)
1463
780
 
1464
781
  ### HTTP request headers
1465
782
 
1466
- - **Content-Type**: application/json
1467
- - **Accept**: application/json
783
+ - **Content-Type**: application/json
784
+ - **Accept**: application/json
785
+
1468
786
 
787
+ ## post_feature_flag
1469
788
 
789
+ > <FeatureFlag> post_feature_flag(proj_key, feature_flag_body, opts)
1470
790
 
1471
- # **post_flag_config_scheduled_changes**
1472
- > FeatureFlagScheduledChange post_flag_config_scheduled_changes(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, )
791
+ Create a feature flag
1473
792
 
1474
- Creates a new scheduled change for a feature flag.
793
+ Create a feature flag with the given name, key, and variations
794
+
795
+ ### Examples
1475
796
 
1476
- ### Example
1477
797
  ```ruby
1478
- # load the gem
798
+ require 'time'
1479
799
  require 'launchdarkly_api'
1480
800
  # setup authorization
1481
801
  LaunchDarklyApi.configure do |config|
1482
- # Configure API key authorization: Token
1483
- config.api_key['Authorization'] = 'YOUR API KEY'
802
+ # Configure API key authorization: ApiKey
803
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1484
804
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1485
- #config.api_key_prefix['Authorization'] = 'Bearer'
805
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1486
806
  end
1487
807
 
1488
808
  api_instance = LaunchDarklyApi::FeatureFlagsApi.new
1489
-
1490
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1491
-
1492
- flag_config_scheduled_changes_post_body = LaunchDarklyApi::FlagConfigScheduledChangesPostBody.new # FlagConfigScheduledChangesPostBody | Create scheduled changes on a feature flag.
1493
-
1494
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
1495
-
1496
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
1497
-
809
+ proj_key = 'proj_key_example' # String | The project key.
810
+ feature_flag_body = LaunchDarklyApi::FeatureFlagBody.new({name: 'name_example', key: 'key_example'}) # FeatureFlagBody |
811
+ opts = {
812
+ clone: 'clone_example' # String | The key of the feature flag to be cloned. The key identifies the flag in your code. For example, setting `clone=flagKey` copies the full targeting configuration for all environments, including `on/off` state, from the original flag to the new flag.
813
+ }
1498
814
 
1499
815
  begin
1500
- #Creates a new scheduled change for a feature flag.
1501
- result = api_instance.post_flag_config_scheduled_changes(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, )
816
+ # Create a feature flag
817
+ result = api_instance.post_feature_flag(proj_key, feature_flag_body, opts)
1502
818
  p result
1503
819
  rescue LaunchDarklyApi::ApiError => e
1504
- puts "Exception when calling FeatureFlagsApi->post_flag_config_scheduled_changes: #{e}"
820
+ puts "Error when calling FeatureFlagsApi->post_feature_flag: #{e}"
1505
821
  end
1506
822
  ```
1507
823
 
1508
- ### Parameters
1509
-
1510
- Name | Type | Description | Notes
1511
- ------------- | ------------- | ------------- | -------------
1512
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1513
- **flag_config_scheduled_changes_post_body** | [**FlagConfigScheduledChangesPostBody**](FlagConfigScheduledChangesPostBody.md)| Create scheduled changes on a feature flag. |
1514
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1515
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1516
-
1517
- ### Return type
1518
-
1519
- [**FeatureFlagScheduledChange**](FeatureFlagScheduledChange.md)
1520
-
1521
- ### Authorization
1522
-
1523
- [Token](../README.md#Token)
1524
-
1525
- ### HTTP request headers
1526
-
1527
- - **Content-Type**: application/json
1528
- - **Accept**: application/json
1529
-
824
+ #### Using the post_feature_flag_with_http_info variant
1530
825
 
826
+ This returns an Array which contains the response data, status code and headers.
1531
827
 
1532
- # **post_review_approval_request**
1533
- > ApprovalRequest post_review_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body)
828
+ > <Array(<FeatureFlag>, Integer, Hash)> post_feature_flag_with_http_info(proj_key, feature_flag_body, opts)
1534
829
 
1535
- Review approval request for a feature flag config
1536
-
1537
- ### Example
1538
830
  ```ruby
1539
- # load the gem
1540
- require 'launchdarkly_api'
1541
- # setup authorization
1542
- LaunchDarklyApi.configure do |config|
1543
- # Configure API key authorization: Token
1544
- config.api_key['Authorization'] = 'YOUR API KEY'
1545
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1546
- #config.api_key_prefix['Authorization'] = 'Bearer'
1547
- end
1548
-
1549
- api_instance = LaunchDarklyApi::FeatureFlagsApi.new
1550
-
1551
- project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1552
-
1553
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
1554
-
1555
- environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
1556
-
1557
- approval_request_id = 'approval_request_id_example' # String | The approval request ID
1558
-
1559
- approval_request_review_config_body = LaunchDarklyApi::ApprovalRequestReviewConfigBody.new # ApprovalRequestReviewConfigBody | Review an approval request
1560
-
1561
-
1562
831
  begin
1563
- #Review approval request for a feature flag config
1564
- result = api_instance.post_review_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body)
1565
- p result
832
+ # Create a feature flag
833
+ data, status_code, headers = api_instance.post_feature_flag_with_http_info(proj_key, feature_flag_body, opts)
834
+ p status_code # => 2xx
835
+ p headers # => { ... }
836
+ p data # => <FeatureFlag>
1566
837
  rescue LaunchDarklyApi::ApiError => e
1567
- puts "Exception when calling FeatureFlagsApi->post_review_approval_request: #{e}"
838
+ puts "Error when calling FeatureFlagsApi->post_feature_flag_with_http_info: #{e}"
1568
839
  end
1569
840
  ```
1570
841
 
1571
842
  ### Parameters
1572
843
 
1573
- Name | Type | Description | Notes
1574
- ------------- | ------------- | ------------- | -------------
1575
- **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1576
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1577
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1578
- **approval_request_id** | **String**| The approval request ID |
1579
- **approval_request_review_config_body** | [**ApprovalRequestReviewConfigBody**](ApprovalRequestReviewConfigBody.md)| Review an approval request |
844
+ | Name | Type | Description | Notes |
845
+ | ---- | ---- | ----------- | ----- |
846
+ | **proj_key** | **String** | The project key. | |
847
+ | **feature_flag_body** | [**FeatureFlagBody**](FeatureFlagBody.md) | | |
848
+ | **clone** | **String** | The key of the feature flag to be cloned. The key identifies the flag in your code. For example, setting &#x60;clone&#x3D;flagKey&#x60; copies the full targeting configuration for all environments, including &#x60;on/off&#x60; state, from the original flag to the new flag. | [optional] |
1580
849
 
1581
850
  ### Return type
1582
851
 
1583
- [**ApprovalRequest**](ApprovalRequest.md)
852
+ [**FeatureFlag**](FeatureFlag.md)
1584
853
 
1585
854
  ### Authorization
1586
855
 
1587
- [Token](../README.md#Token)
856
+ [ApiKey](../README.md#ApiKey)
1588
857
 
1589
858
  ### HTTP request headers
1590
859
 
1591
- - **Content-Type**: application/json
1592
- - **Accept**: application/json
1593
-
1594
-
860
+ - **Content-Type**: application/json
861
+ - **Accept**: application/json
1595
862