launchdarkly_api 2.0.3

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 (219) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/LICENSE.txt +13 -0
  5. data/README.md +264 -0
  6. data/Rakefile +8 -0
  7. data/docs/Action.md +7 -0
  8. data/docs/Actions.md +7 -0
  9. data/docs/AuditLogApi.md +123 -0
  10. data/docs/AuditLogEntries.md +9 -0
  11. data/docs/AuditLogEntry.md +19 -0
  12. data/docs/AuditLogEntryTarget.md +10 -0
  13. data/docs/Clause.md +11 -0
  14. data/docs/CustomRole.md +13 -0
  15. data/docs/CustomRoleBody.md +11 -0
  16. data/docs/CustomRoleKeyOrId.md +7 -0
  17. data/docs/CustomRoles.md +9 -0
  18. data/docs/CustomRolesApi.md +268 -0
  19. data/docs/Environment.md +17 -0
  20. data/docs/EnvironmentBody.md +11 -0
  21. data/docs/EnvironmentsApi.md +233 -0
  22. data/docs/Fallthrough.md +9 -0
  23. data/docs/FeatureFlag.md +20 -0
  24. data/docs/FeatureFlagBody.md +13 -0
  25. data/docs/FeatureFlagConfig.md +19 -0
  26. data/docs/FeatureFlagStatus.md +11 -0
  27. data/docs/FeatureFlagStatuses.md +9 -0
  28. data/docs/FeatureFlags.md +9 -0
  29. data/docs/FeatureFlagsApi.md +411 -0
  30. data/docs/Id.md +7 -0
  31. data/docs/Link.md +9 -0
  32. data/docs/Links.md +9 -0
  33. data/docs/Member.md +14 -0
  34. data/docs/Members.md +9 -0
  35. data/docs/MembersBody.md +13 -0
  36. data/docs/PatchComment.md +9 -0
  37. data/docs/PatchOperation.md +10 -0
  38. data/docs/Policy.md +10 -0
  39. data/docs/Prerequisite.md +9 -0
  40. data/docs/Project.md +12 -0
  41. data/docs/ProjectBody.md +9 -0
  42. data/docs/Projects.md +9 -0
  43. data/docs/ProjectsApi.md +268 -0
  44. data/docs/Resource.md +7 -0
  45. data/docs/Resources.md +7 -0
  46. data/docs/Role.md +7 -0
  47. data/docs/Rollout.md +8 -0
  48. data/docs/RootApi.md +56 -0
  49. data/docs/Rule.md +10 -0
  50. data/docs/Statement.md +12 -0
  51. data/docs/Statements.md +7 -0
  52. data/docs/Target.md +9 -0
  53. data/docs/TeamMembersApi.md +268 -0
  54. data/docs/User.md +18 -0
  55. data/docs/UserFlagSetting.md +10 -0
  56. data/docs/UserFlagSettings.md +9 -0
  57. data/docs/UserRecord.md +12 -0
  58. data/docs/UserSegment.md +17 -0
  59. data/docs/UserSegmentBody.md +11 -0
  60. data/docs/UserSegmentRule.md +10 -0
  61. data/docs/UserSegments.md +9 -0
  62. data/docs/UserSegmentsApi.md +305 -0
  63. data/docs/UserSettingsApi.md +193 -0
  64. data/docs/UserSettingsBody.md +8 -0
  65. data/docs/Users.md +10 -0
  66. data/docs/UsersApi.md +255 -0
  67. data/docs/Variation.md +10 -0
  68. data/docs/Webhook.md +14 -0
  69. data/docs/WebhookBody.md +12 -0
  70. data/docs/Webhooks.md +9 -0
  71. data/docs/WebhooksApi.md +268 -0
  72. data/docs/WeightedVariation.md +9 -0
  73. data/git_push.sh +55 -0
  74. data/launchdarkly_api-2.0.2.gem +0 -0
  75. data/launchdarkly_api.gemspec +46 -0
  76. data/lib/.DS_Store +0 -0
  77. data/lib/launchdarkly_api/api/audit_log_api.rb +142 -0
  78. data/lib/launchdarkly_api/api/custom_roles_api.rb +296 -0
  79. data/lib/launchdarkly_api/api/environments_api.rb +271 -0
  80. data/lib/launchdarkly_api/api/feature_flags_api.rb +463 -0
  81. data/lib/launchdarkly_api/api/projects_api.rb +296 -0
  82. data/lib/launchdarkly_api/api/root_api.rb +72 -0
  83. data/lib/launchdarkly_api/api/team_members_api.rb +296 -0
  84. data/lib/launchdarkly_api/api/user_segments_api.rb +359 -0
  85. data/lib/launchdarkly_api/api/user_settings_api.rb +241 -0
  86. data/lib/launchdarkly_api/api/users_api.rb +299 -0
  87. data/lib/launchdarkly_api/api/webhooks_api.rb +296 -0
  88. data/lib/launchdarkly_api/api_client.rb +389 -0
  89. data/lib/launchdarkly_api/api_error.rb +38 -0
  90. data/lib/launchdarkly_api/configuration.rb +209 -0
  91. data/lib/launchdarkly_api/models/action.rb +179 -0
  92. data/lib/launchdarkly_api/models/actions.rb +179 -0
  93. data/lib/launchdarkly_api/models/audit_log_entries.rb +199 -0
  94. data/lib/launchdarkly_api/models/audit_log_entry.rb +287 -0
  95. data/lib/launchdarkly_api/models/audit_log_entry_target.rb +208 -0
  96. data/lib/launchdarkly_api/models/clause.rb +217 -0
  97. data/lib/launchdarkly_api/models/custom_role.rb +237 -0
  98. data/lib/launchdarkly_api/models/custom_role_body.rb +234 -0
  99. data/lib/launchdarkly_api/models/custom_role_key_or_id.rb +179 -0
  100. data/lib/launchdarkly_api/models/custom_roles.rb +197 -0
  101. data/lib/launchdarkly_api/models/environment.rb +277 -0
  102. data/lib/launchdarkly_api/models/environment_body.rb +234 -0
  103. data/lib/launchdarkly_api/models/fallthrough.rb +197 -0
  104. data/lib/launchdarkly_api/models/feature_flag.rb +310 -0
  105. data/lib/launchdarkly_api/models/feature_flag_body.rb +258 -0
  106. data/lib/launchdarkly_api/models/feature_flag_config.rb +294 -0
  107. data/lib/launchdarkly_api/models/feature_flag_status.rb +249 -0
  108. data/lib/launchdarkly_api/models/feature_flag_statuses.rb +199 -0
  109. data/lib/launchdarkly_api/models/feature_flags.rb +199 -0
  110. data/lib/launchdarkly_api/models/id.rb +179 -0
  111. data/lib/launchdarkly_api/models/link.rb +197 -0
  112. data/lib/launchdarkly_api/models/links.rb +197 -0
  113. data/lib/launchdarkly_api/models/member.rb +244 -0
  114. data/lib/launchdarkly_api/models/members.rb +197 -0
  115. data/lib/launchdarkly_api/models/members_body.rb +240 -0
  116. data/lib/launchdarkly_api/models/patch_comment.rb +199 -0
  117. data/lib/launchdarkly_api/models/patch_operation.rb +221 -0
  118. data/lib/launchdarkly_api/models/policy.rb +207 -0
  119. data/lib/launchdarkly_api/models/prerequisite.rb +197 -0
  120. data/lib/launchdarkly_api/models/project.rb +226 -0
  121. data/lib/launchdarkly_api/models/project_body.rb +207 -0
  122. data/lib/launchdarkly_api/models/projects.rb +199 -0
  123. data/lib/launchdarkly_api/models/resource.rb +179 -0
  124. data/lib/launchdarkly_api/models/resources.rb +179 -0
  125. data/lib/launchdarkly_api/models/role.rb +33 -0
  126. data/lib/launchdarkly_api/models/rollout.rb +190 -0
  127. data/lib/launchdarkly_api/models/rule.rb +208 -0
  128. data/lib/launchdarkly_api/models/statement.rb +259 -0
  129. data/lib/launchdarkly_api/models/statements.rb +179 -0
  130. data/lib/launchdarkly_api/models/target.rb +199 -0
  131. data/lib/launchdarkly_api/models/user.rb +278 -0
  132. data/lib/launchdarkly_api/models/user_flag_setting.rb +208 -0
  133. data/lib/launchdarkly_api/models/user_flag_settings.rb +197 -0
  134. data/lib/launchdarkly_api/models/user_record.rb +224 -0
  135. data/lib/launchdarkly_api/models/user_segment.rb +300 -0
  136. data/lib/launchdarkly_api/models/user_segment_body.rb +231 -0
  137. data/lib/launchdarkly_api/models/user_segment_rule.rb +208 -0
  138. data/lib/launchdarkly_api/models/user_segments.rb +199 -0
  139. data/lib/launchdarkly_api/models/user_settings_body.rb +189 -0
  140. data/lib/launchdarkly_api/models/users.rb +208 -0
  141. data/lib/launchdarkly_api/models/variation.rb +211 -0
  142. data/lib/launchdarkly_api/models/webhook.rb +249 -0
  143. data/lib/launchdarkly_api/models/webhook_body.rb +244 -0
  144. data/lib/launchdarkly_api/models/webhooks.rb +199 -0
  145. data/lib/launchdarkly_api/models/weighted_variation.rb +197 -0
  146. data/lib/launchdarkly_api/version.rb +15 -0
  147. data/lib/launchdarkly_api.rb +105 -0
  148. data/lib/swagger_client/.DS_Store +0 -0
  149. data/spec/api/audit_log_api_spec.rb +63 -0
  150. data/spec/api/custom_roles_api_spec.rb +95 -0
  151. data/spec/api/environments_api_spec.rb +88 -0
  152. data/spec/api/feature_flags_api_spec.rb +130 -0
  153. data/spec/api/projects_api_spec.rb +95 -0
  154. data/spec/api/root_api_spec.rb +46 -0
  155. data/spec/api/team_members_api_spec.rb +95 -0
  156. data/spec/api/user_segments_api_spec.rb +106 -0
  157. data/spec/api/user_settings_api_spec.rb +80 -0
  158. data/spec/api/users_api_spec.rb +96 -0
  159. data/spec/api/webhooks_api_spec.rb +95 -0
  160. data/spec/api_client_spec.rb +226 -0
  161. data/spec/configuration_spec.rb +42 -0
  162. data/spec/models/action_spec.rb +36 -0
  163. data/spec/models/actions_spec.rb +36 -0
  164. data/spec/models/audit_log_entries_spec.rb +48 -0
  165. data/spec/models/audit_log_entry_spec.rb +108 -0
  166. data/spec/models/audit_log_entry_target_spec.rb +54 -0
  167. data/spec/models/clause_spec.rb +60 -0
  168. data/spec/models/custom_role_body_spec.rb +60 -0
  169. data/spec/models/custom_role_key_or_id_spec.rb +36 -0
  170. data/spec/models/custom_role_spec.rb +72 -0
  171. data/spec/models/custom_roles_spec.rb +48 -0
  172. data/spec/models/environment_body_spec.rb +60 -0
  173. data/spec/models/environment_spec.rb +96 -0
  174. data/spec/models/fallthrough_spec.rb +48 -0
  175. data/spec/models/feature_flag_body_spec.rb +72 -0
  176. data/spec/models/feature_flag_config_spec.rb +108 -0
  177. data/spec/models/feature_flag_spec.rb +114 -0
  178. data/spec/models/feature_flag_status_spec.rb +64 -0
  179. data/spec/models/feature_flag_statuses_spec.rb +48 -0
  180. data/spec/models/feature_flags_spec.rb +48 -0
  181. data/spec/models/id_spec.rb +36 -0
  182. data/spec/models/link_spec.rb +48 -0
  183. data/spec/models/links_spec.rb +48 -0
  184. data/spec/models/member_spec.rb +78 -0
  185. data/spec/models/members_body_spec.rb +72 -0
  186. data/spec/models/members_spec.rb +48 -0
  187. data/spec/models/patch_comment_spec.rb +48 -0
  188. data/spec/models/patch_operation_spec.rb +54 -0
  189. data/spec/models/policy_spec.rb +54 -0
  190. data/spec/models/prerequisite_spec.rb +48 -0
  191. data/spec/models/project_body_spec.rb +48 -0
  192. data/spec/models/project_spec.rb +66 -0
  193. data/spec/models/projects_spec.rb +48 -0
  194. data/spec/models/resource_spec.rb +36 -0
  195. data/spec/models/resources_spec.rb +36 -0
  196. data/spec/models/role_spec.rb +36 -0
  197. data/spec/models/rollout_spec.rb +42 -0
  198. data/spec/models/rule_spec.rb +54 -0
  199. data/spec/models/statement_spec.rb +70 -0
  200. data/spec/models/statements_spec.rb +36 -0
  201. data/spec/models/target_spec.rb +48 -0
  202. data/spec/models/user_flag_setting_spec.rb +54 -0
  203. data/spec/models/user_flag_settings_spec.rb +48 -0
  204. data/spec/models/user_record_spec.rb +66 -0
  205. data/spec/models/user_segment_body_spec.rb +60 -0
  206. data/spec/models/user_segment_rule_spec.rb +54 -0
  207. data/spec/models/user_segment_spec.rb +96 -0
  208. data/spec/models/user_segments_spec.rb +48 -0
  209. data/spec/models/user_settings_body_spec.rb +42 -0
  210. data/spec/models/user_spec.rb +102 -0
  211. data/spec/models/users_spec.rb +54 -0
  212. data/spec/models/variation_spec.rb +54 -0
  213. data/spec/models/webhook_body_spec.rb +66 -0
  214. data/spec/models/webhook_spec.rb +78 -0
  215. data/spec/models/webhooks_spec.rb +48 -0
  216. data/spec/models/weighted_variation_spec.rb +48 -0
  217. data/spec/spec_helper.rb +111 -0
  218. data/test.rb +50 -0
  219. metadata +509 -0
@@ -0,0 +1,268 @@
1
+ # LaunchDarklyApi::ProjectsApi
2
+
3
+ All URIs are relative to *https://app.launchdarkly.com/api/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_project**](ProjectsApi.md#delete_project) | **DELETE** /projects/{projectKey} | 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.
8
+ [**get_project**](ProjectsApi.md#get_project) | **GET** /projects/{projectKey} | Fetch a single project by key.
9
+ [**get_projects**](ProjectsApi.md#get_projects) | **GET** /projects | Returns a list of all projects in the account.
10
+ [**patch_project**](ProjectsApi.md#patch_project) | **PATCH** /projects/{projectKey} | Modify a project by ID.
11
+ [**post_project**](ProjectsApi.md#post_project) | **POST** /projects | Create a new project with the given key and name.
12
+
13
+
14
+ # **delete_project**
15
+ > delete_project(project_key, )
16
+
17
+ 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.
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'launchdarkly_api'
23
+ # setup authorization
24
+ LaunchDarklyApi.configure do |config|
25
+ # Configure API key authorization: Token
26
+ config.api_key['Authorization'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['Authorization'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = LaunchDarklyApi::ProjectsApi.new
32
+
33
+ project_key = "project_key_example" # String | The project key, used to tie the flags together under one project so they can be managed together.
34
+
35
+
36
+ begin
37
+ #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.
38
+ api_instance.delete_project(project_key, )
39
+ rescue LaunchDarklyApi::ApiError => e
40
+ puts "Exception when calling ProjectsApi->delete_project: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
49
+
50
+ ### Return type
51
+
52
+ nil (empty response body)
53
+
54
+ ### Authorization
55
+
56
+ [Token](../README.md#Token)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+
64
+
65
+ # **get_project**
66
+ > Project get_project(project_key, )
67
+
68
+ Fetch a single project by key.
69
+
70
+ ### Example
71
+ ```ruby
72
+ # load the gem
73
+ require 'launchdarkly_api'
74
+ # setup authorization
75
+ LaunchDarklyApi.configure do |config|
76
+ # Configure API key authorization: Token
77
+ config.api_key['Authorization'] = 'YOUR API KEY'
78
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
79
+ #config.api_key_prefix['Authorization'] = 'Bearer'
80
+ end
81
+
82
+ api_instance = LaunchDarklyApi::ProjectsApi.new
83
+
84
+ project_key = "project_key_example" # String | The project key, used to tie the flags together under one project so they can be managed together.
85
+
86
+
87
+ begin
88
+ #Fetch a single project by key.
89
+ result = api_instance.get_project(project_key, )
90
+ p result
91
+ rescue LaunchDarklyApi::ApiError => e
92
+ puts "Exception when calling ProjectsApi->get_project: #{e}"
93
+ end
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+ Name | Type | Description | Notes
99
+ ------------- | ------------- | ------------- | -------------
100
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
101
+
102
+ ### Return type
103
+
104
+ [**Project**](Project.md)
105
+
106
+ ### Authorization
107
+
108
+ [Token](../README.md#Token)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: application/json
113
+ - **Accept**: application/json
114
+
115
+
116
+
117
+ # **get_projects**
118
+ > Projects get_projects
119
+
120
+ Returns a list of all projects in the account.
121
+
122
+ ### Example
123
+ ```ruby
124
+ # load the gem
125
+ require 'launchdarkly_api'
126
+ # setup authorization
127
+ LaunchDarklyApi.configure do |config|
128
+ # Configure API key authorization: Token
129
+ config.api_key['Authorization'] = 'YOUR API KEY'
130
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
131
+ #config.api_key_prefix['Authorization'] = 'Bearer'
132
+ end
133
+
134
+ api_instance = LaunchDarklyApi::ProjectsApi.new
135
+
136
+ begin
137
+ #Returns a list of all projects in the account.
138
+ result = api_instance.get_projects
139
+ p result
140
+ rescue LaunchDarklyApi::ApiError => e
141
+ puts "Exception when calling ProjectsApi->get_projects: #{e}"
142
+ end
143
+ ```
144
+
145
+ ### Parameters
146
+ This endpoint does not need any parameter.
147
+
148
+ ### Return type
149
+
150
+ [**Projects**](Projects.md)
151
+
152
+ ### Authorization
153
+
154
+ [Token](../README.md#Token)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: application/json
159
+ - **Accept**: application/json
160
+
161
+
162
+
163
+ # **patch_project**
164
+ > Project patch_project(project_key, patch_delta)
165
+
166
+ Modify a project by ID.
167
+
168
+ ### Example
169
+ ```ruby
170
+ # load the gem
171
+ require 'launchdarkly_api'
172
+ # setup authorization
173
+ LaunchDarklyApi.configure do |config|
174
+ # Configure API key authorization: Token
175
+ config.api_key['Authorization'] = 'YOUR API KEY'
176
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
177
+ #config.api_key_prefix['Authorization'] = 'Bearer'
178
+ end
179
+
180
+ api_instance = LaunchDarklyApi::ProjectsApi.new
181
+
182
+ project_key = "project_key_example" # String | The project key, used to tie the flags together under one project so they can be managed together.
183
+
184
+ patch_delta = [LaunchDarklyApi::PatchOperation.new] # Array<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
185
+
186
+
187
+ begin
188
+ #Modify a project by ID.
189
+ result = api_instance.patch_project(project_key, patch_delta)
190
+ p result
191
+ rescue LaunchDarklyApi::ApiError => e
192
+ puts "Exception when calling ProjectsApi->patch_project: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ Name | Type | Description | Notes
199
+ ------------- | ------------- | ------------- | -------------
200
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
201
+ **patch_delta** | [**Array&lt;PatchOperation&gt;**](PatchOperation.md)| Requires a JSON Patch representation of the desired changes to the project. &#39;http://jsonpatch.com/&#39; |
202
+
203
+ ### Return type
204
+
205
+ [**Project**](Project.md)
206
+
207
+ ### Authorization
208
+
209
+ [Token](../README.md#Token)
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: application/json
214
+ - **Accept**: application/json
215
+
216
+
217
+
218
+ # **post_project**
219
+ > post_project(project_body)
220
+
221
+ Create a new project with the given key and name.
222
+
223
+ ### Example
224
+ ```ruby
225
+ # load the gem
226
+ require 'launchdarkly_api'
227
+ # setup authorization
228
+ LaunchDarklyApi.configure do |config|
229
+ # Configure API key authorization: Token
230
+ config.api_key['Authorization'] = 'YOUR API KEY'
231
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
232
+ #config.api_key_prefix['Authorization'] = 'Bearer'
233
+ end
234
+
235
+ api_instance = LaunchDarklyApi::ProjectsApi.new
236
+
237
+ project_body = LaunchDarklyApi::ProjectBody.new # ProjectBody | Project keys must be unique within an account.
238
+
239
+
240
+ begin
241
+ #Create a new project with the given key and name.
242
+ api_instance.post_project(project_body)
243
+ rescue LaunchDarklyApi::ApiError => e
244
+ puts "Exception when calling ProjectsApi->post_project: #{e}"
245
+ end
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ Name | Type | Description | Notes
251
+ ------------- | ------------- | ------------- | -------------
252
+ **project_body** | [**ProjectBody**](ProjectBody.md)| Project keys must be unique within an account. |
253
+
254
+ ### Return type
255
+
256
+ nil (empty response body)
257
+
258
+ ### Authorization
259
+
260
+ [Token](../README.md#Token)
261
+
262
+ ### HTTP request headers
263
+
264
+ - **Content-Type**: application/json
265
+ - **Accept**: application/json
266
+
267
+
268
+
data/docs/Resource.md ADDED
@@ -0,0 +1,7 @@
1
+ # LaunchDarklyApi::Resource
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
data/docs/Resources.md ADDED
@@ -0,0 +1,7 @@
1
+ # LaunchDarklyApi::Resources
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
data/docs/Role.md ADDED
@@ -0,0 +1,7 @@
1
+ # LaunchDarklyApi::Role
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
data/docs/Rollout.md ADDED
@@ -0,0 +1,8 @@
1
+ # LaunchDarklyApi::Rollout
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **variations** | [**Array&lt;WeightedVariation&gt;**](WeightedVariation.md) | | [optional]
7
+
8
+
data/docs/RootApi.md ADDED
@@ -0,0 +1,56 @@
1
+ # LaunchDarklyApi::RootApi
2
+
3
+ All URIs are relative to *https://app.launchdarkly.com/api/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_root**](RootApi.md#get_root) | **GET** / |
8
+
9
+
10
+ # **get_root**
11
+ > Links get_root
12
+
13
+
14
+
15
+ You can issue a GET request to the root resource to find all of the resource categories supported by the API.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'launchdarkly_api'
21
+ # setup authorization
22
+ LaunchDarklyApi.configure do |config|
23
+ # Configure API key authorization: Token
24
+ config.api_key['Authorization'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Authorization'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = LaunchDarklyApi::RootApi.new
30
+
31
+ begin
32
+ result = api_instance.get_root
33
+ p result
34
+ rescue LaunchDarklyApi::ApiError => e
35
+ puts "Exception when calling RootApi->get_root: #{e}"
36
+ end
37
+ ```
38
+
39
+ ### Parameters
40
+ This endpoint does not need any parameter.
41
+
42
+ ### Return type
43
+
44
+ [**Links**](Links.md)
45
+
46
+ ### Authorization
47
+
48
+ [Token](../README.md#Token)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/json
53
+ - **Accept**: application/json
54
+
55
+
56
+
data/docs/Rule.md ADDED
@@ -0,0 +1,10 @@
1
+ # LaunchDarklyApi::Rule
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **variation** | **Integer** | | [optional]
7
+ **rollout** | [**Rollout**](Rollout.md) | | [optional]
8
+ **clauses** | [**Array&lt;Clause&gt;**](Clause.md) | | [optional]
9
+
10
+
data/docs/Statement.md ADDED
@@ -0,0 +1,12 @@
1
+ # LaunchDarklyApi::Statement
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **resources** | [**Resources**](Resources.md) | | [optional]
7
+ **notresources** | [**Resources**](Resources.md) | Targeted resource will be those resources NOT in this list. The \&quot;resources&#x60;\&quot; field must be empty to use this field. | [optional]
8
+ **actions** | [**Actions**](Actions.md) | | [optional]
9
+ **notactions** | [**Actions**](Actions.md) | Targeted actions will be those actions NOT in this list. The \&quot;actions\&quot; field must be empty to use this field. | [optional]
10
+ **effect** | **String** | | [optional]
11
+
12
+
@@ -0,0 +1,7 @@
1
+ # LaunchDarklyApi::Statements
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
data/docs/Target.md ADDED
@@ -0,0 +1,9 @@
1
+ # LaunchDarklyApi::Target
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **values** | **Array&lt;String&gt;** | | [optional]
7
+ **variation** | **Integer** | | [optional]
8
+
9
+
@@ -0,0 +1,268 @@
1
+ # LaunchDarklyApi::TeamMembersApi
2
+
3
+ All URIs are relative to *https://app.launchdarkly.com/api/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_member**](TeamMembersApi.md#delete_member) | **DELETE** /members/{memberId} | Delete a team member by ID.
8
+ [**get_member**](TeamMembersApi.md#get_member) | **GET** /members/{memberId} | Get a single team member by ID.
9
+ [**get_members**](TeamMembersApi.md#get_members) | **GET** /members | Returns a list of all members in the account.
10
+ [**patch_member**](TeamMembersApi.md#patch_member) | **PATCH** /members/{memberId} | Modify a team member by ID.
11
+ [**post_members**](TeamMembersApi.md#post_members) | **POST** /members | Invite new members.
12
+
13
+
14
+ # **delete_member**
15
+ > delete_member(member_id, )
16
+
17
+ Delete a team member by ID.
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'launchdarkly_api'
23
+ # setup authorization
24
+ LaunchDarklyApi.configure do |config|
25
+ # Configure API key authorization: Token
26
+ config.api_key['Authorization'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['Authorization'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = LaunchDarklyApi::TeamMembersApi.new
32
+
33
+ member_id = "member_id_example" # String | The member ID.
34
+
35
+
36
+ begin
37
+ #Delete a team member by ID.
38
+ api_instance.delete_member(member_id, )
39
+ rescue LaunchDarklyApi::ApiError => e
40
+ puts "Exception when calling TeamMembersApi->delete_member: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **member_id** | **String**| The member ID. |
49
+
50
+ ### Return type
51
+
52
+ nil (empty response body)
53
+
54
+ ### Authorization
55
+
56
+ [Token](../README.md#Token)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+
64
+
65
+ # **get_member**
66
+ > Member get_member(member_id, )
67
+
68
+ Get a single team member by ID.
69
+
70
+ ### Example
71
+ ```ruby
72
+ # load the gem
73
+ require 'launchdarkly_api'
74
+ # setup authorization
75
+ LaunchDarklyApi.configure do |config|
76
+ # Configure API key authorization: Token
77
+ config.api_key['Authorization'] = 'YOUR API KEY'
78
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
79
+ #config.api_key_prefix['Authorization'] = 'Bearer'
80
+ end
81
+
82
+ api_instance = LaunchDarklyApi::TeamMembersApi.new
83
+
84
+ member_id = "member_id_example" # String | The member ID.
85
+
86
+
87
+ begin
88
+ #Get a single team member by ID.
89
+ result = api_instance.get_member(member_id, )
90
+ p result
91
+ rescue LaunchDarklyApi::ApiError => e
92
+ puts "Exception when calling TeamMembersApi->get_member: #{e}"
93
+ end
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+ Name | Type | Description | Notes
99
+ ------------- | ------------- | ------------- | -------------
100
+ **member_id** | **String**| The member ID. |
101
+
102
+ ### Return type
103
+
104
+ [**Member**](Member.md)
105
+
106
+ ### Authorization
107
+
108
+ [Token](../README.md#Token)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: application/json
113
+ - **Accept**: application/json
114
+
115
+
116
+
117
+ # **get_members**
118
+ > Members get_members
119
+
120
+ Returns a list of all members in the account.
121
+
122
+ ### Example
123
+ ```ruby
124
+ # load the gem
125
+ require 'launchdarkly_api'
126
+ # setup authorization
127
+ LaunchDarklyApi.configure do |config|
128
+ # Configure API key authorization: Token
129
+ config.api_key['Authorization'] = 'YOUR API KEY'
130
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
131
+ #config.api_key_prefix['Authorization'] = 'Bearer'
132
+ end
133
+
134
+ api_instance = LaunchDarklyApi::TeamMembersApi.new
135
+
136
+ begin
137
+ #Returns a list of all members in the account.
138
+ result = api_instance.get_members
139
+ p result
140
+ rescue LaunchDarklyApi::ApiError => e
141
+ puts "Exception when calling TeamMembersApi->get_members: #{e}"
142
+ end
143
+ ```
144
+
145
+ ### Parameters
146
+ This endpoint does not need any parameter.
147
+
148
+ ### Return type
149
+
150
+ [**Members**](Members.md)
151
+
152
+ ### Authorization
153
+
154
+ [Token](../README.md#Token)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: application/json
159
+ - **Accept**: application/json
160
+
161
+
162
+
163
+ # **patch_member**
164
+ > Member patch_member(member_id, patch_delta)
165
+
166
+ Modify a team member by ID.
167
+
168
+ ### Example
169
+ ```ruby
170
+ # load the gem
171
+ require 'launchdarkly_api'
172
+ # setup authorization
173
+ LaunchDarklyApi.configure do |config|
174
+ # Configure API key authorization: Token
175
+ config.api_key['Authorization'] = 'YOUR API KEY'
176
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
177
+ #config.api_key_prefix['Authorization'] = 'Bearer'
178
+ end
179
+
180
+ api_instance = LaunchDarklyApi::TeamMembersApi.new
181
+
182
+ member_id = "member_id_example" # String | The member ID.
183
+
184
+ patch_delta = [LaunchDarklyApi::PatchOperation.new] # Array<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
185
+
186
+
187
+ begin
188
+ #Modify a team member by ID.
189
+ result = api_instance.patch_member(member_id, patch_delta)
190
+ p result
191
+ rescue LaunchDarklyApi::ApiError => e
192
+ puts "Exception when calling TeamMembersApi->patch_member: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ Name | Type | Description | Notes
199
+ ------------- | ------------- | ------------- | -------------
200
+ **member_id** | **String**| The member ID. |
201
+ **patch_delta** | [**Array&lt;PatchOperation&gt;**](PatchOperation.md)| Requires a JSON Patch representation of the desired changes to the project. &#39;http://jsonpatch.com/&#39; |
202
+
203
+ ### Return type
204
+
205
+ [**Member**](Member.md)
206
+
207
+ ### Authorization
208
+
209
+ [Token](../README.md#Token)
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: application/json
214
+ - **Accept**: application/json
215
+
216
+
217
+
218
+ # **post_members**
219
+ > post_members(members_body)
220
+
221
+ Invite new members.
222
+
223
+ ### Example
224
+ ```ruby
225
+ # load the gem
226
+ require 'launchdarkly_api'
227
+ # setup authorization
228
+ LaunchDarklyApi.configure do |config|
229
+ # Configure API key authorization: Token
230
+ config.api_key['Authorization'] = 'YOUR API KEY'
231
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
232
+ #config.api_key_prefix['Authorization'] = 'Bearer'
233
+ end
234
+
235
+ api_instance = LaunchDarklyApi::TeamMembersApi.new
236
+
237
+ members_body = [LaunchDarklyApi::MembersBody.new] # Array<MembersBody> | New members to invite.
238
+
239
+
240
+ begin
241
+ #Invite new members.
242
+ api_instance.post_members(members_body)
243
+ rescue LaunchDarklyApi::ApiError => e
244
+ puts "Exception when calling TeamMembersApi->post_members: #{e}"
245
+ end
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ Name | Type | Description | Notes
251
+ ------------- | ------------- | ------------- | -------------
252
+ **members_body** | [**Array&lt;MembersBody&gt;**](MembersBody.md)| New members to invite. |
253
+
254
+ ### Return type
255
+
256
+ nil (empty response body)
257
+
258
+ ### Authorization
259
+
260
+ [Token](../README.md#Token)
261
+
262
+ ### HTTP request headers
263
+
264
+ - **Content-Type**: application/json
265
+ - **Accept**: application/json
266
+
267
+
268
+
data/docs/User.md ADDED
@@ -0,0 +1,18 @@
1
+ # LaunchDarklyApi::User
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **key** | **String** | | [optional]
7
+ **secondary** | **String** | | [optional]
8
+ **ip** | **String** | | [optional]
9
+ **country** | **String** | | [optional]
10
+ **email** | **String** | | [optional]
11
+ **first_name** | **String** | | [optional]
12
+ **last_name** | **String** | | [optional]
13
+ **avatar** | **String** | | [optional]
14
+ **name** | **String** | | [optional]
15
+ **anonymous** | **BOOLEAN** | | [optional]
16
+ **custom** | **Object** | | [optional]
17
+
18
+
@@ -0,0 +1,10 @@
1
+ # LaunchDarklyApi::UserFlagSetting
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_links** | [**Links**](Links.md) | | [optional]
7
+ **_value** | **BOOLEAN** | The most important attribute in the response. The _value is the current setting for the user. For a boolean feature toggle, this will be true, false, or null if there is no defined fallthrough value. | [optional]
8
+ **setting** | **BOOLEAN** | The setting attribute indicates whether you&#39;ve explicitly targeted this user to receive a particular variation. For example, if you have explicitly turned off a feature toggle for a user, setting will be false. A setting of null means that you haven&#39;t assigned that user to a specific variation. | [optional]
9
+
10
+