launchdarkly_api 2.0.10 → 2.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +153 -151
  3. data/docs/AuditLogApi.md +7 -7
  4. data/docs/{Action.md → CopyActions.md} +1 -1
  5. data/docs/CustomProperty.md +1 -1
  6. data/docs/CustomRole.md +1 -1
  7. data/docs/CustomRoleBody.md +1 -1
  8. data/docs/CustomRoles.md +1 -1
  9. data/docs/CustomRolesApi.md +7 -6
  10. data/docs/CustomerMetricsApi.md +511 -0
  11. data/docs/DataExportDestinationsApi.md +293 -0
  12. data/docs/Destination.md +14 -0
  13. data/docs/DestinationAmazonKinesis.md +10 -0
  14. data/docs/DestinationBody.md +11 -0
  15. data/docs/DestinationGooglePubSub.md +9 -0
  16. data/docs/DestinationMParticle.md +11 -0
  17. data/docs/{CustomRoleKeyOrId.md → DestinationSegment.md} +2 -1
  18. data/docs/Destinations.md +9 -0
  19. data/docs/Environment.md +2 -0
  20. data/docs/EnvironmentPost.md +5 -0
  21. data/docs/EnvironmentsApi.md +11 -10
  22. data/docs/EvaluationUsageError.md +9 -0
  23. data/docs/Events.md +8 -0
  24. data/docs/FeatureFlag.md +4 -1
  25. data/docs/FeatureFlagConfig.md +0 -1
  26. data/docs/FeatureFlagCopyBody.md +12 -0
  27. data/docs/FeatureFlagCopyObject.md +9 -0
  28. data/docs/FeatureFlagStatus.md +1 -1
  29. data/docs/FeatureFlagStatusAcrossEnvironments.md +10 -0
  30. data/docs/FeatureFlagStatusForQueriedEnvironment.md +10 -0
  31. data/docs/FeatureFlagsApi.md +136 -17
  32. data/docs/MAU.md +10 -0
  33. data/docs/{Actions.md → MAUMetadata.md} +1 -1
  34. data/docs/MAUbyCategory.md +10 -0
  35. data/docs/Member.md +2 -0
  36. data/docs/Members.md +1 -1
  37. data/docs/MembersBody.md +1 -1
  38. data/docs/Policy.md +4 -2
  39. data/docs/ProjectBody.md +2 -0
  40. data/docs/ProjectsApi.md +7 -6
  41. data/docs/Rollout.md +1 -0
  42. data/docs/Statement.md +4 -4
  43. data/docs/Stream.md +10 -0
  44. data/docs/StreamBySDK.md +10 -0
  45. data/docs/StreamBySDKLinks.md +9 -0
  46. data/docs/StreamBySDKLinksMetadata.md +10 -0
  47. data/docs/StreamLinks.md +10 -0
  48. data/docs/StreamSDKVersion.md +9 -0
  49. data/docs/StreamSDKVersionData.md +9 -0
  50. data/docs/StreamUsageError.md +9 -0
  51. data/docs/StreamUsageLinks.md +10 -0
  52. data/docs/StreamUsageMetadata.md +10 -0
  53. data/docs/StreamUsageSeries.md +9 -0
  54. data/docs/Streams.md +8 -0
  55. data/docs/TeamMembersApi.md +7 -6
  56. data/docs/Usage.md +9 -0
  57. data/docs/{CustomProperties.md → UsageError.md} +2 -1
  58. data/docs/UsageLinks.md +10 -0
  59. data/docs/UserSegmentsApi.md +18 -17
  60. data/docs/UserSettingsApi.md +11 -11
  61. data/docs/UsersApi.md +15 -15
  62. data/docs/Webhook.md +1 -0
  63. data/docs/WebhookBody.md +2 -0
  64. data/docs/WebhooksApi.md +7 -6
  65. data/launchdarkly_api.gemspec +5 -6
  66. data/lib/launchdarkly_api/api/audit_log_api.rb +13 -19
  67. data/lib/launchdarkly_api/api/custom_roles_api.rb +23 -37
  68. data/lib/launchdarkly_api/api/customer_metrics_api.rb +519 -0
  69. data/lib/launchdarkly_api/api/data_export_destinations_api.rb +330 -0
  70. data/lib/launchdarkly_api/api/environments_api.rb +20 -31
  71. data/lib/launchdarkly_api/api/feature_flags_api.rb +150 -43
  72. data/lib/launchdarkly_api/api/projects_api.rb +23 -37
  73. data/lib/launchdarkly_api/api/root_api.rb +6 -9
  74. data/lib/launchdarkly_api/api/team_members_api.rb +23 -37
  75. data/lib/launchdarkly_api/api/user_segments_api.rb +23 -37
  76. data/lib/launchdarkly_api/api/user_settings_api.rb +12 -21
  77. data/lib/launchdarkly_api/api/users_api.rb +17 -29
  78. data/lib/launchdarkly_api/api/webhooks_api.rb +23 -37
  79. data/lib/launchdarkly_api/api_client.rb +10 -10
  80. data/lib/launchdarkly_api/api_error.rb +2 -2
  81. data/lib/launchdarkly_api/configuration.rb +3 -3
  82. data/lib/launchdarkly_api/models/audit_log_entries.rb +7 -12
  83. data/lib/launchdarkly_api/models/audit_log_entry.rb +7 -12
  84. data/lib/launchdarkly_api/models/audit_log_entry_target.rb +7 -12
  85. data/lib/launchdarkly_api/models/clause.rb +7 -12
  86. data/lib/launchdarkly_api/models/copy_actions.rb +34 -0
  87. data/lib/launchdarkly_api/models/custom_property.rb +13 -14
  88. data/lib/launchdarkly_api/models/custom_property_values.rb +7 -11
  89. data/lib/launchdarkly_api/models/custom_role.rb +9 -13
  90. data/lib/launchdarkly_api/models/custom_role_body.rb +12 -16
  91. data/lib/launchdarkly_api/models/custom_roles.rb +11 -14
  92. data/lib/launchdarkly_api/models/destination.rb +276 -0
  93. data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +201 -0
  94. data/lib/launchdarkly_api/models/destination_body.rb +263 -0
  95. data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +192 -0
  96. data/lib/launchdarkly_api/models/destination_m_particle.rb +210 -0
  97. data/lib/launchdarkly_api/models/destination_segment.rb +183 -0
  98. data/lib/launchdarkly_api/models/destinations.rb +194 -0
  99. data/lib/launchdarkly_api/models/environment.rb +29 -14
  100. data/lib/launchdarkly_api/models/environment_post.rb +64 -17
  101. data/lib/launchdarkly_api/models/evaluation_usage_error.rb +192 -0
  102. data/lib/launchdarkly_api/models/{action.rb → events.rb} +17 -13
  103. data/lib/launchdarkly_api/models/fallthrough.rb +7 -12
  104. data/lib/launchdarkly_api/models/feature_flag.rb +46 -16
  105. data/lib/launchdarkly_api/models/feature_flag_body.rb +10 -15
  106. data/lib/launchdarkly_api/models/feature_flag_config.rb +8 -24
  107. data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +226 -0
  108. data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +199 -0
  109. data/lib/launchdarkly_api/models/feature_flag_status.rb +22 -26
  110. data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +203 -0
  111. data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +236 -0
  112. data/lib/launchdarkly_api/models/feature_flag_statuses.rb +7 -12
  113. data/lib/launchdarkly_api/models/feature_flags.rb +7 -12
  114. data/lib/launchdarkly_api/models/id.rb +7 -11
  115. data/lib/launchdarkly_api/models/link.rb +7 -12
  116. data/lib/launchdarkly_api/models/links.rb +7 -12
  117. data/lib/launchdarkly_api/models/ma_uby_category.rb +205 -0
  118. data/lib/launchdarkly_api/models/mau.rb +205 -0
  119. data/lib/launchdarkly_api/models/{actions.rb → mau_metadata.rb} +8 -13
  120. data/lib/launchdarkly_api/models/member.rb +26 -13
  121. data/lib/launchdarkly_api/models/members.rb +11 -14
  122. data/lib/launchdarkly_api/models/members_body.rb +9 -14
  123. data/lib/launchdarkly_api/models/patch_comment.rb +7 -12
  124. data/lib/launchdarkly_api/models/patch_operation.rb +10 -15
  125. data/lib/launchdarkly_api/models/policy.rb +40 -17
  126. data/lib/launchdarkly_api/models/prerequisite.rb +7 -12
  127. data/lib/launchdarkly_api/models/project.rb +7 -12
  128. data/lib/launchdarkly_api/models/project_body.rb +30 -15
  129. data/lib/launchdarkly_api/models/projects.rb +7 -12
  130. data/lib/launchdarkly_api/models/role.rb +7 -8
  131. data/lib/launchdarkly_api/models/rollout.rb +17 -13
  132. data/lib/launchdarkly_api/models/rule.rb +7 -12
  133. data/lib/launchdarkly_api/models/statement.rb +35 -31
  134. data/lib/launchdarkly_api/models/statements.rb +7 -12
  135. data/lib/launchdarkly_api/models/stream.rb +205 -0
  136. data/lib/launchdarkly_api/models/stream_by_sdk.rb +205 -0
  137. data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +192 -0
  138. data/lib/launchdarkly_api/models/{resources.rb → stream_by_sdk_links_metadata.rb} +34 -12
  139. data/lib/launchdarkly_api/models/stream_links.rb +204 -0
  140. data/lib/launchdarkly_api/models/stream_sdk_version.rb +194 -0
  141. data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +194 -0
  142. data/lib/launchdarkly_api/models/stream_usage_error.rb +192 -0
  143. data/lib/launchdarkly_api/models/stream_usage_links.rb +204 -0
  144. data/lib/launchdarkly_api/models/stream_usage_metadata.rb +203 -0
  145. data/lib/launchdarkly_api/models/stream_usage_series.rb +194 -0
  146. data/lib/launchdarkly_api/models/{custom_properties.rb → streams.rb} +17 -13
  147. data/lib/launchdarkly_api/models/target.rb +7 -12
  148. data/lib/launchdarkly_api/models/usage.rb +194 -0
  149. data/lib/launchdarkly_api/models/{custom_role_key_or_id.rb → usage_error.rb} +17 -13
  150. data/lib/launchdarkly_api/models/usage_links.rb +204 -0
  151. data/lib/launchdarkly_api/models/user.rb +7 -12
  152. data/lib/launchdarkly_api/models/user_flag_setting.rb +7 -12
  153. data/lib/launchdarkly_api/models/user_flag_settings.rb +7 -12
  154. data/lib/launchdarkly_api/models/user_record.rb +7 -12
  155. data/lib/launchdarkly_api/models/user_segment.rb +10 -15
  156. data/lib/launchdarkly_api/models/user_segment_body.rb +9 -14
  157. data/lib/launchdarkly_api/models/user_segment_rule.rb +7 -12
  158. data/lib/launchdarkly_api/models/user_segments.rb +7 -12
  159. data/lib/launchdarkly_api/models/user_settings_body.rb +7 -12
  160. data/lib/launchdarkly_api/models/users.rb +7 -12
  161. data/lib/launchdarkly_api/models/variation.rb +8 -13
  162. data/lib/launchdarkly_api/models/webhook.rb +17 -13
  163. data/lib/launchdarkly_api/models/webhook_body.rb +33 -17
  164. data/lib/launchdarkly_api/models/webhooks.rb +7 -12
  165. data/lib/launchdarkly_api/models/weighted_variation.rb +7 -12
  166. data/lib/launchdarkly_api/version.rb +3 -3
  167. data/lib/launchdarkly_api.rb +36 -8
  168. data/openapi.yml +1004 -115
  169. data/spec/api/audit_log_api_spec.rb +6 -8
  170. data/spec/api/custom_roles_api_spec.rb +8 -13
  171. data/spec/api/customer_metrics_api_spec.rb +141 -0
  172. data/spec/api/data_export_destinations_api_spec.rb +98 -0
  173. data/spec/api/environments_api_spec.rb +7 -11
  174. data/spec/api/feature_flags_api_spec.rb +36 -16
  175. data/spec/api/projects_api_spec.rb +8 -13
  176. data/spec/api/root_api_spec.rb +3 -4
  177. data/spec/api/team_members_api_spec.rb +8 -13
  178. data/spec/api/user_segments_api_spec.rb +8 -13
  179. data/spec/api/user_settings_api_spec.rb +5 -8
  180. data/spec/api/users_api_spec.rb +7 -11
  181. data/spec/api/webhooks_api_spec.rb +8 -13
  182. data/spec/api_client_spec.rb +36 -36
  183. data/spec/configuration_spec.rb +10 -10
  184. data/spec/models/audit_log_entries_spec.rb +4 -5
  185. data/spec/models/audit_log_entry_spec.rb +14 -15
  186. data/spec/models/audit_log_entry_target_spec.rb +5 -6
  187. data/spec/models/clause_spec.rb +6 -7
  188. data/spec/models/{action_spec.rb → copy_actions_spec.rb} +8 -9
  189. data/spec/models/custom_property_spec.rb +4 -5
  190. data/spec/models/custom_property_values_spec.rb +2 -3
  191. data/spec/models/custom_role_body_spec.rb +6 -7
  192. data/spec/models/custom_role_spec.rb +8 -9
  193. data/spec/models/custom_roles_spec.rb +4 -5
  194. data/spec/models/destination_amazon_kinesis_spec.rb +53 -0
  195. data/spec/models/destination_body_spec.rb +63 -0
  196. data/spec/models/destination_google_pub_sub_spec.rb +47 -0
  197. data/spec/models/destination_m_particle_spec.rb +59 -0
  198. data/spec/models/destination_segment_spec.rb +41 -0
  199. data/spec/models/destination_spec.rb +81 -0
  200. data/spec/models/destinations_spec.rb +47 -0
  201. data/spec/models/environment_post_spec.rb +36 -7
  202. data/spec/models/environment_spec.rb +25 -14
  203. data/spec/models/evaluation_usage_error_spec.rb +47 -0
  204. data/spec/models/events_spec.rb +41 -0
  205. data/spec/models/fallthrough_spec.rb +4 -5
  206. data/spec/models/feature_flag_body_spec.rb +9 -10
  207. data/spec/models/feature_flag_config_spec.rb +14 -21
  208. data/spec/models/feature_flag_copy_body_spec.rb +65 -0
  209. data/spec/models/feature_flag_copy_object_spec.rb +47 -0
  210. data/spec/models/feature_flag_spec.rb +35 -18
  211. data/spec/models/feature_flag_status_across_environments_spec.rb +53 -0
  212. data/spec/models/feature_flag_status_for_queried_environment_spec.rb +57 -0
  213. data/spec/models/feature_flag_status_spec.rb +14 -15
  214. data/spec/models/feature_flag_statuses_spec.rb +4 -5
  215. data/spec/models/feature_flags_spec.rb +4 -5
  216. data/spec/models/id_spec.rb +2 -3
  217. data/spec/models/link_spec.rb +4 -5
  218. data/spec/models/links_spec.rb +4 -5
  219. data/spec/models/ma_uby_category_spec.rb +53 -0
  220. data/spec/models/{actions_spec.rb → mau_metadata_spec.rb} +8 -9
  221. data/spec/models/mau_spec.rb +53 -0
  222. data/spec/models/member_spec.rb +21 -10
  223. data/spec/models/members_body_spec.rb +8 -9
  224. data/spec/models/members_spec.rb +4 -5
  225. data/spec/models/patch_comment_spec.rb +4 -5
  226. data/spec/models/patch_operation_spec.rb +5 -6
  227. data/spec/models/policy_spec.rb +17 -6
  228. data/spec/models/prerequisite_spec.rb +4 -5
  229. data/spec/models/project_body_spec.rb +17 -6
  230. data/spec/models/project_spec.rb +8 -9
  231. data/spec/models/projects_spec.rb +4 -5
  232. data/spec/models/role_spec.rb +2 -3
  233. data/spec/models/rollout_spec.rb +9 -4
  234. data/spec/models/rule_spec.rb +6 -7
  235. data/spec/models/statement_spec.rb +13 -14
  236. data/spec/models/statements_spec.rb +2 -3
  237. data/spec/models/stream_by_sdk_links_metadata_spec.rb +53 -0
  238. data/spec/models/stream_by_sdk_links_spec.rb +47 -0
  239. data/spec/models/stream_by_sdk_spec.rb +53 -0
  240. data/spec/models/stream_links_spec.rb +53 -0
  241. data/spec/models/stream_sdk_version_data_spec.rb +47 -0
  242. data/spec/models/stream_sdk_version_spec.rb +47 -0
  243. data/spec/models/stream_spec.rb +53 -0
  244. data/spec/models/stream_usage_error_spec.rb +47 -0
  245. data/spec/models/stream_usage_links_spec.rb +53 -0
  246. data/spec/models/stream_usage_metadata_spec.rb +53 -0
  247. data/spec/models/stream_usage_series_spec.rb +47 -0
  248. data/spec/models/streams_spec.rb +41 -0
  249. data/spec/models/target_spec.rb +4 -5
  250. data/spec/models/usage_error_spec.rb +41 -0
  251. data/spec/models/usage_links_spec.rb +53 -0
  252. data/spec/models/usage_spec.rb +47 -0
  253. data/spec/models/user_flag_setting_spec.rb +5 -6
  254. data/spec/models/user_flag_settings_spec.rb +4 -5
  255. data/spec/models/user_record_spec.rb +7 -8
  256. data/spec/models/user_segment_body_spec.rb +6 -7
  257. data/spec/models/user_segment_rule_spec.rb +5 -6
  258. data/spec/models/user_segment_spec.rb +12 -13
  259. data/spec/models/user_segments_spec.rb +4 -5
  260. data/spec/models/user_settings_body_spec.rb +3 -4
  261. data/spec/models/user_spec.rb +13 -14
  262. data/spec/models/users_spec.rb +5 -6
  263. data/spec/models/variation_spec.rb +5 -6
  264. data/spec/models/webhook_body_spec.rb +19 -8
  265. data/spec/models/webhook_spec.rb +15 -10
  266. data/spec/models/webhooks_spec.rb +4 -5
  267. data/spec/models/weighted_variation_spec.rb +4 -5
  268. data/spec/spec_helper.rb +2 -2
  269. metadata +187 -74
  270. data/docs/Resource.md +0 -7
  271. data/docs/Resources.md +0 -7
  272. data/lib/launchdarkly_api/models/resource.rb +0 -179
  273. data/spec/models/custom_properties_spec.rb +0 -36
  274. data/spec/models/custom_role_key_or_id_spec.rb +0 -36
  275. data/spec/models/resource_spec.rb +0 -36
  276. data/spec/models/resources_spec.rb +0 -36
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
@@ -34,28 +34,26 @@ describe 'AuditLogApi' do
34
34
 
35
35
  # unit tests for get_audit_log_entries
36
36
  # Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
37
- #
38
37
  # @param [Hash] opts the optional parameters
39
- # @option opts [Float] :before A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have before this timestamp.
40
- # @option opts [Float] :after A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
38
+ # @option opts [Integer] :before A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have before this timestamp.
39
+ # @option opts [Integer] :after A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
41
40
  # @option opts [String] :q Text to search for. You can search for the full or partial name of the resource involved or fullpartial email address of the member who made the change.
42
41
  # @option opts [Float] :limit A limit on the number of audit log entries to be returned, between 1 and 20.
43
42
  # @option opts [String] :spec A resource specifier, allowing you to filter audit log listings by resource.
44
43
  # @return [AuditLogEntries]
45
44
  describe 'get_audit_log_entries test' do
46
- it "should work" do
45
+ it 'should work' do
47
46
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
47
  end
49
48
  end
50
49
 
51
50
  # unit tests for get_audit_log_entry
52
51
  # Use this endpoint to fetch a single audit log entry by its resouce ID.
53
- #
54
52
  # @param resource_id The resource ID.
55
53
  # @param [Hash] opts the optional parameters
56
54
  # @return [AuditLogEntry]
57
55
  describe 'get_audit_log_entry test' do
58
- it "should work" do
56
+ it 'should work' do
59
57
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
58
  end
61
59
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
@@ -34,60 +34,55 @@ describe 'CustomRolesApi' do
34
34
 
35
35
  # unit tests for delete_custom_role
36
36
  # Delete a custom role by key.
37
- #
38
37
  # @param custom_role_key The custom role key.
39
38
  # @param [Hash] opts the optional parameters
40
39
  # @return [nil]
41
40
  describe 'delete_custom_role test' do
42
- it "should work" do
41
+ it 'should work' do
43
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
43
  end
45
44
  end
46
45
 
47
46
  # unit tests for get_custom_role
48
47
  # Get one custom role by key.
49
- #
50
48
  # @param custom_role_key The custom role key.
51
49
  # @param [Hash] opts the optional parameters
52
50
  # @return [CustomRole]
53
51
  describe 'get_custom_role test' do
54
- it "should work" do
52
+ it 'should work' do
55
53
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
54
  end
57
55
  end
58
56
 
59
57
  # unit tests for get_custom_roles
60
58
  # Return a complete list of custom roles.
61
- #
62
59
  # @param [Hash] opts the optional parameters
63
60
  # @return [CustomRoles]
64
61
  describe 'get_custom_roles test' do
65
- it "should work" do
62
+ it 'should work' do
66
63
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
64
  end
68
65
  end
69
66
 
70
67
  # unit tests for patch_custom_role
71
68
  # Modify a custom role by key.
72
- #
73
69
  # @param custom_role_key The custom role key.
74
70
  # @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
75
71
  # @param [Hash] opts the optional parameters
76
72
  # @return [CustomRole]
77
73
  describe 'patch_custom_role test' do
78
- it "should work" do
74
+ it 'should work' do
79
75
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
76
  end
81
77
  end
82
78
 
83
79
  # unit tests for post_custom_role
84
80
  # Create a new custom role.
85
- #
86
81
  # @param custom_role_body New role or roles to create.
87
82
  # @param [Hash] opts the optional parameters
88
- # @return [nil]
83
+ # @return [CustomRole]
89
84
  describe 'post_custom_role test' do
90
- it "should work" do
85
+ it 'should work' do
91
86
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
87
  end
93
88
  end
@@ -0,0 +1,141 @@
1
+ =begin
2
+ #LaunchDarkly REST API
3
+
4
+ #Build custom integrations with the LaunchDarkly REST API
5
+
6
+ OpenAPI spec version: 2.0.27
7
+ Contact: support@launchdarkly.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.8
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for LaunchDarklyApi::CustomerMetricsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'CustomerMetricsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = LaunchDarklyApi::CustomerMetricsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CustomerMetricsApi' do
30
+ it 'should create an instance of CustomerMetricsApi' do
31
+ expect(@instance).to be_instance_of(LaunchDarklyApi::CustomerMetricsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_evaluations
36
+ # Get events usage by event id and the feature flag key.
37
+ # @param env_id The environment id for the flag evaluations in question.
38
+ # @param flag_key The key of the flag we want metrics for.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [StreamSDKVersion]
41
+ describe 'get_evaluations test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for get_event
48
+ # Get events usage by event type.
49
+ # @param type The type of event we would like to track.
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [StreamSDKVersion]
52
+ describe 'get_event test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for get_events
59
+ # Get events usage endpoints.
60
+ # @param [Hash] opts the optional parameters
61
+ # @return [Events]
62
+ describe 'get_events test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ # unit tests for get_mau
69
+ # Get monthly active user data.
70
+ # @param [Hash] opts the optional parameters
71
+ # @return [MAU]
72
+ describe 'get_mau test' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
75
+ end
76
+ end
77
+
78
+ # unit tests for get_mau_by_category
79
+ # Get monthly active user data by category.
80
+ # @param [Hash] opts the optional parameters
81
+ # @return [MAUbyCategory]
82
+ describe 'get_mau_by_category test' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ # unit tests for get_stream
89
+ # Get a stream endpoint and return timeseries data.
90
+ # @param source The source of where the stream comes from.
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [Stream]
93
+ describe 'get_stream test' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
+ end
97
+ end
98
+
99
+ # unit tests for get_stream_by_sdk
100
+ # Get a stream timeseries data by source show sdk version metadata.
101
+ # @param source The source of where the stream comes from.
102
+ # @param [Hash] opts the optional parameters
103
+ # @return [StreamBySDK]
104
+ describe 'get_stream_by_sdk test' do
105
+ it 'should work' do
106
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
+ end
108
+ end
109
+
110
+ # unit tests for get_stream_sdk_version
111
+ # Get a stream timeseries data by source and show all sdk version associated.
112
+ # @param source The source of where the stream comes from.
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [StreamSDKVersion]
115
+ describe 'get_stream_sdk_version test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ # unit tests for get_streams
122
+ # Returns a list of all streams.
123
+ # @param [Hash] opts the optional parameters
124
+ # @return [Streams]
125
+ describe 'get_streams test' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
+ end
129
+ end
130
+
131
+ # unit tests for get_usage
132
+ # Returns of the usage endpoints available.
133
+ # @param [Hash] opts the optional parameters
134
+ # @return [Usage]
135
+ describe 'get_usage test' do
136
+ it 'should work' do
137
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
138
+ end
139
+ end
140
+
141
+ end
@@ -0,0 +1,98 @@
1
+ =begin
2
+ #LaunchDarkly REST API
3
+
4
+ #Build custom integrations with the LaunchDarkly REST API
5
+
6
+ OpenAPI spec version: 2.0.27
7
+ Contact: support@launchdarkly.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.8
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for LaunchDarklyApi::DataExportDestinationsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'DataExportDestinationsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = LaunchDarklyApi::DataExportDestinationsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DataExportDestinationsApi' do
30
+ it 'should create an instance of DataExportDestinationsApi' do
31
+ expect(@instance).to be_instance_of(LaunchDarklyApi::DataExportDestinationsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for delete_destination
36
+ # Get a single data export destination by ID
37
+ # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
38
+ # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
39
+ # @param destination_id The data export destination ID.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'delete_destination test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ # unit tests for get_destination
49
+ # Get a single data export destination by ID
50
+ # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
51
+ # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
52
+ # @param destination_id The data export destination ID.
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [Destination]
55
+ describe 'get_destination test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for get_destinations
62
+ # Returns a list of all data export destinations.
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [Destinations]
65
+ describe 'get_destinations test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for patch_destination
72
+ # Perform a partial update to a data export destination.
73
+ # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
74
+ # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
75
+ # @param destination_id The data export destination ID.
76
+ # @param patch_only Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' Feature flag patches also support JSON Merge Patch format. 'https://tools.ietf.org/html/rfc7386' The addition of comments is also supported.
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [Destination]
79
+ describe 'patch_destination test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ # unit tests for post_destination
86
+ # Create a new data export destination
87
+ # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
88
+ # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
89
+ # @param destination_body Create a new data export destination.
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [Destination]
92
+ describe 'post_destination test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
@@ -34,53 +34,49 @@ describe 'EnvironmentsApi' do
34
34
 
35
35
  # unit tests for delete_environment
36
36
  # Delete an environment in a specific project.
37
- #
38
37
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
39
38
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
40
39
  # @param [Hash] opts the optional parameters
41
40
  # @return [nil]
42
41
  describe 'delete_environment test' do
43
- it "should work" do
42
+ it 'should work' do
44
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
44
  end
46
45
  end
47
46
 
48
47
  # unit tests for get_environment
49
48
  # Get an environment given a project and key.
50
- #
51
49
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
52
50
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
53
51
  # @param [Hash] opts the optional parameters
54
52
  # @return [Environment]
55
53
  describe 'get_environment test' do
56
- it "should work" do
54
+ it 'should work' do
57
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
56
  end
59
57
  end
60
58
 
61
59
  # unit tests for patch_environment
62
60
  # Modify an environment by ID.
63
- #
64
61
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
65
62
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
66
63
  # @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
67
64
  # @param [Hash] opts the optional parameters
68
65
  # @return [Environment]
69
66
  describe 'patch_environment test' do
70
- it "should work" do
67
+ it 'should work' do
71
68
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
69
  end
73
70
  end
74
71
 
75
72
  # unit tests for post_environment
76
73
  # Create a new environment in a specified project with a given name, key, and swatch color.
77
- #
78
74
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
79
75
  # @param environment_body New environment.
80
76
  # @param [Hash] opts the optional parameters
81
- # @return [nil]
77
+ # @return [Environment]
82
78
  describe 'post_environment test' do
83
- it "should work" do
79
+ it 'should work' do
84
80
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
81
  end
86
82
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
@@ -32,98 +32,118 @@ describe 'FeatureFlagsApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for copy_feature_flag
36
+ # Copies the feature flag configuration from one environment to the same feature flag in another environment.
37
+ # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
38
+ # @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
39
+ # @param feature_flag_copy_body Copy feature flag configurations between environments.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [FeatureFlag]
42
+ describe 'copy_feature_flag test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
35
48
  # unit tests for delete_feature_flag
36
49
  # Delete a feature flag in all environments. Be careful-- only delete feature flags that are no longer being used by your application.
37
- #
38
50
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
39
51
  # @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
40
52
  # @param [Hash] opts the optional parameters
41
53
  # @return [nil]
42
54
  describe 'delete_feature_flag test' do
43
- it "should work" do
55
+ it 'should work' do
44
56
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
57
  end
46
58
  end
47
59
 
48
60
  # unit tests for get_feature_flag
49
61
  # Get a single feature flag by key.
50
- #
51
62
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
52
63
  # @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
53
64
  # @param [Hash] opts the optional parameters
54
65
  # @option opts [String] :env 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.
55
66
  # @return [FeatureFlag]
56
67
  describe 'get_feature_flag test' do
57
- it "should work" do
68
+ it 'should work' do
58
69
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
70
  end
60
71
  end
61
72
 
62
73
  # unit tests for get_feature_flag_status
63
74
  # Get the status for a particular feature flag.
64
- #
65
75
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
66
76
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
67
77
  # @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
68
78
  # @param [Hash] opts the optional parameters
69
79
  # @return [FeatureFlagStatus]
70
80
  describe 'get_feature_flag_status test' do
71
- it "should work" do
81
+ it 'should work' do
82
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
+ end
84
+ end
85
+
86
+ # unit tests for get_feature_flag_status_across_environments
87
+ # Get the status for a particular feature flag across environments
88
+ # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
89
+ # @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [FeatureFlagStatusAcrossEnvironments]
92
+ describe 'get_feature_flag_status_across_environments test' do
93
+ it 'should work' do
72
94
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
95
  end
74
96
  end
75
97
 
76
98
  # unit tests for get_feature_flag_statuses
77
99
  # 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.
78
- #
79
100
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
80
101
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
81
102
  # @param [Hash] opts the optional parameters
82
103
  # @return [FeatureFlagStatuses]
83
104
  describe 'get_feature_flag_statuses test' do
84
- it "should work" do
105
+ it 'should work' do
85
106
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
107
  end
87
108
  end
88
109
 
89
110
  # unit tests for get_feature_flags
90
111
  # Get a list of all features in the given project.
91
- #
92
112
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
93
113
  # @param [Hash] opts the optional parameters
94
114
  # @option opts [String] :env 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.
115
+ # @option opts [BOOLEAN] :summary By default in api version >= 1, flags will _not_ include their list of prerequisites, targets or rules. Set summary=0 to include these fields for each flag returned.
116
+ # @option opts [BOOLEAN] :archived When set to 1, archived flags will be included in the list of flags returned. By default, archived flags are not included in the list of flags.
95
117
  # @option opts [String] :tag Filter by tag. A tag can be used to group flags across projects.
96
118
  # @return [FeatureFlags]
97
119
  describe 'get_feature_flags test' do
98
- it "should work" do
120
+ it 'should work' do
99
121
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
122
  end
101
123
  end
102
124
 
103
125
  # unit tests for patch_feature_flag
104
126
  # Perform a partial update to a feature.
105
- #
106
127
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
107
128
  # @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
108
129
  # @param patch_comment Requires a JSON Patch representation of the desired changes to the project, and an optional comment. 'http://jsonpatch.com/' Feature flag patches also support JSON Merge Patch format. 'https://tools.ietf.org/html/rfc7386' The addition of comments is also supported.
109
130
  # @param [Hash] opts the optional parameters
110
131
  # @return [FeatureFlag]
111
132
  describe 'patch_feature_flag test' do
112
- it "should work" do
133
+ it 'should work' do
113
134
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
114
135
  end
115
136
  end
116
137
 
117
138
  # unit tests for post_feature_flag
118
139
  # Creates a new feature flag.
119
- #
120
140
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
121
141
  # @param feature_flag_body Create a new feature flag.
122
142
  # @param [Hash] opts the optional parameters
123
143
  # @option opts [String] :clone The key of the feature flag to be cloned. The key identifies the flag in your code. For example, setting clone=flagKey will copy the full targeting configuration for all environments (including on/off state) from the original flag to the new flag.
124
144
  # @return [FeatureFlag]
125
145
  describe 'post_feature_flag test' do
126
- it "should work" do
146
+ it 'should work' do
127
147
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
148
  end
129
149
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
@@ -34,60 +34,55 @@ describe 'ProjectsApi' do
34
34
 
35
35
  # unit tests for delete_project
36
36
  # Delete a project by key. Caution-- deleting a project will delete all associated environments and feature flags. You cannot delete the last project in an account.
37
- #
38
37
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
39
38
  # @param [Hash] opts the optional parameters
40
39
  # @return [nil]
41
40
  describe 'delete_project test' do
42
- it "should work" do
41
+ it 'should work' do
43
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
43
  end
45
44
  end
46
45
 
47
46
  # unit tests for get_project
48
47
  # Fetch a single project by key.
49
- #
50
48
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
51
49
  # @param [Hash] opts the optional parameters
52
50
  # @return [Project]
53
51
  describe 'get_project test' do
54
- it "should work" do
52
+ it 'should work' do
55
53
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
54
  end
57
55
  end
58
56
 
59
57
  # unit tests for get_projects
60
58
  # Returns a list of all projects in the account.
61
- #
62
59
  # @param [Hash] opts the optional parameters
63
60
  # @return [Projects]
64
61
  describe 'get_projects test' do
65
- it "should work" do
62
+ it 'should work' do
66
63
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
64
  end
68
65
  end
69
66
 
70
67
  # unit tests for patch_project
71
68
  # Modify a project by ID.
72
- #
73
69
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
74
70
  # @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
75
71
  # @param [Hash] opts the optional parameters
76
72
  # @return [Project]
77
73
  describe 'patch_project test' do
78
- it "should work" do
74
+ it 'should work' do
79
75
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
76
  end
81
77
  end
82
78
 
83
79
  # unit tests for post_project
84
80
  # Create a new project with the given key and name.
85
- #
86
81
  # @param project_body Project keys must be unique within an account.
87
82
  # @param [Hash] opts the optional parameters
88
- # @return [nil]
83
+ # @return [Project]
89
84
  describe 'post_project test' do
90
- it "should work" do
85
+ it 'should work' do
91
86
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
87
  end
93
88
  end