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::CustomRolesApi
2
+
3
+ All URIs are relative to *https://app.launchdarkly.com/api/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_custom_role**](CustomRolesApi.md#delete_custom_role) | **DELETE** /roles/{customRoleKey} | Delete a custom role by key.
8
+ [**get_custom_role**](CustomRolesApi.md#get_custom_role) | **GET** /roles/{customRoleKey} | Get one custom role by key.
9
+ [**get_custom_roles**](CustomRolesApi.md#get_custom_roles) | **GET** /roles | Return a complete list of custom roles.
10
+ [**patch_custom_role**](CustomRolesApi.md#patch_custom_role) | **PATCH** /roles/{customRoleKey} | Modify a custom role by key.
11
+ [**post_custom_role**](CustomRolesApi.md#post_custom_role) | **POST** /roles | Create a new custom role.
12
+
13
+
14
+ # **delete_custom_role**
15
+ > delete_custom_role(custom_role_key, )
16
+
17
+ Delete a custom role by key.
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::CustomRolesApi.new
32
+
33
+ custom_role_key = "custom_role_key_example" # String | The custom role key.
34
+
35
+
36
+ begin
37
+ #Delete a custom role by key.
38
+ api_instance.delete_custom_role(custom_role_key, )
39
+ rescue LaunchDarklyApi::ApiError => e
40
+ puts "Exception when calling CustomRolesApi->delete_custom_role: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **custom_role_key** | **String**| The custom role key. |
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_custom_role**
66
+ > CustomRole get_custom_role(custom_role_key, )
67
+
68
+ Get one custom role 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::CustomRolesApi.new
83
+
84
+ custom_role_key = "custom_role_key_example" # String | The custom role key.
85
+
86
+
87
+ begin
88
+ #Get one custom role by key.
89
+ result = api_instance.get_custom_role(custom_role_key, )
90
+ p result
91
+ rescue LaunchDarklyApi::ApiError => e
92
+ puts "Exception when calling CustomRolesApi->get_custom_role: #{e}"
93
+ end
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+ Name | Type | Description | Notes
99
+ ------------- | ------------- | ------------- | -------------
100
+ **custom_role_key** | **String**| The custom role key. |
101
+
102
+ ### Return type
103
+
104
+ [**CustomRole**](CustomRole.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_custom_roles**
118
+ > CustomRoles get_custom_roles
119
+
120
+ Return a complete list of custom roles.
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::CustomRolesApi.new
135
+
136
+ begin
137
+ #Return a complete list of custom roles.
138
+ result = api_instance.get_custom_roles
139
+ p result
140
+ rescue LaunchDarklyApi::ApiError => e
141
+ puts "Exception when calling CustomRolesApi->get_custom_roles: #{e}"
142
+ end
143
+ ```
144
+
145
+ ### Parameters
146
+ This endpoint does not need any parameter.
147
+
148
+ ### Return type
149
+
150
+ [**CustomRoles**](CustomRoles.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_custom_role**
164
+ > CustomRole patch_custom_role(custom_role_key, patch_delta)
165
+
166
+ Modify a custom role by key.
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::CustomRolesApi.new
181
+
182
+ custom_role_key = "custom_role_key_example" # String | The custom role key.
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 custom role by key.
189
+ result = api_instance.patch_custom_role(custom_role_key, patch_delta)
190
+ p result
191
+ rescue LaunchDarklyApi::ApiError => e
192
+ puts "Exception when calling CustomRolesApi->patch_custom_role: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ Name | Type | Description | Notes
199
+ ------------- | ------------- | ------------- | -------------
200
+ **custom_role_key** | **String**| The custom role key. |
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
+ [**CustomRole**](CustomRole.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_custom_role**
219
+ > post_custom_role(custom_role_body)
220
+
221
+ Create a new custom role.
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::CustomRolesApi.new
236
+
237
+ custom_role_body = LaunchDarklyApi::CustomRoleBody.new # CustomRoleBody | New role or roles to create.
238
+
239
+
240
+ begin
241
+ #Create a new custom role.
242
+ api_instance.post_custom_role(custom_role_body)
243
+ rescue LaunchDarklyApi::ApiError => e
244
+ puts "Exception when calling CustomRolesApi->post_custom_role: #{e}"
245
+ end
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ Name | Type | Description | Notes
251
+ ------------- | ------------- | ------------- | -------------
252
+ **custom_role_body** | [**CustomRoleBody**](CustomRoleBody.md)| New role or roles to create. |
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
+
@@ -0,0 +1,17 @@
1
+ # LaunchDarklyApi::Environment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_links** | [**Links**](Links.md) | | [optional]
7
+ **_id** | [**Id**](Id.md) | | [optional]
8
+ **key** | **String** | The key for the environment. | [optional]
9
+ **name** | **String** | The name of the environment. | [optional]
10
+ **api_key** | **String** | The SDK key for backend LaunchDarkly SDKs. | [optional]
11
+ **mobile_key** | **String** | The SDK key for mobile LaunchDarkly SDKs. | [optional]
12
+ **color** | **String** | The swatch color for the environment. | [optional]
13
+ **default_ttl** | **Float** | The default TTL. | [optional]
14
+ **secure_mode** | **BOOLEAN** | Determines if this environment is in safe mode. | [optional]
15
+ **default_track_events** | **BOOLEAN** | Set to true to send detailed event information for new flags. | [optional]
16
+
17
+
@@ -0,0 +1,11 @@
1
+ # LaunchDarklyApi::EnvironmentBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The name of the new environment. |
7
+ **key** | **String** | A project-unique key for the new environment. |
8
+ **color** | **String** | A color swatch (as an RGB hex value with no leading &#39;#&#39;, e.g. C8C8C8). |
9
+ **default_ttl** | **Float** | The default TTL for the new environment. | [optional]
10
+
11
+
@@ -0,0 +1,233 @@
1
+ # LaunchDarklyApi::EnvironmentsApi
2
+
3
+ All URIs are relative to *https://app.launchdarkly.com/api/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_environment**](EnvironmentsApi.md#delete_environment) | **DELETE** /projects/{projectKey}/environments/{environmentKey} | Delete an environment in a specific project.
8
+ [**get_environment**](EnvironmentsApi.md#get_environment) | **GET** /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key.
9
+ [**patch_environment**](EnvironmentsApi.md#patch_environment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID.
10
+ [**post_environment**](EnvironmentsApi.md#post_environment) | **POST** /projects/{projectKey}/environments | Create a new environment in a specified project with a given name, key, and swatch color.
11
+
12
+
13
+ # **delete_environment**
14
+ > delete_environment(project_key, environment_key, )
15
+
16
+ Delete an environment in a specific project.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'launchdarkly_api'
22
+ # setup authorization
23
+ LaunchDarklyApi.configure do |config|
24
+ # Configure API key authorization: Token
25
+ config.api_key['Authorization'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['Authorization'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = LaunchDarklyApi::EnvironmentsApi.new
31
+
32
+ project_key = "project_key_example" # String | The project key, used to tie the flags together under one project so they can be managed together.
33
+
34
+ environment_key = "environment_key_example" # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
35
+
36
+
37
+ begin
38
+ #Delete an environment in a specific project.
39
+ api_instance.delete_environment(project_key, environment_key, )
40
+ rescue LaunchDarklyApi::ApiError => e
41
+ puts "Exception when calling EnvironmentsApi->delete_environment: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
50
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
51
+
52
+ ### Return type
53
+
54
+ nil (empty response body)
55
+
56
+ ### Authorization
57
+
58
+ [Token](../README.md#Token)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: application/json
63
+ - **Accept**: application/json
64
+
65
+
66
+
67
+ # **get_environment**
68
+ > Environment get_environment(project_key, environment_key, )
69
+
70
+ Get an environment given a project and key.
71
+
72
+ ### Example
73
+ ```ruby
74
+ # load the gem
75
+ require 'launchdarkly_api'
76
+ # setup authorization
77
+ LaunchDarklyApi.configure do |config|
78
+ # Configure API key authorization: Token
79
+ config.api_key['Authorization'] = 'YOUR API KEY'
80
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
81
+ #config.api_key_prefix['Authorization'] = 'Bearer'
82
+ end
83
+
84
+ api_instance = LaunchDarklyApi::EnvironmentsApi.new
85
+
86
+ project_key = "project_key_example" # String | The project key, used to tie the flags together under one project so they can be managed together.
87
+
88
+ environment_key = "environment_key_example" # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
89
+
90
+
91
+ begin
92
+ #Get an environment given a project and key.
93
+ result = api_instance.get_environment(project_key, environment_key, )
94
+ p result
95
+ rescue LaunchDarklyApi::ApiError => e
96
+ puts "Exception when calling EnvironmentsApi->get_environment: #{e}"
97
+ end
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
105
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
106
+
107
+ ### Return type
108
+
109
+ [**Environment**](Environment.md)
110
+
111
+ ### Authorization
112
+
113
+ [Token](../README.md#Token)
114
+
115
+ ### HTTP request headers
116
+
117
+ - **Content-Type**: application/json
118
+ - **Accept**: application/json
119
+
120
+
121
+
122
+ # **patch_environment**
123
+ > Environment patch_environment(project_key, environment_key, patch_delta)
124
+
125
+ Modify an environment by ID.
126
+
127
+ ### Example
128
+ ```ruby
129
+ # load the gem
130
+ require 'launchdarkly_api'
131
+ # setup authorization
132
+ LaunchDarklyApi.configure do |config|
133
+ # Configure API key authorization: Token
134
+ config.api_key['Authorization'] = 'YOUR API KEY'
135
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
136
+ #config.api_key_prefix['Authorization'] = 'Bearer'
137
+ end
138
+
139
+ api_instance = LaunchDarklyApi::EnvironmentsApi.new
140
+
141
+ project_key = "project_key_example" # String | The project key, used to tie the flags together under one project so they can be managed together.
142
+
143
+ environment_key = "environment_key_example" # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
144
+
145
+ patch_delta = [LaunchDarklyApi::PatchOperation.new] # Array<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
146
+
147
+
148
+ begin
149
+ #Modify an environment by ID.
150
+ result = api_instance.patch_environment(project_key, environment_key, patch_delta)
151
+ p result
152
+ rescue LaunchDarklyApi::ApiError => e
153
+ puts "Exception when calling EnvironmentsApi->patch_environment: #{e}"
154
+ end
155
+ ```
156
+
157
+ ### Parameters
158
+
159
+ Name | Type | Description | Notes
160
+ ------------- | ------------- | ------------- | -------------
161
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
162
+ **environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
163
+ **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; |
164
+
165
+ ### Return type
166
+
167
+ [**Environment**](Environment.md)
168
+
169
+ ### Authorization
170
+
171
+ [Token](../README.md#Token)
172
+
173
+ ### HTTP request headers
174
+
175
+ - **Content-Type**: application/json
176
+ - **Accept**: application/json
177
+
178
+
179
+
180
+ # **post_environment**
181
+ > post_environment(project_key, environment_body)
182
+
183
+ Create a new environment in a specified project with a given name, key, and swatch color.
184
+
185
+ ### Example
186
+ ```ruby
187
+ # load the gem
188
+ require 'launchdarkly_api'
189
+ # setup authorization
190
+ LaunchDarklyApi.configure do |config|
191
+ # Configure API key authorization: Token
192
+ config.api_key['Authorization'] = 'YOUR API KEY'
193
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
194
+ #config.api_key_prefix['Authorization'] = 'Bearer'
195
+ end
196
+
197
+ api_instance = LaunchDarklyApi::EnvironmentsApi.new
198
+
199
+ project_key = "project_key_example" # String | The project key, used to tie the flags together under one project so they can be managed together.
200
+
201
+ environment_body = LaunchDarklyApi::EnvironmentBody.new # EnvironmentBody | New environment.
202
+
203
+
204
+ begin
205
+ #Create a new environment in a specified project with a given name, key, and swatch color.
206
+ api_instance.post_environment(project_key, environment_body)
207
+ rescue LaunchDarklyApi::ApiError => e
208
+ puts "Exception when calling EnvironmentsApi->post_environment: #{e}"
209
+ end
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ Name | Type | Description | Notes
215
+ ------------- | ------------- | ------------- | -------------
216
+ **project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
217
+ **environment_body** | [**EnvironmentBody**](EnvironmentBody.md)| New environment. |
218
+
219
+ ### Return type
220
+
221
+ nil (empty response body)
222
+
223
+ ### Authorization
224
+
225
+ [Token](../README.md#Token)
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: application/json
230
+ - **Accept**: application/json
231
+
232
+
233
+
@@ -0,0 +1,9 @@
1
+ # LaunchDarklyApi::Fallthrough
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **variation** | **Integer** | | [optional]
7
+ **rollout** | [**Rollout**](Rollout.md) | | [optional]
8
+
9
+
@@ -0,0 +1,20 @@
1
+ # LaunchDarklyApi::FeatureFlag
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **key** | **String** | | [optional]
7
+ **name** | **String** | Name of the feature flag. | [optional]
8
+ **description** | **String** | Description of the feature flag. | [optional]
9
+ **kind** | **String** | Whether the feature flag is a boolean flag or multivariate. | [optional]
10
+ **creation_date** | **Float** | A unix epoch time in milliseconds specifying the creation time of this flag. | [optional]
11
+ **include_in_snippet** | **BOOLEAN** | | [optional]
12
+ **temporary** | **BOOLEAN** | Whether or not this flag is temporary. | [optional]
13
+ **maintainer_id** | **String** | The ID of the member that should maintain this flag. | [optional]
14
+ **tags** | **Array&lt;String&gt;** | An array of tags for this feature flag. | [optional]
15
+ **variations** | [**Array&lt;Variation&gt;**](Variation.md) | The variations for this feature flag. | [optional]
16
+ **_links** | [**Links**](Links.md) | | [optional]
17
+ **_maintainer** | [**Member**](Member.md) | | [optional]
18
+ **environments** | [**Hash&lt;String, FeatureFlagConfig&gt;**](FeatureFlagConfig.md) | | [optional]
19
+
20
+
@@ -0,0 +1,13 @@
1
+ # LaunchDarklyApi::FeatureFlagBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | A human-friendly name for the feature flag. Remember to note if this flag is intended to be temporary or permanent. |
7
+ **key** | **String** | A unique key that will be used to reference the flag in your code. |
8
+ **variations** | [**Array&lt;Variation&gt;**](Variation.md) | An array of possible variations for the flag. |
9
+ **temporary** | **BOOLEAN** | Whether or not the flag is a temporary flag. | [optional]
10
+ **tags** | **Array&lt;String&gt;** | Tags for the feature flag. | [optional]
11
+ **include_in_snippet** | **BOOLEAN** | Whether or not this flag should be made available to the client-side JavaScript SDK. | [optional]
12
+
13
+
@@ -0,0 +1,19 @@
1
+ # LaunchDarklyApi::FeatureFlagConfig
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **on** | **BOOLEAN** | | [optional]
7
+ **archived** | **BOOLEAN** | | [optional]
8
+ **salt** | **String** | | [optional]
9
+ **sel** | **String** | | [optional]
10
+ **last_modified** | **Integer** | | [optional]
11
+ **version** | **Integer** | | [optional]
12
+ **targets** | [**Array&lt;Target&gt;**](Target.md) | | [optional]
13
+ **rules** | [**Array&lt;Rule&gt;**](Rule.md) | | [optional]
14
+ **fallthrough** | [**Fallthrough**](Fallthrough.md) | | [optional]
15
+ **off_variation** | **Integer** | | [optional]
16
+ **prerequisites** | [**Array&lt;Prerequisite&gt;**](Prerequisite.md) | | [optional]
17
+ **track_events** | **BOOLEAN** | Set to true to send detailed event information for this flag. | [optional]
18
+
19
+
@@ -0,0 +1,11 @@
1
+ # LaunchDarklyApi::FeatureFlagStatus
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_links** | [**Links**](Links.md) | | [optional]
7
+ **name** | **String** | | Name | Description | | --------:| ----------- | | new | the feature flag was created within the last 7 days, and has not been requested yet | | active | the feature flag was requested by your servers or clients within the last 7 days | | inactive | the feature flag was created more than 7 days ago, and hasn&#39;t been requested by your servers or clients within the past 7 days | | launched | one variation of the feature flag has been rolled out to all your users for at least 7 days | | [optional]
8
+ **last_requested** | **String** | | [optional]
9
+ **default** | **BOOLEAN** | | [optional]
10
+
11
+
@@ -0,0 +1,9 @@
1
+ # LaunchDarklyApi::FeatureFlagStatuses
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_links** | [**Links**](Links.md) | | [optional]
7
+ **items** | [**Array&lt;FeatureFlagStatus&gt;**](FeatureFlagStatus.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # LaunchDarklyApi::FeatureFlags
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_links** | [**Links**](Links.md) | | [optional]
7
+ **items** | [**Array&lt;FeatureFlag&gt;**](FeatureFlag.md) | | [optional]
8
+
9
+