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.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/LICENSE.txt +13 -0
- data/README.md +264 -0
- data/Rakefile +8 -0
- data/docs/Action.md +7 -0
- data/docs/Actions.md +7 -0
- data/docs/AuditLogApi.md +123 -0
- data/docs/AuditLogEntries.md +9 -0
- data/docs/AuditLogEntry.md +19 -0
- data/docs/AuditLogEntryTarget.md +10 -0
- data/docs/Clause.md +11 -0
- data/docs/CustomRole.md +13 -0
- data/docs/CustomRoleBody.md +11 -0
- data/docs/CustomRoleKeyOrId.md +7 -0
- data/docs/CustomRoles.md +9 -0
- data/docs/CustomRolesApi.md +268 -0
- data/docs/Environment.md +17 -0
- data/docs/EnvironmentBody.md +11 -0
- data/docs/EnvironmentsApi.md +233 -0
- data/docs/Fallthrough.md +9 -0
- data/docs/FeatureFlag.md +20 -0
- data/docs/FeatureFlagBody.md +13 -0
- data/docs/FeatureFlagConfig.md +19 -0
- data/docs/FeatureFlagStatus.md +11 -0
- data/docs/FeatureFlagStatuses.md +9 -0
- data/docs/FeatureFlags.md +9 -0
- data/docs/FeatureFlagsApi.md +411 -0
- data/docs/Id.md +7 -0
- data/docs/Link.md +9 -0
- data/docs/Links.md +9 -0
- data/docs/Member.md +14 -0
- data/docs/Members.md +9 -0
- data/docs/MembersBody.md +13 -0
- data/docs/PatchComment.md +9 -0
- data/docs/PatchOperation.md +10 -0
- data/docs/Policy.md +10 -0
- data/docs/Prerequisite.md +9 -0
- data/docs/Project.md +12 -0
- data/docs/ProjectBody.md +9 -0
- data/docs/Projects.md +9 -0
- data/docs/ProjectsApi.md +268 -0
- data/docs/Resource.md +7 -0
- data/docs/Resources.md +7 -0
- data/docs/Role.md +7 -0
- data/docs/Rollout.md +8 -0
- data/docs/RootApi.md +56 -0
- data/docs/Rule.md +10 -0
- data/docs/Statement.md +12 -0
- data/docs/Statements.md +7 -0
- data/docs/Target.md +9 -0
- data/docs/TeamMembersApi.md +268 -0
- data/docs/User.md +18 -0
- data/docs/UserFlagSetting.md +10 -0
- data/docs/UserFlagSettings.md +9 -0
- data/docs/UserRecord.md +12 -0
- data/docs/UserSegment.md +17 -0
- data/docs/UserSegmentBody.md +11 -0
- data/docs/UserSegmentRule.md +10 -0
- data/docs/UserSegments.md +9 -0
- data/docs/UserSegmentsApi.md +305 -0
- data/docs/UserSettingsApi.md +193 -0
- data/docs/UserSettingsBody.md +8 -0
- data/docs/Users.md +10 -0
- data/docs/UsersApi.md +255 -0
- data/docs/Variation.md +10 -0
- data/docs/Webhook.md +14 -0
- data/docs/WebhookBody.md +12 -0
- data/docs/Webhooks.md +9 -0
- data/docs/WebhooksApi.md +268 -0
- data/docs/WeightedVariation.md +9 -0
- data/git_push.sh +55 -0
- data/launchdarkly_api-2.0.2.gem +0 -0
- data/launchdarkly_api.gemspec +46 -0
- data/lib/.DS_Store +0 -0
- data/lib/launchdarkly_api/api/audit_log_api.rb +142 -0
- data/lib/launchdarkly_api/api/custom_roles_api.rb +296 -0
- data/lib/launchdarkly_api/api/environments_api.rb +271 -0
- data/lib/launchdarkly_api/api/feature_flags_api.rb +463 -0
- data/lib/launchdarkly_api/api/projects_api.rb +296 -0
- data/lib/launchdarkly_api/api/root_api.rb +72 -0
- data/lib/launchdarkly_api/api/team_members_api.rb +296 -0
- data/lib/launchdarkly_api/api/user_segments_api.rb +359 -0
- data/lib/launchdarkly_api/api/user_settings_api.rb +241 -0
- data/lib/launchdarkly_api/api/users_api.rb +299 -0
- data/lib/launchdarkly_api/api/webhooks_api.rb +296 -0
- data/lib/launchdarkly_api/api_client.rb +389 -0
- data/lib/launchdarkly_api/api_error.rb +38 -0
- data/lib/launchdarkly_api/configuration.rb +209 -0
- data/lib/launchdarkly_api/models/action.rb +179 -0
- data/lib/launchdarkly_api/models/actions.rb +179 -0
- data/lib/launchdarkly_api/models/audit_log_entries.rb +199 -0
- data/lib/launchdarkly_api/models/audit_log_entry.rb +287 -0
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +208 -0
- data/lib/launchdarkly_api/models/clause.rb +217 -0
- data/lib/launchdarkly_api/models/custom_role.rb +237 -0
- data/lib/launchdarkly_api/models/custom_role_body.rb +234 -0
- data/lib/launchdarkly_api/models/custom_role_key_or_id.rb +179 -0
- data/lib/launchdarkly_api/models/custom_roles.rb +197 -0
- data/lib/launchdarkly_api/models/environment.rb +277 -0
- data/lib/launchdarkly_api/models/environment_body.rb +234 -0
- data/lib/launchdarkly_api/models/fallthrough.rb +197 -0
- data/lib/launchdarkly_api/models/feature_flag.rb +310 -0
- data/lib/launchdarkly_api/models/feature_flag_body.rb +258 -0
- data/lib/launchdarkly_api/models/feature_flag_config.rb +294 -0
- data/lib/launchdarkly_api/models/feature_flag_status.rb +249 -0
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +199 -0
- data/lib/launchdarkly_api/models/feature_flags.rb +199 -0
- data/lib/launchdarkly_api/models/id.rb +179 -0
- data/lib/launchdarkly_api/models/link.rb +197 -0
- data/lib/launchdarkly_api/models/links.rb +197 -0
- data/lib/launchdarkly_api/models/member.rb +244 -0
- data/lib/launchdarkly_api/models/members.rb +197 -0
- data/lib/launchdarkly_api/models/members_body.rb +240 -0
- data/lib/launchdarkly_api/models/patch_comment.rb +199 -0
- data/lib/launchdarkly_api/models/patch_operation.rb +221 -0
- data/lib/launchdarkly_api/models/policy.rb +207 -0
- data/lib/launchdarkly_api/models/prerequisite.rb +197 -0
- data/lib/launchdarkly_api/models/project.rb +226 -0
- data/lib/launchdarkly_api/models/project_body.rb +207 -0
- data/lib/launchdarkly_api/models/projects.rb +199 -0
- data/lib/launchdarkly_api/models/resource.rb +179 -0
- data/lib/launchdarkly_api/models/resources.rb +179 -0
- data/lib/launchdarkly_api/models/role.rb +33 -0
- data/lib/launchdarkly_api/models/rollout.rb +190 -0
- data/lib/launchdarkly_api/models/rule.rb +208 -0
- data/lib/launchdarkly_api/models/statement.rb +259 -0
- data/lib/launchdarkly_api/models/statements.rb +179 -0
- data/lib/launchdarkly_api/models/target.rb +199 -0
- data/lib/launchdarkly_api/models/user.rb +278 -0
- data/lib/launchdarkly_api/models/user_flag_setting.rb +208 -0
- data/lib/launchdarkly_api/models/user_flag_settings.rb +197 -0
- data/lib/launchdarkly_api/models/user_record.rb +224 -0
- data/lib/launchdarkly_api/models/user_segment.rb +300 -0
- data/lib/launchdarkly_api/models/user_segment_body.rb +231 -0
- data/lib/launchdarkly_api/models/user_segment_rule.rb +208 -0
- data/lib/launchdarkly_api/models/user_segments.rb +199 -0
- data/lib/launchdarkly_api/models/user_settings_body.rb +189 -0
- data/lib/launchdarkly_api/models/users.rb +208 -0
- data/lib/launchdarkly_api/models/variation.rb +211 -0
- data/lib/launchdarkly_api/models/webhook.rb +249 -0
- data/lib/launchdarkly_api/models/webhook_body.rb +244 -0
- data/lib/launchdarkly_api/models/webhooks.rb +199 -0
- data/lib/launchdarkly_api/models/weighted_variation.rb +197 -0
- data/lib/launchdarkly_api/version.rb +15 -0
- data/lib/launchdarkly_api.rb +105 -0
- data/lib/swagger_client/.DS_Store +0 -0
- data/spec/api/audit_log_api_spec.rb +63 -0
- data/spec/api/custom_roles_api_spec.rb +95 -0
- data/spec/api/environments_api_spec.rb +88 -0
- data/spec/api/feature_flags_api_spec.rb +130 -0
- data/spec/api/projects_api_spec.rb +95 -0
- data/spec/api/root_api_spec.rb +46 -0
- data/spec/api/team_members_api_spec.rb +95 -0
- data/spec/api/user_segments_api_spec.rb +106 -0
- data/spec/api/user_settings_api_spec.rb +80 -0
- data/spec/api/users_api_spec.rb +96 -0
- data/spec/api/webhooks_api_spec.rb +95 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/action_spec.rb +36 -0
- data/spec/models/actions_spec.rb +36 -0
- data/spec/models/audit_log_entries_spec.rb +48 -0
- data/spec/models/audit_log_entry_spec.rb +108 -0
- data/spec/models/audit_log_entry_target_spec.rb +54 -0
- data/spec/models/clause_spec.rb +60 -0
- data/spec/models/custom_role_body_spec.rb +60 -0
- data/spec/models/custom_role_key_or_id_spec.rb +36 -0
- data/spec/models/custom_role_spec.rb +72 -0
- data/spec/models/custom_roles_spec.rb +48 -0
- data/spec/models/environment_body_spec.rb +60 -0
- data/spec/models/environment_spec.rb +96 -0
- data/spec/models/fallthrough_spec.rb +48 -0
- data/spec/models/feature_flag_body_spec.rb +72 -0
- data/spec/models/feature_flag_config_spec.rb +108 -0
- data/spec/models/feature_flag_spec.rb +114 -0
- data/spec/models/feature_flag_status_spec.rb +64 -0
- data/spec/models/feature_flag_statuses_spec.rb +48 -0
- data/spec/models/feature_flags_spec.rb +48 -0
- data/spec/models/id_spec.rb +36 -0
- data/spec/models/link_spec.rb +48 -0
- data/spec/models/links_spec.rb +48 -0
- data/spec/models/member_spec.rb +78 -0
- data/spec/models/members_body_spec.rb +72 -0
- data/spec/models/members_spec.rb +48 -0
- data/spec/models/patch_comment_spec.rb +48 -0
- data/spec/models/patch_operation_spec.rb +54 -0
- data/spec/models/policy_spec.rb +54 -0
- data/spec/models/prerequisite_spec.rb +48 -0
- data/spec/models/project_body_spec.rb +48 -0
- data/spec/models/project_spec.rb +66 -0
- data/spec/models/projects_spec.rb +48 -0
- data/spec/models/resource_spec.rb +36 -0
- data/spec/models/resources_spec.rb +36 -0
- data/spec/models/role_spec.rb +36 -0
- data/spec/models/rollout_spec.rb +42 -0
- data/spec/models/rule_spec.rb +54 -0
- data/spec/models/statement_spec.rb +70 -0
- data/spec/models/statements_spec.rb +36 -0
- data/spec/models/target_spec.rb +48 -0
- data/spec/models/user_flag_setting_spec.rb +54 -0
- data/spec/models/user_flag_settings_spec.rb +48 -0
- data/spec/models/user_record_spec.rb +66 -0
- data/spec/models/user_segment_body_spec.rb +60 -0
- data/spec/models/user_segment_rule_spec.rb +54 -0
- data/spec/models/user_segment_spec.rb +96 -0
- data/spec/models/user_segments_spec.rb +48 -0
- data/spec/models/user_settings_body_spec.rb +42 -0
- data/spec/models/user_spec.rb +102 -0
- data/spec/models/users_spec.rb +54 -0
- data/spec/models/variation_spec.rb +54 -0
- data/spec/models/webhook_body_spec.rb +66 -0
- data/spec/models/webhook_spec.rb +78 -0
- data/spec/models/webhooks_spec.rb +48 -0
- data/spec/models/weighted_variation_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- data/test.rb +50 -0
- metadata +509 -0
data/docs/ProjectsApi.md
ADDED
|
@@ -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<PatchOperation>**](PatchOperation.md)| Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' |
|
|
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
data/docs/Resources.md
ADDED
data/docs/Role.md
ADDED
data/docs/Rollout.md
ADDED
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<Clause>**](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 \"resources`\" 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 \"actions\" field must be empty to use this field. | [optional]
|
|
10
|
+
**effect** | **String** | | [optional]
|
|
11
|
+
|
|
12
|
+
|
data/docs/Statements.md
ADDED
data/docs/Target.md
ADDED
|
@@ -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<PatchOperation>**](PatchOperation.md)| Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' |
|
|
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<MembersBody>**](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'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't assigned that user to a specific variation. | [optional]
|
|
9
|
+
|
|
10
|
+
|