launchdarkly_api 2.0.10 → 2.0.27
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 +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 RootApi
|
|
@@ -19,26 +19,23 @@ module LaunchDarklyApi
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
|
|
23
|
-
#
|
|
24
22
|
# You can issue a GET request to the root resource to find all of the resource categories supported by the API.
|
|
25
23
|
# @param [Hash] opts the optional parameters
|
|
26
24
|
# @return [Links]
|
|
27
25
|
def get_root(opts = {})
|
|
28
26
|
data, _status_code, _headers = get_root_with_http_info(opts)
|
|
29
|
-
|
|
27
|
+
data
|
|
30
28
|
end
|
|
31
29
|
|
|
32
|
-
#
|
|
33
30
|
# You can issue a GET request to the root resource to find all of the resource categories supported by the API.
|
|
34
31
|
# @param [Hash] opts the optional parameters
|
|
35
32
|
# @return [Array<(Links, Fixnum, Hash)>] Links data, response status code and response headers
|
|
36
33
|
def get_root_with_http_info(opts = {})
|
|
37
34
|
if @api_client.config.debugging
|
|
38
|
-
@api_client.config.logger.debug
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: RootApi.get_root ...'
|
|
39
36
|
end
|
|
40
37
|
# resource path
|
|
41
|
-
local_var_path =
|
|
38
|
+
local_var_path = '/'
|
|
42
39
|
|
|
43
40
|
# query parameters
|
|
44
41
|
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 TeamMembersApi
|
|
@@ -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 team member by ID.
|
|
24
|
-
#
|
|
25
23
|
# @param member_id The member ID.
|
|
26
24
|
# @param [Hash] opts the optional parameters
|
|
27
25
|
# @return [nil]
|
|
28
26
|
def delete_member(member_id, opts = {})
|
|
29
27
|
delete_member_with_http_info(member_id, opts)
|
|
30
|
-
|
|
28
|
+
nil
|
|
31
29
|
end
|
|
32
30
|
|
|
33
31
|
# Delete a team member by ID.
|
|
34
|
-
#
|
|
35
32
|
# @param member_id The member 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_member_with_http_info(member_id, opts = {})
|
|
39
36
|
if @api_client.config.debugging
|
|
40
|
-
@api_client.config.logger.debug
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: TeamMembersApi.delete_member ...'
|
|
41
38
|
end
|
|
42
39
|
# verify the required parameter 'member_id' is set
|
|
43
40
|
if @api_client.config.client_side_validation && member_id.nil?
|
|
44
41
|
fail ArgumentError, "Missing the required parameter 'member_id' when calling TeamMembersApi.delete_member"
|
|
45
42
|
end
|
|
46
43
|
# resource path
|
|
47
|
-
local_var_path =
|
|
44
|
+
local_var_path = '/members/{memberId}'.sub('{' + 'memberId' + '}', member_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 single team member by ID.
|
|
78
|
-
#
|
|
79
74
|
# @param member_id The member ID.
|
|
80
75
|
# @param [Hash] opts the optional parameters
|
|
81
76
|
# @return [Member]
|
|
82
77
|
def get_member(member_id, opts = {})
|
|
83
78
|
data, _status_code, _headers = get_member_with_http_info(member_id, opts)
|
|
84
|
-
|
|
79
|
+
data
|
|
85
80
|
end
|
|
86
81
|
|
|
87
82
|
# Get a single team member by ID.
|
|
88
|
-
#
|
|
89
83
|
# @param member_id The member ID.
|
|
90
84
|
# @param [Hash] opts the optional parameters
|
|
91
85
|
# @return [Array<(Member, Fixnum, Hash)>] Member data, response status code and response headers
|
|
92
86
|
def get_member_with_http_info(member_id, opts = {})
|
|
93
87
|
if @api_client.config.debugging
|
|
94
|
-
@api_client.config.logger.debug
|
|
88
|
+
@api_client.config.logger.debug 'Calling API: TeamMembersApi.get_member ...'
|
|
95
89
|
end
|
|
96
90
|
# verify the required parameter 'member_id' is set
|
|
97
91
|
if @api_client.config.client_side_validation && member_id.nil?
|
|
98
92
|
fail ArgumentError, "Missing the required parameter 'member_id' when calling TeamMembersApi.get_member"
|
|
99
93
|
end
|
|
100
94
|
# resource path
|
|
101
|
-
local_var_path =
|
|
95
|
+
local_var_path = '/members/{memberId}'.sub('{' + 'memberId' + '}', member_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
|
# Returns a list of all members in the account.
|
|
133
|
-
#
|
|
134
126
|
# @param [Hash] opts the optional parameters
|
|
135
127
|
# @return [Members]
|
|
136
128
|
def get_members(opts = {})
|
|
137
129
|
data, _status_code, _headers = get_members_with_http_info(opts)
|
|
138
|
-
|
|
130
|
+
data
|
|
139
131
|
end
|
|
140
132
|
|
|
141
133
|
# Returns a list of all members in the account.
|
|
142
|
-
#
|
|
143
134
|
# @param [Hash] opts the optional parameters
|
|
144
135
|
# @return [Array<(Members, Fixnum, Hash)>] Members data, response status code and response headers
|
|
145
136
|
def get_members_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: TeamMembersApi.get_members ...'
|
|
148
139
|
end
|
|
149
140
|
# resource path
|
|
150
|
-
local_var_path =
|
|
141
|
+
local_var_path = '/members'
|
|
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 team member by ID.
|
|
182
|
-
#
|
|
183
172
|
# @param member_id The member 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 [Member]
|
|
187
176
|
def patch_member(member_id, patch_delta, opts = {})
|
|
188
177
|
data, _status_code, _headers = patch_member_with_http_info(member_id, patch_delta, opts)
|
|
189
|
-
|
|
178
|
+
data
|
|
190
179
|
end
|
|
191
180
|
|
|
192
181
|
# Modify a team member by ID.
|
|
193
|
-
#
|
|
194
182
|
# @param member_id The member 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<(Member, Fixnum, Hash)>] Member data, response status code and response headers
|
|
198
186
|
def patch_member_with_http_info(member_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: TeamMembersApi.patch_member ...'
|
|
201
189
|
end
|
|
202
190
|
# verify the required parameter 'member_id' is set
|
|
203
191
|
if @api_client.config.client_side_validation && member_id.nil?
|
|
@@ -208,7 +196,7 @@ module LaunchDarklyApi
|
|
|
208
196
|
fail ArgumentError, "Missing the required parameter 'patch_delta' when calling TeamMembersApi.patch_member"
|
|
209
197
|
end
|
|
210
198
|
# resource path
|
|
211
|
-
local_var_path =
|
|
199
|
+
local_var_path = '/members/{memberId}'.sub('{' + 'memberId' + '}', member_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
|
# Invite new members.
|
|
243
|
-
#
|
|
244
230
|
# @param members_body New members to invite.
|
|
245
231
|
# @param [Hash] opts the optional parameters
|
|
246
|
-
# @return [
|
|
232
|
+
# @return [Members]
|
|
247
233
|
def post_members(members_body, opts = {})
|
|
248
|
-
post_members_with_http_info(members_body, opts)
|
|
249
|
-
|
|
234
|
+
data, _status_code, _headers = post_members_with_http_info(members_body, opts)
|
|
235
|
+
data
|
|
250
236
|
end
|
|
251
237
|
|
|
252
238
|
# Invite new members.
|
|
253
|
-
#
|
|
254
239
|
# @param members_body New members to invite.
|
|
255
240
|
# @param [Hash] opts the optional parameters
|
|
256
|
-
# @return [Array<(
|
|
241
|
+
# @return [Array<(Members, Fixnum, Hash)>] Members data, response status code and response headers
|
|
257
242
|
def post_members_with_http_info(members_body, opts = {})
|
|
258
243
|
if @api_client.config.debugging
|
|
259
|
-
@api_client.config.logger.debug
|
|
244
|
+
@api_client.config.logger.debug 'Calling API: TeamMembersApi.post_members ...'
|
|
260
245
|
end
|
|
261
246
|
# verify the required parameter 'members_body' is set
|
|
262
247
|
if @api_client.config.client_side_validation && members_body.nil?
|
|
263
248
|
fail ArgumentError, "Missing the required parameter 'members_body' when calling TeamMembersApi.post_members"
|
|
264
249
|
end
|
|
265
250
|
# resource path
|
|
266
|
-
local_var_path =
|
|
251
|
+
local_var_path = '/members'
|
|
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 => 'Members')
|
|
290
276
|
if @api_client.config.debugging
|
|
291
277
|
@api_client.config.logger.debug "API called: TeamMembersApi#post_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
292
278
|
end
|
|
@@ -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 UserSegmentsApi
|
|
@@ -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 segment.
|
|
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_segment_key The user segment's key. The key identifies the user segment in your code.
|
|
@@ -29,11 +27,10 @@ module LaunchDarklyApi
|
|
|
29
27
|
# @return [nil]
|
|
30
28
|
def delete_user_segment(project_key, environment_key, user_segment_key, opts = {})
|
|
31
29
|
delete_user_segment_with_http_info(project_key, environment_key, user_segment_key, opts)
|
|
32
|
-
|
|
30
|
+
nil
|
|
33
31
|
end
|
|
34
32
|
|
|
35
33
|
# Delete a user segment.
|
|
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_segment_key The user segment's key. The key identifies the user segment in your code.
|
|
@@ -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_segment_with_http_info(project_key, environment_key, user_segment_key, opts = {})
|
|
43
40
|
if @api_client.config.debugging
|
|
44
|
-
@api_client.config.logger.debug
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: UserSegmentsApi.delete_user_segment ...'
|
|
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_segment_key' when calling UserSegmentsApi.delete_user_segment"
|
|
57
54
|
end
|
|
58
55
|
# resource path
|
|
59
|
-
local_var_path =
|
|
56
|
+
local_var_path = '/segments/{projectKey}/{environmentKey}/{userSegmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
|
|
60
57
|
|
|
61
58
|
# query parameters
|
|
62
59
|
query_params = {}
|
|
@@ -85,9 +82,7 @@ module LaunchDarklyApi
|
|
|
85
82
|
end
|
|
86
83
|
return data, status_code, headers
|
|
87
84
|
end
|
|
88
|
-
|
|
89
85
|
# Get a single user segment by key.
|
|
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 user_segment_key The user segment's key. The key identifies the user segment in your code.
|
|
@@ -95,11 +90,10 @@ module LaunchDarklyApi
|
|
|
95
90
|
# @return [UserSegment]
|
|
96
91
|
def get_user_segment(project_key, environment_key, user_segment_key, opts = {})
|
|
97
92
|
data, _status_code, _headers = get_user_segment_with_http_info(project_key, environment_key, user_segment_key, opts)
|
|
98
|
-
|
|
93
|
+
data
|
|
99
94
|
end
|
|
100
95
|
|
|
101
96
|
# Get a single user segment by key.
|
|
102
|
-
#
|
|
103
97
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
104
98
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
105
99
|
# @param user_segment_key The user segment's key. The key identifies the user segment in your code.
|
|
@@ -107,7 +101,7 @@ module LaunchDarklyApi
|
|
|
107
101
|
# @return [Array<(UserSegment, Fixnum, Hash)>] UserSegment data, response status code and response headers
|
|
108
102
|
def get_user_segment_with_http_info(project_key, environment_key, user_segment_key, opts = {})
|
|
109
103
|
if @api_client.config.debugging
|
|
110
|
-
@api_client.config.logger.debug
|
|
104
|
+
@api_client.config.logger.debug 'Calling API: UserSegmentsApi.get_user_segment ...'
|
|
111
105
|
end
|
|
112
106
|
# verify the required parameter 'project_key' is set
|
|
113
107
|
if @api_client.config.client_side_validation && project_key.nil?
|
|
@@ -122,7 +116,7 @@ module LaunchDarklyApi
|
|
|
122
116
|
fail ArgumentError, "Missing the required parameter 'user_segment_key' when calling UserSegmentsApi.get_user_segment"
|
|
123
117
|
end
|
|
124
118
|
# resource path
|
|
125
|
-
local_var_path =
|
|
119
|
+
local_var_path = '/segments/{projectKey}/{environmentKey}/{userSegmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
|
|
126
120
|
|
|
127
121
|
# query parameters
|
|
128
122
|
query_params = {}
|
|
@@ -152,9 +146,7 @@ module LaunchDarklyApi
|
|
|
152
146
|
end
|
|
153
147
|
return data, status_code, headers
|
|
154
148
|
end
|
|
155
|
-
|
|
156
149
|
# Get a list of all user segments in the given project.
|
|
157
|
-
#
|
|
158
150
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
159
151
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
160
152
|
# @param [Hash] opts the optional parameters
|
|
@@ -162,11 +154,10 @@ module LaunchDarklyApi
|
|
|
162
154
|
# @return [UserSegments]
|
|
163
155
|
def get_user_segments(project_key, environment_key, opts = {})
|
|
164
156
|
data, _status_code, _headers = get_user_segments_with_http_info(project_key, environment_key, opts)
|
|
165
|
-
|
|
157
|
+
data
|
|
166
158
|
end
|
|
167
159
|
|
|
168
160
|
# Get a list of all user segments in the given project.
|
|
169
|
-
#
|
|
170
161
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
171
162
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
172
163
|
# @param [Hash] opts the optional parameters
|
|
@@ -174,7 +165,7 @@ module LaunchDarklyApi
|
|
|
174
165
|
# @return [Array<(UserSegments, Fixnum, Hash)>] UserSegments data, response status code and response headers
|
|
175
166
|
def get_user_segments_with_http_info(project_key, environment_key, opts = {})
|
|
176
167
|
if @api_client.config.debugging
|
|
177
|
-
@api_client.config.logger.debug
|
|
168
|
+
@api_client.config.logger.debug 'Calling API: UserSegmentsApi.get_user_segments ...'
|
|
178
169
|
end
|
|
179
170
|
# verify the required parameter 'project_key' is set
|
|
180
171
|
if @api_client.config.client_side_validation && project_key.nil?
|
|
@@ -185,7 +176,7 @@ module LaunchDarklyApi
|
|
|
185
176
|
fail ArgumentError, "Missing the required parameter 'environment_key' when calling UserSegmentsApi.get_user_segments"
|
|
186
177
|
end
|
|
187
178
|
# resource path
|
|
188
|
-
local_var_path =
|
|
179
|
+
local_var_path = '/segments/{projectKey}/{environmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
|
|
189
180
|
|
|
190
181
|
# query parameters
|
|
191
182
|
query_params = {}
|
|
@@ -216,9 +207,7 @@ module LaunchDarklyApi
|
|
|
216
207
|
end
|
|
217
208
|
return data, status_code, headers
|
|
218
209
|
end
|
|
219
|
-
|
|
220
210
|
# Perform a partial update to a user segment.
|
|
221
|
-
#
|
|
222
211
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
223
212
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
224
213
|
# @param user_segment_key The user segment's key. The key identifies the user segment in your code.
|
|
@@ -227,11 +216,10 @@ module LaunchDarklyApi
|
|
|
227
216
|
# @return [UserSegment]
|
|
228
217
|
def patch_user_segment(project_key, environment_key, user_segment_key, patch_only, opts = {})
|
|
229
218
|
data, _status_code, _headers = patch_user_segment_with_http_info(project_key, environment_key, user_segment_key, patch_only, opts)
|
|
230
|
-
|
|
219
|
+
data
|
|
231
220
|
end
|
|
232
221
|
|
|
233
222
|
# Perform a partial update to a user segment.
|
|
234
|
-
#
|
|
235
223
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
236
224
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
237
225
|
# @param user_segment_key The user segment's key. The key identifies the user segment in your code.
|
|
@@ -240,7 +228,7 @@ module LaunchDarklyApi
|
|
|
240
228
|
# @return [Array<(UserSegment, Fixnum, Hash)>] UserSegment data, response status code and response headers
|
|
241
229
|
def patch_user_segment_with_http_info(project_key, environment_key, user_segment_key, patch_only, opts = {})
|
|
242
230
|
if @api_client.config.debugging
|
|
243
|
-
@api_client.config.logger.debug
|
|
231
|
+
@api_client.config.logger.debug 'Calling API: UserSegmentsApi.patch_user_segment ...'
|
|
244
232
|
end
|
|
245
233
|
# verify the required parameter 'project_key' is set
|
|
246
234
|
if @api_client.config.client_side_validation && project_key.nil?
|
|
@@ -259,7 +247,7 @@ module LaunchDarklyApi
|
|
|
259
247
|
fail ArgumentError, "Missing the required parameter 'patch_only' when calling UserSegmentsApi.patch_user_segment"
|
|
260
248
|
end
|
|
261
249
|
# resource path
|
|
262
|
-
local_var_path =
|
|
250
|
+
local_var_path = '/segments/{projectKey}/{environmentKey}/{userSegmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userSegmentKey' + '}', user_segment_key.to_s)
|
|
263
251
|
|
|
264
252
|
# query parameters
|
|
265
253
|
query_params = {}
|
|
@@ -289,29 +277,26 @@ module LaunchDarklyApi
|
|
|
289
277
|
end
|
|
290
278
|
return data, status_code, headers
|
|
291
279
|
end
|
|
292
|
-
|
|
293
280
|
# Creates a new user segment.
|
|
294
|
-
#
|
|
295
281
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
296
282
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
297
283
|
# @param user_segment_body Create a new user segment.
|
|
298
284
|
# @param [Hash] opts the optional parameters
|
|
299
|
-
# @return [
|
|
285
|
+
# @return [UserSegment]
|
|
300
286
|
def post_user_segment(project_key, environment_key, user_segment_body, opts = {})
|
|
301
|
-
post_user_segment_with_http_info(project_key, environment_key, user_segment_body, opts)
|
|
302
|
-
|
|
287
|
+
data, _status_code, _headers = post_user_segment_with_http_info(project_key, environment_key, user_segment_body, opts)
|
|
288
|
+
data
|
|
303
289
|
end
|
|
304
290
|
|
|
305
291
|
# Creates a new user segment.
|
|
306
|
-
#
|
|
307
292
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
308
293
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
309
294
|
# @param user_segment_body Create a new user segment.
|
|
310
295
|
# @param [Hash] opts the optional parameters
|
|
311
|
-
# @return [Array<(
|
|
296
|
+
# @return [Array<(UserSegment, Fixnum, Hash)>] UserSegment data, response status code and response headers
|
|
312
297
|
def post_user_segment_with_http_info(project_key, environment_key, user_segment_body, opts = {})
|
|
313
298
|
if @api_client.config.debugging
|
|
314
|
-
@api_client.config.logger.debug
|
|
299
|
+
@api_client.config.logger.debug 'Calling API: UserSegmentsApi.post_user_segment ...'
|
|
315
300
|
end
|
|
316
301
|
# verify the required parameter 'project_key' is set
|
|
317
302
|
if @api_client.config.client_side_validation && project_key.nil?
|
|
@@ -326,7 +311,7 @@ module LaunchDarklyApi
|
|
|
326
311
|
fail ArgumentError, "Missing the required parameter 'user_segment_body' when calling UserSegmentsApi.post_user_segment"
|
|
327
312
|
end
|
|
328
313
|
# resource path
|
|
329
|
-
local_var_path =
|
|
314
|
+
local_var_path = '/segments/{projectKey}/{environmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
|
|
330
315
|
|
|
331
316
|
# query parameters
|
|
332
317
|
query_params = {}
|
|
@@ -349,7 +334,8 @@ module LaunchDarklyApi
|
|
|
349
334
|
:query_params => query_params,
|
|
350
335
|
:form_params => form_params,
|
|
351
336
|
:body => post_body,
|
|
352
|
-
:auth_names => auth_names
|
|
337
|
+
:auth_names => auth_names,
|
|
338
|
+
:return_type => 'UserSegment')
|
|
353
339
|
if @api_client.config.debugging
|
|
354
340
|
@api_client.config.logger.debug "API called: UserSegmentsApi#post_user_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
355
341
|
end
|
|
@@ -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 UserSettingsApi
|
|
@@ -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
|
# Fetch a single flag setting for a user by key.
|
|
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.
|
|
@@ -30,11 +28,10 @@ module LaunchDarklyApi
|
|
|
30
28
|
# @return [UserFlagSetting]
|
|
31
29
|
def get_user_flag_setting(project_key, environment_key, user_key, feature_flag_key, opts = {})
|
|
32
30
|
data, _status_code, _headers = get_user_flag_setting_with_http_info(project_key, environment_key, user_key, feature_flag_key, opts)
|
|
33
|
-
|
|
31
|
+
data
|
|
34
32
|
end
|
|
35
33
|
|
|
36
34
|
# Fetch a single flag setting for a user by key.
|
|
37
|
-
#
|
|
38
35
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
39
36
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
40
37
|
# @param user_key The user's key.
|
|
@@ -43,7 +40,7 @@ module LaunchDarklyApi
|
|
|
43
40
|
# @return [Array<(UserFlagSetting, Fixnum, Hash)>] UserFlagSetting data, response status code and response headers
|
|
44
41
|
def get_user_flag_setting_with_http_info(project_key, environment_key, user_key, feature_flag_key, opts = {})
|
|
45
42
|
if @api_client.config.debugging
|
|
46
|
-
@api_client.config.logger.debug
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: UserSettingsApi.get_user_flag_setting ...'
|
|
47
44
|
end
|
|
48
45
|
# verify the required parameter 'project_key' is set
|
|
49
46
|
if @api_client.config.client_side_validation && project_key.nil?
|
|
@@ -62,7 +59,7 @@ module LaunchDarklyApi
|
|
|
62
59
|
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling UserSettingsApi.get_user_flag_setting"
|
|
63
60
|
end
|
|
64
61
|
# resource path
|
|
65
|
-
local_var_path =
|
|
62
|
+
local_var_path = '/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
|
66
63
|
|
|
67
64
|
# query parameters
|
|
68
65
|
query_params = {}
|
|
@@ -92,9 +89,7 @@ module LaunchDarklyApi
|
|
|
92
89
|
end
|
|
93
90
|
return data, status_code, headers
|
|
94
91
|
end
|
|
95
|
-
|
|
96
92
|
# Fetch a single flag setting for a user by key.
|
|
97
|
-
#
|
|
98
93
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
99
94
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
100
95
|
# @param user_key The user's key.
|
|
@@ -102,11 +97,10 @@ module LaunchDarklyApi
|
|
|
102
97
|
# @return [UserFlagSettings]
|
|
103
98
|
def get_user_flag_settings(project_key, environment_key, user_key, opts = {})
|
|
104
99
|
data, _status_code, _headers = get_user_flag_settings_with_http_info(project_key, environment_key, user_key, opts)
|
|
105
|
-
|
|
100
|
+
data
|
|
106
101
|
end
|
|
107
102
|
|
|
108
103
|
# Fetch a single flag setting for a user by key.
|
|
109
|
-
#
|
|
110
104
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
111
105
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
112
106
|
# @param user_key The user's key.
|
|
@@ -114,7 +108,7 @@ module LaunchDarklyApi
|
|
|
114
108
|
# @return [Array<(UserFlagSettings, Fixnum, Hash)>] UserFlagSettings data, response status code and response headers
|
|
115
109
|
def get_user_flag_settings_with_http_info(project_key, environment_key, user_key, opts = {})
|
|
116
110
|
if @api_client.config.debugging
|
|
117
|
-
@api_client.config.logger.debug
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: UserSettingsApi.get_user_flag_settings ...'
|
|
118
112
|
end
|
|
119
113
|
# verify the required parameter 'project_key' is set
|
|
120
114
|
if @api_client.config.client_side_validation && project_key.nil?
|
|
@@ -129,7 +123,7 @@ module LaunchDarklyApi
|
|
|
129
123
|
fail ArgumentError, "Missing the required parameter 'user_key' when calling UserSettingsApi.get_user_flag_settings"
|
|
130
124
|
end
|
|
131
125
|
# resource path
|
|
132
|
-
local_var_path =
|
|
126
|
+
local_var_path = '/users/{projectKey}/{environmentKey}/{userKey}/flags'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s)
|
|
133
127
|
|
|
134
128
|
# query parameters
|
|
135
129
|
query_params = {}
|
|
@@ -159,9 +153,7 @@ module LaunchDarklyApi
|
|
|
159
153
|
end
|
|
160
154
|
return data, status_code, headers
|
|
161
155
|
end
|
|
162
|
-
|
|
163
156
|
# Specifically enable or disable a feature flag for a user based on their key.
|
|
164
|
-
#
|
|
165
157
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
166
158
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
167
159
|
# @param user_key The user's key.
|
|
@@ -171,11 +163,10 @@ module LaunchDarklyApi
|
|
|
171
163
|
# @return [nil]
|
|
172
164
|
def put_flag_setting(project_key, environment_key, user_key, feature_flag_key, user_settings_body, opts = {})
|
|
173
165
|
put_flag_setting_with_http_info(project_key, environment_key, user_key, feature_flag_key, user_settings_body, opts)
|
|
174
|
-
|
|
166
|
+
nil
|
|
175
167
|
end
|
|
176
168
|
|
|
177
169
|
# Specifically enable or disable a feature flag for a user based on their key.
|
|
178
|
-
#
|
|
179
170
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
|
180
171
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
181
172
|
# @param user_key The user's key.
|
|
@@ -185,7 +176,7 @@ module LaunchDarklyApi
|
|
|
185
176
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
186
177
|
def put_flag_setting_with_http_info(project_key, environment_key, user_key, feature_flag_key, user_settings_body, opts = {})
|
|
187
178
|
if @api_client.config.debugging
|
|
188
|
-
@api_client.config.logger.debug
|
|
179
|
+
@api_client.config.logger.debug 'Calling API: UserSettingsApi.put_flag_setting ...'
|
|
189
180
|
end
|
|
190
181
|
# verify the required parameter 'project_key' is set
|
|
191
182
|
if @api_client.config.client_side_validation && project_key.nil?
|
|
@@ -208,7 +199,7 @@ module LaunchDarklyApi
|
|
|
208
199
|
fail ArgumentError, "Missing the required parameter 'user_settings_body' when calling UserSettingsApi.put_flag_setting"
|
|
209
200
|
end
|
|
210
201
|
# resource path
|
|
211
|
-
local_var_path =
|
|
202
|
+
local_var_path = '/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'userKey' + '}', user_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
|
212
203
|
|
|
213
204
|
# query parameters
|
|
214
205
|
query_params = {}
|