launchdarkly_api 2.0.10 → 2.0.27

Sign up to get free protection for your applications and to get access to all the features.
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,14 +3,14 @@
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
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module LaunchDarklyApi
16
16
  class RootApi
@@ -19,26 +19,23 @@ module LaunchDarklyApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- #
24
22
  # You can issue a GET request to the root resource to find all of the resource categories supported by the API.
25
23
  # @param [Hash] opts the optional parameters
26
24
  # @return [Links]
27
25
  def get_root(opts = {})
28
26
  data, _status_code, _headers = get_root_with_http_info(opts)
29
- return data
27
+ data
30
28
  end
31
29
 
32
- #
33
30
  # You can issue a GET request to the root resource to find all of the resource categories supported by the API.
34
31
  # @param [Hash] opts the optional parameters
35
32
  # @return [Array<(Links, Fixnum, Hash)>] Links data, response status code and response headers
36
33
  def get_root_with_http_info(opts = {})
37
34
  if @api_client.config.debugging
38
- @api_client.config.logger.debug "Calling API: RootApi.get_root ..."
35
+ @api_client.config.logger.debug 'Calling API: RootApi.get_root ...'
39
36
  end
40
37
  # resource path
41
- local_var_path = "/"
38
+ local_var_path = '/'
42
39
 
43
40
  # query parameters
44
41
  query_params = {}
@@ -3,14 +3,14 @@
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
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module LaunchDarklyApi
16
16
  class TeamMembersApi
@@ -19,32 +19,29 @@ module LaunchDarklyApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Delete a team member by ID.
24
- #
25
23
  # @param member_id The member ID.
26
24
  # @param [Hash] opts the optional parameters
27
25
  # @return [nil]
28
26
  def delete_member(member_id, opts = {})
29
27
  delete_member_with_http_info(member_id, opts)
30
- return nil
28
+ nil
31
29
  end
32
30
 
33
31
  # Delete a team member by ID.
34
- #
35
32
  # @param member_id The member ID.
36
33
  # @param [Hash] opts the optional parameters
37
34
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
35
  def delete_member_with_http_info(member_id, opts = {})
39
36
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: TeamMembersApi.delete_member ..."
37
+ @api_client.config.logger.debug 'Calling API: TeamMembersApi.delete_member ...'
41
38
  end
42
39
  # verify the required parameter 'member_id' is set
43
40
  if @api_client.config.client_side_validation && member_id.nil?
44
41
  fail ArgumentError, "Missing the required parameter 'member_id' when calling TeamMembersApi.delete_member"
45
42
  end
46
43
  # resource path
47
- local_var_path = "/members/{memberId}".sub('{' + 'memberId' + '}', member_id.to_s)
44
+ local_var_path = '/members/{memberId}'.sub('{' + 'memberId' + '}', member_id.to_s)
48
45
 
49
46
  # query parameters
50
47
  query_params = {}
@@ -73,32 +70,29 @@ module LaunchDarklyApi
73
70
  end
74
71
  return data, status_code, headers
75
72
  end
76
-
77
73
  # Get a single team member by ID.
78
- #
79
74
  # @param member_id The member ID.
80
75
  # @param [Hash] opts the optional parameters
81
76
  # @return [Member]
82
77
  def get_member(member_id, opts = {})
83
78
  data, _status_code, _headers = get_member_with_http_info(member_id, opts)
84
- return data
79
+ data
85
80
  end
86
81
 
87
82
  # Get a single team member by ID.
88
- #
89
83
  # @param member_id The member ID.
90
84
  # @param [Hash] opts the optional parameters
91
85
  # @return [Array<(Member, Fixnum, Hash)>] Member data, response status code and response headers
92
86
  def get_member_with_http_info(member_id, opts = {})
93
87
  if @api_client.config.debugging
94
- @api_client.config.logger.debug "Calling API: TeamMembersApi.get_member ..."
88
+ @api_client.config.logger.debug 'Calling API: TeamMembersApi.get_member ...'
95
89
  end
96
90
  # verify the required parameter 'member_id' is set
97
91
  if @api_client.config.client_side_validation && member_id.nil?
98
92
  fail ArgumentError, "Missing the required parameter 'member_id' when calling TeamMembersApi.get_member"
99
93
  end
100
94
  # resource path
101
- local_var_path = "/members/{memberId}".sub('{' + 'memberId' + '}', member_id.to_s)
95
+ local_var_path = '/members/{memberId}'.sub('{' + 'memberId' + '}', member_id.to_s)
102
96
 
103
97
  # query parameters
104
98
  query_params = {}
@@ -128,26 +122,23 @@ module LaunchDarklyApi
128
122
  end
129
123
  return data, status_code, headers
130
124
  end
131
-
132
125
  # Returns a list of all members in the account.
133
- #
134
126
  # @param [Hash] opts the optional parameters
135
127
  # @return [Members]
136
128
  def get_members(opts = {})
137
129
  data, _status_code, _headers = get_members_with_http_info(opts)
138
- return data
130
+ data
139
131
  end
140
132
 
141
133
  # Returns a list of all members in the account.
142
- #
143
134
  # @param [Hash] opts the optional parameters
144
135
  # @return [Array<(Members, Fixnum, Hash)>] Members data, response status code and response headers
145
136
  def get_members_with_http_info(opts = {})
146
137
  if @api_client.config.debugging
147
- @api_client.config.logger.debug "Calling API: TeamMembersApi.get_members ..."
138
+ @api_client.config.logger.debug 'Calling API: TeamMembersApi.get_members ...'
148
139
  end
149
140
  # resource path
150
- local_var_path = "/members"
141
+ local_var_path = '/members'
151
142
 
152
143
  # query parameters
153
144
  query_params = {}
@@ -177,27 +168,24 @@ module LaunchDarklyApi
177
168
  end
178
169
  return data, status_code, headers
179
170
  end
180
-
181
171
  # Modify a team member by ID.
182
- #
183
172
  # @param member_id The member ID.
184
173
  # @param patch_delta Requires a JSON Patch representation of the desired changes to the project. &#39;http://jsonpatch.com/&#39;
185
174
  # @param [Hash] opts the optional parameters
186
175
  # @return [Member]
187
176
  def patch_member(member_id, patch_delta, opts = {})
188
177
  data, _status_code, _headers = patch_member_with_http_info(member_id, patch_delta, opts)
189
- return data
178
+ data
190
179
  end
191
180
 
192
181
  # Modify a team member by ID.
193
- #
194
182
  # @param member_id The member ID.
195
183
  # @param patch_delta Requires a JSON Patch representation of the desired changes to the project. &#39;http://jsonpatch.com/&#39;
196
184
  # @param [Hash] opts the optional parameters
197
185
  # @return [Array<(Member, Fixnum, Hash)>] Member data, response status code and response headers
198
186
  def patch_member_with_http_info(member_id, patch_delta, opts = {})
199
187
  if @api_client.config.debugging
200
- @api_client.config.logger.debug "Calling API: TeamMembersApi.patch_member ..."
188
+ @api_client.config.logger.debug 'Calling API: TeamMembersApi.patch_member ...'
201
189
  end
202
190
  # verify the required parameter 'member_id' is set
203
191
  if @api_client.config.client_side_validation && member_id.nil?
@@ -208,7 +196,7 @@ module LaunchDarklyApi
208
196
  fail ArgumentError, "Missing the required parameter 'patch_delta' when calling TeamMembersApi.patch_member"
209
197
  end
210
198
  # resource path
211
- local_var_path = "/members/{memberId}".sub('{' + 'memberId' + '}', member_id.to_s)
199
+ local_var_path = '/members/{memberId}'.sub('{' + 'memberId' + '}', member_id.to_s)
212
200
 
213
201
  # query parameters
214
202
  query_params = {}
@@ -238,32 +226,29 @@ module LaunchDarklyApi
238
226
  end
239
227
  return data, status_code, headers
240
228
  end
241
-
242
229
  # Invite new members.
243
- #
244
230
  # @param members_body New members to invite.
245
231
  # @param [Hash] opts the optional parameters
246
- # @return [nil]
232
+ # @return [Members]
247
233
  def post_members(members_body, opts = {})
248
- post_members_with_http_info(members_body, opts)
249
- return nil
234
+ data, _status_code, _headers = post_members_with_http_info(members_body, opts)
235
+ data
250
236
  end
251
237
 
252
238
  # Invite new members.
253
- #
254
239
  # @param members_body New members to invite.
255
240
  # @param [Hash] opts the optional parameters
256
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
241
+ # @return [Array<(Members, Fixnum, Hash)>] Members data, response status code and response headers
257
242
  def post_members_with_http_info(members_body, opts = {})
258
243
  if @api_client.config.debugging
259
- @api_client.config.logger.debug "Calling API: TeamMembersApi.post_members ..."
244
+ @api_client.config.logger.debug 'Calling API: TeamMembersApi.post_members ...'
260
245
  end
261
246
  # verify the required parameter 'members_body' is set
262
247
  if @api_client.config.client_side_validation && members_body.nil?
263
248
  fail ArgumentError, "Missing the required parameter 'members_body' when calling TeamMembersApi.post_members"
264
249
  end
265
250
  # resource path
266
- local_var_path = "/members"
251
+ local_var_path = '/members'
267
252
 
268
253
  # query parameters
269
254
  query_params = {}
@@ -286,7 +271,8 @@ module LaunchDarklyApi
286
271
  :query_params => query_params,
287
272
  :form_params => form_params,
288
273
  :body => post_body,
289
- :auth_names => auth_names)
274
+ :auth_names => auth_names,
275
+ :return_type => 'Members')
290
276
  if @api_client.config.debugging
291
277
  @api_client.config.logger.debug "API called: TeamMembersApi#post_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
292
278
  end
@@ -3,14 +3,14 @@
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
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module LaunchDarklyApi
16
16
  class UserSegmentsApi
@@ -19,9 +19,7 @@ module LaunchDarklyApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Delete a user segment.
24
- #
25
23
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
26
24
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
27
25
  # @param user_segment_key The user segment&#39;s key. The key identifies the user segment in your code.
@@ -29,11 +27,10 @@ module LaunchDarklyApi
29
27
  # @return [nil]
30
28
  def delete_user_segment(project_key, environment_key, user_segment_key, opts = {})
31
29
  delete_user_segment_with_http_info(project_key, environment_key, user_segment_key, opts)
32
- return nil
30
+ nil
33
31
  end
34
32
 
35
33
  # Delete a user segment.
36
- #
37
34
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
38
35
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
39
36
  # @param user_segment_key The user segment&#39;s key. The key identifies the user segment in your code.
@@ -41,7 +38,7 @@ module LaunchDarklyApi
41
38
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
42
39
  def delete_user_segment_with_http_info(project_key, environment_key, user_segment_key, opts = {})
43
40
  if @api_client.config.debugging
44
- @api_client.config.logger.debug "Calling API: UserSegmentsApi.delete_user_segment ..."
41
+ @api_client.config.logger.debug 'Calling API: UserSegmentsApi.delete_user_segment ...'
45
42
  end
46
43
  # verify the required parameter 'project_key' is set
47
44
  if @api_client.config.client_side_validation && project_key.nil?
@@ -56,7 +53,7 @@ module LaunchDarklyApi
56
53
  fail ArgumentError, "Missing the required parameter 'user_segment_key' when calling UserSegmentsApi.delete_user_segment"
57
54
  end
58
55
  # resource path
59
- local_var_path = "/segments/{projectKey}/{environmentKey}/{userSegmentKey}".sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
56
+ local_var_path = '/segments/{projectKey}/{environmentKey}/{userSegmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
60
57
 
61
58
  # query parameters
62
59
  query_params = {}
@@ -85,9 +82,7 @@ module LaunchDarklyApi
85
82
  end
86
83
  return data, status_code, headers
87
84
  end
88
-
89
85
  # Get a single user segment by key.
90
- #
91
86
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
92
87
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
93
88
  # @param user_segment_key The user segment&#39;s key. The key identifies the user segment in your code.
@@ -95,11 +90,10 @@ module LaunchDarklyApi
95
90
  # @return [UserSegment]
96
91
  def get_user_segment(project_key, environment_key, user_segment_key, opts = {})
97
92
  data, _status_code, _headers = get_user_segment_with_http_info(project_key, environment_key, user_segment_key, opts)
98
- return data
93
+ data
99
94
  end
100
95
 
101
96
  # Get a single user segment by key.
102
- #
103
97
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
104
98
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
105
99
  # @param user_segment_key The user segment&#39;s key. The key identifies the user segment in your code.
@@ -107,7 +101,7 @@ module LaunchDarklyApi
107
101
  # @return [Array<(UserSegment, Fixnum, Hash)>] UserSegment data, response status code and response headers
108
102
  def get_user_segment_with_http_info(project_key, environment_key, user_segment_key, opts = {})
109
103
  if @api_client.config.debugging
110
- @api_client.config.logger.debug "Calling API: UserSegmentsApi.get_user_segment ..."
104
+ @api_client.config.logger.debug 'Calling API: UserSegmentsApi.get_user_segment ...'
111
105
  end
112
106
  # verify the required parameter 'project_key' is set
113
107
  if @api_client.config.client_side_validation && project_key.nil?
@@ -122,7 +116,7 @@ module LaunchDarklyApi
122
116
  fail ArgumentError, "Missing the required parameter 'user_segment_key' when calling UserSegmentsApi.get_user_segment"
123
117
  end
124
118
  # resource path
125
- local_var_path = "/segments/{projectKey}/{environmentKey}/{userSegmentKey}".sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
119
+ local_var_path = '/segments/{projectKey}/{environmentKey}/{userSegmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
126
120
 
127
121
  # query parameters
128
122
  query_params = {}
@@ -152,9 +146,7 @@ module LaunchDarklyApi
152
146
  end
153
147
  return data, status_code, headers
154
148
  end
155
-
156
149
  # Get a list of all user segments in the given project.
157
- #
158
150
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
159
151
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
160
152
  # @param [Hash] opts the optional parameters
@@ -162,11 +154,10 @@ module LaunchDarklyApi
162
154
  # @return [UserSegments]
163
155
  def get_user_segments(project_key, environment_key, opts = {})
164
156
  data, _status_code, _headers = get_user_segments_with_http_info(project_key, environment_key, opts)
165
- return data
157
+ data
166
158
  end
167
159
 
168
160
  # Get a list of all user segments in the given project.
169
- #
170
161
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
171
162
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
172
163
  # @param [Hash] opts the optional parameters
@@ -174,7 +165,7 @@ module LaunchDarklyApi
174
165
  # @return [Array<(UserSegments, Fixnum, Hash)>] UserSegments data, response status code and response headers
175
166
  def get_user_segments_with_http_info(project_key, environment_key, opts = {})
176
167
  if @api_client.config.debugging
177
- @api_client.config.logger.debug "Calling API: UserSegmentsApi.get_user_segments ..."
168
+ @api_client.config.logger.debug 'Calling API: UserSegmentsApi.get_user_segments ...'
178
169
  end
179
170
  # verify the required parameter 'project_key' is set
180
171
  if @api_client.config.client_side_validation && project_key.nil?
@@ -185,7 +176,7 @@ module LaunchDarklyApi
185
176
  fail ArgumentError, "Missing the required parameter 'environment_key' when calling UserSegmentsApi.get_user_segments"
186
177
  end
187
178
  # resource path
188
- local_var_path = "/segments/{projectKey}/{environmentKey}".sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
179
+ local_var_path = '/segments/{projectKey}/{environmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
189
180
 
190
181
  # query parameters
191
182
  query_params = {}
@@ -216,9 +207,7 @@ module LaunchDarklyApi
216
207
  end
217
208
  return data, status_code, headers
218
209
  end
219
-
220
210
  # Perform a partial update to a user segment.
221
- #
222
211
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
223
212
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
224
213
  # @param user_segment_key The user segment&#39;s key. The key identifies the user segment in your code.
@@ -227,11 +216,10 @@ module LaunchDarklyApi
227
216
  # @return [UserSegment]
228
217
  def patch_user_segment(project_key, environment_key, user_segment_key, patch_only, opts = {})
229
218
  data, _status_code, _headers = patch_user_segment_with_http_info(project_key, environment_key, user_segment_key, patch_only, opts)
230
- return data
219
+ data
231
220
  end
232
221
 
233
222
  # Perform a partial update to a user segment.
234
- #
235
223
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
236
224
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
237
225
  # @param user_segment_key The user segment&#39;s key. The key identifies the user segment in your code.
@@ -240,7 +228,7 @@ module LaunchDarklyApi
240
228
  # @return [Array<(UserSegment, Fixnum, Hash)>] UserSegment data, response status code and response headers
241
229
  def patch_user_segment_with_http_info(project_key, environment_key, user_segment_key, patch_only, opts = {})
242
230
  if @api_client.config.debugging
243
- @api_client.config.logger.debug "Calling API: UserSegmentsApi.patch_user_segment ..."
231
+ @api_client.config.logger.debug 'Calling API: UserSegmentsApi.patch_user_segment ...'
244
232
  end
245
233
  # verify the required parameter 'project_key' is set
246
234
  if @api_client.config.client_side_validation && project_key.nil?
@@ -259,7 +247,7 @@ module LaunchDarklyApi
259
247
  fail ArgumentError, "Missing the required parameter 'patch_only' when calling UserSegmentsApi.patch_user_segment"
260
248
  end
261
249
  # resource path
262
- local_var_path = "/segments/{projectKey}/{environmentKey}/{userSegmentKey}".sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
250
+ local_var_path = '/segments/{projectKey}/{environmentKey}/{userSegmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
263
251
 
264
252
  # query parameters
265
253
  query_params = {}
@@ -289,29 +277,26 @@ module LaunchDarklyApi
289
277
  end
290
278
  return data, status_code, headers
291
279
  end
292
-
293
280
  # Creates a new user segment.
294
- #
295
281
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
296
282
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
297
283
  # @param user_segment_body Create a new user segment.
298
284
  # @param [Hash] opts the optional parameters
299
- # @return [nil]
285
+ # @return [UserSegment]
300
286
  def post_user_segment(project_key, environment_key, user_segment_body, opts = {})
301
- post_user_segment_with_http_info(project_key, environment_key, user_segment_body, opts)
302
- return nil
287
+ data, _status_code, _headers = post_user_segment_with_http_info(project_key, environment_key, user_segment_body, opts)
288
+ data
303
289
  end
304
290
 
305
291
  # Creates a new user segment.
306
- #
307
292
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
308
293
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
309
294
  # @param user_segment_body Create a new user segment.
310
295
  # @param [Hash] opts the optional parameters
311
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
296
+ # @return [Array<(UserSegment, Fixnum, Hash)>] UserSegment data, response status code and response headers
312
297
  def post_user_segment_with_http_info(project_key, environment_key, user_segment_body, opts = {})
313
298
  if @api_client.config.debugging
314
- @api_client.config.logger.debug "Calling API: UserSegmentsApi.post_user_segment ..."
299
+ @api_client.config.logger.debug 'Calling API: UserSegmentsApi.post_user_segment ...'
315
300
  end
316
301
  # verify the required parameter 'project_key' is set
317
302
  if @api_client.config.client_side_validation && project_key.nil?
@@ -326,7 +311,7 @@ module LaunchDarklyApi
326
311
  fail ArgumentError, "Missing the required parameter 'user_segment_body' when calling UserSegmentsApi.post_user_segment"
327
312
  end
328
313
  # resource path
329
- local_var_path = "/segments/{projectKey}/{environmentKey}".sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
314
+ local_var_path = '/segments/{projectKey}/{environmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
330
315
 
331
316
  # query parameters
332
317
  query_params = {}
@@ -349,7 +334,8 @@ module LaunchDarklyApi
349
334
  :query_params => query_params,
350
335
  :form_params => form_params,
351
336
  :body => post_body,
352
- :auth_names => auth_names)
337
+ :auth_names => auth_names,
338
+ :return_type => 'UserSegment')
353
339
  if @api_client.config.debugging
354
340
  @api_client.config.logger.debug "API called: UserSegmentsApi#post_user_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
355
341
  end
@@ -3,14 +3,14 @@
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
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module LaunchDarklyApi
16
16
  class UserSettingsApi
@@ -19,9 +19,7 @@ module LaunchDarklyApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Fetch a single flag setting for a user by key.
24
- #
25
23
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
26
24
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
27
25
  # @param user_key The user&#39;s key.
@@ -30,11 +28,10 @@ module LaunchDarklyApi
30
28
  # @return [UserFlagSetting]
31
29
  def get_user_flag_setting(project_key, environment_key, user_key, feature_flag_key, opts = {})
32
30
  data, _status_code, _headers = get_user_flag_setting_with_http_info(project_key, environment_key, user_key, feature_flag_key, opts)
33
- return data
31
+ data
34
32
  end
35
33
 
36
34
  # Fetch a single flag setting for a user by key.
37
- #
38
35
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
39
36
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
40
37
  # @param user_key The user&#39;s key.
@@ -43,7 +40,7 @@ module LaunchDarklyApi
43
40
  # @return [Array<(UserFlagSetting, Fixnum, Hash)>] UserFlagSetting data, response status code and response headers
44
41
  def get_user_flag_setting_with_http_info(project_key, environment_key, user_key, feature_flag_key, opts = {})
45
42
  if @api_client.config.debugging
46
- @api_client.config.logger.debug "Calling API: UserSettingsApi.get_user_flag_setting ..."
43
+ @api_client.config.logger.debug 'Calling API: UserSettingsApi.get_user_flag_setting ...'
47
44
  end
48
45
  # verify the required parameter 'project_key' is set
49
46
  if @api_client.config.client_side_validation && project_key.nil?
@@ -62,7 +59,7 @@ module LaunchDarklyApi
62
59
  fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling UserSettingsApi.get_user_flag_setting"
63
60
  end
64
61
  # resource path
65
- local_var_path = "/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}".sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
62
+ local_var_path = '/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
66
63
 
67
64
  # query parameters
68
65
  query_params = {}
@@ -92,9 +89,7 @@ module LaunchDarklyApi
92
89
  end
93
90
  return data, status_code, headers
94
91
  end
95
-
96
92
  # Fetch a single flag setting for a user by key.
97
- #
98
93
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
99
94
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
100
95
  # @param user_key The user&#39;s key.
@@ -102,11 +97,10 @@ module LaunchDarklyApi
102
97
  # @return [UserFlagSettings]
103
98
  def get_user_flag_settings(project_key, environment_key, user_key, opts = {})
104
99
  data, _status_code, _headers = get_user_flag_settings_with_http_info(project_key, environment_key, user_key, opts)
105
- return data
100
+ data
106
101
  end
107
102
 
108
103
  # Fetch a single flag setting for a user by key.
109
- #
110
104
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
111
105
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
112
106
  # @param user_key The user&#39;s key.
@@ -114,7 +108,7 @@ module LaunchDarklyApi
114
108
  # @return [Array<(UserFlagSettings, Fixnum, Hash)>] UserFlagSettings data, response status code and response headers
115
109
  def get_user_flag_settings_with_http_info(project_key, environment_key, user_key, opts = {})
116
110
  if @api_client.config.debugging
117
- @api_client.config.logger.debug "Calling API: UserSettingsApi.get_user_flag_settings ..."
111
+ @api_client.config.logger.debug 'Calling API: UserSettingsApi.get_user_flag_settings ...'
118
112
  end
119
113
  # verify the required parameter 'project_key' is set
120
114
  if @api_client.config.client_side_validation && project_key.nil?
@@ -129,7 +123,7 @@ module LaunchDarklyApi
129
123
  fail ArgumentError, "Missing the required parameter 'user_key' when calling UserSettingsApi.get_user_flag_settings"
130
124
  end
131
125
  # resource path
132
- local_var_path = "/users/{projectKey}/{environmentKey}/{userKey}/flags".sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s)
126
+ local_var_path = '/users/{projectKey}/{environmentKey}/{userKey}/flags'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s)
133
127
 
134
128
  # query parameters
135
129
  query_params = {}
@@ -159,9 +153,7 @@ module LaunchDarklyApi
159
153
  end
160
154
  return data, status_code, headers
161
155
  end
162
-
163
156
  # Specifically enable or disable a feature flag for a user based on their key.
164
- #
165
157
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
166
158
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
167
159
  # @param user_key The user&#39;s key.
@@ -171,11 +163,10 @@ module LaunchDarklyApi
171
163
  # @return [nil]
172
164
  def put_flag_setting(project_key, environment_key, user_key, feature_flag_key, user_settings_body, opts = {})
173
165
  put_flag_setting_with_http_info(project_key, environment_key, user_key, feature_flag_key, user_settings_body, opts)
174
- return nil
166
+ nil
175
167
  end
176
168
 
177
169
  # Specifically enable or disable a feature flag for a user based on their key.
178
- #
179
170
  # @param project_key The project key, used to tie the flags together under one project so they can be managed together.
180
171
  # @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
181
172
  # @param user_key The user&#39;s key.
@@ -185,7 +176,7 @@ module LaunchDarklyApi
185
176
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
186
177
  def put_flag_setting_with_http_info(project_key, environment_key, user_key, feature_flag_key, user_settings_body, opts = {})
187
178
  if @api_client.config.debugging
188
- @api_client.config.logger.debug "Calling API: UserSettingsApi.put_flag_setting ..."
179
+ @api_client.config.logger.debug 'Calling API: UserSettingsApi.put_flag_setting ...'
189
180
  end
190
181
  # verify the required parameter 'project_key' is set
191
182
  if @api_client.config.client_side_validation && project_key.nil?
@@ -208,7 +199,7 @@ module LaunchDarklyApi
208
199
  fail ArgumentError, "Missing the required parameter 'user_settings_body' when calling UserSettingsApi.put_flag_setting"
209
200
  end
210
201
  # resource path
211
- local_var_path = "/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}".sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
202
+ local_var_path = '/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
212
203
 
213
204
  # query parameters
214
205
  query_params = {}