launchdarkly_api 2.0.10 → 2.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +153 -151
- data/docs/AuditLogApi.md +7 -7
- data/docs/{Action.md → CopyActions.md} +1 -1
- data/docs/CustomProperty.md +1 -1
- data/docs/CustomRole.md +1 -1
- data/docs/CustomRoleBody.md +1 -1
- data/docs/CustomRoles.md +1 -1
- data/docs/CustomRolesApi.md +7 -6
- data/docs/CustomerMetricsApi.md +511 -0
- data/docs/DataExportDestinationsApi.md +293 -0
- data/docs/Destination.md +14 -0
- data/docs/DestinationAmazonKinesis.md +10 -0
- data/docs/DestinationBody.md +11 -0
- data/docs/DestinationGooglePubSub.md +9 -0
- data/docs/DestinationMParticle.md +11 -0
- data/docs/{CustomRoleKeyOrId.md → DestinationSegment.md} +2 -1
- data/docs/Destinations.md +9 -0
- data/docs/Environment.md +2 -0
- data/docs/EnvironmentPost.md +5 -0
- data/docs/EnvironmentsApi.md +11 -10
- data/docs/EvaluationUsageError.md +9 -0
- data/docs/Events.md +8 -0
- data/docs/FeatureFlag.md +4 -1
- data/docs/FeatureFlagConfig.md +0 -1
- data/docs/FeatureFlagCopyBody.md +12 -0
- data/docs/FeatureFlagCopyObject.md +9 -0
- data/docs/FeatureFlagStatus.md +1 -1
- data/docs/FeatureFlagStatusAcrossEnvironments.md +10 -0
- data/docs/FeatureFlagStatusForQueriedEnvironment.md +10 -0
- data/docs/FeatureFlagsApi.md +136 -17
- data/docs/MAU.md +10 -0
- data/docs/{Actions.md → MAUMetadata.md} +1 -1
- data/docs/MAUbyCategory.md +10 -0
- data/docs/Member.md +2 -0
- data/docs/Members.md +1 -1
- data/docs/MembersBody.md +1 -1
- data/docs/Policy.md +4 -2
- data/docs/ProjectBody.md +2 -0
- data/docs/ProjectsApi.md +7 -6
- data/docs/Rollout.md +1 -0
- data/docs/Statement.md +4 -4
- data/docs/Stream.md +10 -0
- data/docs/StreamBySDK.md +10 -0
- data/docs/StreamBySDKLinks.md +9 -0
- data/docs/StreamBySDKLinksMetadata.md +10 -0
- data/docs/StreamLinks.md +10 -0
- data/docs/StreamSDKVersion.md +9 -0
- data/docs/StreamSDKVersionData.md +9 -0
- data/docs/StreamUsageError.md +9 -0
- data/docs/StreamUsageLinks.md +10 -0
- data/docs/StreamUsageMetadata.md +10 -0
- data/docs/StreamUsageSeries.md +9 -0
- data/docs/Streams.md +8 -0
- data/docs/TeamMembersApi.md +7 -6
- data/docs/Usage.md +9 -0
- data/docs/{CustomProperties.md → UsageError.md} +2 -1
- data/docs/UsageLinks.md +10 -0
- data/docs/UserSegmentsApi.md +18 -17
- data/docs/UserSettingsApi.md +11 -11
- data/docs/UsersApi.md +15 -15
- data/docs/Webhook.md +1 -0
- data/docs/WebhookBody.md +2 -0
- data/docs/WebhooksApi.md +7 -6
- data/launchdarkly_api.gemspec +5 -6
- data/lib/launchdarkly_api/api/audit_log_api.rb +13 -19
- data/lib/launchdarkly_api/api/custom_roles_api.rb +23 -37
- data/lib/launchdarkly_api/api/customer_metrics_api.rb +519 -0
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +330 -0
- data/lib/launchdarkly_api/api/environments_api.rb +20 -31
- data/lib/launchdarkly_api/api/feature_flags_api.rb +150 -43
- data/lib/launchdarkly_api/api/projects_api.rb +23 -37
- data/lib/launchdarkly_api/api/root_api.rb +6 -9
- data/lib/launchdarkly_api/api/team_members_api.rb +23 -37
- data/lib/launchdarkly_api/api/user_segments_api.rb +23 -37
- data/lib/launchdarkly_api/api/user_settings_api.rb +12 -21
- data/lib/launchdarkly_api/api/users_api.rb +17 -29
- data/lib/launchdarkly_api/api/webhooks_api.rb +23 -37
- data/lib/launchdarkly_api/api_client.rb +10 -10
- data/lib/launchdarkly_api/api_error.rb +2 -2
- data/lib/launchdarkly_api/configuration.rb +3 -3
- data/lib/launchdarkly_api/models/audit_log_entries.rb +7 -12
- data/lib/launchdarkly_api/models/audit_log_entry.rb +7 -12
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +7 -12
- data/lib/launchdarkly_api/models/clause.rb +7 -12
- data/lib/launchdarkly_api/models/copy_actions.rb +34 -0
- data/lib/launchdarkly_api/models/custom_property.rb +13 -14
- data/lib/launchdarkly_api/models/custom_property_values.rb +7 -11
- data/lib/launchdarkly_api/models/custom_role.rb +9 -13
- data/lib/launchdarkly_api/models/custom_role_body.rb +12 -16
- data/lib/launchdarkly_api/models/custom_roles.rb +11 -14
- data/lib/launchdarkly_api/models/destination.rb +276 -0
- data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +201 -0
- data/lib/launchdarkly_api/models/destination_body.rb +263 -0
- data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +192 -0
- data/lib/launchdarkly_api/models/destination_m_particle.rb +210 -0
- data/lib/launchdarkly_api/models/destination_segment.rb +183 -0
- data/lib/launchdarkly_api/models/destinations.rb +194 -0
- data/lib/launchdarkly_api/models/environment.rb +29 -14
- data/lib/launchdarkly_api/models/environment_post.rb +64 -17
- data/lib/launchdarkly_api/models/evaluation_usage_error.rb +192 -0
- data/lib/launchdarkly_api/models/{action.rb → events.rb} +17 -13
- data/lib/launchdarkly_api/models/fallthrough.rb +7 -12
- data/lib/launchdarkly_api/models/feature_flag.rb +46 -16
- data/lib/launchdarkly_api/models/feature_flag_body.rb +10 -15
- data/lib/launchdarkly_api/models/feature_flag_config.rb +8 -24
- data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +226 -0
- data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +199 -0
- data/lib/launchdarkly_api/models/feature_flag_status.rb +22 -26
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +203 -0
- data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +236 -0
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +7 -12
- data/lib/launchdarkly_api/models/feature_flags.rb +7 -12
- data/lib/launchdarkly_api/models/id.rb +7 -11
- data/lib/launchdarkly_api/models/link.rb +7 -12
- data/lib/launchdarkly_api/models/links.rb +7 -12
- data/lib/launchdarkly_api/models/ma_uby_category.rb +205 -0
- data/lib/launchdarkly_api/models/mau.rb +205 -0
- data/lib/launchdarkly_api/models/{actions.rb → mau_metadata.rb} +8 -13
- data/lib/launchdarkly_api/models/member.rb +26 -13
- data/lib/launchdarkly_api/models/members.rb +11 -14
- data/lib/launchdarkly_api/models/members_body.rb +9 -14
- data/lib/launchdarkly_api/models/patch_comment.rb +7 -12
- data/lib/launchdarkly_api/models/patch_operation.rb +10 -15
- data/lib/launchdarkly_api/models/policy.rb +40 -17
- data/lib/launchdarkly_api/models/prerequisite.rb +7 -12
- data/lib/launchdarkly_api/models/project.rb +7 -12
- data/lib/launchdarkly_api/models/project_body.rb +30 -15
- data/lib/launchdarkly_api/models/projects.rb +7 -12
- data/lib/launchdarkly_api/models/role.rb +7 -8
- data/lib/launchdarkly_api/models/rollout.rb +17 -13
- data/lib/launchdarkly_api/models/rule.rb +7 -12
- data/lib/launchdarkly_api/models/statement.rb +35 -31
- data/lib/launchdarkly_api/models/statements.rb +7 -12
- data/lib/launchdarkly_api/models/stream.rb +205 -0
- data/lib/launchdarkly_api/models/stream_by_sdk.rb +205 -0
- data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +192 -0
- data/lib/launchdarkly_api/models/{resources.rb → stream_by_sdk_links_metadata.rb} +34 -12
- data/lib/launchdarkly_api/models/stream_links.rb +204 -0
- data/lib/launchdarkly_api/models/stream_sdk_version.rb +194 -0
- data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +194 -0
- data/lib/launchdarkly_api/models/stream_usage_error.rb +192 -0
- data/lib/launchdarkly_api/models/stream_usage_links.rb +204 -0
- data/lib/launchdarkly_api/models/stream_usage_metadata.rb +203 -0
- data/lib/launchdarkly_api/models/stream_usage_series.rb +194 -0
- data/lib/launchdarkly_api/models/{custom_properties.rb → streams.rb} +17 -13
- data/lib/launchdarkly_api/models/target.rb +7 -12
- data/lib/launchdarkly_api/models/usage.rb +194 -0
- data/lib/launchdarkly_api/models/{custom_role_key_or_id.rb → usage_error.rb} +17 -13
- data/lib/launchdarkly_api/models/usage_links.rb +204 -0
- data/lib/launchdarkly_api/models/user.rb +7 -12
- data/lib/launchdarkly_api/models/user_flag_setting.rb +7 -12
- data/lib/launchdarkly_api/models/user_flag_settings.rb +7 -12
- data/lib/launchdarkly_api/models/user_record.rb +7 -12
- data/lib/launchdarkly_api/models/user_segment.rb +10 -15
- data/lib/launchdarkly_api/models/user_segment_body.rb +9 -14
- data/lib/launchdarkly_api/models/user_segment_rule.rb +7 -12
- data/lib/launchdarkly_api/models/user_segments.rb +7 -12
- data/lib/launchdarkly_api/models/user_settings_body.rb +7 -12
- data/lib/launchdarkly_api/models/users.rb +7 -12
- data/lib/launchdarkly_api/models/variation.rb +8 -13
- data/lib/launchdarkly_api/models/webhook.rb +17 -13
- data/lib/launchdarkly_api/models/webhook_body.rb +33 -17
- data/lib/launchdarkly_api/models/webhooks.rb +7 -12
- data/lib/launchdarkly_api/models/weighted_variation.rb +7 -12
- data/lib/launchdarkly_api/version.rb +3 -3
- data/lib/launchdarkly_api.rb +36 -8
- data/openapi.yml +1004 -115
- data/spec/api/audit_log_api_spec.rb +6 -8
- data/spec/api/custom_roles_api_spec.rb +8 -13
- data/spec/api/customer_metrics_api_spec.rb +141 -0
- data/spec/api/data_export_destinations_api_spec.rb +98 -0
- data/spec/api/environments_api_spec.rb +7 -11
- data/spec/api/feature_flags_api_spec.rb +36 -16
- data/spec/api/projects_api_spec.rb +8 -13
- data/spec/api/root_api_spec.rb +3 -4
- data/spec/api/team_members_api_spec.rb +8 -13
- data/spec/api/user_segments_api_spec.rb +8 -13
- data/spec/api/user_settings_api_spec.rb +5 -8
- data/spec/api/users_api_spec.rb +7 -11
- data/spec/api/webhooks_api_spec.rb +8 -13
- data/spec/api_client_spec.rb +36 -36
- data/spec/configuration_spec.rb +10 -10
- data/spec/models/audit_log_entries_spec.rb +4 -5
- data/spec/models/audit_log_entry_spec.rb +14 -15
- data/spec/models/audit_log_entry_target_spec.rb +5 -6
- data/spec/models/clause_spec.rb +6 -7
- data/spec/models/{action_spec.rb → copy_actions_spec.rb} +8 -9
- data/spec/models/custom_property_spec.rb +4 -5
- data/spec/models/custom_property_values_spec.rb +2 -3
- data/spec/models/custom_role_body_spec.rb +6 -7
- data/spec/models/custom_role_spec.rb +8 -9
- data/spec/models/custom_roles_spec.rb +4 -5
- data/spec/models/destination_amazon_kinesis_spec.rb +53 -0
- data/spec/models/destination_body_spec.rb +63 -0
- data/spec/models/destination_google_pub_sub_spec.rb +47 -0
- data/spec/models/destination_m_particle_spec.rb +59 -0
- data/spec/models/destination_segment_spec.rb +41 -0
- data/spec/models/destination_spec.rb +81 -0
- data/spec/models/destinations_spec.rb +47 -0
- data/spec/models/environment_post_spec.rb +36 -7
- data/spec/models/environment_spec.rb +25 -14
- data/spec/models/evaluation_usage_error_spec.rb +47 -0
- data/spec/models/events_spec.rb +41 -0
- data/spec/models/fallthrough_spec.rb +4 -5
- data/spec/models/feature_flag_body_spec.rb +9 -10
- data/spec/models/feature_flag_config_spec.rb +14 -21
- data/spec/models/feature_flag_copy_body_spec.rb +65 -0
- data/spec/models/feature_flag_copy_object_spec.rb +47 -0
- data/spec/models/feature_flag_spec.rb +35 -18
- data/spec/models/feature_flag_status_across_environments_spec.rb +53 -0
- data/spec/models/feature_flag_status_for_queried_environment_spec.rb +57 -0
- data/spec/models/feature_flag_status_spec.rb +14 -15
- data/spec/models/feature_flag_statuses_spec.rb +4 -5
- data/spec/models/feature_flags_spec.rb +4 -5
- data/spec/models/id_spec.rb +2 -3
- data/spec/models/link_spec.rb +4 -5
- data/spec/models/links_spec.rb +4 -5
- data/spec/models/ma_uby_category_spec.rb +53 -0
- data/spec/models/{actions_spec.rb → mau_metadata_spec.rb} +8 -9
- data/spec/models/mau_spec.rb +53 -0
- data/spec/models/member_spec.rb +21 -10
- data/spec/models/members_body_spec.rb +8 -9
- data/spec/models/members_spec.rb +4 -5
- data/spec/models/patch_comment_spec.rb +4 -5
- data/spec/models/patch_operation_spec.rb +5 -6
- data/spec/models/policy_spec.rb +17 -6
- data/spec/models/prerequisite_spec.rb +4 -5
- data/spec/models/project_body_spec.rb +17 -6
- data/spec/models/project_spec.rb +8 -9
- data/spec/models/projects_spec.rb +4 -5
- data/spec/models/role_spec.rb +2 -3
- data/spec/models/rollout_spec.rb +9 -4
- data/spec/models/rule_spec.rb +6 -7
- data/spec/models/statement_spec.rb +13 -14
- data/spec/models/statements_spec.rb +2 -3
- data/spec/models/stream_by_sdk_links_metadata_spec.rb +53 -0
- data/spec/models/stream_by_sdk_links_spec.rb +47 -0
- data/spec/models/stream_by_sdk_spec.rb +53 -0
- data/spec/models/stream_links_spec.rb +53 -0
- data/spec/models/stream_sdk_version_data_spec.rb +47 -0
- data/spec/models/stream_sdk_version_spec.rb +47 -0
- data/spec/models/stream_spec.rb +53 -0
- data/spec/models/stream_usage_error_spec.rb +47 -0
- data/spec/models/stream_usage_links_spec.rb +53 -0
- data/spec/models/stream_usage_metadata_spec.rb +53 -0
- data/spec/models/stream_usage_series_spec.rb +47 -0
- data/spec/models/streams_spec.rb +41 -0
- data/spec/models/target_spec.rb +4 -5
- data/spec/models/usage_error_spec.rb +41 -0
- data/spec/models/usage_links_spec.rb +53 -0
- data/spec/models/usage_spec.rb +47 -0
- data/spec/models/user_flag_setting_spec.rb +5 -6
- data/spec/models/user_flag_settings_spec.rb +4 -5
- data/spec/models/user_record_spec.rb +7 -8
- data/spec/models/user_segment_body_spec.rb +6 -7
- data/spec/models/user_segment_rule_spec.rb +5 -6
- data/spec/models/user_segment_spec.rb +12 -13
- data/spec/models/user_segments_spec.rb +4 -5
- data/spec/models/user_settings_body_spec.rb +3 -4
- data/spec/models/user_spec.rb +13 -14
- data/spec/models/users_spec.rb +5 -6
- data/spec/models/variation_spec.rb +5 -6
- data/spec/models/webhook_body_spec.rb +19 -8
- data/spec/models/webhook_spec.rb +15 -10
- data/spec/models/webhooks_spec.rb +4 -5
- data/spec/models/weighted_variation_spec.rb +4 -5
- data/spec/spec_helper.rb +2 -2
- metadata +187 -74
- data/docs/Resource.md +0 -7
- data/docs/Resources.md +0 -7
- data/lib/launchdarkly_api/models/resource.rb +0 -179
- data/spec/models/custom_properties_spec.rb +0 -36
- data/spec/models/custom_role_key_or_id_spec.rb +0 -36
- data/spec/models/resource_spec.rb +0 -36
- data/spec/models/resources_spec.rb +0 -36
@@ -0,0 +1,293 @@
|
|
1
|
+
# LaunchDarklyApi::DataExportDestinationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://app.launchdarkly.com/api/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete_destination**](DataExportDestinationsApi.md#delete_destination) | **DELETE** /destinations/{projectKey}/{environmentKey}/{destinationId} | Get a single data export destination by ID
|
8
|
+
[**get_destination**](DataExportDestinationsApi.md#get_destination) | **GET** /destinations/{projectKey}/{environmentKey}/{destinationId} | Get a single data export destination by ID
|
9
|
+
[**get_destinations**](DataExportDestinationsApi.md#get_destinations) | **GET** /destinations | Returns a list of all data export destinations.
|
10
|
+
[**patch_destination**](DataExportDestinationsApi.md#patch_destination) | **PATCH** /destinations/{projectKey}/{environmentKey}/{destinationId} | Perform a partial update to a data export destination.
|
11
|
+
[**post_destination**](DataExportDestinationsApi.md#post_destination) | **POST** /destinations/{projectKey}/{environmentKey} | Create a new data export destination
|
12
|
+
|
13
|
+
|
14
|
+
# **delete_destination**
|
15
|
+
> delete_destination(project_key, environment_key, destination_id, )
|
16
|
+
|
17
|
+
Get a single data export destination 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::DataExportDestinationsApi.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
|
+
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.
|
36
|
+
|
37
|
+
destination_id = 'destination_id_example' # String | The data export destination ID.
|
38
|
+
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Get a single data export destination by ID
|
42
|
+
api_instance.delete_destination(project_key, environment_key, destination_id, )
|
43
|
+
rescue LaunchDarklyApi::ApiError => e
|
44
|
+
puts "Exception when calling DataExportDestinationsApi->delete_destination: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
|
53
|
+
**environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
|
54
|
+
**destination_id** | **String**| The data export destination ID. |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
nil (empty response body)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[Token](../README.md#Token)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
# **get_destination**
|
72
|
+
> Destination get_destination(project_key, environment_key, destination_id, )
|
73
|
+
|
74
|
+
Get a single data export destination by ID
|
75
|
+
|
76
|
+
### Example
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'launchdarkly_api'
|
80
|
+
# setup authorization
|
81
|
+
LaunchDarklyApi.configure do |config|
|
82
|
+
# Configure API key authorization: Token
|
83
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
84
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
85
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
86
|
+
end
|
87
|
+
|
88
|
+
api_instance = LaunchDarklyApi::DataExportDestinationsApi.new
|
89
|
+
|
90
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
91
|
+
|
92
|
+
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.
|
93
|
+
|
94
|
+
destination_id = 'destination_id_example' # String | The data export destination ID.
|
95
|
+
|
96
|
+
|
97
|
+
begin
|
98
|
+
#Get a single data export destination by ID
|
99
|
+
result = api_instance.get_destination(project_key, environment_key, destination_id, )
|
100
|
+
p result
|
101
|
+
rescue LaunchDarklyApi::ApiError => e
|
102
|
+
puts "Exception when calling DataExportDestinationsApi->get_destination: #{e}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
### Parameters
|
107
|
+
|
108
|
+
Name | Type | Description | Notes
|
109
|
+
------------- | ------------- | ------------- | -------------
|
110
|
+
**project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
|
111
|
+
**environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
|
112
|
+
**destination_id** | **String**| The data export destination ID. |
|
113
|
+
|
114
|
+
### Return type
|
115
|
+
|
116
|
+
[**Destination**](Destination.md)
|
117
|
+
|
118
|
+
### Authorization
|
119
|
+
|
120
|
+
[Token](../README.md#Token)
|
121
|
+
|
122
|
+
### HTTP request headers
|
123
|
+
|
124
|
+
- **Content-Type**: application/json
|
125
|
+
- **Accept**: application/json
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
# **get_destinations**
|
130
|
+
> Destinations get_destinations
|
131
|
+
|
132
|
+
Returns a list of all data export destinations.
|
133
|
+
|
134
|
+
### Example
|
135
|
+
```ruby
|
136
|
+
# load the gem
|
137
|
+
require 'launchdarkly_api'
|
138
|
+
# setup authorization
|
139
|
+
LaunchDarklyApi.configure do |config|
|
140
|
+
# Configure API key authorization: Token
|
141
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
142
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
143
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
144
|
+
end
|
145
|
+
|
146
|
+
api_instance = LaunchDarklyApi::DataExportDestinationsApi.new
|
147
|
+
|
148
|
+
begin
|
149
|
+
#Returns a list of all data export destinations.
|
150
|
+
result = api_instance.get_destinations
|
151
|
+
p result
|
152
|
+
rescue LaunchDarklyApi::ApiError => e
|
153
|
+
puts "Exception when calling DataExportDestinationsApi->get_destinations: #{e}"
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
### Parameters
|
158
|
+
This endpoint does not need any parameter.
|
159
|
+
|
160
|
+
### Return type
|
161
|
+
|
162
|
+
[**Destinations**](Destinations.md)
|
163
|
+
|
164
|
+
### Authorization
|
165
|
+
|
166
|
+
[Token](../README.md#Token)
|
167
|
+
|
168
|
+
### HTTP request headers
|
169
|
+
|
170
|
+
- **Content-Type**: application/json
|
171
|
+
- **Accept**: application/json
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
# **patch_destination**
|
176
|
+
> Destination patch_destination(project_key, environment_key, destination_id, patch_only)
|
177
|
+
|
178
|
+
Perform a partial update to a data export destination.
|
179
|
+
|
180
|
+
### Example
|
181
|
+
```ruby
|
182
|
+
# load the gem
|
183
|
+
require 'launchdarkly_api'
|
184
|
+
# setup authorization
|
185
|
+
LaunchDarklyApi.configure do |config|
|
186
|
+
# Configure API key authorization: Token
|
187
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
188
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
189
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
190
|
+
end
|
191
|
+
|
192
|
+
api_instance = LaunchDarklyApi::DataExportDestinationsApi.new
|
193
|
+
|
194
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
195
|
+
|
196
|
+
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.
|
197
|
+
|
198
|
+
destination_id = 'destination_id_example' # String | The data export destination ID.
|
199
|
+
|
200
|
+
patch_only = [LaunchDarklyApi::PatchOperation.new] # Array<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' Feature flag patches also support JSON Merge Patch format. 'https://tools.ietf.org/html/rfc7386' The addition of comments is also supported.
|
201
|
+
|
202
|
+
|
203
|
+
begin
|
204
|
+
#Perform a partial update to a data export destination.
|
205
|
+
result = api_instance.patch_destination(project_key, environment_key, destination_id, patch_only)
|
206
|
+
p result
|
207
|
+
rescue LaunchDarklyApi::ApiError => e
|
208
|
+
puts "Exception when calling DataExportDestinationsApi->patch_destination: #{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_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
|
218
|
+
**destination_id** | **String**| The data export destination ID. |
|
219
|
+
**patch_only** | [**Array<PatchOperation>**](PatchOperation.md)| Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' Feature flag patches also support JSON Merge Patch format. 'https://tools.ietf.org/html/rfc7386' The addition of comments is also supported. |
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
[**Destination**](Destination.md)
|
224
|
+
|
225
|
+
### Authorization
|
226
|
+
|
227
|
+
[Token](../README.md#Token)
|
228
|
+
|
229
|
+
### HTTP request headers
|
230
|
+
|
231
|
+
- **Content-Type**: application/json
|
232
|
+
- **Accept**: application/json
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
# **post_destination**
|
237
|
+
> Destination post_destination(project_key, environment_key, destination_body)
|
238
|
+
|
239
|
+
Create a new data export destination
|
240
|
+
|
241
|
+
### Example
|
242
|
+
```ruby
|
243
|
+
# load the gem
|
244
|
+
require 'launchdarkly_api'
|
245
|
+
# setup authorization
|
246
|
+
LaunchDarklyApi.configure do |config|
|
247
|
+
# Configure API key authorization: Token
|
248
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
249
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
250
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
251
|
+
end
|
252
|
+
|
253
|
+
api_instance = LaunchDarklyApi::DataExportDestinationsApi.new
|
254
|
+
|
255
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
256
|
+
|
257
|
+
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.
|
258
|
+
|
259
|
+
destination_body = LaunchDarklyApi::DestinationBody.new # DestinationBody | Create a new data export destination.
|
260
|
+
|
261
|
+
|
262
|
+
begin
|
263
|
+
#Create a new data export destination
|
264
|
+
result = api_instance.post_destination(project_key, environment_key, destination_body)
|
265
|
+
p result
|
266
|
+
rescue LaunchDarklyApi::ApiError => e
|
267
|
+
puts "Exception when calling DataExportDestinationsApi->post_destination: #{e}"
|
268
|
+
end
|
269
|
+
```
|
270
|
+
|
271
|
+
### Parameters
|
272
|
+
|
273
|
+
Name | Type | Description | Notes
|
274
|
+
------------- | ------------- | ------------- | -------------
|
275
|
+
**project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
|
276
|
+
**environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
|
277
|
+
**destination_body** | [**DestinationBody**](DestinationBody.md)| Create a new data export destination. |
|
278
|
+
|
279
|
+
### Return type
|
280
|
+
|
281
|
+
[**Destination**](Destination.md)
|
282
|
+
|
283
|
+
### Authorization
|
284
|
+
|
285
|
+
[Token](../README.md#Token)
|
286
|
+
|
287
|
+
### HTTP request headers
|
288
|
+
|
289
|
+
- **Content-Type**: application/json
|
290
|
+
- **Accept**: application/json
|
291
|
+
|
292
|
+
|
293
|
+
|
data/docs/Destination.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# LaunchDarklyApi::Destination
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
7
|
+
**_id** | **String** | Unique destination ID. | [optional]
|
8
|
+
**name** | **String** | The destination name | [optional]
|
9
|
+
**kind** | **String** | Destination type (\"google-pubsub\", \"kinesis\", \"mparticle\", or \"segment\") | [optional]
|
10
|
+
**config** | **Object** | destination-specific configuration. | [optional]
|
11
|
+
**on** | **BOOLEAN** | Whether the data export destination is on or not. | [optional]
|
12
|
+
**version** | **Integer** | | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# LaunchDarklyApi::DestinationAmazonKinesis
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**region** | **String** | | [optional]
|
7
|
+
**role_arn** | **String** | | [optional]
|
8
|
+
**stream_name** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# LaunchDarklyApi::DestinationBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | A human-readable name for your data export destination. |
|
7
|
+
**kind** | **String** | The data export destination type. Available choices are kinesis, google-pubsub, mparticle, or segment. |
|
8
|
+
**config** | **Object** | destination-specific configuration. |
|
9
|
+
**on** | **BOOLEAN** | Whether the data export destination is on or not. | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# LaunchDarklyApi::DestinationMParticle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**api_key** | **String** | | [optional]
|
7
|
+
**secret** | **String** | | [optional]
|
8
|
+
**user_identity** | **String** | | [optional]
|
9
|
+
**environment** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# LaunchDarklyApi::Destinations
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
7
|
+
**items** | [**Array<Destination>**](Destination.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/Environment.md
CHANGED
@@ -14,5 +14,7 @@ Name | Type | Description | Notes
|
|
14
14
|
**secure_mode** | **BOOLEAN** | Determines if this environment is in safe mode. | [optional]
|
15
15
|
**default_track_events** | **BOOLEAN** | Set to true to send detailed event information for new flags. | [optional]
|
16
16
|
**tags** | **Array<String>** | An array of tags for this environment. | [optional]
|
17
|
+
**require_comments** | **BOOLEAN** | Determines if this environment requires comments for flag and segment changes. | [optional]
|
18
|
+
**confirm_changes** | **BOOLEAN** | Determines if this environment requires confirmation for flag and segment changes. | [optional]
|
17
19
|
|
18
20
|
|
data/docs/EnvironmentPost.md
CHANGED
@@ -7,5 +7,10 @@ Name | Type | Description | Notes
|
|
7
7
|
**key** | **String** | A project-unique key for the new environment. |
|
8
8
|
**color** | **String** | A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8). |
|
9
9
|
**default_ttl** | **Float** | The default TTL for the new environment. | [optional]
|
10
|
+
**secure_mode** | **BOOLEAN** | Determines whether the environment is in secure mode. | [optional]
|
11
|
+
**default_track_events** | **BOOLEAN** | Set to true to send detailed event information for newly created flags. | [optional]
|
12
|
+
**tags** | **Array<String>** | An array of tags for this environment. | [optional]
|
13
|
+
**require_comments** | **BOOLEAN** | Determines if this environment requires comments for flag and segment changes. | [optional]
|
14
|
+
**confirm_changes** | **BOOLEAN** | Determines if this environment requires confirmation for flag and segment changes. | [optional]
|
10
15
|
|
11
16
|
|
data/docs/EnvironmentsApi.md
CHANGED
@@ -29,9 +29,9 @@ end
|
|
29
29
|
|
30
30
|
api_instance = LaunchDarklyApi::EnvironmentsApi.new
|
31
31
|
|
32
|
-
project_key =
|
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
33
|
|
34
|
-
environment_key =
|
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
35
|
|
36
36
|
|
37
37
|
begin
|
@@ -83,9 +83,9 @@ end
|
|
83
83
|
|
84
84
|
api_instance = LaunchDarklyApi::EnvironmentsApi.new
|
85
85
|
|
86
|
-
project_key =
|
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
87
|
|
88
|
-
environment_key =
|
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
89
|
|
90
90
|
|
91
91
|
begin
|
@@ -138,9 +138,9 @@ end
|
|
138
138
|
|
139
139
|
api_instance = LaunchDarklyApi::EnvironmentsApi.new
|
140
140
|
|
141
|
-
project_key =
|
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
142
|
|
143
|
-
environment_key =
|
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
144
|
|
145
145
|
patch_delta = [LaunchDarklyApi::PatchOperation.new] # Array<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
|
146
146
|
|
@@ -178,7 +178,7 @@ Name | Type | Description | Notes
|
|
178
178
|
|
179
179
|
|
180
180
|
# **post_environment**
|
181
|
-
> post_environment(project_key, environment_body)
|
181
|
+
> Environment post_environment(project_key, environment_body)
|
182
182
|
|
183
183
|
Create a new environment in a specified project with a given name, key, and swatch color.
|
184
184
|
|
@@ -196,14 +196,15 @@ end
|
|
196
196
|
|
197
197
|
api_instance = LaunchDarklyApi::EnvironmentsApi.new
|
198
198
|
|
199
|
-
project_key =
|
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
200
|
|
201
201
|
environment_body = LaunchDarklyApi::EnvironmentPost.new # EnvironmentPost | New environment.
|
202
202
|
|
203
203
|
|
204
204
|
begin
|
205
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)
|
206
|
+
result = api_instance.post_environment(project_key, environment_body)
|
207
|
+
p result
|
207
208
|
rescue LaunchDarklyApi::ApiError => e
|
208
209
|
puts "Exception when calling EnvironmentsApi->post_environment: #{e}"
|
209
210
|
end
|
@@ -218,7 +219,7 @@ Name | Type | Description | Notes
|
|
218
219
|
|
219
220
|
### Return type
|
220
221
|
|
221
|
-
|
222
|
+
[**Environment**](Environment.md)
|
222
223
|
|
223
224
|
### Authorization
|
224
225
|
|
data/docs/Events.md
ADDED
data/docs/FeatureFlag.md
CHANGED
@@ -13,10 +13,13 @@ Name | Type | Description | Notes
|
|
13
13
|
**maintainer_id** | **String** | The ID of the member that should maintain this flag. | [optional]
|
14
14
|
**tags** | **Array<String>** | An array of tags for this feature flag. | [optional]
|
15
15
|
**variations** | [**Array<Variation>**](Variation.md) | The variations for this feature flag. | [optional]
|
16
|
+
**goal_ids** | **Array<String>** | An array goals from all environments associated with this feature flag | [optional]
|
16
17
|
**_version** | **Integer** | | [optional]
|
17
|
-
**custom_properties** | [**
|
18
|
+
**custom_properties** | [**Hash<String, CustomProperty>**](CustomProperty.md) | A mapping of keys to CustomProperty entries. | [optional]
|
18
19
|
**_links** | [**Links**](Links.md) | | [optional]
|
19
20
|
**_maintainer** | [**Member**](Member.md) | | [optional]
|
20
21
|
**environments** | [**Hash<String, FeatureFlagConfig>**](FeatureFlagConfig.md) | | [optional]
|
22
|
+
**archived_date** | **Float** | A unix epoch time in milliseconds specifying the archived time of this flag. | [optional]
|
23
|
+
**archived** | **BOOLEAN** | Whether or not this flag is archived. | [optional]
|
21
24
|
|
22
25
|
|
data/docs/FeatureFlagConfig.md
CHANGED
@@ -10,7 +10,6 @@ Name | Type | Description | Notes
|
|
10
10
|
**last_modified** | **Integer** | | [optional]
|
11
11
|
**version** | **Integer** | | [optional]
|
12
12
|
**targets** | [**Array<Target>**](Target.md) | | [optional]
|
13
|
-
**goal_ids** | **Array<String>** | | [optional]
|
14
13
|
**rules** | [**Array<Rule>**](Rule.md) | | [optional]
|
15
14
|
**fallthrough** | [**Fallthrough**](Fallthrough.md) | | [optional]
|
16
15
|
**off_variation** | **Integer** | | [optional]
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# LaunchDarklyApi::FeatureFlagCopyBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**source** | [**FeatureFlagCopyObject**](FeatureFlagCopyObject.md) | | [optional]
|
7
|
+
**target** | [**FeatureFlagCopyObject**](FeatureFlagCopyObject.md) | | [optional]
|
8
|
+
**comment** | **String** | comment will be included in audit log item for change. | [optional]
|
9
|
+
**included_actions** | [**Array<CopyActions>**](CopyActions.md) | Define the parts of the flag configuration that will be copied. | [optional]
|
10
|
+
**excluded_actions** | [**Array<CopyActions>**](CopyActions.md) | Define the parts of the flag configuration that will not be copied. | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# LaunchDarklyApi::FeatureFlagCopyObject
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**key** | **String** | The environment key to be used. |
|
7
|
+
**current_version** | **Integer** | If the latest version of the flag matches provided version it will copy, otherwise it will return a conflict. | [optional]
|
8
|
+
|
9
|
+
|
data/docs/FeatureFlagStatus.md
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**_links** | [**Links**](Links.md) | | [optional]
|
7
6
|
**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'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
7
|
**last_requested** | **String** | | [optional]
|
9
8
|
**default** | **Object** | | [optional]
|
9
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
10
10
|
|
11
11
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# LaunchDarklyApi::FeatureFlagStatusAcrossEnvironments
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_links** | [**Links**](Links.md) | | [optional]
|
7
|
+
**key** | **String** | | [optional]
|
8
|
+
**environments** | [**Hash<String, FeatureFlagStatusForQueriedEnvironment>**](FeatureFlagStatusForQueriedEnvironment.md) | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# LaunchDarklyApi::FeatureFlagStatusForQueriedEnvironment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**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'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]
|
7
|
+
**last_requested** | **String** | | [optional]
|
8
|
+
**default** | **Object** | | [optional]
|
9
|
+
|
10
|
+
|