launchdarkly_api 3.2.0 → 3.5.0
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 +4 -4
- data/README.md +178 -168
- data/docs/AccessTokensApi.md +333 -0
- data/docs/AuditLogApi.md +4 -4
- data/docs/ClientSideAvailability.md +9 -0
- data/docs/FeatureFlag.md +3 -2
- data/docs/FeatureFlagBody.md +1 -0
- data/docs/FeatureFlagsApi.md +2 -2
- data/docs/Project.md +1 -0
- data/docs/ProjectBody.md +1 -0
- data/docs/StreamUsageSeries.md +2 -2
- data/docs/Token.md +22 -0
- data/docs/TokenBody.md +13 -0
- data/docs/Tokens.md +9 -0
- data/docs/UserSegment.md +1 -1
- data/docs/UserTargetingExpirationForFlag.md +1 -1
- data/docs/UserTargetingExpirationForSegment.md +1 -1
- data/docs/UsersApi.md +2 -2
- data/docs/Variation.md +1 -0
- data/launchdarkly_api.gemspec +1 -1
- data/lib/launchdarkly_api.rb +6 -1
- data/lib/launchdarkly_api/api/access_tokens_api.rb +340 -0
- data/lib/launchdarkly_api/api/audit_log_api.rb +5 -5
- data/lib/launchdarkly_api/api/custom_roles_api.rb +1 -1
- data/lib/launchdarkly_api/api/customer_metrics_api.rb +1 -1
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +1 -1
- data/lib/launchdarkly_api/api/environments_api.rb +1 -1
- data/lib/launchdarkly_api/api/feature_flags_api.rb +3 -3
- data/lib/launchdarkly_api/api/projects_api.rb +1 -1
- data/lib/launchdarkly_api/api/root_api.rb +1 -1
- data/lib/launchdarkly_api/api/team_members_api.rb +1 -1
- data/lib/launchdarkly_api/api/user_segments_api.rb +1 -1
- data/lib/launchdarkly_api/api/user_settings_api.rb +1 -1
- data/lib/launchdarkly_api/api/users_api.rb +3 -3
- data/lib/launchdarkly_api/api/webhooks_api.rb +1 -1
- data/lib/launchdarkly_api/api_client.rb +1 -1
- data/lib/launchdarkly_api/api_error.rb +1 -1
- data/lib/launchdarkly_api/configuration.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entries.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entry.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +1 -1
- data/lib/launchdarkly_api/models/clause.rb +1 -1
- data/lib/launchdarkly_api/models/client_side_availability.rb +194 -0
- data/lib/launchdarkly_api/models/copy_actions.rb +1 -1
- data/lib/launchdarkly_api/models/custom_property.rb +1 -1
- data/lib/launchdarkly_api/models/custom_property_values.rb +1 -1
- data/lib/launchdarkly_api/models/custom_role.rb +1 -1
- data/lib/launchdarkly_api/models/custom_role_body.rb +1 -1
- data/lib/launchdarkly_api/models/custom_roles.rb +1 -1
- data/lib/launchdarkly_api/models/defaults.rb +1 -1
- data/lib/launchdarkly_api/models/destination.rb +1 -1
- data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +1 -1
- data/lib/launchdarkly_api/models/destination_body.rb +1 -1
- data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +1 -1
- data/lib/launchdarkly_api/models/destination_m_particle.rb +1 -1
- data/lib/launchdarkly_api/models/destination_segment.rb +1 -1
- data/lib/launchdarkly_api/models/destinations.rb +1 -1
- data/lib/launchdarkly_api/models/environment.rb +1 -1
- data/lib/launchdarkly_api/models/environment_post.rb +1 -1
- data/lib/launchdarkly_api/models/evaluation_usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/events.rb +1 -1
- data/lib/launchdarkly_api/models/fallthrough.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag.rb +13 -4
- data/lib/launchdarkly_api/models/feature_flag_body.rb +11 -2
- data/lib/launchdarkly_api/models/feature_flag_config.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flags.rb +1 -1
- data/lib/launchdarkly_api/models/flag_list_item.rb +1 -1
- data/lib/launchdarkly_api/models/id.rb +1 -1
- data/lib/launchdarkly_api/models/link.rb +1 -1
- data/lib/launchdarkly_api/models/links.rb +1 -1
- data/lib/launchdarkly_api/models/ma_uby_category.rb +1 -1
- data/lib/launchdarkly_api/models/mau.rb +1 -1
- data/lib/launchdarkly_api/models/mau_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/member.rb +1 -1
- data/lib/launchdarkly_api/models/members.rb +1 -1
- data/lib/launchdarkly_api/models/members_body.rb +1 -1
- data/lib/launchdarkly_api/models/patch_comment.rb +1 -1
- data/lib/launchdarkly_api/models/patch_operation.rb +1 -1
- data/lib/launchdarkly_api/models/policy.rb +1 -1
- data/lib/launchdarkly_api/models/prerequisite.rb +1 -1
- data/lib/launchdarkly_api/models/project.rb +14 -5
- data/lib/launchdarkly_api/models/project_body.rb +14 -5
- data/lib/launchdarkly_api/models/projects.rb +1 -1
- data/lib/launchdarkly_api/models/role.rb +1 -1
- data/lib/launchdarkly_api/models/rollout.rb +1 -1
- data/lib/launchdarkly_api/models/rule.rb +1 -1
- data/lib/launchdarkly_api/models/semantic_patch_operation.rb +1 -1
- data/lib/launchdarkly_api/models/semantic_patch_operation_instructions.rb +1 -1
- data/lib/launchdarkly_api/models/site.rb +1 -1
- data/lib/launchdarkly_api/models/statement.rb +1 -1
- data/lib/launchdarkly_api/models/stream.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk_links_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/stream_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_sdk_version.rb +1 -1
- data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_series.rb +3 -3
- data/lib/launchdarkly_api/models/streams.rb +1 -1
- data/lib/launchdarkly_api/models/target.rb +1 -1
- data/lib/launchdarkly_api/models/token.rb +322 -0
- data/lib/launchdarkly_api/models/token_body.rb +237 -0
- data/lib/launchdarkly_api/models/tokens.rb +194 -0
- data/lib/launchdarkly_api/models/usage.rb +1 -1
- data/lib/launchdarkly_api/models/usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/usage_links.rb +1 -1
- data/lib/launchdarkly_api/models/user.rb +1 -1
- data/lib/launchdarkly_api/models/user_flag_setting.rb +1 -1
- data/lib/launchdarkly_api/models/user_flag_settings.rb +1 -1
- data/lib/launchdarkly_api/models/user_record.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment.rb +2 -2
- data/lib/launchdarkly_api/models/user_segment_body.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment_rule.rb +1 -1
- data/lib/launchdarkly_api/models/user_segments.rb +1 -1
- data/lib/launchdarkly_api/models/user_settings_body.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flag.rb +2 -2
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flags.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_segment.rb +2 -2
- data/lib/launchdarkly_api/models/user_targeting_expiration_on_flags_for_user.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_resource_id_for_flag.rb +1 -1
- data/lib/launchdarkly_api/models/users.rb +1 -1
- data/lib/launchdarkly_api/models/variation.rb +11 -2
- data/lib/launchdarkly_api/models/webhook.rb +1 -1
- data/lib/launchdarkly_api/models/webhook_body.rb +1 -1
- data/lib/launchdarkly_api/models/webhooks.rb +1 -1
- data/lib/launchdarkly_api/models/weighted_variation.rb +1 -1
- data/lib/launchdarkly_api/version.rb +2 -2
- data/openapi.yml +278 -14
- data/spec/api/access_tokens_api_spec.rb +103 -0
- data/spec/api/audit_log_api_spec.rb +3 -3
- data/spec/api/custom_roles_api_spec.rb +1 -1
- data/spec/api/customer_metrics_api_spec.rb +1 -1
- data/spec/api/data_export_destinations_api_spec.rb +1 -1
- data/spec/api/environments_api_spec.rb +1 -1
- data/spec/api/feature_flags_api_spec.rb +2 -2
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/root_api_spec.rb +1 -1
- data/spec/api/team_members_api_spec.rb +1 -1
- data/spec/api/user_segments_api_spec.rb +1 -1
- data/spec/api/user_settings_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +2 -2
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/audit_log_entries_spec.rb +1 -1
- data/spec/models/audit_log_entry_spec.rb +1 -1
- data/spec/models/audit_log_entry_target_spec.rb +1 -1
- data/spec/models/clause_spec.rb +1 -1
- data/spec/models/client_side_availability_spec.rb +47 -0
- data/spec/models/copy_actions_spec.rb +1 -1
- data/spec/models/custom_property_spec.rb +1 -1
- data/spec/models/custom_property_values_spec.rb +1 -1
- data/spec/models/custom_role_body_spec.rb +1 -1
- data/spec/models/custom_role_spec.rb +1 -1
- data/spec/models/custom_roles_spec.rb +1 -1
- data/spec/models/defaults_spec.rb +1 -1
- data/spec/models/destination_amazon_kinesis_spec.rb +1 -1
- data/spec/models/destination_body_spec.rb +1 -1
- data/spec/models/destination_google_pub_sub_spec.rb +1 -1
- data/spec/models/destination_m_particle_spec.rb +1 -1
- data/spec/models/destination_segment_spec.rb +1 -1
- data/spec/models/destination_spec.rb +1 -1
- data/spec/models/destinations_spec.rb +1 -1
- data/spec/models/environment_post_spec.rb +1 -1
- data/spec/models/environment_spec.rb +1 -1
- data/spec/models/evaluation_usage_error_spec.rb +1 -1
- data/spec/models/events_spec.rb +1 -1
- data/spec/models/fallthrough_spec.rb +1 -1
- data/spec/models/feature_flag_body_spec.rb +7 -1
- data/spec/models/feature_flag_config_spec.rb +1 -1
- data/spec/models/feature_flag_copy_body_spec.rb +1 -1
- data/spec/models/feature_flag_copy_object_spec.rb +1 -1
- data/spec/models/feature_flag_spec.rb +7 -1
- data/spec/models/feature_flag_status_across_environments_spec.rb +1 -1
- data/spec/models/feature_flag_status_for_queried_environment_spec.rb +1 -1
- data/spec/models/feature_flag_status_spec.rb +1 -1
- data/spec/models/feature_flag_statuses_spec.rb +1 -1
- data/spec/models/feature_flags_spec.rb +1 -1
- data/spec/models/flag_list_item_spec.rb +1 -1
- data/spec/models/id_spec.rb +1 -1
- data/spec/models/link_spec.rb +1 -1
- data/spec/models/links_spec.rb +1 -1
- data/spec/models/ma_uby_category_spec.rb +1 -1
- data/spec/models/mau_metadata_spec.rb +1 -1
- data/spec/models/mau_spec.rb +1 -1
- data/spec/models/member_spec.rb +1 -1
- data/spec/models/members_body_spec.rb +1 -1
- data/spec/models/members_spec.rb +1 -1
- data/spec/models/patch_comment_spec.rb +1 -1
- data/spec/models/patch_operation_spec.rb +1 -1
- data/spec/models/policy_spec.rb +1 -1
- data/spec/models/prerequisite_spec.rb +1 -1
- data/spec/models/project_body_spec.rb +7 -1
- data/spec/models/project_spec.rb +7 -1
- data/spec/models/projects_spec.rb +1 -1
- data/spec/models/role_spec.rb +1 -1
- data/spec/models/rollout_spec.rb +1 -1
- data/spec/models/rule_spec.rb +1 -1
- data/spec/models/semantic_patch_operation_instructions_spec.rb +1 -1
- data/spec/models/semantic_patch_operation_spec.rb +1 -1
- data/spec/models/site_spec.rb +1 -1
- data/spec/models/statement_spec.rb +1 -1
- data/spec/models/stream_by_sdk_links_metadata_spec.rb +1 -1
- data/spec/models/stream_by_sdk_links_spec.rb +1 -1
- data/spec/models/stream_by_sdk_spec.rb +1 -1
- data/spec/models/stream_links_spec.rb +1 -1
- data/spec/models/stream_sdk_version_data_spec.rb +1 -1
- data/spec/models/stream_sdk_version_spec.rb +1 -1
- data/spec/models/stream_spec.rb +1 -1
- data/spec/models/stream_usage_error_spec.rb +1 -1
- data/spec/models/stream_usage_links_spec.rb +1 -1
- data/spec/models/stream_usage_metadata_spec.rb +1 -1
- data/spec/models/stream_usage_series_spec.rb +1 -1
- data/spec/models/streams_spec.rb +1 -1
- data/spec/models/target_spec.rb +1 -1
- data/spec/models/token_body_spec.rb +71 -0
- data/spec/models/token_spec.rb +125 -0
- data/spec/models/tokens_spec.rb +47 -0
- data/spec/models/usage_error_spec.rb +1 -1
- data/spec/models/usage_links_spec.rb +1 -1
- data/spec/models/usage_spec.rb +1 -1
- data/spec/models/user_flag_setting_spec.rb +1 -1
- data/spec/models/user_flag_settings_spec.rb +1 -1
- data/spec/models/user_record_spec.rb +1 -1
- data/spec/models/user_segment_body_spec.rb +1 -1
- data/spec/models/user_segment_rule_spec.rb +1 -1
- data/spec/models/user_segment_spec.rb +1 -1
- data/spec/models/user_segments_spec.rb +1 -1
- data/spec/models/user_settings_body_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_flag_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_flags_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_segment_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_on_flags_for_user_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_resource_id_for_flag_spec.rb +1 -1
- data/spec/models/users_spec.rb +1 -1
- data/spec/models/variation_spec.rb +7 -1
- data/spec/models/webhook_body_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/models/webhooks_spec.rb +1 -1
- data/spec/models/weighted_variation_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +107 -87
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 3.
|
|
6
|
+
OpenAPI spec version: 3.5.0
|
|
7
7
|
Contact: support@launchdarkly.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.8
|
|
@@ -68,7 +68,7 @@ module LaunchDarklyApi
|
|
|
68
68
|
:'name' => :'String',
|
|
69
69
|
:'description' => :'String',
|
|
70
70
|
:'tags' => :'Array<String>',
|
|
71
|
-
:'creation_date' => :'
|
|
71
|
+
:'creation_date' => :'Integer',
|
|
72
72
|
:'included' => :'Array<String>',
|
|
73
73
|
:'excluded' => :'Array<String>',
|
|
74
74
|
:'rules' => :'Array<UserSegmentRule>',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 3.
|
|
6
|
+
OpenAPI spec version: 3.5.0
|
|
7
7
|
Contact: support@launchdarkly.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.8
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module LaunchDarklyApi
|
|
16
16
|
class UserTargetingExpirationForFlag
|
|
17
|
-
#
|
|
17
|
+
# Unix epoch time in milliseconds specifying the expiration date
|
|
18
18
|
attr_accessor :expiration_date
|
|
19
19
|
|
|
20
20
|
# the ID of the variation that the user is targeted on a flag
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 3.
|
|
6
|
+
OpenAPI spec version: 3.5.0
|
|
7
7
|
Contact: support@launchdarkly.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.8
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module LaunchDarklyApi
|
|
16
16
|
class UserTargetingExpirationForSegment
|
|
17
|
-
#
|
|
17
|
+
# Unix epoch time in milliseconds specifying the expiration date
|
|
18
18
|
attr_accessor :expiration_date
|
|
19
19
|
|
|
20
20
|
# either the included or excluded variation that the user is targeted on a segment
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 3.
|
|
6
|
+
OpenAPI spec version: 3.5.0
|
|
7
7
|
Contact: support@launchdarkly.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.8
|
|
@@ -14,6 +14,8 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module LaunchDarklyApi
|
|
16
16
|
class Variation
|
|
17
|
+
attr_accessor :_id
|
|
18
|
+
|
|
17
19
|
attr_accessor :name
|
|
18
20
|
|
|
19
21
|
attr_accessor :description
|
|
@@ -23,6 +25,7 @@ module LaunchDarklyApi
|
|
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
26
|
def self.attribute_map
|
|
25
27
|
{
|
|
28
|
+
:'_id' => :'_id',
|
|
26
29
|
:'name' => :'name',
|
|
27
30
|
:'description' => :'description',
|
|
28
31
|
:'value' => :'value'
|
|
@@ -32,6 +35,7 @@ module LaunchDarklyApi
|
|
|
32
35
|
# Attribute type mapping.
|
|
33
36
|
def self.swagger_types
|
|
34
37
|
{
|
|
38
|
+
:'_id' => :'String',
|
|
35
39
|
:'name' => :'String',
|
|
36
40
|
:'description' => :'String',
|
|
37
41
|
:'value' => :'Object'
|
|
@@ -46,6 +50,10 @@ module LaunchDarklyApi
|
|
|
46
50
|
# convert string to symbol for hash key
|
|
47
51
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
48
52
|
|
|
53
|
+
if attributes.has_key?(:'_id')
|
|
54
|
+
self._id = attributes[:'_id']
|
|
55
|
+
end
|
|
56
|
+
|
|
49
57
|
if attributes.has_key?(:'name')
|
|
50
58
|
self.name = attributes[:'name']
|
|
51
59
|
end
|
|
@@ -82,6 +90,7 @@ module LaunchDarklyApi
|
|
|
82
90
|
def ==(o)
|
|
83
91
|
return true if self.equal?(o)
|
|
84
92
|
self.class == o.class &&
|
|
93
|
+
_id == o._id &&
|
|
85
94
|
name == o.name &&
|
|
86
95
|
description == o.description &&
|
|
87
96
|
value == o.value
|
|
@@ -96,7 +105,7 @@ module LaunchDarklyApi
|
|
|
96
105
|
# Calculates hash code according to all attributes.
|
|
97
106
|
# @return [Fixnum] Hash code
|
|
98
107
|
def hash
|
|
99
|
-
[name, description, value].hash
|
|
108
|
+
[_id, name, description, value].hash
|
|
100
109
|
end
|
|
101
110
|
|
|
102
111
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 3.
|
|
6
|
+
OpenAPI spec version: 3.5.0
|
|
7
7
|
Contact: support@launchdarkly.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.8
|
|
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.8
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module LaunchDarklyApi
|
|
14
|
-
VERSION = '3.
|
|
14
|
+
VERSION = '3.5.0'
|
|
15
15
|
end
|
data/openapi.yml
CHANGED
|
@@ -10,7 +10,7 @@ info:
|
|
|
10
10
|
license:
|
|
11
11
|
name: Apache 2.0
|
|
12
12
|
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
|
|
13
|
-
version: 3.
|
|
13
|
+
version: 3.5.0
|
|
14
14
|
host: app.launchdarkly.com
|
|
15
15
|
basePath: /api/v2
|
|
16
16
|
schemes:
|
|
@@ -1242,6 +1242,105 @@ paths:
|
|
|
1242
1242
|
$ref: '#/responses/EvaluationUsage404'
|
|
1243
1243
|
tags:
|
|
1244
1244
|
- Customer Metrics
|
|
1245
|
+
/tokens:
|
|
1246
|
+
get:
|
|
1247
|
+
summary: Returns a list of tokens in the account.
|
|
1248
|
+
operationId: getTokens
|
|
1249
|
+
parameters:
|
|
1250
|
+
- $ref: '#/parameters/TokenShowAllQuery'
|
|
1251
|
+
responses:
|
|
1252
|
+
'200':
|
|
1253
|
+
description: Tokens response.
|
|
1254
|
+
schema:
|
|
1255
|
+
$ref: '#/definitions/Tokens'
|
|
1256
|
+
'401':
|
|
1257
|
+
$ref: '#/responses/Standard401'
|
|
1258
|
+
tags:
|
|
1259
|
+
- Access tokens
|
|
1260
|
+
post:
|
|
1261
|
+
summary: Create a new token.
|
|
1262
|
+
operationId: postToken
|
|
1263
|
+
parameters:
|
|
1264
|
+
- $ref: '#/parameters/TokensPostRequest'
|
|
1265
|
+
responses:
|
|
1266
|
+
'201':
|
|
1267
|
+
description: Token response.
|
|
1268
|
+
schema:
|
|
1269
|
+
$ref: '#/definitions/Token'
|
|
1270
|
+
'400':
|
|
1271
|
+
$ref: '#/responses/Standard400'
|
|
1272
|
+
'401':
|
|
1273
|
+
$ref: '#/responses/Standard401'
|
|
1274
|
+
'409':
|
|
1275
|
+
$ref: '#/responses/Standard409'
|
|
1276
|
+
tags:
|
|
1277
|
+
- Access tokens
|
|
1278
|
+
'/tokens/{tokenId}':
|
|
1279
|
+
get:
|
|
1280
|
+
summary: Get a single access token by ID.
|
|
1281
|
+
operationId: getToken
|
|
1282
|
+
parameters:
|
|
1283
|
+
- $ref: '#/parameters/TokenId'
|
|
1284
|
+
responses:
|
|
1285
|
+
'200':
|
|
1286
|
+
$ref: '#/responses/Token2xx'
|
|
1287
|
+
'400':
|
|
1288
|
+
$ref: '#/responses/Standard400'
|
|
1289
|
+
'401':
|
|
1290
|
+
$ref: '#/responses/Standard401'
|
|
1291
|
+
tags:
|
|
1292
|
+
- Access tokens
|
|
1293
|
+
patch:
|
|
1294
|
+
summary: Modify an access tokenby ID.
|
|
1295
|
+
operationId: patchToken
|
|
1296
|
+
parameters:
|
|
1297
|
+
- $ref: '#/parameters/TokenId'
|
|
1298
|
+
- $ref: '#/parameters/PatchRequest'
|
|
1299
|
+
responses:
|
|
1300
|
+
'200':
|
|
1301
|
+
$ref: '#/responses/Token2xx'
|
|
1302
|
+
'400':
|
|
1303
|
+
$ref: '#/responses/Standard400'
|
|
1304
|
+
'401':
|
|
1305
|
+
$ref: '#/responses/Standard401'
|
|
1306
|
+
'404':
|
|
1307
|
+
$ref: '#/responses/Standard404'
|
|
1308
|
+
'409':
|
|
1309
|
+
$ref: '#/responses/Standard409'
|
|
1310
|
+
tags:
|
|
1311
|
+
- Access tokens
|
|
1312
|
+
delete:
|
|
1313
|
+
summary: Delete an access token by ID.
|
|
1314
|
+
operationId: deleteToken
|
|
1315
|
+
parameters:
|
|
1316
|
+
- $ref: '#/parameters/TokenId'
|
|
1317
|
+
responses:
|
|
1318
|
+
'204':
|
|
1319
|
+
$ref: '#/responses/Standard204'
|
|
1320
|
+
'401':
|
|
1321
|
+
$ref: '#/responses/Standard401'
|
|
1322
|
+
'404':
|
|
1323
|
+
$ref: '#/responses/Standard404'
|
|
1324
|
+
tags:
|
|
1325
|
+
- Access tokens
|
|
1326
|
+
'/tokens/{tokenId}/reset':
|
|
1327
|
+
post:
|
|
1328
|
+
summary: >-
|
|
1329
|
+
Reset an access token's secret key with an optional expiry time for the
|
|
1330
|
+
old key.
|
|
1331
|
+
operationId: resetToken
|
|
1332
|
+
parameters:
|
|
1333
|
+
- $ref: '#/parameters/TokenId'
|
|
1334
|
+
- $ref: '#/parameters/TokenExpiry'
|
|
1335
|
+
responses:
|
|
1336
|
+
'200':
|
|
1337
|
+
$ref: '#/responses/Token2xx'
|
|
1338
|
+
'400':
|
|
1339
|
+
$ref: '#/responses/Standard400'
|
|
1340
|
+
'401':
|
|
1341
|
+
$ref: '#/responses/Standard401'
|
|
1342
|
+
tags:
|
|
1343
|
+
- Access tokens
|
|
1245
1344
|
/:
|
|
1246
1345
|
get:
|
|
1247
1346
|
description: >-
|
|
@@ -1345,7 +1444,7 @@ definitions:
|
|
|
1345
1444
|
description: Whether the feature flag is a boolean flag or multivariate.
|
|
1346
1445
|
example: boolean
|
|
1347
1446
|
creationDate:
|
|
1348
|
-
type:
|
|
1447
|
+
type: integer
|
|
1349
1448
|
format: int64
|
|
1350
1449
|
description: >-
|
|
1351
1450
|
A unix epoch time in milliseconds specifying the creation time of this
|
|
@@ -1410,7 +1509,7 @@ definitions:
|
|
|
1410
1509
|
additionalProperties:
|
|
1411
1510
|
$ref: '#/definitions/FeatureFlagConfig'
|
|
1412
1511
|
archivedDate:
|
|
1413
|
-
type:
|
|
1512
|
+
type: integer
|
|
1414
1513
|
format: int64
|
|
1415
1514
|
description: >-
|
|
1416
1515
|
A unix epoch time in milliseconds specifying the archived time of this
|
|
@@ -1420,6 +1519,8 @@ definitions:
|
|
|
1420
1519
|
type: boolean
|
|
1421
1520
|
description: Whether or not this flag is archived.
|
|
1422
1521
|
example: false
|
|
1522
|
+
clientSideAvailability:
|
|
1523
|
+
$ref: '#/definitions/ClientSideAvailability'
|
|
1423
1524
|
defaults:
|
|
1424
1525
|
$ref: '#/definitions/Defaults'
|
|
1425
1526
|
FeatureFlags:
|
|
@@ -1589,6 +1690,9 @@ definitions:
|
|
|
1589
1690
|
required:
|
|
1590
1691
|
- value
|
|
1591
1692
|
properties:
|
|
1693
|
+
_id:
|
|
1694
|
+
type: string
|
|
1695
|
+
example: 24b32dd3-0ba6-46ee-86af-230eebf3c7cb
|
|
1592
1696
|
name:
|
|
1593
1697
|
type: string
|
|
1594
1698
|
example: 'True'
|
|
@@ -1619,6 +1723,19 @@ definitions:
|
|
|
1619
1723
|
type: string
|
|
1620
1724
|
variation:
|
|
1621
1725
|
type: integer
|
|
1726
|
+
ClientSideAvailability:
|
|
1727
|
+
type: object
|
|
1728
|
+
properties:
|
|
1729
|
+
usingEnvironmentId:
|
|
1730
|
+
type: boolean
|
|
1731
|
+
description: >-
|
|
1732
|
+
When set to true, this flag will be available to SDKs using the
|
|
1733
|
+
client-side id.
|
|
1734
|
+
usingMobileKey:
|
|
1735
|
+
type: boolean
|
|
1736
|
+
description: >-
|
|
1737
|
+
When set to true, this flag will be available to SDKS using a mobile
|
|
1738
|
+
key.
|
|
1622
1739
|
FeatureFlagStatus:
|
|
1623
1740
|
type: object
|
|
1624
1741
|
properties:
|
|
@@ -1728,7 +1845,9 @@ definitions:
|
|
|
1728
1845
|
properties:
|
|
1729
1846
|
expirationDate:
|
|
1730
1847
|
type: integer
|
|
1731
|
-
|
|
1848
|
+
format: int64
|
|
1849
|
+
description: Unix epoch time in milliseconds specifying the expiration date
|
|
1850
|
+
example: 1735689600000
|
|
1732
1851
|
variationId:
|
|
1733
1852
|
type: string
|
|
1734
1853
|
description: the ID of the variation that the user is targeted on a flag
|
|
@@ -1748,7 +1867,9 @@ definitions:
|
|
|
1748
1867
|
properties:
|
|
1749
1868
|
expirationDate:
|
|
1750
1869
|
type: integer
|
|
1751
|
-
|
|
1870
|
+
format: int64
|
|
1871
|
+
description: Unix epoch time in milliseconds specifying the expiration date
|
|
1872
|
+
example: 1735689600000
|
|
1752
1873
|
targetType:
|
|
1753
1874
|
type: string
|
|
1754
1875
|
description: >-
|
|
@@ -1806,7 +1927,7 @@ definitions:
|
|
|
1806
1927
|
- ops
|
|
1807
1928
|
description: An array of tags for this user segment.
|
|
1808
1929
|
creationDate:
|
|
1809
|
-
type:
|
|
1930
|
+
type: integer
|
|
1810
1931
|
format: int64
|
|
1811
1932
|
description: >-
|
|
1812
1933
|
A unix epoch time in milliseconds specifying the creation time of this
|
|
@@ -1885,6 +2006,8 @@ definitions:
|
|
|
1885
2006
|
items:
|
|
1886
2007
|
type: string
|
|
1887
2008
|
description: An array of tags for this project.
|
|
2009
|
+
defaultClientSideAvailability:
|
|
2010
|
+
$ref: '#/definitions/ClientSideAvailability'
|
|
1888
2011
|
Projects:
|
|
1889
2012
|
type: object
|
|
1890
2013
|
properties:
|
|
@@ -2125,7 +2248,6 @@ definitions:
|
|
|
2125
2248
|
properties:
|
|
2126
2249
|
lastPing:
|
|
2127
2250
|
type: string
|
|
2128
|
-
format: int64
|
|
2129
2251
|
example: '2015-03-03T02:37:22.492Z'
|
|
2130
2252
|
environmentId:
|
|
2131
2253
|
type: string
|
|
@@ -2379,9 +2501,10 @@ definitions:
|
|
|
2379
2501
|
example: replace
|
|
2380
2502
|
path:
|
|
2381
2503
|
type: string
|
|
2382
|
-
example: /
|
|
2504
|
+
example: /name
|
|
2383
2505
|
value:
|
|
2384
2506
|
type: object
|
|
2507
|
+
example: My resource name
|
|
2385
2508
|
required:
|
|
2386
2509
|
- op
|
|
2387
2510
|
- path
|
|
@@ -2505,12 +2628,12 @@ definitions:
|
|
|
2505
2628
|
type: object
|
|
2506
2629
|
properties:
|
|
2507
2630
|
'0':
|
|
2508
|
-
type:
|
|
2631
|
+
type: integer
|
|
2509
2632
|
format: int64
|
|
2510
2633
|
description: A key corresponding to a time series data point.
|
|
2511
2634
|
example: 0
|
|
2512
2635
|
time:
|
|
2513
|
-
type:
|
|
2636
|
+
type: integer
|
|
2514
2637
|
format: int64
|
|
2515
2638
|
description: >-
|
|
2516
2639
|
A unix epoch time in milliseconds specifying the creation time of this
|
|
@@ -2669,6 +2792,80 @@ definitions:
|
|
|
2669
2792
|
$ref: '#/definitions/Links'
|
|
2670
2793
|
_site:
|
|
2671
2794
|
$ref: '#/definitions/Site'
|
|
2795
|
+
Tokens:
|
|
2796
|
+
type: object
|
|
2797
|
+
properties:
|
|
2798
|
+
_links:
|
|
2799
|
+
$ref: '#/definitions/Links'
|
|
2800
|
+
items:
|
|
2801
|
+
type: array
|
|
2802
|
+
items:
|
|
2803
|
+
$ref: '#/definitions/Token'
|
|
2804
|
+
Token:
|
|
2805
|
+
type: object
|
|
2806
|
+
properties:
|
|
2807
|
+
_links:
|
|
2808
|
+
$ref: '#/definitions/Links'
|
|
2809
|
+
_id:
|
|
2810
|
+
$ref: '#/definitions/Id'
|
|
2811
|
+
ownerId:
|
|
2812
|
+
$ref: '#/definitions/Id'
|
|
2813
|
+
memberId:
|
|
2814
|
+
$ref: '#/definitions/Id'
|
|
2815
|
+
_member:
|
|
2816
|
+
$ref: '#/definitions/Member'
|
|
2817
|
+
creationDate:
|
|
2818
|
+
type: integer
|
|
2819
|
+
format: int64
|
|
2820
|
+
description: >-
|
|
2821
|
+
A unix epoch time in milliseconds specifying the creation time of this
|
|
2822
|
+
access token.
|
|
2823
|
+
example: 1443652232590
|
|
2824
|
+
lastModified:
|
|
2825
|
+
type: integer
|
|
2826
|
+
format: int64
|
|
2827
|
+
example: 1469326565348
|
|
2828
|
+
description: >-
|
|
2829
|
+
A unix epoch time in milliseconds specifying the last time this access
|
|
2830
|
+
token was modified.
|
|
2831
|
+
lastUsed:
|
|
2832
|
+
type: integer
|
|
2833
|
+
format: int64
|
|
2834
|
+
example: 1469326565348
|
|
2835
|
+
description: >-
|
|
2836
|
+
A unix epoch time in milliseconds specifying the last time this access
|
|
2837
|
+
token was used to authorize access to the LaunchDarkly REST API.
|
|
2838
|
+
token:
|
|
2839
|
+
type: string
|
|
2840
|
+
example: '3243'
|
|
2841
|
+
description: >-
|
|
2842
|
+
The last 4 digits of the unique secret key for this access token. If
|
|
2843
|
+
creating or resetting the token, this will be the full token secret.
|
|
2844
|
+
name:
|
|
2845
|
+
type: string
|
|
2846
|
+
description: A human-friendly name for the access token
|
|
2847
|
+
example: My access token
|
|
2848
|
+
role:
|
|
2849
|
+
type: string
|
|
2850
|
+
description: The name of a built-in role for the token
|
|
2851
|
+
example: writer
|
|
2852
|
+
customRoleIds:
|
|
2853
|
+
type: array
|
|
2854
|
+
items:
|
|
2855
|
+
type: string
|
|
2856
|
+
description: A list of custom role IDs to use as access limits for the access token
|
|
2857
|
+
inlineRole:
|
|
2858
|
+
type: array
|
|
2859
|
+
items:
|
|
2860
|
+
$ref: '#/definitions/Statement'
|
|
2861
|
+
serviceToken:
|
|
2862
|
+
type: boolean
|
|
2863
|
+
description: >-
|
|
2864
|
+
Whether the token will be a service token
|
|
2865
|
+
https://docs.launchdarkly.com/home/account-security/api-access-tokens#service-tokens
|
|
2866
|
+
defaultApiVersion:
|
|
2867
|
+
type: integer
|
|
2868
|
+
description: The default API version for this token
|
|
2672
2869
|
responses:
|
|
2673
2870
|
Standard201:
|
|
2674
2871
|
description: Resource created.
|
|
@@ -2728,6 +2925,10 @@ responses:
|
|
|
2728
2925
|
description: Destination response.
|
|
2729
2926
|
schema:
|
|
2730
2927
|
$ref: '#/definitions/Destination'
|
|
2928
|
+
Token2xx:
|
|
2929
|
+
description: Token response.
|
|
2930
|
+
schema:
|
|
2931
|
+
$ref: '#/definitions/Token'
|
|
2731
2932
|
parameters:
|
|
2732
2933
|
ResourceId:
|
|
2733
2934
|
name: resourceId
|
|
@@ -2847,6 +3048,8 @@ parameters:
|
|
|
2847
3048
|
description: >-
|
|
2848
3049
|
Whether or not this flag should be made available to the client-side
|
|
2849
3050
|
JavaScript SDK.
|
|
3051
|
+
clientSideAvailability:
|
|
3052
|
+
$ref: '#/definitions/ClientSideAvailability'
|
|
2850
3053
|
defaults:
|
|
2851
3054
|
$ref: '#/definitions/Defaults'
|
|
2852
3055
|
required:
|
|
@@ -2950,6 +3153,8 @@ parameters:
|
|
|
2950
3153
|
items:
|
|
2951
3154
|
$ref: '#/definitions/EnvironmentPost'
|
|
2952
3155
|
minLength: 1
|
|
3156
|
+
defaultClientSideAvailability:
|
|
3157
|
+
$ref: '#/definitions/ClientSideAvailability'
|
|
2953
3158
|
required:
|
|
2954
3159
|
- name
|
|
2955
3160
|
- key
|
|
@@ -3003,7 +3208,7 @@ parameters:
|
|
|
3003
3208
|
in: query
|
|
3004
3209
|
required: false
|
|
3005
3210
|
description: >-
|
|
3006
|
-
When set to 1, archived flags will be included in the list of flags
|
|
3211
|
+
When set to 1, only archived flags will be included in the list of flags
|
|
3007
3212
|
returned. By default, archived flags are not included in the list of
|
|
3008
3213
|
flags.
|
|
3009
3214
|
type: boolean
|
|
@@ -3112,7 +3317,7 @@ parameters:
|
|
|
3112
3317
|
required: false
|
|
3113
3318
|
description: >-
|
|
3114
3319
|
A timestamp filter, expressed as a Unix epoch time in milliseconds. All
|
|
3115
|
-
entries returned will have
|
|
3320
|
+
entries returned will have occurred after this timestamp.
|
|
3116
3321
|
format: int64
|
|
3117
3322
|
type: integer
|
|
3118
3323
|
PatchRequest:
|
|
@@ -3153,8 +3358,8 @@ parameters:
|
|
|
3153
3358
|
required: false
|
|
3154
3359
|
description: >-
|
|
3155
3360
|
Text to search for. You can search for the full or partial name of the
|
|
3156
|
-
resource involved or
|
|
3157
|
-
change.
|
|
3361
|
+
resource involved or full or partial email address of the member who made
|
|
3362
|
+
the change.
|
|
3158
3363
|
type: string
|
|
3159
3364
|
AuditLimit:
|
|
3160
3365
|
name: limit
|
|
@@ -3315,4 +3520,63 @@ parameters:
|
|
|
3315
3520
|
required: true
|
|
3316
3521
|
description: The key of the flag we want metrics for.
|
|
3317
3522
|
type: string
|
|
3523
|
+
TokensPostRequest:
|
|
3524
|
+
name: tokenBody
|
|
3525
|
+
in: body
|
|
3526
|
+
required: true
|
|
3527
|
+
description: Create a new access token.
|
|
3528
|
+
schema:
|
|
3529
|
+
type: object
|
|
3530
|
+
properties:
|
|
3531
|
+
name:
|
|
3532
|
+
type: string
|
|
3533
|
+
description: A human-friendly name for the access token
|
|
3534
|
+
example: My access token
|
|
3535
|
+
role:
|
|
3536
|
+
type: string
|
|
3537
|
+
description: The name of a built-in role for the token
|
|
3538
|
+
example: writer
|
|
3539
|
+
customRoleIds:
|
|
3540
|
+
type: array
|
|
3541
|
+
items:
|
|
3542
|
+
type: string
|
|
3543
|
+
example: []
|
|
3544
|
+
description: >-
|
|
3545
|
+
A list of custom role IDs to use as access limits for the access
|
|
3546
|
+
token
|
|
3547
|
+
inlineRole:
|
|
3548
|
+
type: array
|
|
3549
|
+
items:
|
|
3550
|
+
$ref: '#/definitions/Statement'
|
|
3551
|
+
serviceToken:
|
|
3552
|
+
type: boolean
|
|
3553
|
+
description: >-
|
|
3554
|
+
Whether the token will be a service token
|
|
3555
|
+
https://docs.launchdarkly.com/home/account-security/api-access-tokens#service-tokens
|
|
3556
|
+
defaultApiVersion:
|
|
3557
|
+
type: integer
|
|
3558
|
+
description: The default API version for this token
|
|
3559
|
+
TokenId:
|
|
3560
|
+
name: tokenId
|
|
3561
|
+
in: path
|
|
3562
|
+
required: true
|
|
3563
|
+
description: The access token ID.
|
|
3564
|
+
type: string
|
|
3565
|
+
TokenShowAllQuery:
|
|
3566
|
+
name: showAll
|
|
3567
|
+
in: query
|
|
3568
|
+
required: false
|
|
3569
|
+
description: >-
|
|
3570
|
+
If set to true, and the authentication access token has the "Admin" role,
|
|
3571
|
+
personal access tokens for all members will be retrieved.
|
|
3572
|
+
type: boolean
|
|
3573
|
+
TokenExpiry:
|
|
3574
|
+
name: expiry
|
|
3575
|
+
in: query
|
|
3576
|
+
required: false
|
|
3577
|
+
type: integer
|
|
3578
|
+
format: int64
|
|
3579
|
+
description: >-
|
|
3580
|
+
An expiration time for the old token key, expressed as a Unix epoch time
|
|
3581
|
+
in milliseconds. By default, the token will expire immediately.
|
|
3318
3582
|
|