launchdarkly_api 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e5a22af9605471158295cb1d2ac8cc5217bdab29
|
4
|
+
data.tar.gz: e97ffa8b1be31ab648c7362ad911140acacc1609
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d2b1716648e56ad03a0c0c1a4370cda2341e75fa902f1092196d1518ce9ce0cf2080b7e13ce5b4d7bb864dd948383d4ea7eecb2d16cf4ac90147c442c974b449
|
7
|
+
data.tar.gz: fda9a4ea0b8b98d3a884ddd5770018a27682020ce4e61f54765fc260cff1409ce43aafd350bdef7e8fd451b3ac6b1bd643df2d19299458fb109384b884d97a69
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
swagger_client (1.0.0)
|
5
|
+
json (~> 2.1, >= 2.1.0)
|
6
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ZenTest (4.11.1)
|
12
|
+
addressable (2.5.2)
|
13
|
+
public_suffix (>= 2.0.2, < 4.0)
|
14
|
+
autotest (4.4.6)
|
15
|
+
ZenTest (>= 4.4.1)
|
16
|
+
autotest-fsevent (0.2.13)
|
17
|
+
sys-uname
|
18
|
+
autotest-growl (0.2.16)
|
19
|
+
autotest-rails-pure (4.1.2)
|
20
|
+
crack (0.4.3)
|
21
|
+
safe_yaml (~> 1.0.0)
|
22
|
+
diff-lcs (1.3)
|
23
|
+
ethon (0.11.0)
|
24
|
+
ffi (>= 1.3.0)
|
25
|
+
ffi (1.9.25)
|
26
|
+
hashdiff (0.3.7)
|
27
|
+
json (2.1.0)
|
28
|
+
public_suffix (3.0.2)
|
29
|
+
rake (12.0.0)
|
30
|
+
rspec (3.7.0)
|
31
|
+
rspec-core (~> 3.7.0)
|
32
|
+
rspec-expectations (~> 3.7.0)
|
33
|
+
rspec-mocks (~> 3.7.0)
|
34
|
+
rspec-core (3.7.1)
|
35
|
+
rspec-support (~> 3.7.0)
|
36
|
+
rspec-expectations (3.7.0)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.7.0)
|
39
|
+
rspec-mocks (3.7.0)
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
+
rspec-support (~> 3.7.0)
|
42
|
+
rspec-support (3.7.1)
|
43
|
+
safe_yaml (1.0.4)
|
44
|
+
sys-uname (1.0.3)
|
45
|
+
ffi (>= 1.0.0)
|
46
|
+
typhoeus (1.3.0)
|
47
|
+
ethon (>= 0.9.0)
|
48
|
+
vcr (3.0.3)
|
49
|
+
webmock (1.24.6)
|
50
|
+
addressable (>= 2.3.6)
|
51
|
+
crack (>= 0.3.2)
|
52
|
+
hashdiff
|
53
|
+
|
54
|
+
PLATFORMS
|
55
|
+
ruby
|
56
|
+
|
57
|
+
DEPENDENCIES
|
58
|
+
autotest (~> 4.4, >= 4.4.6)
|
59
|
+
autotest-fsevent (~> 0.2, >= 0.2.12)
|
60
|
+
autotest-growl (~> 0.2, >= 0.2.16)
|
61
|
+
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
62
|
+
rake (~> 12.0.0)
|
63
|
+
rspec (~> 3.6, >= 3.6.0)
|
64
|
+
swagger_client!
|
65
|
+
vcr (~> 3.0, >= 3.0.1)
|
66
|
+
webmock (~> 1.24, >= 1.24.3)
|
67
|
+
|
68
|
+
BUNDLED WITH
|
69
|
+
1.16.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright 2017 Catamorphic, Co.
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,264 @@
|
|
1
|
+
This repository contains a client library for LaunchDarkly's REST API. This client was automatically
|
2
|
+
generated from our [OpenAPI specification](https://github.com/launchdarkly/ld-openapi).
|
3
|
+
|
4
|
+
This REST API is for custom integrations, data export, or automating your feature flag workflows. *DO NOT* use this client library to add feature flags to your web or mobile application. To integrate feature flags with your application, please see the [SDK documentation](https://docs.launchdarkly.com/v2.0/docs)
|
5
|
+
|
6
|
+
# launchdarkly_api
|
7
|
+
|
8
|
+
`launchdarkly_api` - the Ruby gem for the LaunchDarkly REST API
|
9
|
+
|
10
|
+
Build custom integrations with the LaunchDarkly REST API
|
11
|
+
|
12
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
13
|
+
|
14
|
+
- API version: 2.0.3
|
15
|
+
- Package version: 1.0.0
|
16
|
+
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
17
|
+
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
|
18
|
+
|
19
|
+
## Installation
|
20
|
+
|
21
|
+
In the steps shown below, substitute the current API version where you see `VERSION`.
|
22
|
+
|
23
|
+
### To use the latest release from RubyGems
|
24
|
+
|
25
|
+
Add this to your Gemfile:
|
26
|
+
|
27
|
+
gem 'launchdarkly_api', '~> VERSION'
|
28
|
+
|
29
|
+
### To use source code from Git
|
30
|
+
|
31
|
+
Use this method if you want to use an alternate branch or a fork from Git. Add the following in the Gemfile:
|
32
|
+
|
33
|
+
gem 'launchdarkly_api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
34
|
+
|
35
|
+
### To build the gem locally
|
36
|
+
|
37
|
+
Check out the source code, then build it:
|
38
|
+
|
39
|
+
```shell
|
40
|
+
gem build launchdarkly_api.gemspec
|
41
|
+
```
|
42
|
+
|
43
|
+
Then install the gem locally:
|
44
|
+
|
45
|
+
```shell
|
46
|
+
gem install ./launchdarkly-api-VERSION.gem
|
47
|
+
# To include development dependencies, use gem install --dev
|
48
|
+
```
|
49
|
+
|
50
|
+
Finally add this to the Gemfile:
|
51
|
+
|
52
|
+
gem 'launchdarkly_api', '~> VERSION'
|
53
|
+
|
54
|
+
## Usage examples
|
55
|
+
|
56
|
+
### Getting the name and description of a feature flag
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
require 'launchdarkly_api'
|
60
|
+
|
61
|
+
api_key = 'put a valid API key for your account here'
|
62
|
+
project_key = 'put the key of your project here'
|
63
|
+
flag_key = 'put the key of a feature flag here'
|
64
|
+
|
65
|
+
LaunchDarklyApi.configure do |config|
|
66
|
+
config.api_key['Authorization'] = api_key
|
67
|
+
end
|
68
|
+
|
69
|
+
flag_api = LaunchDarklyApi::FeatureFlagsApi.new
|
70
|
+
|
71
|
+
begin
|
72
|
+
flag = flag_api.get_feature_flag(project_key, flag_key)
|
73
|
+
puts "Flag key: #{flag_key}, name: #{flag.name}, description: #{flag.description}"
|
74
|
+
rescue LaunchDarklyApi::ApiError => e
|
75
|
+
puts "API returned error: #{e.message} #{e.response_body}"
|
76
|
+
end
|
77
|
+
```
|
78
|
+
|
79
|
+
### Modifying a feature flag
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
require 'launchdarkly_api'
|
83
|
+
|
84
|
+
api_key = 'put a valid API key for your account here'
|
85
|
+
project_key = 'put the key of your project here'
|
86
|
+
environment_key = 'the key of the environment where you want to change the flag'
|
87
|
+
flag_key = 'put the key of a feature flag here'
|
88
|
+
|
89
|
+
LaunchDarklyApi.configure do |config|
|
90
|
+
config.api_key['Authorization'] = api_key
|
91
|
+
end
|
92
|
+
|
93
|
+
flag_api = LaunchDarklyApi::FeatureFlagsApi.new
|
94
|
+
|
95
|
+
# This example turns on targeting for the specified flag.
|
96
|
+
# Properties are modified with JSON Patch syntax - http://jsonpatch.com/
|
97
|
+
# Note that all environment-specific properties have a path prefix that includes the environment key.
|
98
|
+
property_path = "/environments/#{environment_key}/on"
|
99
|
+
new_value = true
|
100
|
+
patches = [ LaunchDarklyApi::PatchOperation.new(op: 'replace', path: property_path, value: new_value) ]
|
101
|
+
patch_and_comment = LaunchDarklyApi::PatchComment.new(patch: patches, comment: 'turning flag on')
|
102
|
+
|
103
|
+
begin
|
104
|
+
flag_api.patch_feature_flag(project_key, flag_key, patch_and_comment)
|
105
|
+
rescue LaunchDarklyApi::ApiError => e
|
106
|
+
puts "API returned error: #{e.message} #{e.response_body}"
|
107
|
+
end
|
108
|
+
```
|
109
|
+
|
110
|
+
### Querying the audit log
|
111
|
+
|
112
|
+
```ruby
|
113
|
+
# Load the gem
|
114
|
+
require 'launchdarkly_api'
|
115
|
+
|
116
|
+
api_key = 'put a valid API key for your account here'
|
117
|
+
|
118
|
+
LaunchDarklyApi.configure do |config|
|
119
|
+
config.api_key['Authorization'] = api_key
|
120
|
+
end
|
121
|
+
|
122
|
+
audit_log_api = LaunchDarklyApi::AuditLogApi.new
|
123
|
+
|
124
|
+
current_time_millis = (Time.now.to_f * 1000).to_i
|
125
|
+
one_hour_ago = current_time_millis - (60 * 60 * 1000)
|
126
|
+
|
127
|
+
opts = {
|
128
|
+
after: one_hour_ago,
|
129
|
+
limit: 10
|
130
|
+
} # see API documentation for other options you can use here
|
131
|
+
|
132
|
+
begin
|
133
|
+
result = audit_log_api.get_audit_log_entries(opts)
|
134
|
+
puts "Audit log entries from the last hour:"
|
135
|
+
result.items.each { |item|
|
136
|
+
puts item.title
|
137
|
+
}
|
138
|
+
rescue LaunchDarklyApi::ApiError => e
|
139
|
+
puts "API returned error: #{e.message} #{e.response_body}"
|
140
|
+
end
|
141
|
+
|
142
|
+
```
|
143
|
+
|
144
|
+
## Documentation for API Endpoints
|
145
|
+
|
146
|
+
All URIs are relative to *https://app.launchdarkly.com/api/v2*
|
147
|
+
|
148
|
+
Class | Method | HTTP request | Description
|
149
|
+
------------ | ------------- | ------------- | -------------
|
150
|
+
*LaunchDarklyApi::AuditLogApi* | [**get_audit_log_entries**](docs/AuditLogApi.md#get_audit_log_entries) | **GET** /auditlog | Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
|
151
|
+
*LaunchDarklyApi::AuditLogApi* | [**get_audit_log_entry**](docs/AuditLogApi.md#get_audit_log_entry) | **GET** /auditlog/{resourceId} | Use this endpoint to fetch a single audit log entry by its resouce ID.
|
152
|
+
*LaunchDarklyApi::CustomRolesApi* | [**delete_custom_role**](docs/CustomRolesApi.md#delete_custom_role) | **DELETE** /roles/{customRoleKey} | Delete a custom role by key.
|
153
|
+
*LaunchDarklyApi::CustomRolesApi* | [**get_custom_role**](docs/CustomRolesApi.md#get_custom_role) | **GET** /roles/{customRoleKey} | Get one custom role by key.
|
154
|
+
*LaunchDarklyApi::CustomRolesApi* | [**get_custom_roles**](docs/CustomRolesApi.md#get_custom_roles) | **GET** /roles | Return a complete list of custom roles.
|
155
|
+
*LaunchDarklyApi::CustomRolesApi* | [**patch_custom_role**](docs/CustomRolesApi.md#patch_custom_role) | **PATCH** /roles/{customRoleKey} | Modify a custom role by key.
|
156
|
+
*LaunchDarklyApi::CustomRolesApi* | [**post_custom_role**](docs/CustomRolesApi.md#post_custom_role) | **POST** /roles | Create a new custom role.
|
157
|
+
*LaunchDarklyApi::EnvironmentsApi* | [**delete_environment**](docs/EnvironmentsApi.md#delete_environment) | **DELETE** /projects/{projectKey}/environments/{environmentKey} | Delete an environment in a specific project.
|
158
|
+
*LaunchDarklyApi::EnvironmentsApi* | [**get_environment**](docs/EnvironmentsApi.md#get_environment) | **GET** /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key.
|
159
|
+
*LaunchDarklyApi::EnvironmentsApi* | [**patch_environment**](docs/EnvironmentsApi.md#patch_environment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID.
|
160
|
+
*LaunchDarklyApi::EnvironmentsApi* | [**post_environment**](docs/EnvironmentsApi.md#post_environment) | **POST** /projects/{projectKey}/environments | Create a new environment in a specified project with a given name, key, and swatch color.
|
161
|
+
*LaunchDarklyApi::FeatureFlagsApi* | [**delete_feature_flag**](docs/FeatureFlagsApi.md#delete_feature_flag) | **DELETE** /flags/{projectKey}/{featureFlagKey} | Delete a feature flag in all environments. Be careful-- only delete feature flags that are no longer being used by your application.
|
162
|
+
*LaunchDarklyApi::FeatureFlagsApi* | [**get_feature_flag**](docs/FeatureFlagsApi.md#get_feature_flag) | **GET** /flags/{projectKey}/{featureFlagKey} | Get a single feature flag by key.
|
163
|
+
*LaunchDarklyApi::FeatureFlagsApi* | [**get_feature_flag_status**](docs/FeatureFlagsApi.md#get_feature_flag_status) | **GET** /flag-statuses/{projectKey}/{environmentKey}/{featureFlagKey} | Get the status for a particular feature flag.
|
164
|
+
*LaunchDarklyApi::FeatureFlagsApi* | [**get_feature_flag_statuses**](docs/FeatureFlagsApi.md#get_feature_flag_statuses) | **GET** /flag-statuses/{projectKey}/{environmentKey} | Get a list of statuses for all feature flags. The status includes the last time the feature flag was requested, as well as the state of the flag.
|
165
|
+
*LaunchDarklyApi::FeatureFlagsApi* | [**get_feature_flags**](docs/FeatureFlagsApi.md#get_feature_flags) | **GET** /flags/{projectKey} | Get a list of all features in the given project.
|
166
|
+
*LaunchDarklyApi::FeatureFlagsApi* | [**patch_feature_flag**](docs/FeatureFlagsApi.md#patch_feature_flag) | **PATCH** /flags/{projectKey}/{featureFlagKey} | Perform a partial update to a feature.
|
167
|
+
*LaunchDarklyApi::FeatureFlagsApi* | [**post_feature_flag**](docs/FeatureFlagsApi.md#post_feature_flag) | **POST** /flags/{projectKey} | Creates a new feature flag.
|
168
|
+
*LaunchDarklyApi::ProjectsApi* | [**delete_project**](docs/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.
|
169
|
+
*LaunchDarklyApi::ProjectsApi* | [**get_project**](docs/ProjectsApi.md#get_project) | **GET** /projects/{projectKey} | Fetch a single project by key.
|
170
|
+
*LaunchDarklyApi::ProjectsApi* | [**get_projects**](docs/ProjectsApi.md#get_projects) | **GET** /projects | Returns a list of all projects in the account.
|
171
|
+
*LaunchDarklyApi::ProjectsApi* | [**patch_project**](docs/ProjectsApi.md#patch_project) | **PATCH** /projects/{projectKey} | Modify a project by ID.
|
172
|
+
*LaunchDarklyApi::ProjectsApi* | [**post_project**](docs/ProjectsApi.md#post_project) | **POST** /projects | Create a new project with the given key and name.
|
173
|
+
*LaunchDarklyApi::RootApi* | [**get_root**](docs/RootApi.md#get_root) | **GET** / |
|
174
|
+
*LaunchDarklyApi::TeamMembersApi* | [**delete_member**](docs/TeamMembersApi.md#delete_member) | **DELETE** /members/{memberId} | Delete a team member by ID.
|
175
|
+
*LaunchDarklyApi::TeamMembersApi* | [**get_member**](docs/TeamMembersApi.md#get_member) | **GET** /members/{memberId} | Get a single team member by ID.
|
176
|
+
*LaunchDarklyApi::TeamMembersApi* | [**get_members**](docs/TeamMembersApi.md#get_members) | **GET** /members | Returns a list of all members in the account.
|
177
|
+
*LaunchDarklyApi::TeamMembersApi* | [**patch_member**](docs/TeamMembersApi.md#patch_member) | **PATCH** /members/{memberId} | Modify a team member by ID.
|
178
|
+
*LaunchDarklyApi::TeamMembersApi* | [**post_members**](docs/TeamMembersApi.md#post_members) | **POST** /members | Invite new members.
|
179
|
+
*LaunchDarklyApi::UserSegmentsApi* | [**delete_user_segment**](docs/UserSegmentsApi.md#delete_user_segment) | **DELETE** /segments/{projectKey}/{environmentKey}/{userSegmentKey} | Delete a user segment.
|
180
|
+
*LaunchDarklyApi::UserSegmentsApi* | [**get_user_segment**](docs/UserSegmentsApi.md#get_user_segment) | **GET** /segments/{projectKey}/{environmentKey}/{userSegmentKey} | Get a single user segment by key.
|
181
|
+
*LaunchDarklyApi::UserSegmentsApi* | [**get_user_segments**](docs/UserSegmentsApi.md#get_user_segments) | **GET** /segments/{projectKey}/{environmentKey} | Get a list of all user segments in the given project.
|
182
|
+
*LaunchDarklyApi::UserSegmentsApi* | [**patch_user_segment**](docs/UserSegmentsApi.md#patch_user_segment) | **PATCH** /segments/{projectKey}/{environmentKey}/{userSegmentKey} | Perform a partial update to a user segment.
|
183
|
+
*LaunchDarklyApi::UserSegmentsApi* | [**post_user_segment**](docs/UserSegmentsApi.md#post_user_segment) | **POST** /segments/{projectKey}/{environmentKey} | Creates a new user segment.
|
184
|
+
*LaunchDarklyApi::UserSettingsApi* | [**get_user_flag_setting**](docs/UserSettingsApi.md#get_user_flag_setting) | **GET** /users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey} | Fetch a single flag setting for a user by key.
|
185
|
+
*LaunchDarklyApi::UserSettingsApi* | [**get_user_flag_settings**](docs/UserSettingsApi.md#get_user_flag_settings) | **GET** /users/{projectKey}/{environmentKey}/{userKey}/flags | Fetch a single flag setting for a user by key.
|
186
|
+
*LaunchDarklyApi::UserSettingsApi* | [**put_flag_setting**](docs/UserSettingsApi.md#put_flag_setting) | **PUT** /users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey} | Specifically enable or disable a feature flag for a user based on their key.
|
187
|
+
*LaunchDarklyApi::UsersApi* | [**delete_user**](docs/UsersApi.md#delete_user) | **DELETE** /users/{projectKey}/{environmentKey}/{userKey} | Delete a user by ID.
|
188
|
+
*LaunchDarklyApi::UsersApi* | [**get_search_users**](docs/UsersApi.md#get_search_users) | **GET** /user-search/{projectKey}/{environmentKey} | Search users in LaunchDarkly based on their last active date, or a search query. It should not be used to enumerate all users in LaunchDarkly-- use the List users API resource.
|
189
|
+
*LaunchDarklyApi::UsersApi* | [**get_user**](docs/UsersApi.md#get_user) | **GET** /users/{projectKey}/{environmentKey}/{userKey} | Get a user by key.
|
190
|
+
*LaunchDarklyApi::UsersApi* | [**get_users**](docs/UsersApi.md#get_users) | **GET** /users/{projectKey}/{environmentKey} | List all users in the environment. Includes the total count of users. In each page, there will be up to 'limit' users returned (default 20). This is useful for exporting all users in the system for further analysis. Paginated collections will include a next link containing a URL with the next set of elements in the collection.
|
191
|
+
*LaunchDarklyApi::WebhooksApi* | [**delete_webhook**](docs/WebhooksApi.md#delete_webhook) | **DELETE** /webhooks/{resourceId} | Delete a webhook by ID.
|
192
|
+
*LaunchDarklyApi::WebhooksApi* | [**get_webhook**](docs/WebhooksApi.md#get_webhook) | **GET** /webhooks/{resourceId} | Get a webhook by ID.
|
193
|
+
*LaunchDarklyApi::WebhooksApi* | [**get_webhooks**](docs/WebhooksApi.md#get_webhooks) | **GET** /webhooks | Fetch a list of all webhooks.
|
194
|
+
*LaunchDarklyApi::WebhooksApi* | [**patch_webhook**](docs/WebhooksApi.md#patch_webhook) | **PATCH** /webhooks/{resourceId} | Modify a webhook by ID.
|
195
|
+
*LaunchDarklyApi::WebhooksApi* | [**post_webhook**](docs/WebhooksApi.md#post_webhook) | **POST** /webhooks | Create a webhook.
|
196
|
+
|
197
|
+
|
198
|
+
## Documentation for Models
|
199
|
+
|
200
|
+
- [LaunchDarklyApi::Action](docs/Action.md)
|
201
|
+
- [LaunchDarklyApi::Actions](docs/Actions.md)
|
202
|
+
- [LaunchDarklyApi::AuditLogEntries](docs/AuditLogEntries.md)
|
203
|
+
- [LaunchDarklyApi::AuditLogEntry](docs/AuditLogEntry.md)
|
204
|
+
- [LaunchDarklyApi::AuditLogEntryTarget](docs/AuditLogEntryTarget.md)
|
205
|
+
- [LaunchDarklyApi::Clause](docs/Clause.md)
|
206
|
+
- [LaunchDarklyApi::CustomRole](docs/CustomRole.md)
|
207
|
+
- [LaunchDarklyApi::CustomRoleBody](docs/CustomRoleBody.md)
|
208
|
+
- [LaunchDarklyApi::CustomRoleKeyOrId](docs/CustomRoleKeyOrId.md)
|
209
|
+
- [LaunchDarklyApi::CustomRoles](docs/CustomRoles.md)
|
210
|
+
- [LaunchDarklyApi::Environment](docs/Environment.md)
|
211
|
+
- [LaunchDarklyApi::EnvironmentBody](docs/EnvironmentBody.md)
|
212
|
+
- [LaunchDarklyApi::Fallthrough](docs/Fallthrough.md)
|
213
|
+
- [LaunchDarklyApi::FeatureFlag](docs/FeatureFlag.md)
|
214
|
+
- [LaunchDarklyApi::FeatureFlagBody](docs/FeatureFlagBody.md)
|
215
|
+
- [LaunchDarklyApi::FeatureFlagConfig](docs/FeatureFlagConfig.md)
|
216
|
+
- [LaunchDarklyApi::FeatureFlagStatus](docs/FeatureFlagStatus.md)
|
217
|
+
- [LaunchDarklyApi::FeatureFlagStatuses](docs/FeatureFlagStatuses.md)
|
218
|
+
- [LaunchDarklyApi::FeatureFlags](docs/FeatureFlags.md)
|
219
|
+
- [LaunchDarklyApi::Id](docs/Id.md)
|
220
|
+
- [LaunchDarklyApi::Link](docs/Link.md)
|
221
|
+
- [LaunchDarklyApi::Links](docs/Links.md)
|
222
|
+
- [LaunchDarklyApi::Member](docs/Member.md)
|
223
|
+
- [LaunchDarklyApi::Members](docs/Members.md)
|
224
|
+
- [LaunchDarklyApi::MembersBody](docs/MembersBody.md)
|
225
|
+
- [LaunchDarklyApi::PatchComment](docs/PatchComment.md)
|
226
|
+
- [LaunchDarklyApi::PatchOperation](docs/PatchOperation.md)
|
227
|
+
- [LaunchDarklyApi::Policy](docs/Policy.md)
|
228
|
+
- [LaunchDarklyApi::Prerequisite](docs/Prerequisite.md)
|
229
|
+
- [LaunchDarklyApi::Project](docs/Project.md)
|
230
|
+
- [LaunchDarklyApi::ProjectBody](docs/ProjectBody.md)
|
231
|
+
- [LaunchDarklyApi::Projects](docs/Projects.md)
|
232
|
+
- [LaunchDarklyApi::Resource](docs/Resource.md)
|
233
|
+
- [LaunchDarklyApi::Resources](docs/Resources.md)
|
234
|
+
- [LaunchDarklyApi::Role](docs/Role.md)
|
235
|
+
- [LaunchDarklyApi::Rollout](docs/Rollout.md)
|
236
|
+
- [LaunchDarklyApi::Rule](docs/Rule.md)
|
237
|
+
- [LaunchDarklyApi::Statement](docs/Statement.md)
|
238
|
+
- [LaunchDarklyApi::Statements](docs/Statements.md)
|
239
|
+
- [LaunchDarklyApi::Target](docs/Target.md)
|
240
|
+
- [LaunchDarklyApi::User](docs/User.md)
|
241
|
+
- [LaunchDarklyApi::UserFlagSetting](docs/UserFlagSetting.md)
|
242
|
+
- [LaunchDarklyApi::UserFlagSettings](docs/UserFlagSettings.md)
|
243
|
+
- [LaunchDarklyApi::UserRecord](docs/UserRecord.md)
|
244
|
+
- [LaunchDarklyApi::UserSegment](docs/UserSegment.md)
|
245
|
+
- [LaunchDarklyApi::UserSegmentBody](docs/UserSegmentBody.md)
|
246
|
+
- [LaunchDarklyApi::UserSegmentRule](docs/UserSegmentRule.md)
|
247
|
+
- [LaunchDarklyApi::UserSegments](docs/UserSegments.md)
|
248
|
+
- [LaunchDarklyApi::UserSettingsBody](docs/UserSettingsBody.md)
|
249
|
+
- [LaunchDarklyApi::Users](docs/Users.md)
|
250
|
+
- [LaunchDarklyApi::Variation](docs/Variation.md)
|
251
|
+
- [LaunchDarklyApi::Webhook](docs/Webhook.md)
|
252
|
+
- [LaunchDarklyApi::WebhookBody](docs/WebhookBody.md)
|
253
|
+
- [LaunchDarklyApi::Webhooks](docs/Webhooks.md)
|
254
|
+
- [LaunchDarklyApi::WeightedVariation](docs/WeightedVariation.md)
|
255
|
+
|
256
|
+
|
257
|
+
## Documentation for Authorization
|
258
|
+
|
259
|
+
|
260
|
+
### Token
|
261
|
+
|
262
|
+
- **Type**: API key
|
263
|
+
- **API key parameter name**: Authorization
|
264
|
+
- **Location**: HTTP header
|
data/Rakefile
ADDED
data/docs/Action.md
ADDED
data/docs/Actions.md
ADDED
data/docs/AuditLogApi.md
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
# LaunchDarklyApi::AuditLogApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://app.launchdarkly.com/api/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_audit_log_entries**](AuditLogApi.md#get_audit_log_entries) | **GET** /auditlog | Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
|
8
|
+
[**get_audit_log_entry**](AuditLogApi.md#get_audit_log_entry) | **GET** /auditlog/{resourceId} | Use this endpoint to fetch a single audit log entry by its resouce ID.
|
9
|
+
|
10
|
+
|
11
|
+
# **get_audit_log_entries**
|
12
|
+
> AuditLogEntries get_audit_log_entries(opts)
|
13
|
+
|
14
|
+
Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
|
15
|
+
|
16
|
+
### Example
|
17
|
+
```ruby
|
18
|
+
# load the gem
|
19
|
+
require 'launchdarkly_api'
|
20
|
+
# setup authorization
|
21
|
+
LaunchDarklyApi.configure do |config|
|
22
|
+
# Configure API key authorization: Token
|
23
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
24
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
25
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = LaunchDarklyApi::AuditLogApi.new
|
29
|
+
|
30
|
+
opts = {
|
31
|
+
before: 8.14, # Float | A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have before this timestamp.
|
32
|
+
after: 8.14, # Float | A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
|
33
|
+
q: "q_example", # String | Text to search for. You can search for the full or partial name of the resource involved or fullpartial email address of the member who made the change.
|
34
|
+
limit: 8.14, # Float | A limit on the number of audit log entries to be returned, between 1 and 20.
|
35
|
+
spec: "spec_example" # String | A resource specifier, allowing you to filter audit log listings by resource.
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
|
40
|
+
result = api_instance.get_audit_log_entries(opts)
|
41
|
+
p result
|
42
|
+
rescue LaunchDarklyApi::ApiError => e
|
43
|
+
puts "Exception when calling AuditLogApi->get_audit_log_entries: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**before** | **Float**| A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have before this timestamp. | [optional]
|
52
|
+
**after** | **Float**| A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp. | [optional]
|
53
|
+
**q** | **String**| Text to search for. You can search for the full or partial name of the resource involved or fullpartial email address of the member who made the change. | [optional]
|
54
|
+
**limit** | **Float**| A limit on the number of audit log entries to be returned, between 1 and 20. | [optional]
|
55
|
+
**spec** | **String**| A resource specifier, allowing you to filter audit log listings by resource. | [optional]
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
[**AuditLogEntries**](AuditLogEntries.md)
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[Token](../README.md#Token)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: application/json
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
# **get_audit_log_entry**
|
73
|
+
> AuditLogEntry get_audit_log_entry(resource_id, )
|
74
|
+
|
75
|
+
Use this endpoint to fetch a single audit log entry by its resouce ID.
|
76
|
+
|
77
|
+
### Example
|
78
|
+
```ruby
|
79
|
+
# load the gem
|
80
|
+
require 'launchdarkly_api'
|
81
|
+
# setup authorization
|
82
|
+
LaunchDarklyApi.configure do |config|
|
83
|
+
# Configure API key authorization: Token
|
84
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
85
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
86
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = LaunchDarklyApi::AuditLogApi.new
|
90
|
+
|
91
|
+
resource_id = "resource_id_example" # String | The resource ID.
|
92
|
+
|
93
|
+
|
94
|
+
begin
|
95
|
+
#Use this endpoint to fetch a single audit log entry by its resouce ID.
|
96
|
+
result = api_instance.get_audit_log_entry(resource_id, )
|
97
|
+
p result
|
98
|
+
rescue LaunchDarklyApi::ApiError => e
|
99
|
+
puts "Exception when calling AuditLogApi->get_audit_log_entry: #{e}"
|
100
|
+
end
|
101
|
+
```
|
102
|
+
|
103
|
+
### Parameters
|
104
|
+
|
105
|
+
Name | Type | Description | Notes
|
106
|
+
------------- | ------------- | ------------- | -------------
|
107
|
+
**resource_id** | **String**| The resource ID. |
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
[**AuditLogEntry**](AuditLogEntry.md)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[Token](../README.md#Token)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: application/json
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# LaunchDarklyApi::AuditLogEntries
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
7
|
+
**items** | [**Array<AuditLogEntry>**](AuditLogEntry.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# LaunchDarklyApi::AuditLogEntry
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
7
|
+
**_id** | [**Id**](Id.md) | | [optional]
|
8
|
+
**date** | **Integer** | | [optional]
|
9
|
+
**kind** | **String** | | [optional]
|
10
|
+
**name** | **String** | | [optional]
|
11
|
+
**description** | **String** | | [optional]
|
12
|
+
**short_description** | **String** | | [optional]
|
13
|
+
**comment** | **String** | | [optional]
|
14
|
+
**member** | [**Member**](Member.md) | | [optional]
|
15
|
+
**title_verb** | **String** | | [optional]
|
16
|
+
**title** | **String** | | [optional]
|
17
|
+
**target** | [**AuditLogEntryTarget**](AuditLogEntryTarget.md) | | [optional]
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# LaunchDarklyApi::AuditLogEntryTarget
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
7
|
+
**name** | **String** | | [optional]
|
8
|
+
**resources** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/Clause.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# LaunchDarklyApi::Clause
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**attribute** | **String** | | [optional]
|
7
|
+
**op** | **String** | | [optional]
|
8
|
+
**values** | **Array<Object>** | | [optional]
|
9
|
+
**negate** | **BOOLEAN** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/CustomRole.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# LaunchDarklyApi::CustomRole
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
7
|
+
**name** | **String** | Name of the custom role. | [optional]
|
8
|
+
**key** | [**CustomRoleKeyOrId**](CustomRoleKeyOrId.md) | | [optional]
|
9
|
+
**description** | **String** | Description of the custom role. | [optional]
|
10
|
+
**_id** | [**Id**](Id.md) | | [optional]
|
11
|
+
**policy** | [**Array<Policy>**](Policy.md) | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# LaunchDarklyApi::CustomRoleBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | Name of the custom role. |
|
7
|
+
**description** | **String** | Description of the custom role. | [optional]
|
8
|
+
**key** | [**CustomRoleKeyOrId**](CustomRoleKeyOrId.md) | |
|
9
|
+
**policy** | [**Array<Policy>**](Policy.md) | |
|
10
|
+
|
11
|
+
|
data/docs/CustomRoles.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# LaunchDarklyApi::CustomRoles
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
7
|
+
**items** | [**CustomRole**](CustomRole.md) | | [optional]
|
8
|
+
|
9
|
+
|