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
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module LaunchDarklyApi
|
16
16
|
class UsersApi
|
@@ -19,9 +19,7 @@ module LaunchDarklyApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Delete a user by ID.
|
24
|
-
#
|
25
23
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
26
24
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
27
25
|
# @param user_key The user's key.
|
@@ -29,11 +27,10 @@ module LaunchDarklyApi
|
|
29
27
|
# @return [nil]
|
30
28
|
def delete_user(project_key, environment_key, user_key, opts = {})
|
31
29
|
delete_user_with_http_info(project_key, environment_key, user_key, opts)
|
32
|
-
|
30
|
+
nil
|
33
31
|
end
|
34
32
|
|
35
33
|
# Delete a user by ID.
|
36
|
-
#
|
37
34
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
38
35
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
39
36
|
# @param user_key The user's key.
|
@@ -41,7 +38,7 @@ module LaunchDarklyApi
|
|
41
38
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
42
39
|
def delete_user_with_http_info(project_key, environment_key, user_key, opts = {})
|
43
40
|
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.delete_user ...'
|
45
42
|
end
|
46
43
|
# verify the required parameter 'project_key' is set
|
47
44
|
if @api_client.config.client_side_validation && project_key.nil?
|
@@ -56,7 +53,7 @@ module LaunchDarklyApi
|
|
56
53
|
fail ArgumentError, "Missing the required parameter 'user_key' when calling UsersApi.delete_user"
|
57
54
|
end
|
58
55
|
# resource path
|
59
|
-
local_var_path =
|
56
|
+
local_var_path = '/users/{projectKey}/{environmentKey}/{userKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s)
|
60
57
|
|
61
58
|
# query parameters
|
62
59
|
query_params = {}
|
@@ -85,35 +82,32 @@ module LaunchDarklyApi
|
|
85
82
|
end
|
86
83
|
return data, status_code, headers
|
87
84
|
end
|
88
|
-
|
89
85
|
# 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.
|
90
|
-
#
|
91
86
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
92
87
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
93
88
|
# @param [Hash] opts the optional parameters
|
94
89
|
# @option opts [String] :q Search query.
|
95
90
|
# @option opts [Integer] :limit Pagination limit.
|
96
91
|
# @option opts [Integer] :offset Specifies the first item to return in the collection.
|
97
|
-
# @option opts [
|
92
|
+
# @option opts [Integer] :after A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
|
98
93
|
# @return [Users]
|
99
94
|
def get_search_users(project_key, environment_key, opts = {})
|
100
95
|
data, _status_code, _headers = get_search_users_with_http_info(project_key, environment_key, opts)
|
101
|
-
|
96
|
+
data
|
102
97
|
end
|
103
98
|
|
104
99
|
# 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.
|
105
|
-
#
|
106
100
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
107
101
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
108
102
|
# @param [Hash] opts the optional parameters
|
109
103
|
# @option opts [String] :q Search query.
|
110
104
|
# @option opts [Integer] :limit Pagination limit.
|
111
105
|
# @option opts [Integer] :offset Specifies the first item to return in the collection.
|
112
|
-
# @option opts [
|
106
|
+
# @option opts [Integer] :after A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
|
113
107
|
# @return [Array<(Users, Fixnum, Hash)>] Users data, response status code and response headers
|
114
108
|
def get_search_users_with_http_info(project_key, environment_key, opts = {})
|
115
109
|
if @api_client.config.debugging
|
116
|
-
@api_client.config.logger.debug
|
110
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_search_users ...'
|
117
111
|
end
|
118
112
|
# verify the required parameter 'project_key' is set
|
119
113
|
if @api_client.config.client_side_validation && project_key.nil?
|
@@ -124,7 +118,7 @@ module LaunchDarklyApi
|
|
124
118
|
fail ArgumentError, "Missing the required parameter 'environment_key' when calling UsersApi.get_search_users"
|
125
119
|
end
|
126
120
|
# resource path
|
127
|
-
local_var_path =
|
121
|
+
local_var_path = '/user-search/{projectKey}/{environmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
|
128
122
|
|
129
123
|
# query parameters
|
130
124
|
query_params = {}
|
@@ -158,9 +152,7 @@ module LaunchDarklyApi
|
|
158
152
|
end
|
159
153
|
return data, status_code, headers
|
160
154
|
end
|
161
|
-
|
162
155
|
# Get a user by key.
|
163
|
-
#
|
164
156
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
165
157
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
166
158
|
# @param user_key The user's key.
|
@@ -168,11 +160,10 @@ module LaunchDarklyApi
|
|
168
160
|
# @return [User]
|
169
161
|
def get_user(project_key, environment_key, user_key, opts = {})
|
170
162
|
data, _status_code, _headers = get_user_with_http_info(project_key, environment_key, user_key, opts)
|
171
|
-
|
163
|
+
data
|
172
164
|
end
|
173
165
|
|
174
166
|
# Get a user by key.
|
175
|
-
#
|
176
167
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
177
168
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
178
169
|
# @param user_key The user's key.
|
@@ -180,7 +171,7 @@ module LaunchDarklyApi
|
|
180
171
|
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
181
172
|
def get_user_with_http_info(project_key, environment_key, user_key, opts = {})
|
182
173
|
if @api_client.config.debugging
|
183
|
-
@api_client.config.logger.debug
|
174
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_user ...'
|
184
175
|
end
|
185
176
|
# verify the required parameter 'project_key' is set
|
186
177
|
if @api_client.config.client_side_validation && project_key.nil?
|
@@ -195,7 +186,7 @@ module LaunchDarklyApi
|
|
195
186
|
fail ArgumentError, "Missing the required parameter 'user_key' when calling UsersApi.get_user"
|
196
187
|
end
|
197
188
|
# resource path
|
198
|
-
local_var_path =
|
189
|
+
local_var_path = '/users/{projectKey}/{environmentKey}/{userKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s)
|
199
190
|
|
200
191
|
# query parameters
|
201
192
|
query_params = {}
|
@@ -225,9 +216,7 @@ module LaunchDarklyApi
|
|
225
216
|
end
|
226
217
|
return data, status_code, headers
|
227
218
|
end
|
228
|
-
|
229
219
|
# 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.
|
230
|
-
#
|
231
220
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
232
221
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
233
222
|
# @param [Hash] opts the optional parameters
|
@@ -237,11 +226,10 @@ module LaunchDarklyApi
|
|
237
226
|
# @return [Users]
|
238
227
|
def get_users(project_key, environment_key, opts = {})
|
239
228
|
data, _status_code, _headers = get_users_with_http_info(project_key, environment_key, opts)
|
240
|
-
|
229
|
+
data
|
241
230
|
end
|
242
231
|
|
243
232
|
# 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.
|
244
|
-
#
|
245
233
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
246
234
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
247
235
|
# @param [Hash] opts the optional parameters
|
@@ -251,7 +239,7 @@ module LaunchDarklyApi
|
|
251
239
|
# @return [Array<(Users, Fixnum, Hash)>] Users data, response status code and response headers
|
252
240
|
def get_users_with_http_info(project_key, environment_key, opts = {})
|
253
241
|
if @api_client.config.debugging
|
254
|
-
@api_client.config.logger.debug
|
242
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_users ...'
|
255
243
|
end
|
256
244
|
# verify the required parameter 'project_key' is set
|
257
245
|
if @api_client.config.client_side_validation && project_key.nil?
|
@@ -262,7 +250,7 @@ module LaunchDarklyApi
|
|
262
250
|
fail ArgumentError, "Missing the required parameter 'environment_key' when calling UsersApi.get_users"
|
263
251
|
end
|
264
252
|
# resource path
|
265
|
-
local_var_path =
|
253
|
+
local_var_path = '/users/{projectKey}/{environmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
|
266
254
|
|
267
255
|
# query parameters
|
268
256
|
query_params = {}
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module LaunchDarklyApi
|
16
16
|
class WebhooksApi
|
@@ -19,32 +19,29 @@ module LaunchDarklyApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Delete a webhook by ID.
|
24
|
-
#
|
25
23
|
# @param resource_id The resource ID.
|
26
24
|
# @param [Hash] opts the optional parameters
|
27
25
|
# @return [nil]
|
28
26
|
def delete_webhook(resource_id, opts = {})
|
29
27
|
delete_webhook_with_http_info(resource_id, opts)
|
30
|
-
|
28
|
+
nil
|
31
29
|
end
|
32
30
|
|
33
31
|
# Delete a webhook by ID.
|
34
|
-
#
|
35
32
|
# @param resource_id The resource ID.
|
36
33
|
# @param [Hash] opts the optional parameters
|
37
34
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
38
35
|
def delete_webhook_with_http_info(resource_id, opts = {})
|
39
36
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
37
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.delete_webhook ...'
|
41
38
|
end
|
42
39
|
# verify the required parameter 'resource_id' is set
|
43
40
|
if @api_client.config.client_side_validation && resource_id.nil?
|
44
41
|
fail ArgumentError, "Missing the required parameter 'resource_id' when calling WebhooksApi.delete_webhook"
|
45
42
|
end
|
46
43
|
# resource path
|
47
|
-
local_var_path =
|
44
|
+
local_var_path = '/webhooks/{resourceId}'.sub('{' + 'resourceId' + '}', resource_id.to_s)
|
48
45
|
|
49
46
|
# query parameters
|
50
47
|
query_params = {}
|
@@ -73,32 +70,29 @@ module LaunchDarklyApi
|
|
73
70
|
end
|
74
71
|
return data, status_code, headers
|
75
72
|
end
|
76
|
-
|
77
73
|
# Get a webhook by ID.
|
78
|
-
#
|
79
74
|
# @param resource_id The resource ID.
|
80
75
|
# @param [Hash] opts the optional parameters
|
81
76
|
# @return [Webhook]
|
82
77
|
def get_webhook(resource_id, opts = {})
|
83
78
|
data, _status_code, _headers = get_webhook_with_http_info(resource_id, opts)
|
84
|
-
|
79
|
+
data
|
85
80
|
end
|
86
81
|
|
87
82
|
# Get a webhook by ID.
|
88
|
-
#
|
89
83
|
# @param resource_id The resource ID.
|
90
84
|
# @param [Hash] opts the optional parameters
|
91
85
|
# @return [Array<(Webhook, Fixnum, Hash)>] Webhook data, response status code and response headers
|
92
86
|
def get_webhook_with_http_info(resource_id, opts = {})
|
93
87
|
if @api_client.config.debugging
|
94
|
-
@api_client.config.logger.debug
|
88
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.get_webhook ...'
|
95
89
|
end
|
96
90
|
# verify the required parameter 'resource_id' is set
|
97
91
|
if @api_client.config.client_side_validation && resource_id.nil?
|
98
92
|
fail ArgumentError, "Missing the required parameter 'resource_id' when calling WebhooksApi.get_webhook"
|
99
93
|
end
|
100
94
|
# resource path
|
101
|
-
local_var_path =
|
95
|
+
local_var_path = '/webhooks/{resourceId}'.sub('{' + 'resourceId' + '}', resource_id.to_s)
|
102
96
|
|
103
97
|
# query parameters
|
104
98
|
query_params = {}
|
@@ -128,26 +122,23 @@ module LaunchDarklyApi
|
|
128
122
|
end
|
129
123
|
return data, status_code, headers
|
130
124
|
end
|
131
|
-
|
132
125
|
# Fetch a list of all webhooks.
|
133
|
-
#
|
134
126
|
# @param [Hash] opts the optional parameters
|
135
127
|
# @return [Webhooks]
|
136
128
|
def get_webhooks(opts = {})
|
137
129
|
data, _status_code, _headers = get_webhooks_with_http_info(opts)
|
138
|
-
|
130
|
+
data
|
139
131
|
end
|
140
132
|
|
141
133
|
# Fetch a list of all webhooks.
|
142
|
-
#
|
143
134
|
# @param [Hash] opts the optional parameters
|
144
135
|
# @return [Array<(Webhooks, Fixnum, Hash)>] Webhooks data, response status code and response headers
|
145
136
|
def get_webhooks_with_http_info(opts = {})
|
146
137
|
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug
|
138
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.get_webhooks ...'
|
148
139
|
end
|
149
140
|
# resource path
|
150
|
-
local_var_path =
|
141
|
+
local_var_path = '/webhooks'
|
151
142
|
|
152
143
|
# query parameters
|
153
144
|
query_params = {}
|
@@ -177,27 +168,24 @@ module LaunchDarklyApi
|
|
177
168
|
end
|
178
169
|
return data, status_code, headers
|
179
170
|
end
|
180
|
-
|
181
171
|
# Modify a webhook by ID.
|
182
|
-
#
|
183
172
|
# @param resource_id The resource ID.
|
184
173
|
# @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
|
185
174
|
# @param [Hash] opts the optional parameters
|
186
175
|
# @return [Webhook]
|
187
176
|
def patch_webhook(resource_id, patch_delta, opts = {})
|
188
177
|
data, _status_code, _headers = patch_webhook_with_http_info(resource_id, patch_delta, opts)
|
189
|
-
|
178
|
+
data
|
190
179
|
end
|
191
180
|
|
192
181
|
# Modify a webhook by ID.
|
193
|
-
#
|
194
182
|
# @param resource_id The resource ID.
|
195
183
|
# @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
|
196
184
|
# @param [Hash] opts the optional parameters
|
197
185
|
# @return [Array<(Webhook, Fixnum, Hash)>] Webhook data, response status code and response headers
|
198
186
|
def patch_webhook_with_http_info(resource_id, patch_delta, opts = {})
|
199
187
|
if @api_client.config.debugging
|
200
|
-
@api_client.config.logger.debug
|
188
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.patch_webhook ...'
|
201
189
|
end
|
202
190
|
# verify the required parameter 'resource_id' is set
|
203
191
|
if @api_client.config.client_side_validation && resource_id.nil?
|
@@ -208,7 +196,7 @@ module LaunchDarklyApi
|
|
208
196
|
fail ArgumentError, "Missing the required parameter 'patch_delta' when calling WebhooksApi.patch_webhook"
|
209
197
|
end
|
210
198
|
# resource path
|
211
|
-
local_var_path =
|
199
|
+
local_var_path = '/webhooks/{resourceId}'.sub('{' + 'resourceId' + '}', resource_id.to_s)
|
212
200
|
|
213
201
|
# query parameters
|
214
202
|
query_params = {}
|
@@ -238,32 +226,29 @@ module LaunchDarklyApi
|
|
238
226
|
end
|
239
227
|
return data, status_code, headers
|
240
228
|
end
|
241
|
-
|
242
229
|
# Create a webhook.
|
243
|
-
#
|
244
230
|
# @param webhook_body New webhook.
|
245
231
|
# @param [Hash] opts the optional parameters
|
246
|
-
# @return [
|
232
|
+
# @return [Webhook]
|
247
233
|
def post_webhook(webhook_body, opts = {})
|
248
|
-
post_webhook_with_http_info(webhook_body, opts)
|
249
|
-
|
234
|
+
data, _status_code, _headers = post_webhook_with_http_info(webhook_body, opts)
|
235
|
+
data
|
250
236
|
end
|
251
237
|
|
252
238
|
# Create a webhook.
|
253
|
-
#
|
254
239
|
# @param webhook_body New webhook.
|
255
240
|
# @param [Hash] opts the optional parameters
|
256
|
-
# @return [Array<(
|
241
|
+
# @return [Array<(Webhook, Fixnum, Hash)>] Webhook data, response status code and response headers
|
257
242
|
def post_webhook_with_http_info(webhook_body, opts = {})
|
258
243
|
if @api_client.config.debugging
|
259
|
-
@api_client.config.logger.debug
|
244
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.post_webhook ...'
|
260
245
|
end
|
261
246
|
# verify the required parameter 'webhook_body' is set
|
262
247
|
if @api_client.config.client_side_validation && webhook_body.nil?
|
263
248
|
fail ArgumentError, "Missing the required parameter 'webhook_body' when calling WebhooksApi.post_webhook"
|
264
249
|
end
|
265
250
|
# resource path
|
266
|
-
local_var_path =
|
251
|
+
local_var_path = '/webhooks'
|
267
252
|
|
268
253
|
# query parameters
|
269
254
|
query_params = {}
|
@@ -286,7 +271,8 @@ module LaunchDarklyApi
|
|
286
271
|
:query_params => query_params,
|
287
272
|
:form_params => form_params,
|
288
273
|
:body => post_body,
|
289
|
-
:auth_names => auth_names
|
274
|
+
:auth_names => auth_names,
|
275
|
+
:return_type => 'Webhook')
|
290
276
|
if @api_client.config.debugging
|
291
277
|
@api_client.config.logger.debug "API called: WebhooksApi#post_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
292
278
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,7 +33,7 @@ module LaunchDarklyApi
|
|
33
33
|
@config = config
|
34
34
|
@user_agent = "Swagger-Codegen/#{VERSION}/ruby"
|
35
35
|
@default_headers = {
|
36
|
-
'Content-Type' =>
|
36
|
+
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
38
38
|
}
|
39
39
|
end
|
@@ -137,7 +137,7 @@ module LaunchDarklyApi
|
|
137
137
|
# @param [String] mime MIME
|
138
138
|
# @return [Boolean] True if the MIME is application/json
|
139
139
|
def json_mime?(mime)
|
140
|
-
|
140
|
+
(mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
|
141
141
|
end
|
142
142
|
|
143
143
|
# Deserialize the response to the given return type.
|
@@ -201,12 +201,12 @@ module LaunchDarklyApi
|
|
201
201
|
when /\AArray<(.+)>\z/
|
202
202
|
# e.g. Array<Pet>
|
203
203
|
sub_type = $1
|
204
|
-
data.map {|item| convert_to_type(item, sub_type) }
|
204
|
+
data.map { |item| convert_to_type(item, sub_type) }
|
205
205
|
when /\AHash\<String, (.+)\>\z/
|
206
206
|
# e.g. Hash<String, Integer>
|
207
207
|
sub_type = $1
|
208
208
|
{}.tap do |hash|
|
209
|
-
data.each {|k, v| hash[k] = convert_to_type(v, sub_type) }
|
209
|
+
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
210
210
|
end
|
211
211
|
else
|
212
212
|
# models, e.g. Pet
|
@@ -228,7 +228,7 @@ module LaunchDarklyApi
|
|
228
228
|
encoding = nil
|
229
229
|
request.on_headers do |response|
|
230
230
|
content_disposition = response.headers['Content-Disposition']
|
231
|
-
if content_disposition
|
231
|
+
if content_disposition && content_disposition =~ /filename=/i
|
232
232
|
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
233
233
|
prefix = sanitize_filename(filename)
|
234
234
|
else
|
@@ -327,7 +327,7 @@ module LaunchDarklyApi
|
|
327
327
|
return nil if accepts.nil? || accepts.empty?
|
328
328
|
# use JSON when present, otherwise use all of the provided
|
329
329
|
json_accept = accepts.find { |s| json_mime?(s) }
|
330
|
-
|
330
|
+
json_accept || accepts.join(',')
|
331
331
|
end
|
332
332
|
|
333
333
|
# Return Content-Type header based on an array of content types provided.
|
@@ -338,7 +338,7 @@ module LaunchDarklyApi
|
|
338
338
|
return 'application/json' if content_types.nil? || content_types.empty?
|
339
339
|
# use JSON when present, otherwise use the first one
|
340
340
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
341
|
-
|
341
|
+
json_content_type || content_types.first
|
342
342
|
end
|
343
343
|
|
344
344
|
# Convert object (array, hash, object, etc) to JSON string.
|
@@ -348,7 +348,7 @@ module LaunchDarklyApi
|
|
348
348
|
return model if model.nil? || model.is_a?(String)
|
349
349
|
local_body = nil
|
350
350
|
if model.is_a?(Array)
|
351
|
-
local_body = model.map{|m| object_to_hash(m) }
|
351
|
+
local_body = model.map { |m| object_to_hash(m) }
|
352
352
|
else
|
353
353
|
local_body = object_to_hash(model)
|
354
354
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -170,7 +170,7 @@ module LaunchDarklyApi
|
|
170
170
|
def base_path=(base_path)
|
171
171
|
# Add leading and trailing slashes to base_path
|
172
172
|
@base_path = "/#{base_path}".gsub(/\/+/, '/')
|
173
|
-
@base_path =
|
173
|
+
@base_path = '' if @base_path == '/'
|
174
174
|
end
|
175
175
|
|
176
176
|
def base_url
|
@@ -3,23 +3,21 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module LaunchDarklyApi
|
16
|
-
|
17
16
|
class AuditLogEntries
|
18
17
|
attr_accessor :_links
|
19
18
|
|
20
19
|
attr_accessor :items
|
21
20
|
|
22
|
-
|
23
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
22
|
def self.attribute_map
|
25
23
|
{
|
@@ -42,7 +40,7 @@ module LaunchDarklyApi
|
|
42
40
|
return unless attributes.is_a?(Hash)
|
43
41
|
|
44
42
|
# convert string to symbol for hash key
|
45
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
44
|
|
47
45
|
if attributes.has_key?(:'_links')
|
48
46
|
self._links = attributes[:'_links']
|
@@ -53,20 +51,19 @@ module LaunchDarklyApi
|
|
53
51
|
self.items = value
|
54
52
|
end
|
55
53
|
end
|
56
|
-
|
57
54
|
end
|
58
55
|
|
59
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
60
57
|
# @return Array for valid properties with the reasons
|
61
58
|
def list_invalid_properties
|
62
59
|
invalid_properties = Array.new
|
63
|
-
|
60
|
+
invalid_properties
|
64
61
|
end
|
65
62
|
|
66
63
|
# Check to see if the all the properties in the model are valid
|
67
64
|
# @return true if the model is valid
|
68
65
|
def valid?
|
69
|
-
|
66
|
+
true
|
70
67
|
end
|
71
68
|
|
72
69
|
# Checks equality by comparing each attribute.
|
@@ -100,7 +97,7 @@ module LaunchDarklyApi
|
|
100
97
|
# check to ensure the input is an array given that the the attribute
|
101
98
|
# is documented as an array but the input is not
|
102
99
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
103
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
104
101
|
end
|
105
102
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
106
103
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -182,7 +179,7 @@ module LaunchDarklyApi
|
|
182
179
|
# @return [Hash] Returns the value in the form of hash
|
183
180
|
def _to_hash(value)
|
184
181
|
if value.is_a?(Array)
|
185
|
-
value.compact.map{ |v| _to_hash(v) }
|
182
|
+
value.compact.map { |v| _to_hash(v) }
|
186
183
|
elsif value.is_a?(Hash)
|
187
184
|
{}.tap do |hash|
|
188
185
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -193,7 +190,5 @@ module LaunchDarklyApi
|
|
193
190
|
value
|
194
191
|
end
|
195
192
|
end
|
196
|
-
|
197
193
|
end
|
198
|
-
|
199
194
|
end
|