launchdarkly_api 4.0.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +235 -225
  3. data/docs/{FeatureFlagApprovalRequest.md → ApprovalRequest.md} +4 -4
  4. data/docs/{FeatureFlagApprovalRequestApplyConfigBody.md → ApprovalRequestApplyConfigBody.md} +1 -1
  5. data/docs/{FeatureFlagApprovalRequestConfigBody.md → ApprovalRequestConfigBody.md} +1 -1
  6. data/docs/{FeatureFlagApprovalRequestReview.md → ApprovalRequestReview.md} +2 -2
  7. data/docs/{FeatureFlagApprovalRequestReviewConfigBody.md → ApprovalRequestReviewConfigBody.md} +1 -1
  8. data/docs/{FeatureFlagApprovalRequestReviewStatus.md → ApprovalRequestReviewStatus.md} +1 -1
  9. data/docs/{FeatureFlagApprovalRequests.md → ApprovalRequests.md} +2 -2
  10. data/docs/FeatureFlagsApi.md +470 -99
  11. data/docs/FlagConfigScheduledChangesConflictsBody.md +9 -0
  12. data/docs/FlagConfigScheduledChangesPatchBody.md +9 -0
  13. data/docs/FlagConfigScheduledChangesPostBody.md +10 -0
  14. data/docs/Member.md +2 -0
  15. data/docs/MemberLastSeenMetadata.md +8 -0
  16. data/docs/UserRecordApi.md +67 -0
  17. data/docs/UsersApi.md +0 -59
  18. data/launchdarkly_api.gemspec +1 -1
  19. data/lib/launchdarkly_api.rb +13 -8
  20. data/lib/launchdarkly_api/api/access_tokens_api.rb +1 -1
  21. data/lib/launchdarkly_api/api/audit_log_api.rb +1 -1
  22. data/lib/launchdarkly_api/api/custom_roles_api.rb +1 -1
  23. data/lib/launchdarkly_api/api/customer_metrics_api.rb +1 -1
  24. data/lib/launchdarkly_api/api/data_export_destinations_api.rb +1 -1
  25. data/lib/launchdarkly_api/api/environments_api.rb +1 -1
  26. data/lib/launchdarkly_api/api/feature_flags_api.rb +594 -175
  27. data/lib/launchdarkly_api/api/integrations_api.rb +1 -1
  28. data/lib/launchdarkly_api/api/projects_api.rb +1 -1
  29. data/lib/launchdarkly_api/api/relay_proxy_configurations_api.rb +1 -1
  30. data/lib/launchdarkly_api/api/root_api.rb +1 -1
  31. data/lib/launchdarkly_api/api/team_members_api.rb +1 -1
  32. data/lib/launchdarkly_api/api/user_record_api.rb +87 -0
  33. data/lib/launchdarkly_api/api/user_segments_api.rb +1 -1
  34. data/lib/launchdarkly_api/api/user_settings_api.rb +1 -1
  35. data/lib/launchdarkly_api/api/users_api.rb +1 -65
  36. data/lib/launchdarkly_api/api/webhooks_api.rb +1 -1
  37. data/lib/launchdarkly_api/api_client.rb +1 -1
  38. data/lib/launchdarkly_api/api_error.rb +1 -1
  39. data/lib/launchdarkly_api/configuration.rb +1 -1
  40. data/lib/launchdarkly_api/models/{feature_flag_approval_request.rb → approval_request.rb} +5 -5
  41. data/lib/launchdarkly_api/models/{feature_flag_approval_request_apply_config_body.rb → approval_request_apply_config_body.rb} +2 -2
  42. data/lib/launchdarkly_api/models/{feature_flag_approval_request_config_body.rb → approval_request_config_body.rb} +2 -2
  43. data/lib/launchdarkly_api/models/{feature_flag_approval_request_review.rb → approval_request_review.rb} +3 -3
  44. data/lib/launchdarkly_api/models/{feature_flag_approval_request_review_config_body.rb → approval_request_review_config_body.rb} +2 -2
  45. data/lib/launchdarkly_api/models/{feature_flag_approval_request_review_status.rb → approval_request_review_status.rb} +4 -4
  46. data/lib/launchdarkly_api/models/{feature_flag_approval_requests.rb → approval_requests.rb} +3 -3
  47. data/lib/launchdarkly_api/models/audit_log_entries.rb +1 -1
  48. data/lib/launchdarkly_api/models/audit_log_entry.rb +1 -1
  49. data/lib/launchdarkly_api/models/audit_log_entry_target.rb +1 -1
  50. data/lib/launchdarkly_api/models/clause.rb +1 -1
  51. data/lib/launchdarkly_api/models/client_side_availability.rb +1 -1
  52. data/lib/launchdarkly_api/models/copy_actions.rb +1 -1
  53. data/lib/launchdarkly_api/models/custom_property.rb +1 -1
  54. data/lib/launchdarkly_api/models/custom_property_values.rb +1 -1
  55. data/lib/launchdarkly_api/models/custom_role.rb +1 -1
  56. data/lib/launchdarkly_api/models/custom_role_body.rb +1 -1
  57. data/lib/launchdarkly_api/models/custom_roles.rb +1 -1
  58. data/lib/launchdarkly_api/models/defaults.rb +1 -1
  59. data/lib/launchdarkly_api/models/destination.rb +1 -1
  60. data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +1 -1
  61. data/lib/launchdarkly_api/models/destination_body.rb +1 -1
  62. data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +1 -1
  63. data/lib/launchdarkly_api/models/destination_m_particle.rb +1 -1
  64. data/lib/launchdarkly_api/models/destination_segment.rb +1 -1
  65. data/lib/launchdarkly_api/models/destinations.rb +1 -1
  66. data/lib/launchdarkly_api/models/environment.rb +1 -1
  67. data/lib/launchdarkly_api/models/environment_approval_settings.rb +1 -1
  68. data/lib/launchdarkly_api/models/environment_post.rb +1 -1
  69. data/lib/launchdarkly_api/models/evaluation_usage_error.rb +1 -1
  70. data/lib/launchdarkly_api/models/events.rb +1 -1
  71. data/lib/launchdarkly_api/models/fallthrough.rb +1 -1
  72. data/lib/launchdarkly_api/models/feature_flag.rb +1 -1
  73. data/lib/launchdarkly_api/models/feature_flag_body.rb +1 -1
  74. data/lib/launchdarkly_api/models/feature_flag_config.rb +1 -1
  75. data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +1 -1
  76. data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +1 -1
  77. data/lib/launchdarkly_api/models/feature_flag_scheduled_change.rb +1 -1
  78. data/lib/launchdarkly_api/models/feature_flag_scheduled_changes.rb +1 -1
  79. data/lib/launchdarkly_api/models/feature_flag_scheduled_changes_conflicts.rb +1 -1
  80. data/lib/launchdarkly_api/models/feature_flag_scheduled_changes_conflicts_instructions.rb +1 -1
  81. data/lib/launchdarkly_api/models/feature_flag_status.rb +1 -1
  82. data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +1 -1
  83. data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +1 -1
  84. data/lib/launchdarkly_api/models/feature_flag_statuses.rb +1 -1
  85. data/lib/launchdarkly_api/models/feature_flags.rb +1 -1
  86. data/lib/launchdarkly_api/models/flag_config_scheduled_changes_conflicts_body.rb +193 -0
  87. data/lib/launchdarkly_api/models/flag_config_scheduled_changes_patch_body.rb +193 -0
  88. data/lib/launchdarkly_api/models/flag_config_scheduled_changes_post_body.rb +203 -0
  89. data/lib/launchdarkly_api/models/flag_list_item.rb +1 -1
  90. data/lib/launchdarkly_api/models/hierarchical_links.rb +1 -1
  91. data/lib/launchdarkly_api/models/id.rb +1 -1
  92. data/lib/launchdarkly_api/models/integration.rb +1 -1
  93. data/lib/launchdarkly_api/models/integration__links.rb +1 -1
  94. data/lib/launchdarkly_api/models/integration_subscription.rb +1 -1
  95. data/lib/launchdarkly_api/models/integration_subscription__status.rb +1 -1
  96. data/lib/launchdarkly_api/models/integrations.rb +1 -1
  97. data/lib/launchdarkly_api/models/link.rb +1 -1
  98. data/lib/launchdarkly_api/models/links.rb +1 -1
  99. data/lib/launchdarkly_api/models/ma_uby_category.rb +1 -1
  100. data/lib/launchdarkly_api/models/mau.rb +1 -1
  101. data/lib/launchdarkly_api/models/mau_metadata.rb +1 -1
  102. data/lib/launchdarkly_api/models/member.rb +24 -5
  103. data/lib/launchdarkly_api/models/member__last_seen_metadata.rb +184 -0
  104. data/lib/launchdarkly_api/models/members.rb +1 -1
  105. data/lib/launchdarkly_api/models/members_body.rb +1 -1
  106. data/lib/launchdarkly_api/models/patch_comment.rb +1 -1
  107. data/lib/launchdarkly_api/models/patch_operation.rb +1 -1
  108. data/lib/launchdarkly_api/models/policy.rb +1 -1
  109. data/lib/launchdarkly_api/models/prerequisite.rb +1 -1
  110. data/lib/launchdarkly_api/models/project.rb +1 -1
  111. data/lib/launchdarkly_api/models/project_body.rb +1 -1
  112. data/lib/launchdarkly_api/models/projects.rb +1 -1
  113. data/lib/launchdarkly_api/models/relay_proxy_config.rb +1 -1
  114. data/lib/launchdarkly_api/models/relay_proxy_config_body.rb +1 -1
  115. data/lib/launchdarkly_api/models/relay_proxy_configs.rb +1 -1
  116. data/lib/launchdarkly_api/models/role.rb +1 -1
  117. data/lib/launchdarkly_api/models/rollout.rb +1 -1
  118. data/lib/launchdarkly_api/models/rule.rb +1 -1
  119. data/lib/launchdarkly_api/models/scheduled_changes_feature_flag_conflict.rb +1 -1
  120. data/lib/launchdarkly_api/models/semantic_patch_instruction.rb +1 -1
  121. data/lib/launchdarkly_api/models/semantic_patch_instruction_inner.rb +1 -1
  122. data/lib/launchdarkly_api/models/semantic_patch_operation.rb +1 -1
  123. data/lib/launchdarkly_api/models/site.rb +1 -1
  124. data/lib/launchdarkly_api/models/statement.rb +1 -1
  125. data/lib/launchdarkly_api/models/stream.rb +1 -1
  126. data/lib/launchdarkly_api/models/stream_by_sdk.rb +1 -1
  127. data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +1 -1
  128. data/lib/launchdarkly_api/models/stream_by_sdk_links_metadata.rb +1 -1
  129. data/lib/launchdarkly_api/models/stream_links.rb +1 -1
  130. data/lib/launchdarkly_api/models/stream_sdk_version.rb +1 -1
  131. data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +1 -1
  132. data/lib/launchdarkly_api/models/stream_usage_error.rb +1 -1
  133. data/lib/launchdarkly_api/models/stream_usage_links.rb +1 -1
  134. data/lib/launchdarkly_api/models/stream_usage_metadata.rb +1 -1
  135. data/lib/launchdarkly_api/models/stream_usage_series.rb +1 -1
  136. data/lib/launchdarkly_api/models/streams.rb +1 -1
  137. data/lib/launchdarkly_api/models/subscription_body.rb +1 -1
  138. data/lib/launchdarkly_api/models/target.rb +1 -1
  139. data/lib/launchdarkly_api/models/token.rb +1 -1
  140. data/lib/launchdarkly_api/models/token_body.rb +1 -1
  141. data/lib/launchdarkly_api/models/tokens.rb +1 -1
  142. data/lib/launchdarkly_api/models/unbounded_segment_target_changes.rb +1 -1
  143. data/lib/launchdarkly_api/models/unbounded_segment_targets_body.rb +1 -1
  144. data/lib/launchdarkly_api/models/usage.rb +1 -1
  145. data/lib/launchdarkly_api/models/usage_error.rb +1 -1
  146. data/lib/launchdarkly_api/models/usage_links.rb +1 -1
  147. data/lib/launchdarkly_api/models/user.rb +1 -1
  148. data/lib/launchdarkly_api/models/user_flag_setting.rb +1 -1
  149. data/lib/launchdarkly_api/models/user_flag_settings.rb +1 -1
  150. data/lib/launchdarkly_api/models/user_record.rb +1 -1
  151. data/lib/launchdarkly_api/models/user_segment.rb +1 -1
  152. data/lib/launchdarkly_api/models/user_segment_body.rb +1 -1
  153. data/lib/launchdarkly_api/models/user_segment_rule.rb +1 -1
  154. data/lib/launchdarkly_api/models/user_segments.rb +1 -1
  155. data/lib/launchdarkly_api/models/user_settings_body.rb +1 -1
  156. data/lib/launchdarkly_api/models/user_targeting_expiration_for_flag.rb +1 -1
  157. data/lib/launchdarkly_api/models/user_targeting_expiration_for_flags.rb +1 -1
  158. data/lib/launchdarkly_api/models/user_targeting_expiration_for_segment.rb +1 -1
  159. data/lib/launchdarkly_api/models/user_targeting_expiration_on_flags_for_user.rb +1 -1
  160. data/lib/launchdarkly_api/models/user_targeting_expiration_resource_id_for_flag.rb +1 -1
  161. data/lib/launchdarkly_api/models/users.rb +1 -1
  162. data/lib/launchdarkly_api/models/variation.rb +1 -1
  163. data/lib/launchdarkly_api/models/webhook.rb +1 -1
  164. data/lib/launchdarkly_api/models/webhook_body.rb +1 -1
  165. data/lib/launchdarkly_api/models/webhooks.rb +1 -1
  166. data/lib/launchdarkly_api/models/weighted_variation.rb +1 -1
  167. data/lib/launchdarkly_api/version.rb +2 -2
  168. data/openapi.yml +247 -69
  169. data/spec/api/access_tokens_api_spec.rb +1 -1
  170. data/spec/api/audit_log_api_spec.rb +1 -1
  171. data/spec/api/custom_roles_api_spec.rb +1 -1
  172. data/spec/api/customer_metrics_api_spec.rb +1 -1
  173. data/spec/api/data_export_destinations_api_spec.rb +1 -1
  174. data/spec/api/environments_api_spec.rb +1 -1
  175. data/spec/api/feature_flags_api_spec.rb +130 -46
  176. data/spec/api/integrations_api_spec.rb +1 -1
  177. data/spec/api/projects_api_spec.rb +1 -1
  178. data/spec/api/relay_proxy_configurations_api_spec.rb +1 -1
  179. data/spec/api/root_api_spec.rb +1 -1
  180. data/spec/api/team_members_api_spec.rb +1 -1
  181. data/spec/api/user_record_api_spec.rb +48 -0
  182. data/spec/api/user_segments_api_spec.rb +1 -1
  183. data/spec/api/user_settings_api_spec.rb +1 -1
  184. data/spec/api/users_api_spec.rb +1 -14
  185. data/spec/api/webhooks_api_spec.rb +1 -1
  186. data/spec/api_client_spec.rb +1 -1
  187. data/spec/configuration_spec.rb +1 -1
  188. data/spec/models/{feature_flag_approval_request_apply_config_body_spec.rb → approval_request_apply_config_body_spec.rb} +7 -7
  189. data/spec/models/{feature_flag_approval_request_config_body_spec.rb → approval_request_config_body_spec.rb} +7 -7
  190. data/spec/models/{feature_flag_approval_request_review_config_body_spec.rb → approval_request_review_config_body_spec.rb} +7 -7
  191. data/spec/models/{feature_flag_approval_request_review_spec.rb → approval_request_review_spec.rb} +7 -7
  192. data/spec/models/{feature_flag_approval_request_review_status_spec.rb → approval_request_review_status_spec.rb} +7 -7
  193. data/spec/models/{feature_flag_approval_request_spec.rb → approval_request_spec.rb} +7 -7
  194. data/spec/models/{feature_flag_approval_requests_spec.rb → approval_requests_spec.rb} +7 -7
  195. data/spec/models/audit_log_entries_spec.rb +1 -1
  196. data/spec/models/audit_log_entry_spec.rb +1 -1
  197. data/spec/models/audit_log_entry_target_spec.rb +1 -1
  198. data/spec/models/clause_spec.rb +1 -1
  199. data/spec/models/client_side_availability_spec.rb +1 -1
  200. data/spec/models/copy_actions_spec.rb +1 -1
  201. data/spec/models/custom_property_spec.rb +1 -1
  202. data/spec/models/custom_property_values_spec.rb +1 -1
  203. data/spec/models/custom_role_body_spec.rb +1 -1
  204. data/spec/models/custom_role_spec.rb +1 -1
  205. data/spec/models/custom_roles_spec.rb +1 -1
  206. data/spec/models/defaults_spec.rb +1 -1
  207. data/spec/models/destination_amazon_kinesis_spec.rb +1 -1
  208. data/spec/models/destination_body_spec.rb +1 -1
  209. data/spec/models/destination_google_pub_sub_spec.rb +1 -1
  210. data/spec/models/destination_m_particle_spec.rb +1 -1
  211. data/spec/models/destination_segment_spec.rb +1 -1
  212. data/spec/models/destination_spec.rb +1 -1
  213. data/spec/models/destinations_spec.rb +1 -1
  214. data/spec/models/environment_approval_settings_spec.rb +1 -1
  215. data/spec/models/environment_post_spec.rb +1 -1
  216. data/spec/models/environment_spec.rb +1 -1
  217. data/spec/models/evaluation_usage_error_spec.rb +1 -1
  218. data/spec/models/events_spec.rb +1 -1
  219. data/spec/models/fallthrough_spec.rb +1 -1
  220. data/spec/models/feature_flag_body_spec.rb +1 -1
  221. data/spec/models/feature_flag_config_spec.rb +1 -1
  222. data/spec/models/feature_flag_copy_body_spec.rb +1 -1
  223. data/spec/models/feature_flag_copy_object_spec.rb +1 -1
  224. data/spec/models/feature_flag_scheduled_change_spec.rb +1 -1
  225. data/spec/models/feature_flag_scheduled_changes_conflicts_instructions_spec.rb +1 -1
  226. data/spec/models/feature_flag_scheduled_changes_conflicts_spec.rb +1 -1
  227. data/spec/models/feature_flag_scheduled_changes_spec.rb +1 -1
  228. data/spec/models/feature_flag_spec.rb +1 -1
  229. data/spec/models/feature_flag_status_across_environments_spec.rb +1 -1
  230. data/spec/models/feature_flag_status_for_queried_environment_spec.rb +1 -1
  231. data/spec/models/feature_flag_status_spec.rb +1 -1
  232. data/spec/models/feature_flag_statuses_spec.rb +1 -1
  233. data/spec/models/feature_flags_spec.rb +1 -1
  234. data/spec/models/flag_config_scheduled_changes_conflicts_body_spec.rb +47 -0
  235. data/spec/models/flag_config_scheduled_changes_patch_body_spec.rb +47 -0
  236. data/spec/models/flag_config_scheduled_changes_post_body_spec.rb +53 -0
  237. data/spec/models/flag_list_item_spec.rb +1 -1
  238. data/spec/models/hierarchical_links_spec.rb +1 -1
  239. data/spec/models/id_spec.rb +1 -1
  240. data/spec/models/integration__links_spec.rb +1 -1
  241. data/spec/models/integration_spec.rb +1 -1
  242. data/spec/models/integration_subscription__status_spec.rb +1 -1
  243. data/spec/models/integration_subscription_spec.rb +1 -1
  244. data/spec/models/integrations_spec.rb +1 -1
  245. data/spec/models/link_spec.rb +1 -1
  246. data/spec/models/links_spec.rb +1 -1
  247. data/spec/models/ma_uby_category_spec.rb +1 -1
  248. data/spec/models/mau_metadata_spec.rb +1 -1
  249. data/spec/models/mau_spec.rb +1 -1
  250. data/spec/models/member__last_seen_metadata_spec.rb +41 -0
  251. data/spec/models/member_spec.rb +13 -1
  252. data/spec/models/members_body_spec.rb +1 -1
  253. data/spec/models/members_spec.rb +1 -1
  254. data/spec/models/patch_comment_spec.rb +1 -1
  255. data/spec/models/patch_operation_spec.rb +1 -1
  256. data/spec/models/policy_spec.rb +1 -1
  257. data/spec/models/prerequisite_spec.rb +1 -1
  258. data/spec/models/project_body_spec.rb +1 -1
  259. data/spec/models/project_spec.rb +1 -1
  260. data/spec/models/projects_spec.rb +1 -1
  261. data/spec/models/relay_proxy_config_body_spec.rb +1 -1
  262. data/spec/models/relay_proxy_config_spec.rb +1 -1
  263. data/spec/models/relay_proxy_configs_spec.rb +1 -1
  264. data/spec/models/role_spec.rb +1 -1
  265. data/spec/models/rollout_spec.rb +1 -1
  266. data/spec/models/rule_spec.rb +1 -1
  267. data/spec/models/scheduled_changes_feature_flag_conflict_spec.rb +1 -1
  268. data/spec/models/semantic_patch_instruction_inner_spec.rb +1 -1
  269. data/spec/models/semantic_patch_instruction_spec.rb +1 -1
  270. data/spec/models/semantic_patch_operation_spec.rb +1 -1
  271. data/spec/models/site_spec.rb +1 -1
  272. data/spec/models/statement_spec.rb +1 -1
  273. data/spec/models/stream_by_sdk_links_metadata_spec.rb +1 -1
  274. data/spec/models/stream_by_sdk_links_spec.rb +1 -1
  275. data/spec/models/stream_by_sdk_spec.rb +1 -1
  276. data/spec/models/stream_links_spec.rb +1 -1
  277. data/spec/models/stream_sdk_version_data_spec.rb +1 -1
  278. data/spec/models/stream_sdk_version_spec.rb +1 -1
  279. data/spec/models/stream_spec.rb +1 -1
  280. data/spec/models/stream_usage_error_spec.rb +1 -1
  281. data/spec/models/stream_usage_links_spec.rb +1 -1
  282. data/spec/models/stream_usage_metadata_spec.rb +1 -1
  283. data/spec/models/stream_usage_series_spec.rb +1 -1
  284. data/spec/models/streams_spec.rb +1 -1
  285. data/spec/models/subscription_body_spec.rb +1 -1
  286. data/spec/models/target_spec.rb +1 -1
  287. data/spec/models/token_body_spec.rb +1 -1
  288. data/spec/models/token_spec.rb +1 -1
  289. data/spec/models/tokens_spec.rb +1 -1
  290. data/spec/models/unbounded_segment_target_changes_spec.rb +1 -1
  291. data/spec/models/unbounded_segment_targets_body_spec.rb +1 -1
  292. data/spec/models/usage_error_spec.rb +1 -1
  293. data/spec/models/usage_links_spec.rb +1 -1
  294. data/spec/models/usage_spec.rb +1 -1
  295. data/spec/models/user_flag_setting_spec.rb +1 -1
  296. data/spec/models/user_flag_settings_spec.rb +1 -1
  297. data/spec/models/user_record_spec.rb +1 -1
  298. data/spec/models/user_segment_body_spec.rb +1 -1
  299. data/spec/models/user_segment_rule_spec.rb +1 -1
  300. data/spec/models/user_segment_spec.rb +1 -1
  301. data/spec/models/user_segments_spec.rb +1 -1
  302. data/spec/models/user_settings_body_spec.rb +1 -1
  303. data/spec/models/user_spec.rb +1 -1
  304. data/spec/models/user_targeting_expiration_for_flag_spec.rb +1 -1
  305. data/spec/models/user_targeting_expiration_for_flags_spec.rb +1 -1
  306. data/spec/models/user_targeting_expiration_for_segment_spec.rb +1 -1
  307. data/spec/models/user_targeting_expiration_on_flags_for_user_spec.rb +1 -1
  308. data/spec/models/user_targeting_expiration_resource_id_for_flag_spec.rb +1 -1
  309. data/spec/models/users_spec.rb +1 -1
  310. data/spec/models/variation_spec.rb +1 -1
  311. data/spec/models/webhook_body_spec.rb +1 -1
  312. data/spec/models/webhook_spec.rb +1 -1
  313. data/spec/models/webhooks_spec.rb +1 -1
  314. data/spec/models/weighted_variation_spec.rb +1 -1
  315. data/spec/spec_helper.rb +1 -1
  316. metadata +161 -141
@@ -1,4 +1,4 @@
1
- # LaunchDarklyApi::FeatureFlagApprovalRequest
1
+ # LaunchDarklyApi::ApprovalRequest
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
7
7
  **_version** | **Integer** | | [optional]
8
8
  **creation_date** | **Integer** | A unix epoch time in milliseconds specifying the date the approval request was requested | [optional]
9
9
  **requestor_id** | **String** | The id of the member that requested the change | [optional]
10
- **review_status** | [**FeatureFlagApprovalRequestReviewStatus**](FeatureFlagApprovalRequestReviewStatus.md) | | [optional]
11
- **status** | **String** | | Name | Description | | --------:| ----------- | | pending | the feature flag approval request has not been applied yet | | completed| the feature flag approval request has been applied successfully | | failed | the feature flag approval request has been applied but the changes were not applied successfully | | [optional]
10
+ **review_status** | [**ApprovalRequestReviewStatus**](ApprovalRequestReviewStatus.md) | | [optional]
11
+ **status** | **String** | | Name | Description | | --------:| ----------- | | pending | the approval request has not been applied yet | | completed| the approval request has been applied successfully | | failed | the approval request has been applied but the changes were not applied successfully | | [optional]
12
12
  **applied_by_member_id** | **String** | The id of the member that applied the approval request | [optional]
13
13
  **applied_date** | **Integer** | A unix epoch time in milliseconds specifying the date the approval request was applied | [optional]
14
- **all_reviews** | [**Array<FeatureFlagApprovalRequestReview>**](FeatureFlagApprovalRequestReview.md) | | [optional]
14
+ **all_reviews** | [**Array<ApprovalRequestReview>**](ApprovalRequestReview.md) | | [optional]
15
15
  **notify_member_ids** | **Array<String>** | | [optional]
16
16
  **instructions** | [**SemanticPatchInstruction**](SemanticPatchInstruction.md) | | [optional]
17
17
 
@@ -1,4 +1,4 @@
1
- # LaunchDarklyApi::FeatureFlagApprovalRequestApplyConfigBody
1
+ # LaunchDarklyApi::ApprovalRequestApplyConfigBody
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # LaunchDarklyApi::FeatureFlagApprovalRequestConfigBody
1
+ # LaunchDarklyApi::ApprovalRequestConfigBody
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,10 +1,10 @@
1
- # LaunchDarklyApi::FeatureFlagApprovalRequestReview
1
+ # LaunchDarklyApi::ApprovalRequestReview
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **creation_date** | **Integer** | A unix epoch time in milliseconds specifying the date the approval request was reviewed | [optional]
7
- **kind** | [**FeatureFlagApprovalRequestReviewStatus**](FeatureFlagApprovalRequestReviewStatus.md) | | [optional]
7
+ **kind** | [**ApprovalRequestReviewStatus**](ApprovalRequestReviewStatus.md) | | [optional]
8
8
  **member_id** | [**Id**](Id.md) | | [optional]
9
9
  **_id** | [**Id**](Id.md) | | [optional]
10
10
 
@@ -1,4 +1,4 @@
1
- # LaunchDarklyApi::FeatureFlagApprovalRequestReviewConfigBody
1
+ # LaunchDarklyApi::ApprovalRequestReviewConfigBody
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # LaunchDarklyApi::FeatureFlagApprovalRequestReviewStatus
1
+ # LaunchDarklyApi::ApprovalRequestReviewStatus
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,9 +1,9 @@
1
- # LaunchDarklyApi::FeatureFlagApprovalRequests
1
+ # LaunchDarklyApi::ApprovalRequests
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **_links** | [**Links**](Links.md) | | [optional]
7
- **items** | [**Array<FeatureFlagApprovalRequest>**](FeatureFlagApprovalRequest.md) | | [optional]
7
+ **items** | [**Array<ApprovalRequest>**](ApprovalRequest.md) | | [optional]
8
8
 
9
9
 
@@ -5,22 +5,28 @@ All URIs are relative to *https://app.launchdarkly.com/api/v2*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
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
8
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.
9
- [**delete_feature_flag_approval_request**](FeatureFlagsApi.md#delete_feature_flag_approval_request) | **DELETE** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{featureFlagApprovalRequestId} | Delete an approval request for a feature flag
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
+ [**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
12
+ [**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
10
13
  [**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
11
14
  [**get_feature_flag**](FeatureFlagsApi.md#get_feature_flag) | **GET** /flags/{projectKey}/{featureFlagKey} | Get a single feature flag by key.
12
- [**get_feature_flag_approval_request**](FeatureFlagsApi.md#get_feature_flag_approval_request) | **GET** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{featureFlagApprovalRequestId} | Get a single approval request for a feature flag
13
- [**get_feature_flag_approval_requests**](FeatureFlagsApi.md#get_feature_flag_approval_requests) | **GET** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests | Get all approval requests for a feature flag
14
15
  [**get_feature_flag_status**](FeatureFlagsApi.md#get_feature_flag_status) | **GET** /flag-statuses/{projectKey}/{environmentKey}/{featureFlagKey} | Get the status for a particular feature flag.
15
16
  [**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
16
17
  [**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.
17
18
  [**get_feature_flags**](FeatureFlagsApi.md#get_feature_flags) | **GET** /flags/{projectKey} | Get a list of all features in the given project.
19
+ [**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.
20
+ [**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.
21
+ [**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.
18
22
  [**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
19
23
  [**patch_feature_flag**](FeatureFlagsApi.md#patch_feature_flag) | **PATCH** /flags/{projectKey}/{featureFlagKey} | Perform a partial update to a feature.
20
- [**post_apply_feature_flag_approval_request**](FeatureFlagsApi.md#post_apply_feature_flag_approval_request) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{featureFlagApprovalRequestId}/apply | Apply approval request for a feature flag
24
+ [**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.
25
+ [**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
26
+ [**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
21
27
  [**post_feature_flag**](FeatureFlagsApi.md#post_feature_flag) | **POST** /flags/{projectKey} | Creates a new feature flag.
22
- [**post_feature_flag_approval_request**](FeatureFlagsApi.md#post_feature_flag_approval_request) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{featureFlagApprovalRequestId} | Create an approval request for a feature flag
23
- [**post_review_feature_flag_approval_request**](FeatureFlagsApi.md#post_review_feature_flag_approval_request) | **POST** /projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{featureFlagApprovalRequestId}/review | Review approval request for a feature flag
28
+ [**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.
29
+ [**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
24
30
 
25
31
 
26
32
  # **copy_feature_flag**
@@ -81,6 +87,70 @@ Name | Type | Description | Notes
81
87
 
82
88
 
83
89
 
90
+ # **delete_approval_request**
91
+ > delete_approval_request(project_key, environment_key, feature_flag_key, approval_request_id, , opts)
92
+
93
+ Delete an approval request for a feature flag config
94
+
95
+ ### Example
96
+ ```ruby
97
+ # load the gem
98
+ require 'launchdarkly_api'
99
+ # setup authorization
100
+ LaunchDarklyApi.configure do |config|
101
+ # Configure API key authorization: Token
102
+ config.api_key['Authorization'] = 'YOUR API KEY'
103
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
104
+ #config.api_key_prefix['Authorization'] = 'Bearer'
105
+ end
106
+
107
+ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
108
+
109
+ project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
110
+
111
+ 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.
112
+
113
+ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
114
+
115
+ approval_request_id = 'approval_request_id_example' # String | The approval request ID
116
+
117
+ opts = {
118
+ approval_request_config_body: LaunchDarklyApi::ApprovalRequestConfigBody.new # ApprovalRequestConfigBody | Create a new approval request
119
+ }
120
+
121
+ begin
122
+ #Delete an approval request for a feature flag config
123
+ api_instance.delete_approval_request(project_key, environment_key, feature_flag_key, approval_request_id, , opts)
124
+ rescue LaunchDarklyApi::ApiError => e
125
+ puts "Exception when calling FeatureFlagsApi->delete_approval_request: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ Name | Type | Description | Notes
132
+ ------------- | ------------- | ------------- | -------------
133
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
134
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
135
+ **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
136
+ **approval_request_id** | **String**| The approval request ID |
137
+ **approval_request_config_body** | [**ApprovalRequestConfigBody**](ApprovalRequestConfigBody.md)| Create a new approval request | [optional]
138
+
139
+ ### Return type
140
+
141
+ nil (empty response body)
142
+
143
+ ### Authorization
144
+
145
+ [Token](../README.md#Token)
146
+
147
+ ### HTTP request headers
148
+
149
+ - **Content-Type**: application/json
150
+ - **Accept**: application/json
151
+
152
+
153
+
84
154
  # **delete_feature_flag**
85
155
  > delete_feature_flag(project_key, feature_flag_key, )
86
156
 
@@ -135,10 +205,10 @@ nil (empty response body)
135
205
 
136
206
 
137
207
 
138
- # **delete_feature_flag_approval_request**
139
- > delete_feature_flag_approval_request(project_key, environment_key, feature_flag_key, feature_flag_approval_request_id, , opts)
208
+ # **delete_flag_config_scheduled_changes**
209
+ > delete_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, scheduled_change_id)
140
210
 
141
- Delete an approval request for a feature flag
211
+ Delete a scheduled change on a feature flag in an environment.
142
212
 
143
213
  ### Example
144
214
  ```ruby
@@ -156,21 +226,18 @@ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
156
226
 
157
227
  project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
158
228
 
159
- 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.
160
-
161
229
  feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
162
230
 
163
- feature_flag_approval_request_id = 'feature_flag_approval_request_id_example' # String | The feature flag approval request ID
231
+ 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.
232
+
233
+ scheduled_change_id = 'scheduled_change_id_example' # String | The id of the scheduled change
164
234
 
165
- opts = {
166
- feature_flag_approval_request_config_body: LaunchDarklyApi::FeatureFlagApprovalRequestConfigBody.new # FeatureFlagApprovalRequestConfigBody | Create a new feature flag approval request
167
- }
168
235
 
169
236
  begin
170
- #Delete an approval request for a feature flag
171
- api_instance.delete_feature_flag_approval_request(project_key, environment_key, feature_flag_key, feature_flag_approval_request_id, , opts)
237
+ #Delete a scheduled change on a feature flag in an environment.
238
+ api_instance.delete_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, scheduled_change_id)
172
239
  rescue LaunchDarklyApi::ApiError => e
173
- puts "Exception when calling FeatureFlagsApi->delete_feature_flag_approval_request: #{e}"
240
+ puts "Exception when calling FeatureFlagsApi->delete_flag_config_scheduled_changes: #{e}"
174
241
  end
175
242
  ```
176
243
 
@@ -179,10 +246,9 @@ end
179
246
  Name | Type | Description | Notes
180
247
  ------------- | ------------- | ------------- | -------------
181
248
  **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
182
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
183
249
  **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
184
- **feature_flag_approval_request_id** | **String**| The feature flag approval request ID |
185
- **feature_flag_approval_request_config_body** | [**FeatureFlagApprovalRequestConfigBody**](FeatureFlagApprovalRequestConfigBody.md)| Create a new feature flag approval request | [optional]
250
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
251
+ **scheduled_change_id** | **String**| The id of the scheduled change |
186
252
 
187
253
  ### Return type
188
254
 
@@ -199,10 +265,10 @@ nil (empty response body)
199
265
 
200
266
 
201
267
 
202
- # **get_expiring_user_targets**
203
- > UserTargetingExpirationForFlags get_expiring_user_targets(project_key, environment_key, feature_flag_key, )
268
+ # **get_approval_request**
269
+ > ApprovalRequests get_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, )
204
270
 
205
- Get expiring user targets for feature flag
271
+ Get a single approval request for a feature flag config
206
272
 
207
273
  ### Example
208
274
  ```ruby
@@ -220,17 +286,19 @@ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
220
286
 
221
287
  project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
222
288
 
289
+ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
290
+
223
291
  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.
224
292
 
225
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
293
+ approval_request_id = 'approval_request_id_example' # String | The approval request ID
226
294
 
227
295
 
228
296
  begin
229
- #Get expiring user targets for feature flag
230
- result = api_instance.get_expiring_user_targets(project_key, environment_key, feature_flag_key, )
297
+ #Get a single approval request for a feature flag config
298
+ result = api_instance.get_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, )
231
299
  p result
232
300
  rescue LaunchDarklyApi::ApiError => e
233
- puts "Exception when calling FeatureFlagsApi->get_expiring_user_targets: #{e}"
301
+ puts "Exception when calling FeatureFlagsApi->get_approval_request: #{e}"
234
302
  end
235
303
  ```
236
304
 
@@ -239,12 +307,13 @@ end
239
307
  Name | Type | Description | Notes
240
308
  ------------- | ------------- | ------------- | -------------
241
309
  **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
242
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
243
310
  **feature_flag_key** | **String**| The feature flag's key. The key identifies the flag in your code. |
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
+ **approval_request_id** | **String**| The approval request ID |
244
313
 
245
314
  ### Return type
246
315
 
247
- [**UserTargetingExpirationForFlags**](UserTargetingExpirationForFlags.md)
316
+ [**ApprovalRequests**](ApprovalRequests.md)
248
317
 
249
318
  ### Authorization
250
319
 
@@ -257,10 +326,10 @@ Name | Type | Description | Notes
257
326
 
258
327
 
259
328
 
260
- # **get_feature_flag**
261
- > FeatureFlag get_feature_flag(project_key, feature_flag_key, , opts)
329
+ # **get_approval_requests**
330
+ > ApprovalRequests get_approval_requests(project_key, feature_flag_key, environment_key, )
262
331
 
263
- Get a single feature flag by key.
332
+ Get all approval requests for a feature flag config
264
333
 
265
334
  ### Example
266
335
  ```ruby
@@ -280,16 +349,15 @@ project_key = 'project_key_example' # String | The project key, used to tie the
280
349
 
281
350
  feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
282
351
 
283
- opts = {
284
- 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.
285
- }
352
+ 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.
353
+
286
354
 
287
355
  begin
288
- #Get a single feature flag by key.
289
- result = api_instance.get_feature_flag(project_key, feature_flag_key, , opts)
356
+ #Get all approval requests for a feature flag config
357
+ result = api_instance.get_approval_requests(project_key, feature_flag_key, environment_key, )
290
358
  p result
291
359
  rescue LaunchDarklyApi::ApiError => e
292
- puts "Exception when calling FeatureFlagsApi->get_feature_flag: #{e}"
360
+ puts "Exception when calling FeatureFlagsApi->get_approval_requests: #{e}"
293
361
  end
294
362
  ```
295
363
 
@@ -299,11 +367,11 @@ Name | Type | Description | Notes
299
367
  ------------- | ------------- | ------------- | -------------
300
368
  **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
301
369
  **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
302
- **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]
370
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
303
371
 
304
372
  ### Return type
305
373
 
306
- [**FeatureFlag**](FeatureFlag.md)
374
+ [**ApprovalRequests**](ApprovalRequests.md)
307
375
 
308
376
  ### Authorization
309
377
 
@@ -316,10 +384,10 @@ Name | Type | Description | Notes
316
384
 
317
385
 
318
386
 
319
- # **get_feature_flag_approval_request**
320
- > FeatureFlagApprovalRequests get_feature_flag_approval_request(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, )
387
+ # **get_expiring_user_targets**
388
+ > UserTargetingExpirationForFlags get_expiring_user_targets(project_key, environment_key, feature_flag_key, )
321
389
 
322
- Get a single approval request for a feature flag
390
+ Get expiring user targets for feature flag
323
391
 
324
392
  ### Example
325
393
  ```ruby
@@ -337,19 +405,17 @@ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
337
405
 
338
406
  project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
339
407
 
340
- feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
341
-
342
408
  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.
343
409
 
344
- feature_flag_approval_request_id = 'feature_flag_approval_request_id_example' # String | The feature flag approval request ID
410
+ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
345
411
 
346
412
 
347
413
  begin
348
- #Get a single approval request for a feature flag
349
- result = api_instance.get_feature_flag_approval_request(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, )
414
+ #Get expiring user targets for feature flag
415
+ result = api_instance.get_expiring_user_targets(project_key, environment_key, feature_flag_key, )
350
416
  p result
351
417
  rescue LaunchDarklyApi::ApiError => e
352
- puts "Exception when calling FeatureFlagsApi->get_feature_flag_approval_request: #{e}"
418
+ puts "Exception when calling FeatureFlagsApi->get_expiring_user_targets: #{e}"
353
419
  end
354
420
  ```
355
421
 
@@ -358,13 +424,12 @@ end
358
424
  Name | Type | Description | Notes
359
425
  ------------- | ------------- | ------------- | -------------
360
426
  **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
361
- **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
362
427
  **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
363
- **feature_flag_approval_request_id** | **String**| The feature flag approval request ID |
428
+ **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
364
429
 
365
430
  ### Return type
366
431
 
367
- [**FeatureFlagApprovalRequests**](FeatureFlagApprovalRequests.md)
432
+ [**UserTargetingExpirationForFlags**](UserTargetingExpirationForFlags.md)
368
433
 
369
434
  ### Authorization
370
435
 
@@ -377,10 +442,10 @@ Name | Type | Description | Notes
377
442
 
378
443
 
379
444
 
380
- # **get_feature_flag_approval_requests**
381
- > FeatureFlagApprovalRequests get_feature_flag_approval_requests(project_key, feature_flag_key, environment_key, )
445
+ # **get_feature_flag**
446
+ > FeatureFlag get_feature_flag(project_key, feature_flag_key, , opts)
382
447
 
383
- Get all approval requests for a feature flag
448
+ Get a single feature flag by key.
384
449
 
385
450
  ### Example
386
451
  ```ruby
@@ -400,15 +465,16 @@ project_key = 'project_key_example' # String | The project key, used to tie the
400
465
 
401
466
  feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
402
467
 
403
- 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.
404
-
468
+ opts = {
469
+ 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.
470
+ }
405
471
 
406
472
  begin
407
- #Get all approval requests for a feature flag
408
- result = api_instance.get_feature_flag_approval_requests(project_key, feature_flag_key, environment_key, )
473
+ #Get a single feature flag by key.
474
+ result = api_instance.get_feature_flag(project_key, feature_flag_key, , opts)
409
475
  p result
410
476
  rescue LaunchDarklyApi::ApiError => e
411
- puts "Exception when calling FeatureFlagsApi->get_feature_flag_approval_requests: #{e}"
477
+ puts "Exception when calling FeatureFlagsApi->get_feature_flag: #{e}"
412
478
  end
413
479
  ```
414
480
 
@@ -418,11 +484,11 @@ Name | Type | Description | Notes
418
484
  ------------- | ------------- | ------------- | -------------
419
485
  **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
420
486
  **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
421
- **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
487
+ **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]
422
488
 
423
489
  ### Return type
424
490
 
425
- [**FeatureFlagApprovalRequests**](FeatureFlagApprovalRequests.md)
491
+ [**FeatureFlag**](FeatureFlag.md)
426
492
 
427
493
  ### Authorization
428
494
 
@@ -673,6 +739,186 @@ Name | Type | Description | Notes
673
739
 
674
740
 
675
741
 
742
+ # **get_flag_config_scheduled_change**
743
+ > FeatureFlagScheduledChange get_flag_config_scheduled_change(project_key, feature_flag_key, environment_key, scheduled_change_id)
744
+
745
+ Get a scheduled change on a feature flag by id.
746
+
747
+ ### Example
748
+ ```ruby
749
+ # load the gem
750
+ require 'launchdarkly_api'
751
+ # setup authorization
752
+ LaunchDarklyApi.configure do |config|
753
+ # Configure API key authorization: Token
754
+ config.api_key['Authorization'] = 'YOUR API KEY'
755
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
756
+ #config.api_key_prefix['Authorization'] = 'Bearer'
757
+ end
758
+
759
+ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
760
+
761
+ project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
762
+
763
+ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
764
+
765
+ 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.
766
+
767
+ scheduled_change_id = 'scheduled_change_id_example' # String | The id of the scheduled change
768
+
769
+
770
+ begin
771
+ #Get a scheduled change on a feature flag by id.
772
+ result = api_instance.get_flag_config_scheduled_change(project_key, feature_flag_key, environment_key, scheduled_change_id)
773
+ p result
774
+ rescue LaunchDarklyApi::ApiError => e
775
+ puts "Exception when calling FeatureFlagsApi->get_flag_config_scheduled_change: #{e}"
776
+ end
777
+ ```
778
+
779
+ ### Parameters
780
+
781
+ Name | Type | Description | Notes
782
+ ------------- | ------------- | ------------- | -------------
783
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
784
+ **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
785
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
786
+ **scheduled_change_id** | **String**| The id of the scheduled change |
787
+
788
+ ### Return type
789
+
790
+ [**FeatureFlagScheduledChange**](FeatureFlagScheduledChange.md)
791
+
792
+ ### Authorization
793
+
794
+ [Token](../README.md#Token)
795
+
796
+ ### HTTP request headers
797
+
798
+ - **Content-Type**: application/json
799
+ - **Accept**: application/json
800
+
801
+
802
+
803
+ # **get_flag_config_scheduled_changes**
804
+ > FeatureFlagScheduledChanges get_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, )
805
+
806
+ Get all scheduled workflows for a feature flag by key.
807
+
808
+ ### Example
809
+ ```ruby
810
+ # load the gem
811
+ require 'launchdarkly_api'
812
+ # setup authorization
813
+ LaunchDarklyApi.configure do |config|
814
+ # Configure API key authorization: Token
815
+ config.api_key['Authorization'] = 'YOUR API KEY'
816
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
817
+ #config.api_key_prefix['Authorization'] = 'Bearer'
818
+ end
819
+
820
+ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
821
+
822
+ project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
823
+
824
+ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
825
+
826
+ 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.
827
+
828
+
829
+ begin
830
+ #Get all scheduled workflows for a feature flag by key.
831
+ result = api_instance.get_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, )
832
+ p result
833
+ rescue LaunchDarklyApi::ApiError => e
834
+ puts "Exception when calling FeatureFlagsApi->get_flag_config_scheduled_changes: #{e}"
835
+ end
836
+ ```
837
+
838
+ ### Parameters
839
+
840
+ Name | Type | Description | Notes
841
+ ------------- | ------------- | ------------- | -------------
842
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
843
+ **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
844
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
845
+
846
+ ### Return type
847
+
848
+ [**FeatureFlagScheduledChanges**](FeatureFlagScheduledChanges.md)
849
+
850
+ ### Authorization
851
+
852
+ [Token](../README.md#Token)
853
+
854
+ ### HTTP request headers
855
+
856
+ - **Content-Type**: application/json
857
+ - **Accept**: application/json
858
+
859
+
860
+
861
+ # **get_flag_config_scheduled_changes_conflicts**
862
+ > FeatureFlagScheduledChangesConflicts get_flag_config_scheduled_changes_conflicts(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body)
863
+
864
+ Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
865
+
866
+ ### Example
867
+ ```ruby
868
+ # load the gem
869
+ require 'launchdarkly_api'
870
+ # setup authorization
871
+ LaunchDarklyApi.configure do |config|
872
+ # Configure API key authorization: Token
873
+ config.api_key['Authorization'] = 'YOUR API KEY'
874
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
875
+ #config.api_key_prefix['Authorization'] = 'Bearer'
876
+ end
877
+
878
+ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
879
+
880
+ project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
881
+
882
+ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
883
+
884
+ 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.
885
+
886
+ 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.
887
+
888
+
889
+ begin
890
+ #Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
891
+ result = api_instance.get_flag_config_scheduled_changes_conflicts(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body)
892
+ p result
893
+ rescue LaunchDarklyApi::ApiError => e
894
+ puts "Exception when calling FeatureFlagsApi->get_flag_config_scheduled_changes_conflicts: #{e}"
895
+ end
896
+ ```
897
+
898
+ ### Parameters
899
+
900
+ Name | Type | Description | Notes
901
+ ------------- | ------------- | ------------- | -------------
902
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
903
+ **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
904
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
905
+ **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. |
906
+
907
+ ### Return type
908
+
909
+ [**FeatureFlagScheduledChangesConflicts**](FeatureFlagScheduledChangesConflicts.md)
910
+
911
+ ### Authorization
912
+
913
+ [Token](../README.md#Token)
914
+
915
+ ### HTTP request headers
916
+
917
+ - **Content-Type**: application/json
918
+ - **Accept**: application/json
919
+
920
+
921
+
676
922
  # **patch_expiring_user_targets**
677
923
  > UserTargetingExpirationForFlags patch_expiring_user_targets(project_key, environment_key, feature_flag_key, semantic_patch_with_comment)
678
924
 
@@ -792,10 +1038,74 @@ Name | Type | Description | Notes
792
1038
 
793
1039
 
794
1040
 
795
- # **post_apply_feature_flag_approval_request**
796
- > FeatureFlagApprovalRequests post_apply_feature_flag_approval_request(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, feature_flag_approval_request_apply_config_body)
1041
+ # **patch_flag_config_scheduled_change**
1042
+ > FeatureFlagScheduledChange patch_flag_config_scheduled_change(project_key, feature_flag_key, flag_config_scheduled_changes_patch_body, environment_key, scheduled_change_id)
1043
+
1044
+ Updates an existing scheduled-change on a feature flag in an environment.
1045
+
1046
+ ### Example
1047
+ ```ruby
1048
+ # load the gem
1049
+ require 'launchdarkly_api'
1050
+ # setup authorization
1051
+ LaunchDarklyApi.configure do |config|
1052
+ # Configure API key authorization: Token
1053
+ config.api_key['Authorization'] = 'YOUR API KEY'
1054
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1055
+ #config.api_key_prefix['Authorization'] = 'Bearer'
1056
+ end
1057
+
1058
+ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
1059
+
1060
+ project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1061
+
1062
+ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
1063
+
1064
+ flag_config_scheduled_changes_patch_body = LaunchDarklyApi::FlagConfigScheduledChangesPatchBody.new # FlagConfigScheduledChangesPatchBody | Update scheduled changes on a feature flag.
1065
+
1066
+ 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.
1067
+
1068
+ scheduled_change_id = 'scheduled_change_id_example' # String | The id of the scheduled change
1069
+
1070
+
1071
+ begin
1072
+ #Updates an existing scheduled-change on a feature flag in an environment.
1073
+ result = api_instance.patch_flag_config_scheduled_change(project_key, feature_flag_key, flag_config_scheduled_changes_patch_body, environment_key, scheduled_change_id)
1074
+ p result
1075
+ rescue LaunchDarklyApi::ApiError => e
1076
+ puts "Exception when calling FeatureFlagsApi->patch_flag_config_scheduled_change: #{e}"
1077
+ end
1078
+ ```
1079
+
1080
+ ### Parameters
1081
+
1082
+ Name | Type | Description | Notes
1083
+ ------------- | ------------- | ------------- | -------------
1084
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1085
+ **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1086
+ **flag_config_scheduled_changes_patch_body** | [**FlagConfigScheduledChangesPatchBody**](FlagConfigScheduledChangesPatchBody.md)| Update scheduled changes on a feature flag. |
1087
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1088
+ **scheduled_change_id** | **String**| The id of the scheduled change |
1089
+
1090
+ ### Return type
1091
+
1092
+ [**FeatureFlagScheduledChange**](FeatureFlagScheduledChange.md)
1093
+
1094
+ ### Authorization
1095
+
1096
+ [Token](../README.md#Token)
1097
+
1098
+ ### HTTP request headers
1099
+
1100
+ - **Content-Type**: application/json
1101
+ - **Accept**: application/json
1102
+
1103
+
1104
+
1105
+ # **post_apply_approval_request**
1106
+ > ApprovalRequests post_apply_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body)
797
1107
 
798
- Apply approval request for a feature flag
1108
+ Apply approval request for a feature flag config
799
1109
 
800
1110
  ### Example
801
1111
  ```ruby
@@ -817,17 +1127,17 @@ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key.
817
1127
 
818
1128
  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.
819
1129
 
820
- feature_flag_approval_request_id = 'feature_flag_approval_request_id_example' # String | The feature flag approval request ID
1130
+ approval_request_id = 'approval_request_id_example' # String | The approval request ID
821
1131
 
822
- feature_flag_approval_request_apply_config_body = LaunchDarklyApi::FeatureFlagApprovalRequestApplyConfigBody.new # FeatureFlagApprovalRequestApplyConfigBody | Apply a new feature flag approval request
1132
+ approval_request_apply_config_body = LaunchDarklyApi::ApprovalRequestApplyConfigBody.new # ApprovalRequestApplyConfigBody | Apply an approval request
823
1133
 
824
1134
 
825
1135
  begin
826
- #Apply approval request for a feature flag
827
- result = api_instance.post_apply_feature_flag_approval_request(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, feature_flag_approval_request_apply_config_body)
1136
+ #Apply approval request for a feature flag config
1137
+ result = api_instance.post_apply_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body)
828
1138
  p result
829
1139
  rescue LaunchDarklyApi::ApiError => e
830
- puts "Exception when calling FeatureFlagsApi->post_apply_feature_flag_approval_request: #{e}"
1140
+ puts "Exception when calling FeatureFlagsApi->post_apply_approval_request: #{e}"
831
1141
  end
832
1142
  ```
833
1143
 
@@ -838,12 +1148,77 @@ Name | Type | Description | Notes
838
1148
  **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
839
1149
  **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
840
1150
  **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
841
- **feature_flag_approval_request_id** | **String**| The feature flag approval request ID |
842
- **feature_flag_approval_request_apply_config_body** | [**FeatureFlagApprovalRequestApplyConfigBody**](FeatureFlagApprovalRequestApplyConfigBody.md)| Apply a new feature flag approval request |
1151
+ **approval_request_id** | **String**| The approval request ID |
1152
+ **approval_request_apply_config_body** | [**ApprovalRequestApplyConfigBody**](ApprovalRequestApplyConfigBody.md)| Apply an approval request |
843
1153
 
844
1154
  ### Return type
845
1155
 
846
- [**FeatureFlagApprovalRequests**](FeatureFlagApprovalRequests.md)
1156
+ [**ApprovalRequests**](ApprovalRequests.md)
1157
+
1158
+ ### Authorization
1159
+
1160
+ [Token](../README.md#Token)
1161
+
1162
+ ### HTTP request headers
1163
+
1164
+ - **Content-Type**: application/json
1165
+ - **Accept**: application/json
1166
+
1167
+
1168
+
1169
+ # **post_approval_request**
1170
+ > ApprovalRequest post_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, , opts)
1171
+
1172
+ Create an approval request for a feature flag config
1173
+
1174
+ ### Example
1175
+ ```ruby
1176
+ # load the gem
1177
+ require 'launchdarkly_api'
1178
+ # setup authorization
1179
+ LaunchDarklyApi.configure do |config|
1180
+ # Configure API key authorization: Token
1181
+ config.api_key['Authorization'] = 'YOUR API KEY'
1182
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1183
+ #config.api_key_prefix['Authorization'] = 'Bearer'
1184
+ end
1185
+
1186
+ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
1187
+
1188
+ project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
1189
+
1190
+ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
1191
+
1192
+ 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.
1193
+
1194
+ approval_request_id = 'approval_request_id_example' # String | The approval request ID
1195
+
1196
+ opts = {
1197
+ approval_request_config_body: LaunchDarklyApi::ApprovalRequestConfigBody.new # ApprovalRequestConfigBody | Create a new approval request
1198
+ }
1199
+
1200
+ begin
1201
+ #Create an approval request for a feature flag config
1202
+ result = api_instance.post_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, , opts)
1203
+ p result
1204
+ rescue LaunchDarklyApi::ApiError => e
1205
+ puts "Exception when calling FeatureFlagsApi->post_approval_request: #{e}"
1206
+ end
1207
+ ```
1208
+
1209
+ ### Parameters
1210
+
1211
+ Name | Type | Description | Notes
1212
+ ------------- | ------------- | ------------- | -------------
1213
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1214
+ **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1215
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1216
+ **approval_request_id** | **String**| The approval request ID |
1217
+ **approval_request_config_body** | [**ApprovalRequestConfigBody**](ApprovalRequestConfigBody.md)| Create a new approval request | [optional]
1218
+
1219
+ ### Return type
1220
+
1221
+ [**ApprovalRequest**](ApprovalRequest.md)
847
1222
 
848
1223
  ### Authorization
849
1224
 
@@ -915,10 +1290,10 @@ Name | Type | Description | Notes
915
1290
 
916
1291
 
917
1292
 
918
- # **post_feature_flag_approval_request**
919
- > FeatureFlagApprovalRequest post_feature_flag_approval_request(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, , opts)
1293
+ # **post_flag_config_scheduled_changes**
1294
+ > FeatureFlagScheduledChange post_flag_config_scheduled_changes(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, )
920
1295
 
921
- Create an approval request for a feature flag
1296
+ Creates a new scheduled change for a feature flag.
922
1297
 
923
1298
  ### Example
924
1299
  ```ruby
@@ -936,22 +1311,19 @@ api_instance = LaunchDarklyApi::FeatureFlagsApi.new
936
1311
 
937
1312
  project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
938
1313
 
1314
+ flag_config_scheduled_changes_post_body = LaunchDarklyApi::FlagConfigScheduledChangesPostBody.new # FlagConfigScheduledChangesPostBody | Create scheduled changes on a feature flag.
1315
+
939
1316
  feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
940
1317
 
941
1318
  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.
942
1319
 
943
- feature_flag_approval_request_id = 'feature_flag_approval_request_id_example' # String | The feature flag approval request ID
944
-
945
- opts = {
946
- feature_flag_approval_request_config_body: LaunchDarklyApi::FeatureFlagApprovalRequestConfigBody.new # FeatureFlagApprovalRequestConfigBody | Create a new feature flag approval request
947
- }
948
1320
 
949
1321
  begin
950
- #Create an approval request for a feature flag
951
- result = api_instance.post_feature_flag_approval_request(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, , opts)
1322
+ #Creates a new scheduled change for a feature flag.
1323
+ result = api_instance.post_flag_config_scheduled_changes(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, )
952
1324
  p result
953
1325
  rescue LaunchDarklyApi::ApiError => e
954
- puts "Exception when calling FeatureFlagsApi->post_feature_flag_approval_request: #{e}"
1326
+ puts "Exception when calling FeatureFlagsApi->post_flag_config_scheduled_changes: #{e}"
955
1327
  end
956
1328
  ```
957
1329
 
@@ -960,14 +1332,13 @@ end
960
1332
  Name | Type | Description | Notes
961
1333
  ------------- | ------------- | ------------- | -------------
962
1334
  **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1335
+ **flag_config_scheduled_changes_post_body** | [**FlagConfigScheduledChangesPostBody**](FlagConfigScheduledChangesPostBody.md)| Create scheduled changes on a feature flag. |
963
1336
  **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
964
1337
  **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
965
- **feature_flag_approval_request_id** | **String**| The feature flag approval request ID |
966
- **feature_flag_approval_request_config_body** | [**FeatureFlagApprovalRequestConfigBody**](FeatureFlagApprovalRequestConfigBody.md)| Create a new feature flag approval request | [optional]
967
1338
 
968
1339
  ### Return type
969
1340
 
970
- [**FeatureFlagApprovalRequest**](FeatureFlagApprovalRequest.md)
1341
+ [**FeatureFlagScheduledChange**](FeatureFlagScheduledChange.md)
971
1342
 
972
1343
  ### Authorization
973
1344
 
@@ -980,10 +1351,10 @@ Name | Type | Description | Notes
980
1351
 
981
1352
 
982
1353
 
983
- # **post_review_feature_flag_approval_request**
984
- > FeatureFlagApprovalRequests post_review_feature_flag_approval_request(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, feature_flag_approval_request_review_config_body)
1354
+ # **post_review_approval_request**
1355
+ > ApprovalRequests post_review_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body)
985
1356
 
986
- Review approval request for a feature flag
1357
+ Review approval request for a feature flag config
987
1358
 
988
1359
  ### Example
989
1360
  ```ruby
@@ -1005,17 +1376,17 @@ feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key.
1005
1376
 
1006
1377
  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.
1007
1378
 
1008
- feature_flag_approval_request_id = 'feature_flag_approval_request_id_example' # String | The feature flag approval request ID
1379
+ approval_request_id = 'approval_request_id_example' # String | The approval request ID
1009
1380
 
1010
- feature_flag_approval_request_review_config_body = LaunchDarklyApi::FeatureFlagApprovalRequestReviewConfigBody.new # FeatureFlagApprovalRequestReviewConfigBody | Review a feature flag approval request
1381
+ approval_request_review_config_body = LaunchDarklyApi::ApprovalRequestReviewConfigBody.new # ApprovalRequestReviewConfigBody | Review an approval request
1011
1382
 
1012
1383
 
1013
1384
  begin
1014
- #Review approval request for a feature flag
1015
- result = api_instance.post_review_feature_flag_approval_request(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, feature_flag_approval_request_review_config_body)
1385
+ #Review approval request for a feature flag config
1386
+ result = api_instance.post_review_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body)
1016
1387
  p result
1017
1388
  rescue LaunchDarklyApi::ApiError => e
1018
- puts "Exception when calling FeatureFlagsApi->post_review_feature_flag_approval_request: #{e}"
1389
+ puts "Exception when calling FeatureFlagsApi->post_review_approval_request: #{e}"
1019
1390
  end
1020
1391
  ```
1021
1392
 
@@ -1026,12 +1397,12 @@ Name | Type | Description | Notes
1026
1397
  **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
1027
1398
  **feature_flag_key** | **String**| The feature flag&#39;s key. The key identifies the flag in your code. |
1028
1399
  **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
1029
- **feature_flag_approval_request_id** | **String**| The feature flag approval request ID |
1030
- **feature_flag_approval_request_review_config_body** | [**FeatureFlagApprovalRequestReviewConfigBody**](FeatureFlagApprovalRequestReviewConfigBody.md)| Review a feature flag approval request |
1400
+ **approval_request_id** | **String**| The approval request ID |
1401
+ **approval_request_review_config_body** | [**ApprovalRequestReviewConfigBody**](ApprovalRequestReviewConfigBody.md)| Review an approval request |
1031
1402
 
1032
1403
  ### Return type
1033
1404
 
1034
- [**FeatureFlagApprovalRequests**](FeatureFlagApprovalRequests.md)
1405
+ [**ApprovalRequests**](ApprovalRequests.md)
1035
1406
 
1036
1407
  ### Authorization
1037
1408