launchdarkly_api 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (413) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +771 -291
  3. data/docs/CodeReferencesApi.md +4 -4
  4. data/docs/CustomWorkflowMeta.md +20 -0
  5. data/docs/CustomWorkflowStageMeta.md +20 -0
  6. data/docs/FeatureFlagsApi.md +1 -1
  7. data/docs/FlagConfigApprovalRequestResponse.md +3 -1
  8. data/docs/PermissionGrantInput.md +22 -0
  9. data/docs/PermissionGrantRep.md +24 -0
  10. data/docs/SegmentsApi.md +1 -1
  11. data/docs/TeamCollectionRep.md +22 -0
  12. data/docs/TeamPatchInput.md +20 -0
  13. data/docs/TeamPostInput.md +28 -0
  14. data/docs/TeamRep.md +40 -0
  15. data/docs/TeamsBetaApi.md +365 -0
  16. data/launchdarkly_api.gemspec +4 -4
  17. data/lib/launchdarkly_api/api/access_tokens_api.rb +1 -1
  18. data/lib/launchdarkly_api/api/account_members_api.rb +1 -1
  19. data/lib/launchdarkly_api/api/account_usage_beta_api.rb +1 -1
  20. data/lib/launchdarkly_api/api/approvals_api.rb +1 -1
  21. data/lib/launchdarkly_api/api/audit_log_api.rb +1 -1
  22. data/lib/launchdarkly_api/api/code_references_api.rb +3 -3
  23. data/lib/launchdarkly_api/api/custom_roles_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/experiments_beta_api.rb +1 -1
  27. data/lib/launchdarkly_api/api/feature_flags_api.rb +3 -3
  28. data/lib/launchdarkly_api/api/feature_flags_beta_api.rb +1 -1
  29. data/lib/launchdarkly_api/api/metrics_api.rb +1 -1
  30. data/lib/launchdarkly_api/api/other_api.rb +1 -1
  31. data/lib/launchdarkly_api/api/projects_api.rb +1 -1
  32. data/lib/launchdarkly_api/api/relay_proxy_configurations_api.rb +1 -1
  33. data/lib/launchdarkly_api/api/scheduled_changes_api.rb +1 -1
  34. data/lib/launchdarkly_api/api/segments_api.rb +3 -3
  35. data/lib/launchdarkly_api/api/teams_beta_api.rb +339 -0
  36. data/lib/launchdarkly_api/api/user_settings_api.rb +1 -1
  37. data/lib/launchdarkly_api/api/users_api.rb +1 -1
  38. data/lib/launchdarkly_api/api/users_beta_api.rb +1 -1
  39. data/lib/launchdarkly_api/api/webhooks_api.rb +1 -1
  40. data/lib/launchdarkly_api/api_client.rb +1 -1
  41. data/lib/launchdarkly_api/api_error.rb +1 -1
  42. data/lib/launchdarkly_api/configuration.rb +1 -1
  43. data/lib/launchdarkly_api/models/access_denied_reason_rep.rb +1 -1
  44. data/lib/launchdarkly_api/models/access_denied_rep.rb +1 -1
  45. data/lib/launchdarkly_api/models/access_rep.rb +1 -1
  46. data/lib/launchdarkly_api/models/access_token_post.rb +1 -1
  47. data/lib/launchdarkly_api/models/approval_settings.rb +1 -1
  48. data/lib/launchdarkly_api/models/audit_log_entry_listing_rep.rb +1 -1
  49. data/lib/launchdarkly_api/models/audit_log_entry_listing_rep_collection.rb +1 -1
  50. data/lib/launchdarkly_api/models/audit_log_entry_rep.rb +1 -1
  51. data/lib/launchdarkly_api/models/authorized_app_data_rep.rb +1 -1
  52. data/lib/launchdarkly_api/models/big_segment_target.rb +1 -1
  53. data/lib/launchdarkly_api/models/branch_collection_rep.rb +1 -1
  54. data/lib/launchdarkly_api/models/branch_rep.rb +1 -1
  55. data/lib/launchdarkly_api/models/clause.rb +1 -1
  56. data/lib/launchdarkly_api/models/client_side_availability.rb +1 -1
  57. data/lib/launchdarkly_api/models/client_side_availability_post.rb +1 -1
  58. data/lib/launchdarkly_api/models/confidence_interval_rep.rb +1 -1
  59. data/lib/launchdarkly_api/models/conflict.rb +1 -1
  60. data/lib/launchdarkly_api/models/copied_from_env.rb +1 -1
  61. data/lib/launchdarkly_api/models/create_copy_flag_config_approval_request_request.rb +1 -1
  62. data/lib/launchdarkly_api/models/create_flag_config_approval_request_request.rb +1 -1
  63. data/lib/launchdarkly_api/models/custom_property.rb +1 -1
  64. data/lib/launchdarkly_api/models/custom_role.rb +1 -1
  65. data/lib/launchdarkly_api/models/custom_role_post.rb +1 -1
  66. data/lib/launchdarkly_api/models/custom_role_post_data.rb +1 -1
  67. data/lib/launchdarkly_api/models/custom_roles.rb +1 -1
  68. data/lib/launchdarkly_api/models/custom_workflow_meta.rb +227 -0
  69. data/lib/launchdarkly_api/models/custom_workflow_stage_meta.rb +227 -0
  70. data/lib/launchdarkly_api/models/default_client_side_availability_post.rb +1 -1
  71. data/lib/launchdarkly_api/models/defaults.rb +1 -1
  72. data/lib/launchdarkly_api/models/dependent_flag.rb +1 -1
  73. data/lib/launchdarkly_api/models/dependent_flag_environment.rb +1 -1
  74. data/lib/launchdarkly_api/models/dependent_flags_by_environment.rb +1 -1
  75. data/lib/launchdarkly_api/models/destination.rb +1 -1
  76. data/lib/launchdarkly_api/models/destination_post.rb +1 -1
  77. data/lib/launchdarkly_api/models/destinations.rb +1 -1
  78. data/lib/launchdarkly_api/models/environment.rb +1 -1
  79. data/lib/launchdarkly_api/models/environment_post.rb +1 -1
  80. data/lib/launchdarkly_api/models/experiment_allocation_rep.rb +1 -1
  81. data/lib/launchdarkly_api/models/experiment_enabled_period_rep.rb +1 -1
  82. data/lib/launchdarkly_api/models/experiment_environment_setting_rep.rb +1 -1
  83. data/lib/launchdarkly_api/models/experiment_info_rep.rb +1 -1
  84. data/lib/launchdarkly_api/models/experiment_metadata_rep.rb +1 -1
  85. data/lib/launchdarkly_api/models/experiment_rep.rb +1 -1
  86. data/lib/launchdarkly_api/models/experiment_results_rep.rb +1 -1
  87. data/lib/launchdarkly_api/models/experiment_stats_rep.rb +1 -1
  88. data/lib/launchdarkly_api/models/experiment_time_series_slice.rb +1 -1
  89. data/lib/launchdarkly_api/models/experiment_time_series_variation_slice.rb +1 -1
  90. data/lib/launchdarkly_api/models/experiment_totals_rep.rb +1 -1
  91. data/lib/launchdarkly_api/models/expiring_user_target_error.rb +1 -1
  92. data/lib/launchdarkly_api/models/expiring_user_target_get_response.rb +1 -1
  93. data/lib/launchdarkly_api/models/expiring_user_target_item.rb +1 -1
  94. data/lib/launchdarkly_api/models/expiring_user_target_patch_response.rb +1 -1
  95. data/lib/launchdarkly_api/models/extinction.rb +1 -1
  96. data/lib/launchdarkly_api/models/extinction_collection_rep.rb +1 -1
  97. data/lib/launchdarkly_api/models/extinction_rep.rb +1 -1
  98. data/lib/launchdarkly_api/models/feature_flag.rb +1 -1
  99. data/lib/launchdarkly_api/models/feature_flag_body.rb +1 -1
  100. data/lib/launchdarkly_api/models/feature_flag_config.rb +1 -1
  101. data/lib/launchdarkly_api/models/feature_flag_scheduled_change.rb +1 -1
  102. data/lib/launchdarkly_api/models/feature_flag_scheduled_changes.rb +1 -1
  103. data/lib/launchdarkly_api/models/feature_flag_status.rb +1 -1
  104. data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +1 -1
  105. data/lib/launchdarkly_api/models/feature_flag_statuses.rb +1 -1
  106. data/lib/launchdarkly_api/models/feature_flags.rb +1 -1
  107. data/lib/launchdarkly_api/models/flag_config_approval_request_response.rb +14 -5
  108. data/lib/launchdarkly_api/models/flag_config_approval_requests_response.rb +1 -1
  109. data/lib/launchdarkly_api/models/flag_copy_config_environment.rb +1 -1
  110. data/lib/launchdarkly_api/models/flag_copy_config_post.rb +1 -1
  111. data/lib/launchdarkly_api/models/flag_global_attributes_rep.rb +1 -1
  112. data/lib/launchdarkly_api/models/flag_listing_rep.rb +1 -1
  113. data/lib/launchdarkly_api/models/flag_scheduled_changes_input.rb +1 -1
  114. data/lib/launchdarkly_api/models/flag_status_rep.rb +1 -1
  115. data/lib/launchdarkly_api/models/flag_summary.rb +1 -1
  116. data/lib/launchdarkly_api/models/hunk_rep.rb +1 -1
  117. data/lib/launchdarkly_api/models/inline_object.rb +1 -1
  118. data/lib/launchdarkly_api/models/inline_object1.rb +1 -1
  119. data/lib/launchdarkly_api/models/inline_response200.rb +1 -1
  120. data/lib/launchdarkly_api/models/integration_metadata.rb +1 -1
  121. data/lib/launchdarkly_api/models/integration_status.rb +1 -1
  122. data/lib/launchdarkly_api/models/ip_list.rb +1 -1
  123. data/lib/launchdarkly_api/models/last_seen_metadata.rb +1 -1
  124. data/lib/launchdarkly_api/models/link.rb +1 -1
  125. data/lib/launchdarkly_api/models/member.rb +1 -1
  126. data/lib/launchdarkly_api/models/member_data_rep.rb +1 -1
  127. data/lib/launchdarkly_api/models/member_permission_grant_summary_rep.rb +1 -1
  128. data/lib/launchdarkly_api/models/member_summary_rep.rb +1 -1
  129. data/lib/launchdarkly_api/models/member_team_summary_rep.rb +1 -1
  130. data/lib/launchdarkly_api/models/members.rb +1 -1
  131. data/lib/launchdarkly_api/models/metric_collection_rep.rb +1 -1
  132. data/lib/launchdarkly_api/models/metric_listing_rep.rb +1 -1
  133. data/lib/launchdarkly_api/models/metric_post.rb +1 -1
  134. data/lib/launchdarkly_api/models/metric_rep.rb +1 -1
  135. data/lib/launchdarkly_api/models/modification.rb +1 -1
  136. data/lib/launchdarkly_api/models/multi_environment_dependent_flag.rb +1 -1
  137. data/lib/launchdarkly_api/models/multi_environment_dependent_flags.rb +1 -1
  138. data/lib/launchdarkly_api/models/new_member_form.rb +1 -1
  139. data/lib/launchdarkly_api/models/parent_resource_rep.rb +1 -1
  140. data/lib/launchdarkly_api/models/patch_operation.rb +1 -1
  141. data/lib/launchdarkly_api/models/patch_segment_instruction.rb +1 -1
  142. data/lib/launchdarkly_api/models/patch_segment_request.rb +1 -1
  143. data/lib/launchdarkly_api/models/patch_with_comment.rb +1 -1
  144. data/lib/launchdarkly_api/models/permission_grant_input.rb +240 -0
  145. data/lib/launchdarkly_api/models/permission_grant_rep.rb +249 -0
  146. data/lib/launchdarkly_api/models/post_approval_request_apply_request.rb +1 -1
  147. data/lib/launchdarkly_api/models/post_approval_request_review_request.rb +1 -1
  148. data/lib/launchdarkly_api/models/post_flag_scheduled_changes_input.rb +1 -1
  149. data/lib/launchdarkly_api/models/prerequisite.rb +1 -1
  150. data/lib/launchdarkly_api/models/project.rb +1 -1
  151. data/lib/launchdarkly_api/models/project_listing_rep.rb +1 -1
  152. data/lib/launchdarkly_api/models/project_post.rb +1 -1
  153. data/lib/launchdarkly_api/models/projects.rb +1 -1
  154. data/lib/launchdarkly_api/models/pub_nub_detail_rep.rb +1 -1
  155. data/lib/launchdarkly_api/models/reference_rep.rb +1 -1
  156. data/lib/launchdarkly_api/models/relay_auto_config_collection_rep.rb +1 -1
  157. data/lib/launchdarkly_api/models/relay_auto_config_post.rb +1 -1
  158. data/lib/launchdarkly_api/models/relay_auto_config_rep.rb +1 -1
  159. data/lib/launchdarkly_api/models/repository_collection_rep.rb +1 -1
  160. data/lib/launchdarkly_api/models/repository_post.rb +1 -1
  161. data/lib/launchdarkly_api/models/repository_rep.rb +1 -1
  162. data/lib/launchdarkly_api/models/resource_access.rb +1 -1
  163. data/lib/launchdarkly_api/models/resource_id_response.rb +1 -1
  164. data/lib/launchdarkly_api/models/review_response.rb +1 -1
  165. data/lib/launchdarkly_api/models/rollout.rb +1 -1
  166. data/lib/launchdarkly_api/models/rule.rb +1 -1
  167. data/lib/launchdarkly_api/models/sdk_list_rep.rb +1 -1
  168. data/lib/launchdarkly_api/models/sdk_version_list_rep.rb +1 -1
  169. data/lib/launchdarkly_api/models/sdk_version_rep.rb +1 -1
  170. data/lib/launchdarkly_api/models/segment_body.rb +1 -1
  171. data/lib/launchdarkly_api/models/segment_metadata.rb +1 -1
  172. data/lib/launchdarkly_api/models/segment_user_list.rb +1 -1
  173. data/lib/launchdarkly_api/models/segment_user_state.rb +1 -1
  174. data/lib/launchdarkly_api/models/series_list_rep.rb +1 -1
  175. data/lib/launchdarkly_api/models/source_flag.rb +1 -1
  176. data/lib/launchdarkly_api/models/statement.rb +1 -1
  177. data/lib/launchdarkly_api/models/statement_post.rb +1 -1
  178. data/lib/launchdarkly_api/models/statement_post_data.rb +1 -1
  179. data/lib/launchdarkly_api/models/statement_rep.rb +1 -1
  180. data/lib/launchdarkly_api/models/statistic_collection_rep.rb +1 -1
  181. data/lib/launchdarkly_api/models/statistic_rep.rb +1 -1
  182. data/lib/launchdarkly_api/models/statistics_root.rb +1 -1
  183. data/lib/launchdarkly_api/models/subject_data_rep.rb +1 -1
  184. data/lib/launchdarkly_api/models/target.rb +1 -1
  185. data/lib/launchdarkly_api/models/target_resource_rep.rb +1 -1
  186. data/lib/launchdarkly_api/models/team_collection_rep.rb +240 -0
  187. data/lib/launchdarkly_api/models/team_patch_input.rb +229 -0
  188. data/lib/launchdarkly_api/models/team_post_input.rb +269 -0
  189. data/lib/launchdarkly_api/models/team_rep.rb +327 -0
  190. data/lib/launchdarkly_api/models/title_rep.rb +1 -1
  191. data/lib/launchdarkly_api/models/token.rb +1 -1
  192. data/lib/launchdarkly_api/models/token_data_rep.rb +1 -1
  193. data/lib/launchdarkly_api/models/tokens.rb +1 -1
  194. data/lib/launchdarkly_api/models/url_post.rb +1 -1
  195. data/lib/launchdarkly_api/models/user.rb +1 -1
  196. data/lib/launchdarkly_api/models/user_attribute_names_rep.rb +1 -1
  197. data/lib/launchdarkly_api/models/user_flag_setting.rb +1 -1
  198. data/lib/launchdarkly_api/models/user_flag_settings.rb +1 -1
  199. data/lib/launchdarkly_api/models/user_record.rb +1 -1
  200. data/lib/launchdarkly_api/models/user_segment.rb +1 -1
  201. data/lib/launchdarkly_api/models/user_segment_rule.rb +1 -1
  202. data/lib/launchdarkly_api/models/user_segments.rb +1 -1
  203. data/lib/launchdarkly_api/models/users.rb +1 -1
  204. data/lib/launchdarkly_api/models/value_put.rb +1 -1
  205. data/lib/launchdarkly_api/models/variate.rb +1 -1
  206. data/lib/launchdarkly_api/models/variation.rb +1 -1
  207. data/lib/launchdarkly_api/models/variation_or_rollout_rep.rb +1 -1
  208. data/lib/launchdarkly_api/models/variation_summary.rb +1 -1
  209. data/lib/launchdarkly_api/models/versions_rep.rb +1 -1
  210. data/lib/launchdarkly_api/models/webhook.rb +1 -1
  211. data/lib/launchdarkly_api/models/webhook_post.rb +1 -1
  212. data/lib/launchdarkly_api/models/webhooks.rb +1 -1
  213. data/lib/launchdarkly_api/models/weighted_variation.rb +1 -1
  214. data/lib/launchdarkly_api/version.rb +2 -2
  215. data/lib/launchdarkly_api.rb +10 -1
  216. data/spec/api/access_tokens_api_spec.rb +1 -1
  217. data/spec/api/account_members_api_spec.rb +1 -1
  218. data/spec/api/account_usage_beta_api_spec.rb +1 -1
  219. data/spec/api/approvals_api_spec.rb +1 -1
  220. data/spec/api/audit_log_api_spec.rb +1 -1
  221. data/spec/api/code_references_api_spec.rb +2 -2
  222. data/spec/api/custom_roles_api_spec.rb +1 -1
  223. data/spec/api/data_export_destinations_api_spec.rb +1 -1
  224. data/spec/api/environments_api_spec.rb +1 -1
  225. data/spec/api/experiments_beta_api_spec.rb +1 -1
  226. data/spec/api/feature_flags_api_spec.rb +2 -2
  227. data/spec/api/feature_flags_beta_api_spec.rb +1 -1
  228. data/spec/api/metrics_api_spec.rb +1 -1
  229. data/spec/api/other_api_spec.rb +1 -1
  230. data/spec/api/projects_api_spec.rb +1 -1
  231. data/spec/api/relay_proxy_configurations_api_spec.rb +1 -1
  232. data/spec/api/scheduled_changes_api_spec.rb +1 -1
  233. data/spec/api/segments_api_spec.rb +2 -2
  234. data/spec/api/teams_beta_api_spec.rb +95 -0
  235. data/spec/api/user_settings_api_spec.rb +1 -1
  236. data/spec/api/users_api_spec.rb +1 -1
  237. data/spec/api/users_beta_api_spec.rb +1 -1
  238. data/spec/api/webhooks_api_spec.rb +1 -1
  239. data/spec/api_client_spec.rb +1 -1
  240. data/spec/configuration_spec.rb +1 -1
  241. data/spec/models/access_denied_reason_rep_spec.rb +1 -1
  242. data/spec/models/access_denied_rep_spec.rb +1 -1
  243. data/spec/models/access_rep_spec.rb +1 -1
  244. data/spec/models/access_token_post_spec.rb +1 -1
  245. data/spec/models/approval_settings_spec.rb +1 -1
  246. data/spec/models/audit_log_entry_listing_rep_collection_spec.rb +1 -1
  247. data/spec/models/audit_log_entry_listing_rep_spec.rb +1 -1
  248. data/spec/models/audit_log_entry_rep_spec.rb +1 -1
  249. data/spec/models/authorized_app_data_rep_spec.rb +1 -1
  250. data/spec/models/big_segment_target_spec.rb +1 -1
  251. data/spec/models/branch_collection_rep_spec.rb +1 -1
  252. data/spec/models/branch_rep_spec.rb +1 -1
  253. data/spec/models/clause_spec.rb +1 -1
  254. data/spec/models/client_side_availability_post_spec.rb +1 -1
  255. data/spec/models/client_side_availability_spec.rb +1 -1
  256. data/spec/models/confidence_interval_rep_spec.rb +1 -1
  257. data/spec/models/conflict_spec.rb +1 -1
  258. data/spec/models/copied_from_env_spec.rb +1 -1
  259. data/spec/models/create_copy_flag_config_approval_request_request_spec.rb +1 -1
  260. data/spec/models/create_flag_config_approval_request_request_spec.rb +1 -1
  261. data/spec/models/custom_property_spec.rb +1 -1
  262. data/spec/models/custom_role_post_data_spec.rb +1 -1
  263. data/spec/models/custom_role_post_spec.rb +1 -1
  264. data/spec/models/custom_role_spec.rb +1 -1
  265. data/spec/models/custom_roles_spec.rb +1 -1
  266. data/spec/models/custom_workflow_meta_spec.rb +40 -0
  267. data/spec/models/custom_workflow_stage_meta_spec.rb +40 -0
  268. data/spec/models/default_client_side_availability_post_spec.rb +1 -1
  269. data/spec/models/defaults_spec.rb +1 -1
  270. data/spec/models/dependent_flag_environment_spec.rb +1 -1
  271. data/spec/models/dependent_flag_spec.rb +1 -1
  272. data/spec/models/dependent_flags_by_environment_spec.rb +1 -1
  273. data/spec/models/destination_post_spec.rb +1 -1
  274. data/spec/models/destination_spec.rb +1 -1
  275. data/spec/models/destinations_spec.rb +1 -1
  276. data/spec/models/environment_post_spec.rb +1 -1
  277. data/spec/models/environment_spec.rb +1 -1
  278. data/spec/models/experiment_allocation_rep_spec.rb +1 -1
  279. data/spec/models/experiment_enabled_period_rep_spec.rb +1 -1
  280. data/spec/models/experiment_environment_setting_rep_spec.rb +1 -1
  281. data/spec/models/experiment_info_rep_spec.rb +1 -1
  282. data/spec/models/experiment_metadata_rep_spec.rb +1 -1
  283. data/spec/models/experiment_rep_spec.rb +1 -1
  284. data/spec/models/experiment_results_rep_spec.rb +1 -1
  285. data/spec/models/experiment_stats_rep_spec.rb +1 -1
  286. data/spec/models/experiment_time_series_slice_spec.rb +1 -1
  287. data/spec/models/experiment_time_series_variation_slice_spec.rb +1 -1
  288. data/spec/models/experiment_totals_rep_spec.rb +1 -1
  289. data/spec/models/expiring_user_target_error_spec.rb +1 -1
  290. data/spec/models/expiring_user_target_get_response_spec.rb +1 -1
  291. data/spec/models/expiring_user_target_item_spec.rb +1 -1
  292. data/spec/models/expiring_user_target_patch_response_spec.rb +1 -1
  293. data/spec/models/extinction_collection_rep_spec.rb +1 -1
  294. data/spec/models/extinction_rep_spec.rb +1 -1
  295. data/spec/models/extinction_spec.rb +1 -1
  296. data/spec/models/feature_flag_body_spec.rb +1 -1
  297. data/spec/models/feature_flag_config_spec.rb +1 -1
  298. data/spec/models/feature_flag_scheduled_change_spec.rb +1 -1
  299. data/spec/models/feature_flag_scheduled_changes_spec.rb +1 -1
  300. data/spec/models/feature_flag_spec.rb +1 -1
  301. data/spec/models/feature_flag_status_across_environments_spec.rb +1 -1
  302. data/spec/models/feature_flag_status_spec.rb +1 -1
  303. data/spec/models/feature_flag_statuses_spec.rb +1 -1
  304. data/spec/models/feature_flags_spec.rb +1 -1
  305. data/spec/models/flag_config_approval_request_response_spec.rb +7 -1
  306. data/spec/models/flag_config_approval_requests_response_spec.rb +1 -1
  307. data/spec/models/flag_copy_config_environment_spec.rb +1 -1
  308. data/spec/models/flag_copy_config_post_spec.rb +1 -1
  309. data/spec/models/flag_global_attributes_rep_spec.rb +1 -1
  310. data/spec/models/flag_listing_rep_spec.rb +1 -1
  311. data/spec/models/flag_scheduled_changes_input_spec.rb +1 -1
  312. data/spec/models/flag_status_rep_spec.rb +1 -1
  313. data/spec/models/flag_summary_spec.rb +1 -1
  314. data/spec/models/hunk_rep_spec.rb +1 -1
  315. data/spec/models/inline_object1_spec.rb +1 -1
  316. data/spec/models/inline_object_spec.rb +1 -1
  317. data/spec/models/inline_response200_spec.rb +1 -1
  318. data/spec/models/integration_metadata_spec.rb +1 -1
  319. data/spec/models/integration_status_spec.rb +1 -1
  320. data/spec/models/ip_list_spec.rb +1 -1
  321. data/spec/models/last_seen_metadata_spec.rb +1 -1
  322. data/spec/models/link_spec.rb +1 -1
  323. data/spec/models/member_data_rep_spec.rb +1 -1
  324. data/spec/models/member_permission_grant_summary_rep_spec.rb +1 -1
  325. data/spec/models/member_spec.rb +1 -1
  326. data/spec/models/member_summary_rep_spec.rb +1 -1
  327. data/spec/models/member_team_summary_rep_spec.rb +1 -1
  328. data/spec/models/members_spec.rb +1 -1
  329. data/spec/models/metric_collection_rep_spec.rb +1 -1
  330. data/spec/models/metric_listing_rep_spec.rb +1 -1
  331. data/spec/models/metric_post_spec.rb +1 -1
  332. data/spec/models/metric_rep_spec.rb +1 -1
  333. data/spec/models/modification_spec.rb +1 -1
  334. data/spec/models/multi_environment_dependent_flag_spec.rb +1 -1
  335. data/spec/models/multi_environment_dependent_flags_spec.rb +1 -1
  336. data/spec/models/new_member_form_spec.rb +1 -1
  337. data/spec/models/parent_resource_rep_spec.rb +1 -1
  338. data/spec/models/patch_operation_spec.rb +1 -1
  339. data/spec/models/patch_segment_instruction_spec.rb +1 -1
  340. data/spec/models/patch_segment_request_spec.rb +1 -1
  341. data/spec/models/patch_with_comment_spec.rb +1 -1
  342. data/spec/models/permission_grant_input_spec.rb +46 -0
  343. data/spec/models/permission_grant_rep_spec.rb +52 -0
  344. data/spec/models/post_approval_request_apply_request_spec.rb +1 -1
  345. data/spec/models/post_approval_request_review_request_spec.rb +1 -1
  346. data/spec/models/post_flag_scheduled_changes_input_spec.rb +1 -1
  347. data/spec/models/prerequisite_spec.rb +1 -1
  348. data/spec/models/project_listing_rep_spec.rb +1 -1
  349. data/spec/models/project_post_spec.rb +1 -1
  350. data/spec/models/project_spec.rb +1 -1
  351. data/spec/models/projects_spec.rb +1 -1
  352. data/spec/models/pub_nub_detail_rep_spec.rb +1 -1
  353. data/spec/models/reference_rep_spec.rb +1 -1
  354. data/spec/models/relay_auto_config_collection_rep_spec.rb +1 -1
  355. data/spec/models/relay_auto_config_post_spec.rb +1 -1
  356. data/spec/models/relay_auto_config_rep_spec.rb +1 -1
  357. data/spec/models/repository_collection_rep_spec.rb +1 -1
  358. data/spec/models/repository_post_spec.rb +1 -1
  359. data/spec/models/repository_rep_spec.rb +1 -1
  360. data/spec/models/resource_access_spec.rb +1 -1
  361. data/spec/models/resource_id_response_spec.rb +1 -1
  362. data/spec/models/review_response_spec.rb +1 -1
  363. data/spec/models/rollout_spec.rb +1 -1
  364. data/spec/models/rule_spec.rb +1 -1
  365. data/spec/models/sdk_list_rep_spec.rb +1 -1
  366. data/spec/models/sdk_version_list_rep_spec.rb +1 -1
  367. data/spec/models/sdk_version_rep_spec.rb +1 -1
  368. data/spec/models/segment_body_spec.rb +1 -1
  369. data/spec/models/segment_metadata_spec.rb +1 -1
  370. data/spec/models/segment_user_list_spec.rb +1 -1
  371. data/spec/models/segment_user_state_spec.rb +1 -1
  372. data/spec/models/series_list_rep_spec.rb +1 -1
  373. data/spec/models/source_flag_spec.rb +1 -1
  374. data/spec/models/statement_post_data_spec.rb +1 -1
  375. data/spec/models/statement_post_spec.rb +1 -1
  376. data/spec/models/statement_rep_spec.rb +1 -1
  377. data/spec/models/statement_spec.rb +1 -1
  378. data/spec/models/statistic_collection_rep_spec.rb +1 -1
  379. data/spec/models/statistic_rep_spec.rb +1 -1
  380. data/spec/models/statistics_root_spec.rb +1 -1
  381. data/spec/models/subject_data_rep_spec.rb +1 -1
  382. data/spec/models/target_resource_rep_spec.rb +1 -1
  383. data/spec/models/target_spec.rb +1 -1
  384. data/spec/models/team_collection_rep_spec.rb +46 -0
  385. data/spec/models/team_patch_input_spec.rb +40 -0
  386. data/spec/models/team_post_input_spec.rb +64 -0
  387. data/spec/models/team_rep_spec.rb +100 -0
  388. data/spec/models/title_rep_spec.rb +1 -1
  389. data/spec/models/token_data_rep_spec.rb +1 -1
  390. data/spec/models/token_spec.rb +1 -1
  391. data/spec/models/tokens_spec.rb +1 -1
  392. data/spec/models/url_post_spec.rb +1 -1
  393. data/spec/models/user_attribute_names_rep_spec.rb +1 -1
  394. data/spec/models/user_flag_setting_spec.rb +1 -1
  395. data/spec/models/user_flag_settings_spec.rb +1 -1
  396. data/spec/models/user_record_spec.rb +1 -1
  397. data/spec/models/user_segment_rule_spec.rb +1 -1
  398. data/spec/models/user_segment_spec.rb +1 -1
  399. data/spec/models/user_segments_spec.rb +1 -1
  400. data/spec/models/user_spec.rb +1 -1
  401. data/spec/models/users_spec.rb +1 -1
  402. data/spec/models/value_put_spec.rb +1 -1
  403. data/spec/models/variate_spec.rb +1 -1
  404. data/spec/models/variation_or_rollout_rep_spec.rb +1 -1
  405. data/spec/models/variation_spec.rb +1 -1
  406. data/spec/models/variation_summary_spec.rb +1 -1
  407. data/spec/models/versions_rep_spec.rb +1 -1
  408. data/spec/models/webhook_post_spec.rb +1 -1
  409. data/spec/models/webhook_spec.rb +1 -1
  410. data/spec/models/webhooks_spec.rb +1 -1
  411. data/spec/models/weighted_variation_spec.rb +1 -1
  412. data/spec/spec_helper.rb +1 -1
  413. metadata +271 -235
@@ -11,7 +11,7 @@ All URIs are relative to *https://app.launchdarkly.com*
11
11
  | [**get_extinctions**](CodeReferencesApi.md#get_extinctions) | **GET** /api/v2/code-refs/extinctions | List extinctions |
12
12
  | [**get_repositories**](CodeReferencesApi.md#get_repositories) | **GET** /api/v2/code-refs/repositories | List repositories |
13
13
  | [**get_repository**](CodeReferencesApi.md#get_repository) | **GET** /api/v2/code-refs/repositories/{repo} | Get repository |
14
- | [**get_root_statistic**](CodeReferencesApi.md#get_root_statistic) | **GET** /api/v2/code-refs/statistics | Get number of code references for flags |
14
+ | [**get_root_statistic**](CodeReferencesApi.md#get_root_statistic) | **GET** /api/v2/code-refs/statistics | Get links to code reference repositories for each project |
15
15
  | [**get_statistics**](CodeReferencesApi.md#get_statistics) | **GET** /api/v2/code-refs/statistics/{projKey} | Get number of code references for flags |
16
16
  | [**patch_repository**](CodeReferencesApi.md#patch_repository) | **PATCH** /api/v2/code-refs/repositories/{repo} | Update repository |
17
17
  | [**post_extinction**](CodeReferencesApi.md#post_extinction) | **POST** /api/v2/code-refs/repositories/{repo}/branches/{branch} | Create extinction |
@@ -544,7 +544,7 @@ end
544
544
 
545
545
  > <StatisticsRoot> get_root_statistic
546
546
 
547
- Get number of code references for flags
547
+ Get links to code reference repositories for each project
548
548
 
549
549
  Get links for all projects that have Code References.
550
550
 
@@ -564,7 +564,7 @@ end
564
564
  api_instance = LaunchDarklyApi::CodeReferencesApi.new
565
565
 
566
566
  begin
567
- # Get number of code references for flags
567
+ # Get links to code reference repositories for each project
568
568
  result = api_instance.get_root_statistic
569
569
  p result
570
570
  rescue LaunchDarklyApi::ApiError => e
@@ -580,7 +580,7 @@ This returns an Array which contains the response data, status code and headers.
580
580
 
581
581
  ```ruby
582
582
  begin
583
- # Get number of code references for flags
583
+ # Get links to code reference repositories for each project
584
584
  data, status_code, headers = api_instance.get_root_statistic_with_http_info
585
585
  p status_code # => 2xx
586
586
  p headers # => { ... }
@@ -0,0 +1,20 @@
1
+ # LaunchDarklyApi::CustomWorkflowMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **stage** | [**CustomWorkflowStageMeta**](CustomWorkflowStageMeta.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'launchdarkly_api'
14
+
15
+ instance = LaunchDarklyApi::CustomWorkflowMeta.new(
16
+ name: null,
17
+ stage: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # LaunchDarklyApi::CustomWorkflowStageMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **index** | **Integer** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'launchdarkly_api'
14
+
15
+ instance = LaunchDarklyApi::CustomWorkflowStageMeta.new(
16
+ index: null,
17
+ name: null
18
+ )
19
+ ```
20
+
@@ -715,7 +715,7 @@ end
715
715
 
716
716
  Update feature flag
717
717
 
718
- Perform a partial update to a feature
718
+ Perform a partial update to a feature flag. ## Using JSON Patches on a feature flag When using the update feature flag endpoint to add individual users to a specific variation, there are two different patch documents, depending on whether users are already being individually targeted for the variation. If a flag variation already has users individually targeted, the path for the JSON Patch operation is: ```json { \"op\": \"add\", \"path\": \"/environments/devint/targets/0/values/-\", \"value\": \"TestClient10\" } ``` If a flag variation does not already have users individually targeted, the path for the JSON Patch operation is: ```json [ { \"op\": \"add\", \"path\": \"/environments/devint/targets/-\", \"value\": { \"variation\": 0, \"values\": [\"TestClient10\"] } } ] ``` ## Using semantic patches on a feature flag To use a [semantic patch](/#section/Updates/Updates-via-semantic-patches) on a feature flag resource, you must include a header in the request. If you call a semantic patch resource without this header, you receive a `400` response as your semantic patch will be interpreted as a JSON patch. Use this header: ``` Content-Type: application/json; domain-model=launchdarkly.semanticpatch ``` The body of a semantic patch request takes the following three properties: 1. comment `string`: (Optional) A description of the update. 1. environmentKey `string`: (Required) The key of the LaunchDarkly environment. 1. instructions `array`: (Required) The action or list of actions to be performed by the update. Each update action in the list must be an object/hash table with a `kind` property, although depending on the action, other properties may be necessary. Read below for more information on the specific supported semantic patch instructions. If any instruction in the patch encounters an error, the error will be returned and the flag will not be changed. In general, instructions will silently do nothing if the flag is already in the state requested by the patch instruction. For example, `removeUserTargets` does nothing when the targets have already been removed). They will generally error if a parameter refers to something that does not exist, like a variation ID that doesn't correspond to a variation on the flag or a rule ID that doesn't belong to a rule on the flag. Other specific error conditions are noted in the instruction descriptions. ### Instructions #### `turnFlagOn` Sets the flag's targeting state to on. #### `turnFlagOff` Sets the flag's targeting state to off. #### `addUserTargets` Adds the user keys in `values` to the individual user targets for the variation specified by `variationId`. Returns an error if this causes the same user key to be targeted in multiple variations. ##### Parameters - `values`: list of user keys - `variationId`: ID of a variation on the flag #### `removeUserTargets` Removes the user keys in `values` to the individual user targets for the variation specified by `variationId`. Does nothing if the user keys are not targeted. ##### Parameters - `values`: list of user keys - `variationId`: ID of a variation on the flag #### `replaceUserTargets` Completely replaces the existing set of user targeting. All variations must be provided. Example: ```json { \"kind\": \"replaceUserTargets\", \"targets\": [ { \"variationId\": \"variation-1\", \"values\": [\"blah\", \"foo\", \"bar\"] }, { \"variationId\": \"variation-2\", \"values\": [\"abc\", \"def\"] } ] } ``` ##### Parameters - `targets`: a list of user targeting #### `clearUserTargets` Removes all individual user targets from the variation specified by `variationId` ##### Parameters - `variationId`: ID of a variation on the flag #### `addPrerequisite` Adds the flag indicated by `key` with variation `variationId` as a prerequisite to the flag. ##### Parameters - `key`: flag key of another flag - `variationId`: ID of a variation of the flag with key `key` #### `removePrerequisite` Removes the prerequisite indicated by `key`. Does nothing if this prerequisite does not exist. ##### Parameters - `key`: flag key of an existing prerequisite #### `updatePrerequisite` Changes the prerequisite with flag key `key` to the variation indicated by `variationId`. Returns an error if this prerequisite does not exist. ##### Parameters - `key`: flag key of an existing prerequisite - `variationId`: ID of a variation of the flag with key `key` #### `replacePrerequisites` Completely replaces the existing set of prerequisites for a given flag. Example: ```json { \"kind\": \"replacePrerequisites\", \"prerequisites\": [ { \"key\": \"flag-key\", \"variationId\": \"variation-1\" }, { \"key\": \"another-flag\", \"variationId\": \"variation-2\" } ] } ``` ##### Parameters - `prerequisites`: a list of prerequisites #### `addRule` Adds a new rule to the flag with the given `clauses` which serves the variation indicated by `variationId` or the percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. If `beforeRuleId` is set, the rule will be added in the list of rules before the indicated rule. Otherwise, the rule will be added to the end of the list. ##### Parameters - `clauses`: Array of clauses (see `addClauses`) - `beforeRuleId`: Optional ID of a rule in the flag - `variationId`: ID of a variation of the flag - `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) - `rolloutBucketBy`: Optional user attribute #### `removeRule` Removes the targeting rule specified by `ruleId`. Does nothing if the rule does not exist. ##### Parameters - `ruleId`: ID of a rule in the flag #### `replaceRules` Completely replaces the existing rules for a given flag. Example: ```json { \"kind\": \"replaceRules\", \"rules\": [ { \"variationId\": \"variation-1\", \"description\": \"myRule\", \"clauses\": [ { \"attribute\": \"segmentMatch\", \"op\": \"segmentMatch\", \"values\": [\"test\"] } ], \"trackEvents\": true } ] } ``` ##### Parameters - `rules`: a list of rules #### `addClauses` Adds the given clauses to the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauses`: Array of clause objects, with `attribute` (string), `op` (string), and `values` (array of strings, numbers, or dates) properties. #### `removeClauses` Removes the clauses specified by `clauseIds` from the rule indicated by `ruleId`. #### Parameters - `ruleId`: ID of a rule in the flag - `clauseIds`: Array of IDs of clauses in the rule #### `updateClause` Replaces the clause indicated by `ruleId` and `clauseId` with `clause`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauseId`: ID of a clause in that rule - `clause`: Clause object #### `addValuesToClause` Adds `values` to the values of the clause indicated by `ruleId` and `clauseId`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauseId`: ID of a clause in that rule - `values`: Array of strings #### `removeValuesFromClause` Removes `values` from the values of the clause indicated by `ruleId` and `clauseId`. ##### Parameters `ruleId`: ID of a rule in the flag `clauseId`: ID of a clause in that rule `values`: Array of strings #### `reorderRules` Rearranges the rules to match the order given in `ruleIds`. Will return an error if `ruleIds` does not match the current set of rules on the flag. ##### Parameters - `ruleIds`: Array of IDs of all rules in the flag #### `updateRuleVariationOrRollout` Updates what the rule indicated by `ruleId` serves if its clauses evaluate to true. Can either be a fixed variation indicated by `variationId` or a percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. ##### Parameters - `ruleId`: ID of a rule in the flag - `variationId`: ID of a variation of the flag or - `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) - `rolloutBucketBy`: Optional user attribute #### `updateFallthroughVariationOrRollout` Updates the flag's fallthrough, which is served if none of the targeting rules match. Can either be a fixed variation indicated by `variationId` or a percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. ##### Parameters `variationId`: ID of a variation of the flag or `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) `rolloutBucketBy`: Optional user attribute #### `updateOffVariation` Updates the variation served when the flag's targeting is off to the variation indicated by `variationId`. ##### Parameters `variationId`: ID of a variation of the flag ### Example ```json { \"environmentKey\": \"production\", \"instructions\": [ { \"kind\": \"turnFlagOn\" }, { \"kind\": \"turnFlagOff\" }, { \"kind\": \"addUserTargets\", \"variationId\": \"8bfb304e-d516-47e5-8727-e7f798e8992d\", \"values\": [\"userId\", \"userId2\"] }, { \"kind\": \"removeUserTargets\", \"variationId\": \"8bfb304e-d516-47e5-8727-e7f798e8992d\", \"values\": [\"userId3\", \"userId4\"] }, { \"kind\": \"updateFallthroughVariationOrRollout\", \"rolloutWeights\": { \"variationId\": 50000, \"variationId2\": 50000 }, \"rolloutBucketBy\": null }, { \"kind\": \"addRule\", \"clauses\": [ { \"attribute\": \"segmentMatch\", \"negate\": false, \"values\": [\"test-segment\"] } ], \"variationId\": null, \"rolloutWeights\": { \"variationId\": 50000, \"variationId2\": 50000 }, \"rolloutBucketBy\": \"key\" }, { \"kind\": \"removeRule\", \"ruleId\": \"99f12464-a429-40fc-86cc-b27612188955\" }, { \"kind\": \"reorderRules\", \"ruleIds\": [\"2f72974e-de68-4243-8dd3-739582147a1f\", \"8bfb304e-d516-47e5-8727-e7f798e8992d\"] }, { \"kind\": \"addClauses\", \"ruleId\": \"1134\", \"clauses\": [ { \"attribute\": \"email\", \"op\": \"in\", \"negate\": false, \"values\": [\"test@test.com\"] } ] }, { \"kind\": \"removeClauses\", \"ruleId\": \"1242529\", \"clauseIds\": [\"8bfb304e-d516-47e5-8727-e7f798e8992d\"] }, { \"kind\": \"updateClause\", \"ruleId\": \"2f72974e-de68-4243-8dd3-739582147a1f\", \"clauseId\": \"309845\", \"clause\": { \"attribute\": \"segmentMatch\", \"negate\": false, \"values\": [\"test-segment\"] } }, { \"kind\": \"updateRuleVariationOrRollout\", \"ruleId\": \"2342\", \"rolloutWeights\": null, \"rolloutBucketBy\": null }, { \"kind\": \"updateOffVariation\", \"variationId\": \"3242453\" }, { \"kind\": \"addPrerequisite\", \"variationId\": \"234235\", \"key\": \"flagKey2\" }, { \"kind\": \"updatePrerequisite\", \"variationId\": \"234235\", \"key\": \"flagKey2\" }, { \"kind\": \"removePrerequisite\", \"key\": \"flagKey\" } ] } ``` ## Using JSON patches on a feature flag If you do not include the header described above, you can use [JSON patch](/#section/Updates/Updates-via-JSON-Patch).
719
719
 
720
720
  ### Examples
721
721
 
@@ -23,6 +23,7 @@
23
23
  | **operating_on_id** | **String** | ID of scheduled change to edit or delete | [optional] |
24
24
  | **integration_metadata** | [**IntegrationMetadata**](IntegrationMetadata.md) | | [optional] |
25
25
  | **source** | [**CopiedFromEnv**](CopiedFromEnv.md) | | [optional] |
26
+ | **custom_workflow_meta_data** | [**CustomWorkflowMeta**](CustomWorkflowMeta.md) | | [optional] |
26
27
 
27
28
  ## Example
28
29
 
@@ -48,7 +49,8 @@ instance = LaunchDarklyApi::FlagConfigApprovalRequestResponse.new(
48
49
  execution_date: null,
49
50
  operating_on_id: null,
50
51
  integration_metadata: null,
51
- source: null
52
+ source: null,
53
+ custom_workflow_meta_data: null
52
54
  )
53
55
  ```
54
56
 
@@ -0,0 +1,22 @@
1
+ # LaunchDarklyApi::PermissionGrantInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **member_ids** | **Array&lt;String&gt;** | | [optional] |
8
+ | **actions** | **Array&lt;String&gt;** | | [optional] |
9
+ | **action_set** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'launchdarkly_api'
15
+
16
+ instance = LaunchDarklyApi::PermissionGrantInput.new(
17
+ member_ids: null,
18
+ actions: null,
19
+ action_set: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,24 @@
1
+ # LaunchDarklyApi::PermissionGrantRep
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **action_set** | **String** | | [optional] |
8
+ | **actions** | **Array&lt;String&gt;** | | [optional] |
9
+ | **member_ids** | **Array&lt;String&gt;** | | [optional] |
10
+ | **resource** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'launchdarkly_api'
16
+
17
+ instance = LaunchDarklyApi::PermissionGrantRep.new(
18
+ action_set: null,
19
+ actions: null,
20
+ member_ids: null,
21
+ resource: null
22
+ )
23
+ ```
24
+
data/docs/SegmentsApi.md CHANGED
@@ -245,7 +245,7 @@ end
245
245
 
246
246
  Get Big Segment membership for user
247
247
 
248
- Returns the membership status (included/excluded) for a given user in this segment. Note this operation
248
+ Returns the membership status (included/excluded) for a given user in this segment. This operation does not support basic Segments.
249
249
 
250
250
  ### Examples
251
251
 
@@ -0,0 +1,22 @@
1
+ # LaunchDarklyApi::TeamCollectionRep
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array&lt;TeamRep&gt;**](TeamRep.md) | | [optional] |
8
+ | **_links** | [**Hash&lt;String, Link&gt;**](Link.md) | | [optional] |
9
+ | **total_count** | **Integer** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'launchdarkly_api'
15
+
16
+ instance = LaunchDarklyApi::TeamCollectionRep.new(
17
+ items: null,
18
+ _links: null,
19
+ total_count: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # LaunchDarklyApi::TeamPatchInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **comment** | **String** | | [optional] |
8
+ | **instructions** | **Array&lt;Hash&gt;** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'launchdarkly_api'
14
+
15
+ instance = LaunchDarklyApi::TeamPatchInput.new(
16
+ comment: null,
17
+ instructions: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,28 @@
1
+ # LaunchDarklyApi::TeamPostInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **custom_role_keys** | **Array&lt;String&gt;** | | [optional] |
8
+ | **description** | **String** | | [optional] |
9
+ | **key** | **String** | | [optional] |
10
+ | **member_ids** | **Array&lt;String&gt;** | | [optional] |
11
+ | **name** | **String** | | [optional] |
12
+ | **permission_grants** | [**Array&lt;PermissionGrantInput&gt;**](PermissionGrantInput.md) | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'launchdarkly_api'
18
+
19
+ instance = LaunchDarklyApi::TeamPostInput.new(
20
+ custom_role_keys: null,
21
+ description: null,
22
+ key: null,
23
+ member_ids: null,
24
+ name: null,
25
+ permission_grants: null
26
+ )
27
+ ```
28
+
data/docs/TeamRep.md ADDED
@@ -0,0 +1,40 @@
1
+ # LaunchDarklyApi::TeamRep
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **custom_role_keys** | **Array&lt;String&gt;** | | [optional] |
8
+ | **description** | **String** | | [optional] |
9
+ | **key** | **String** | | [optional] |
10
+ | **member_ids** | **Array&lt;String&gt;** | | [optional] |
11
+ | **name** | **String** | | [optional] |
12
+ | **permission_grants** | [**Array&lt;PermissionGrantRep&gt;**](PermissionGrantRep.md) | | [optional] |
13
+ | **project_keys** | **Array&lt;String&gt;** | | [optional] |
14
+ | **_access** | [**AccessRep**](AccessRep.md) | | [optional] |
15
+ | **_created_at** | **Integer** | | [optional] |
16
+ | **_links** | [**Hash&lt;String, Link&gt;**](Link.md) | | [optional] |
17
+ | **_updated_at** | **Integer** | | [optional] |
18
+ | **_version** | **Integer** | | [optional] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'launchdarkly_api'
24
+
25
+ instance = LaunchDarklyApi::TeamRep.new(
26
+ custom_role_keys: null,
27
+ description: null,
28
+ key: null,
29
+ member_ids: null,
30
+ name: null,
31
+ permission_grants: null,
32
+ project_keys: null,
33
+ _access: null,
34
+ _created_at: null,
35
+ _links: null,
36
+ _updated_at: null,
37
+ _version: null
38
+ )
39
+ ```
40
+
@@ -0,0 +1,365 @@
1
+ # LaunchDarklyApi::TeamsBetaApi
2
+
3
+ All URIs are relative to *https://app.launchdarkly.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**delete_team**](TeamsBetaApi.md#delete_team) | **DELETE** /api/v2/teams/{key} | Delete team by key |
8
+ | [**get_team**](TeamsBetaApi.md#get_team) | **GET** /api/v2/teams/{key} | Get team by key |
9
+ | [**get_teams**](TeamsBetaApi.md#get_teams) | **GET** /api/v2/teams | Get all teams |
10
+ | [**patch_team**](TeamsBetaApi.md#patch_team) | **PATCH** /api/v2/teams/{key} | Patch team by key |
11
+ | [**post_team**](TeamsBetaApi.md#post_team) | **POST** /api/v2/teams | Create team |
12
+
13
+
14
+ ## delete_team
15
+
16
+ > delete_team(key)
17
+
18
+ Delete team by key
19
+
20
+ Delete a team by key.
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'launchdarkly_api'
27
+ # setup authorization
28
+ LaunchDarklyApi.configure do |config|
29
+ # Configure API key authorization: ApiKey
30
+ config.api_key['ApiKey'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
33
+ end
34
+
35
+ api_instance = LaunchDarklyApi::TeamsBetaApi.new
36
+ key = 'key_example' # String | The team key
37
+
38
+ begin
39
+ # Delete team by key
40
+ api_instance.delete_team(key)
41
+ rescue LaunchDarklyApi::ApiError => e
42
+ puts "Error when calling TeamsBetaApi->delete_team: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the delete_team_with_http_info variant
47
+
48
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
49
+
50
+ > <Array(nil, Integer, Hash)> delete_team_with_http_info(key)
51
+
52
+ ```ruby
53
+ begin
54
+ # Delete team by key
55
+ data, status_code, headers = api_instance.delete_team_with_http_info(key)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => nil
59
+ rescue LaunchDarklyApi::ApiError => e
60
+ puts "Error when calling TeamsBetaApi->delete_team_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **key** | **String** | The team key | |
69
+
70
+ ### Return type
71
+
72
+ nil (empty response body)
73
+
74
+ ### Authorization
75
+
76
+ [ApiKey](../README.md#ApiKey)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: Not defined
81
+ - **Accept**: Not defined
82
+
83
+
84
+ ## get_team
85
+
86
+ > <TeamRep> get_team(key)
87
+
88
+ Get team by key
89
+
90
+ Fetch a team by key.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'launchdarkly_api'
97
+ # setup authorization
98
+ LaunchDarklyApi.configure do |config|
99
+ # Configure API key authorization: ApiKey
100
+ config.api_key['ApiKey'] = 'YOUR API KEY'
101
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
103
+ end
104
+
105
+ api_instance = LaunchDarklyApi::TeamsBetaApi.new
106
+ key = 'key_example' # String | The team key
107
+
108
+ begin
109
+ # Get team by key
110
+ result = api_instance.get_team(key)
111
+ p result
112
+ rescue LaunchDarklyApi::ApiError => e
113
+ puts "Error when calling TeamsBetaApi->get_team: #{e}"
114
+ end
115
+ ```
116
+
117
+ #### Using the get_team_with_http_info variant
118
+
119
+ This returns an Array which contains the response data, status code and headers.
120
+
121
+ > <Array(<TeamRep>, Integer, Hash)> get_team_with_http_info(key)
122
+
123
+ ```ruby
124
+ begin
125
+ # Get team by key
126
+ data, status_code, headers = api_instance.get_team_with_http_info(key)
127
+ p status_code # => 2xx
128
+ p headers # => { ... }
129
+ p data # => <TeamRep>
130
+ rescue LaunchDarklyApi::ApiError => e
131
+ puts "Error when calling TeamsBetaApi->get_team_with_http_info: #{e}"
132
+ end
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+ | Name | Type | Description | Notes |
138
+ | ---- | ---- | ----------- | ----- |
139
+ | **key** | **String** | The team key | |
140
+
141
+ ### Return type
142
+
143
+ [**TeamRep**](TeamRep.md)
144
+
145
+ ### Authorization
146
+
147
+ [ApiKey](../README.md#ApiKey)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
154
+
155
+ ## get_teams
156
+
157
+ > <TeamCollectionRep> get_teams
158
+
159
+ Get all teams
160
+
161
+ Fetch all teams.
162
+
163
+ ### Examples
164
+
165
+ ```ruby
166
+ require 'time'
167
+ require 'launchdarkly_api'
168
+ # setup authorization
169
+ LaunchDarklyApi.configure do |config|
170
+ # Configure API key authorization: ApiKey
171
+ config.api_key['ApiKey'] = 'YOUR API KEY'
172
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
173
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
174
+ end
175
+
176
+ api_instance = LaunchDarklyApi::TeamsBetaApi.new
177
+
178
+ begin
179
+ # Get all teams
180
+ result = api_instance.get_teams
181
+ p result
182
+ rescue LaunchDarklyApi::ApiError => e
183
+ puts "Error when calling TeamsBetaApi->get_teams: #{e}"
184
+ end
185
+ ```
186
+
187
+ #### Using the get_teams_with_http_info variant
188
+
189
+ This returns an Array which contains the response data, status code and headers.
190
+
191
+ > <Array(<TeamCollectionRep>, Integer, Hash)> get_teams_with_http_info
192
+
193
+ ```ruby
194
+ begin
195
+ # Get all teams
196
+ data, status_code, headers = api_instance.get_teams_with_http_info
197
+ p status_code # => 2xx
198
+ p headers # => { ... }
199
+ p data # => <TeamCollectionRep>
200
+ rescue LaunchDarklyApi::ApiError => e
201
+ puts "Error when calling TeamsBetaApi->get_teams_with_http_info: #{e}"
202
+ end
203
+ ```
204
+
205
+ ### Parameters
206
+
207
+ This endpoint does not need any parameter.
208
+
209
+ ### Return type
210
+
211
+ [**TeamCollectionRep**](TeamCollectionRep.md)
212
+
213
+ ### Authorization
214
+
215
+ [ApiKey](../README.md#ApiKey)
216
+
217
+ ### HTTP request headers
218
+
219
+ - **Content-Type**: Not defined
220
+ - **Accept**: application/json
221
+
222
+
223
+ ## patch_team
224
+
225
+ > <TeamCollectionRep> patch_team(key, team_patch_input)
226
+
227
+ Patch team by key
228
+
229
+ Perform a partial update to a team. The body of a semantic patch request takes the following three properties: 1. comment `string`: (Optional) A description of the update. 1. environmentKey `string`: (Required) The key of the LaunchDarkly environment. 1. instructions `array`: (Required) The action or list of actions to be performed by the update. Each update action in the list must be an object/hash table with a `kind` property, although depending on the action, other properties may be necessary. Read below for more information on the specific supported semantic patch instructions. If any instruction in the patch encounters an error, the error will be returned and the flag will not be changed. In general, instructions will silently do nothing if the flag is already in the state requested by the patch instruction. They will generally error if a parameter refers to something that does not exist. Other specific error conditions are noted in the instruction descriptions. ### Instructions #### `addCustomRoles` Adds custom roles to the team. Team members will have these custom roles granted to them. ##### Parameters - `values`: list of custom role keys #### `removeCustomRoles` Removes the custom roles on the team. Team members will no longer have these custom roles granted to them. ##### Parameters - `values`: list of custom role keys #### `addMembers` Adds members to the team. ##### Parameters - `values`: list of member IDs #### `removeMembers` Removes members from the team. ##### Parameters - `values`: list of member IDs #### `addPermissionGrants` Adds permission grants to members for the team, allowing them to, for example, act as a team maintainer. A permission grant may have either an `actionSet` or a list of `actions` but not both at the same time. The members do not have to be team members to have a permission grant for the team. ##### Parameters - `actionSet`: name of the action set - `actions`: list of actions - `memberIDs`: list of member IDs #### `removePermissionGrants` Removes permission grants from members for the team. The `actionSet` and `actions` must match an existing permission grant. ##### Parameters - `actionSet`: name of the action set - `actions`: list of actions - `memberIDs`: list of member IDs #### `updateDescription` Updates the team's description. ##### Parameters - `value`: the team's new description #### `updateName` Updates the team's name. ##### Parameters - `value`: the team's new name
230
+
231
+ ### Examples
232
+
233
+ ```ruby
234
+ require 'time'
235
+ require 'launchdarkly_api'
236
+ # setup authorization
237
+ LaunchDarklyApi.configure do |config|
238
+ # Configure API key authorization: ApiKey
239
+ config.api_key['ApiKey'] = 'YOUR API KEY'
240
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
241
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
242
+ end
243
+
244
+ api_instance = LaunchDarklyApi::TeamsBetaApi.new
245
+ key = 'key_example' # String | The team key
246
+ team_patch_input = LaunchDarklyApi::TeamPatchInput.new # TeamPatchInput |
247
+
248
+ begin
249
+ # Patch team by key
250
+ result = api_instance.patch_team(key, team_patch_input)
251
+ p result
252
+ rescue LaunchDarklyApi::ApiError => e
253
+ puts "Error when calling TeamsBetaApi->patch_team: #{e}"
254
+ end
255
+ ```
256
+
257
+ #### Using the patch_team_with_http_info variant
258
+
259
+ This returns an Array which contains the response data, status code and headers.
260
+
261
+ > <Array(<TeamCollectionRep>, Integer, Hash)> patch_team_with_http_info(key, team_patch_input)
262
+
263
+ ```ruby
264
+ begin
265
+ # Patch team by key
266
+ data, status_code, headers = api_instance.patch_team_with_http_info(key, team_patch_input)
267
+ p status_code # => 2xx
268
+ p headers # => { ... }
269
+ p data # => <TeamCollectionRep>
270
+ rescue LaunchDarklyApi::ApiError => e
271
+ puts "Error when calling TeamsBetaApi->patch_team_with_http_info: #{e}"
272
+ end
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ | Name | Type | Description | Notes |
278
+ | ---- | ---- | ----------- | ----- |
279
+ | **key** | **String** | The team key | |
280
+ | **team_patch_input** | [**TeamPatchInput**](TeamPatchInput.md) | | |
281
+
282
+ ### Return type
283
+
284
+ [**TeamCollectionRep**](TeamCollectionRep.md)
285
+
286
+ ### Authorization
287
+
288
+ [ApiKey](../README.md#ApiKey)
289
+
290
+ ### HTTP request headers
291
+
292
+ - **Content-Type**: application/json
293
+ - **Accept**: application/json
294
+
295
+
296
+ ## post_team
297
+
298
+ > <TeamRep> post_team(team_post_input)
299
+
300
+ Create team
301
+
302
+ Create a team.
303
+
304
+ ### Examples
305
+
306
+ ```ruby
307
+ require 'time'
308
+ require 'launchdarkly_api'
309
+ # setup authorization
310
+ LaunchDarklyApi.configure do |config|
311
+ # Configure API key authorization: ApiKey
312
+ config.api_key['ApiKey'] = 'YOUR API KEY'
313
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
314
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
315
+ end
316
+
317
+ api_instance = LaunchDarklyApi::TeamsBetaApi.new
318
+ team_post_input = LaunchDarklyApi::TeamPostInput.new # TeamPostInput |
319
+
320
+ begin
321
+ # Create team
322
+ result = api_instance.post_team(team_post_input)
323
+ p result
324
+ rescue LaunchDarklyApi::ApiError => e
325
+ puts "Error when calling TeamsBetaApi->post_team: #{e}"
326
+ end
327
+ ```
328
+
329
+ #### Using the post_team_with_http_info variant
330
+
331
+ This returns an Array which contains the response data, status code and headers.
332
+
333
+ > <Array(<TeamRep>, Integer, Hash)> post_team_with_http_info(team_post_input)
334
+
335
+ ```ruby
336
+ begin
337
+ # Create team
338
+ data, status_code, headers = api_instance.post_team_with_http_info(team_post_input)
339
+ p status_code # => 2xx
340
+ p headers # => { ... }
341
+ p data # => <TeamRep>
342
+ rescue LaunchDarklyApi::ApiError => e
343
+ puts "Error when calling TeamsBetaApi->post_team_with_http_info: #{e}"
344
+ end
345
+ ```
346
+
347
+ ### Parameters
348
+
349
+ | Name | Type | Description | Notes |
350
+ | ---- | ---- | ----------- | ----- |
351
+ | **team_post_input** | [**TeamPostInput**](TeamPostInput.md) | | |
352
+
353
+ ### Return type
354
+
355
+ [**TeamRep**](TeamRep.md)
356
+
357
+ ### Authorization
358
+
359
+ [ApiKey](../README.md#ApiKey)
360
+
361
+ ### HTTP request headers
362
+
363
+ - **Content-Type**: application/json
364
+ - **Accept**: application/json
365
+