launchdarkly_api 4.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +246 -226
- data/docs/ApprovalRequest.md +20 -0
- data/docs/{FeatureFlagApprovalRequestApplyConfigBody.md → ApprovalRequestApplyConfigBody.md} +1 -1
- data/docs/{FeatureFlagApprovalRequestConfigBody.md → ApprovalRequestConfigBody.md} +3 -1
- data/docs/{FeatureFlagApprovalRequestReview.md → ApprovalRequestReview.md} +2 -2
- data/docs/{FeatureFlagApprovalRequestReviewConfigBody.md → ApprovalRequestReviewConfigBody.md} +1 -1
- data/docs/{FeatureFlagApprovalRequestReviewStatus.md → ApprovalRequestReviewStatus.md} +1 -1
- data/docs/{FeatureFlagApprovalRequests.md → ApprovalRequests.md} +2 -2
- data/docs/{UnboundedSegmentTargetChanges.md → BigSegmentTargetChanges.md} +1 -1
- data/docs/BigSegmentTargetsBody.md +9 -0
- data/docs/DependentFlag.md +11 -0
- data/docs/DependentFlagEnvironment.md +11 -0
- data/docs/DependentFlagEnvironmentLinks.md +9 -0
- data/docs/{IntegrationLinks.md → DependentFlagLinks.md} +1 -1
- data/docs/DependentFlagsByEnvironment.md +10 -0
- data/docs/DependentFlagsLinks.md +9 -0
- data/docs/FeatureFlagStatus.md +1 -1
- data/docs/FeatureFlagStatusAcrossEnvironments.md +1 -1
- data/docs/FeatureFlagStatusLinks.md +9 -0
- data/docs/FeatureFlagStatuses.md +1 -1
- data/docs/FeatureFlagsApi.md +577 -91
- data/docs/FlagConfigScheduledChangesConflictsBody.md +9 -0
- data/docs/FlagConfigScheduledChangesPatchBody.md +9 -0
- data/docs/FlagConfigScheduledChangesPostBody.md +10 -0
- data/docs/Integration.md +1 -1
- data/docs/Member.md +2 -0
- data/docs/MemberLastSeenMetadata.md +8 -0
- data/docs/MultiEnvironmentDependentFlag.md +12 -0
- data/docs/MultiEnvironmentDependentFlags.md +10 -0
- data/docs/UserSegment.md +1 -1
- data/docs/UserSegmentBody.md +1 -1
- data/docs/UserSegmentsApi.md +9 -9
- data/docs/UsersApi.md +2 -2
- data/launchdarkly_api.gemspec +3 -2
- data/lib/launchdarkly_api.rb +24 -12
- data/lib/launchdarkly_api/api/access_tokens_api.rb +2 -2
- data/lib/launchdarkly_api/api/audit_log_api.rb +2 -2
- data/lib/launchdarkly_api/api/custom_roles_api.rb +2 -2
- data/lib/launchdarkly_api/api/customer_metrics_api.rb +2 -2
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +2 -2
- data/lib/launchdarkly_api/api/environments_api.rb +2 -2
- data/lib/launchdarkly_api/api/feature_flags_api.rb +702 -161
- data/lib/launchdarkly_api/api/integrations_api.rb +2 -2
- data/lib/launchdarkly_api/api/projects_api.rb +2 -2
- data/lib/launchdarkly_api/api/relay_proxy_configurations_api.rb +2 -2
- data/lib/launchdarkly_api/api/root_api.rb +2 -2
- data/lib/launchdarkly_api/api/team_members_api.rb +2 -2
- data/lib/launchdarkly_api/api/user_segments_api.rb +19 -19
- data/lib/launchdarkly_api/api/user_settings_api.rb +2 -2
- data/lib/launchdarkly_api/api/users_api.rb +5 -5
- data/lib/launchdarkly_api/api/webhooks_api.rb +2 -2
- data/lib/launchdarkly_api/api_client.rb +7 -5
- data/lib/launchdarkly_api/api_error.rb +2 -2
- data/lib/launchdarkly_api/configuration.rb +4 -4
- data/lib/launchdarkly_api/models/{feature_flag_approval_request.rb → approval_request.rb} +34 -13
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_apply_config_body.rb → approval_request_apply_config_body.rb} +5 -4
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_config_body.rb → approval_request_config_body.rb} +29 -8
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_review.rb → approval_request_review.rb} +6 -5
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_review_config_body.rb → approval_request_review_config_body.rb} +5 -4
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_review_status.rb → approval_request_review_status.rb} +5 -5
- data/lib/launchdarkly_api/models/{feature_flag_approval_requests.rb → approval_requests.rb} +6 -5
- data/lib/launchdarkly_api/models/audit_log_entries.rb +4 -3
- data/lib/launchdarkly_api/models/audit_log_entry.rb +4 -3
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +4 -3
- data/lib/launchdarkly_api/models/{unbounded_segment_target_changes.rb → big_segment_target_changes.rb} +5 -4
- data/lib/launchdarkly_api/models/{unbounded_segment_targets_body.rb → big_segment_targets_body.rb} +7 -6
- data/lib/launchdarkly_api/models/clause.rb +4 -3
- data/lib/launchdarkly_api/models/client_side_availability.rb +4 -3
- data/lib/launchdarkly_api/models/copy_actions.rb +2 -2
- data/lib/launchdarkly_api/models/custom_property.rb +4 -3
- data/lib/launchdarkly_api/models/custom_property_values.rb +4 -3
- data/lib/launchdarkly_api/models/custom_role.rb +4 -3
- data/lib/launchdarkly_api/models/custom_role_body.rb +4 -3
- data/lib/launchdarkly_api/models/custom_roles.rb +4 -3
- data/lib/launchdarkly_api/models/defaults.rb +4 -3
- data/lib/launchdarkly_api/models/dependent_flag.rb +211 -0
- data/lib/launchdarkly_api/models/{integration__links.rb → dependent_flag__links.rb} +5 -4
- data/lib/launchdarkly_api/models/dependent_flag_environment.rb +211 -0
- data/lib/launchdarkly_api/models/dependent_flag_environment__links.rb +193 -0
- data/lib/launchdarkly_api/models/dependent_flags_by_environment.rb +204 -0
- data/lib/launchdarkly_api/models/dependent_flags_links.rb +193 -0
- data/lib/launchdarkly_api/models/destination.rb +4 -3
- data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +4 -3
- data/lib/launchdarkly_api/models/destination_body.rb +4 -3
- data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +4 -3
- data/lib/launchdarkly_api/models/destination_m_particle.rb +4 -3
- data/lib/launchdarkly_api/models/destination_segment.rb +4 -3
- data/lib/launchdarkly_api/models/destinations.rb +4 -3
- data/lib/launchdarkly_api/models/environment.rb +4 -3
- data/lib/launchdarkly_api/models/environment_approval_settings.rb +4 -3
- data/lib/launchdarkly_api/models/environment_post.rb +4 -3
- data/lib/launchdarkly_api/models/evaluation_usage_error.rb +4 -3
- data/lib/launchdarkly_api/models/events.rb +4 -3
- data/lib/launchdarkly_api/models/fallthrough.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_body.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_config.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_scheduled_change.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_scheduled_changes.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_scheduled_changes_conflicts.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_scheduled_changes_conflicts_instructions.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_status.rb +5 -4
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +5 -4
- data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag_status_links.rb +193 -0
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +5 -4
- data/lib/launchdarkly_api/models/feature_flags.rb +4 -3
- data/lib/launchdarkly_api/models/flag_config_scheduled_changes_conflicts_body.rb +194 -0
- data/lib/launchdarkly_api/models/flag_config_scheduled_changes_patch_body.rb +194 -0
- data/lib/launchdarkly_api/models/flag_config_scheduled_changes_post_body.rb +204 -0
- data/lib/launchdarkly_api/models/flag_list_item.rb +4 -3
- data/lib/launchdarkly_api/models/hierarchical_links.rb +4 -3
- data/lib/launchdarkly_api/models/id.rb +4 -3
- data/lib/launchdarkly_api/models/integration.rb +5 -4
- data/lib/launchdarkly_api/models/integration_subscription.rb +4 -3
- data/lib/launchdarkly_api/models/integration_subscription__status.rb +4 -3
- data/lib/launchdarkly_api/models/integrations.rb +4 -3
- data/lib/launchdarkly_api/models/link.rb +4 -3
- data/lib/launchdarkly_api/models/links.rb +4 -3
- data/lib/launchdarkly_api/models/ma_uby_category.rb +4 -3
- data/lib/launchdarkly_api/models/mau.rb +4 -3
- data/lib/launchdarkly_api/models/mau_metadata.rb +4 -3
- data/lib/launchdarkly_api/models/member.rb +27 -7
- data/lib/launchdarkly_api/models/member__last_seen_metadata.rb +185 -0
- data/lib/launchdarkly_api/models/members.rb +4 -3
- data/lib/launchdarkly_api/models/members_body.rb +4 -3
- data/lib/launchdarkly_api/models/multi_environment_dependent_flag.rb +222 -0
- data/lib/launchdarkly_api/models/multi_environment_dependent_flags.rb +204 -0
- data/lib/launchdarkly_api/models/patch_comment.rb +4 -3
- data/lib/launchdarkly_api/models/patch_operation.rb +4 -3
- data/lib/launchdarkly_api/models/policy.rb +4 -3
- data/lib/launchdarkly_api/models/prerequisite.rb +4 -3
- data/lib/launchdarkly_api/models/project.rb +4 -3
- data/lib/launchdarkly_api/models/project_body.rb +4 -3
- data/lib/launchdarkly_api/models/projects.rb +4 -3
- data/lib/launchdarkly_api/models/relay_proxy_config.rb +4 -3
- data/lib/launchdarkly_api/models/relay_proxy_config_body.rb +4 -3
- data/lib/launchdarkly_api/models/relay_proxy_configs.rb +4 -3
- data/lib/launchdarkly_api/models/role.rb +2 -2
- data/lib/launchdarkly_api/models/rollout.rb +4 -3
- data/lib/launchdarkly_api/models/rule.rb +4 -3
- data/lib/launchdarkly_api/models/scheduled_changes_feature_flag_conflict.rb +4 -3
- data/lib/launchdarkly_api/models/semantic_patch_instruction.rb +4 -3
- data/lib/launchdarkly_api/models/semantic_patch_instruction_inner.rb +4 -3
- data/lib/launchdarkly_api/models/semantic_patch_operation.rb +4 -3
- data/lib/launchdarkly_api/models/site.rb +4 -3
- data/lib/launchdarkly_api/models/statement.rb +4 -3
- data/lib/launchdarkly_api/models/stream.rb +4 -3
- data/lib/launchdarkly_api/models/stream_by_sdk.rb +4 -3
- data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +4 -3
- data/lib/launchdarkly_api/models/stream_by_sdk_links_metadata.rb +4 -3
- data/lib/launchdarkly_api/models/stream_links.rb +4 -3
- data/lib/launchdarkly_api/models/stream_sdk_version.rb +4 -3
- data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +4 -3
- data/lib/launchdarkly_api/models/stream_usage_error.rb +4 -3
- data/lib/launchdarkly_api/models/stream_usage_links.rb +4 -3
- data/lib/launchdarkly_api/models/stream_usage_metadata.rb +4 -3
- data/lib/launchdarkly_api/models/stream_usage_series.rb +4 -3
- data/lib/launchdarkly_api/models/streams.rb +4 -3
- data/lib/launchdarkly_api/models/subscription_body.rb +4 -3
- data/lib/launchdarkly_api/models/target.rb +4 -3
- data/lib/launchdarkly_api/models/token.rb +4 -3
- data/lib/launchdarkly_api/models/token_body.rb +4 -3
- data/lib/launchdarkly_api/models/tokens.rb +4 -3
- data/lib/launchdarkly_api/models/usage.rb +4 -3
- data/lib/launchdarkly_api/models/usage_error.rb +4 -3
- data/lib/launchdarkly_api/models/usage_links.rb +4 -3
- data/lib/launchdarkly_api/models/user.rb +4 -3
- data/lib/launchdarkly_api/models/user_flag_setting.rb +4 -3
- data/lib/launchdarkly_api/models/user_flag_settings.rb +4 -3
- data/lib/launchdarkly_api/models/user_record.rb +4 -3
- data/lib/launchdarkly_api/models/user_segment.rb +5 -4
- data/lib/launchdarkly_api/models/user_segment_body.rb +5 -4
- data/lib/launchdarkly_api/models/user_segment_rule.rb +4 -3
- data/lib/launchdarkly_api/models/user_segments.rb +4 -3
- data/lib/launchdarkly_api/models/user_settings_body.rb +4 -3
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flag.rb +4 -3
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flags.rb +4 -3
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_segment.rb +4 -3
- data/lib/launchdarkly_api/models/user_targeting_expiration_on_flags_for_user.rb +4 -3
- data/lib/launchdarkly_api/models/user_targeting_expiration_resource_id_for_flag.rb +4 -3
- data/lib/launchdarkly_api/models/users.rb +4 -3
- data/lib/launchdarkly_api/models/variation.rb +4 -3
- data/lib/launchdarkly_api/models/webhook.rb +4 -3
- data/lib/launchdarkly_api/models/webhook_body.rb +4 -3
- data/lib/launchdarkly_api/models/webhooks.rb +4 -3
- data/lib/launchdarkly_api/models/weighted_variation.rb +4 -3
- data/lib/launchdarkly_api/version.rb +3 -3
- data/openapi.yml +413 -91
- data/spec/api/access_tokens_api_spec.rb +2 -2
- data/spec/api/audit_log_api_spec.rb +2 -2
- data/spec/api/custom_roles_api_spec.rb +2 -2
- data/spec/api/customer_metrics_api_spec.rb +2 -2
- data/spec/api/data_export_destinations_api_spec.rb +2 -2
- data/spec/api/environments_api_spec.rb +2 -2
- data/spec/api/feature_flags_api_spec.rb +153 -44
- data/spec/api/integrations_api_spec.rb +2 -2
- data/spec/api/projects_api_spec.rb +2 -2
- data/spec/api/relay_proxy_configurations_api_spec.rb +2 -2
- data/spec/api/root_api_spec.rb +2 -2
- data/spec/api/team_members_api_spec.rb +2 -2
- data/spec/api/user_segments_api_spec.rb +6 -6
- data/spec/api/user_settings_api_spec.rb +2 -2
- data/spec/api/users_api_spec.rb +3 -3
- data/spec/api/webhooks_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +19 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/{feature_flag_approval_request_apply_config_body_spec.rb → approval_request_apply_config_body_spec.rb} +8 -8
- data/spec/models/approval_request_config_body_spec.rb +71 -0
- data/spec/models/{feature_flag_approval_request_review_config_body_spec.rb → approval_request_review_config_body_spec.rb} +8 -8
- data/spec/models/{feature_flag_approval_request_review_spec.rb → approval_request_review_spec.rb} +8 -8
- data/spec/models/approval_request_review_status_spec.rb +35 -0
- data/spec/models/{feature_flag_approval_request_spec.rb → approval_request_spec.rb} +21 -9
- data/spec/models/{feature_flag_approval_requests_spec.rb → approval_requests_spec.rb} +8 -8
- data/spec/models/audit_log_entries_spec.rb +2 -2
- data/spec/models/audit_log_entry_spec.rb +2 -2
- data/spec/models/audit_log_entry_target_spec.rb +2 -2
- data/spec/models/{unbounded_segment_target_changes_spec.rb → big_segment_target_changes_spec.rb} +8 -8
- data/spec/models/{unbounded_segment_targets_body_spec.rb → big_segment_targets_body_spec.rb} +8 -8
- data/spec/models/clause_spec.rb +2 -2
- data/spec/models/client_side_availability_spec.rb +2 -2
- data/spec/models/copy_actions_spec.rb +2 -2
- data/spec/models/custom_property_spec.rb +2 -2
- data/spec/models/custom_property_values_spec.rb +2 -2
- data/spec/models/custom_role_body_spec.rb +2 -2
- data/spec/models/custom_role_spec.rb +2 -2
- data/spec/models/custom_roles_spec.rb +2 -2
- data/spec/models/defaults_spec.rb +2 -2
- data/spec/models/{integration__links_spec.rb → dependent_flag__links_spec.rb} +8 -8
- data/spec/models/dependent_flag_environment__links_spec.rb +47 -0
- data/spec/models/{feature_flag_approval_request_config_body_spec.rb → dependent_flag_environment_spec.rb} +12 -12
- data/spec/models/dependent_flag_spec.rb +59 -0
- data/spec/models/dependent_flags_by_environment_spec.rb +53 -0
- data/spec/models/dependent_flags_links_spec.rb +47 -0
- data/spec/models/destination_amazon_kinesis_spec.rb +2 -2
- data/spec/models/destination_body_spec.rb +2 -2
- data/spec/models/destination_google_pub_sub_spec.rb +2 -2
- data/spec/models/destination_m_particle_spec.rb +2 -2
- data/spec/models/destination_segment_spec.rb +2 -2
- data/spec/models/destination_spec.rb +2 -2
- data/spec/models/destinations_spec.rb +2 -2
- data/spec/models/environment_approval_settings_spec.rb +2 -2
- data/spec/models/environment_post_spec.rb +2 -2
- data/spec/models/environment_spec.rb +2 -2
- data/spec/models/evaluation_usage_error_spec.rb +2 -2
- data/spec/models/events_spec.rb +2 -2
- data/spec/models/fallthrough_spec.rb +2 -2
- data/spec/models/feature_flag_body_spec.rb +2 -2
- data/spec/models/feature_flag_config_spec.rb +2 -2
- data/spec/models/feature_flag_copy_body_spec.rb +2 -2
- data/spec/models/feature_flag_copy_object_spec.rb +2 -2
- data/spec/models/feature_flag_scheduled_change_spec.rb +2 -2
- data/spec/models/feature_flag_scheduled_changes_conflicts_instructions_spec.rb +2 -2
- data/spec/models/feature_flag_scheduled_changes_conflicts_spec.rb +2 -2
- data/spec/models/feature_flag_scheduled_changes_spec.rb +2 -2
- data/spec/models/feature_flag_spec.rb +2 -2
- data/spec/models/feature_flag_status_across_environments_spec.rb +2 -2
- data/spec/models/feature_flag_status_for_queried_environment_spec.rb +2 -2
- data/spec/models/feature_flag_status_links_spec.rb +47 -0
- data/spec/models/feature_flag_status_spec.rb +2 -2
- data/spec/models/feature_flag_statuses_spec.rb +2 -2
- data/spec/models/feature_flags_spec.rb +2 -2
- data/spec/models/flag_config_scheduled_changes_conflicts_body_spec.rb +47 -0
- data/spec/models/flag_config_scheduled_changes_patch_body_spec.rb +47 -0
- data/spec/models/flag_config_scheduled_changes_post_body_spec.rb +53 -0
- data/spec/models/flag_list_item_spec.rb +2 -2
- data/spec/models/hierarchical_links_spec.rb +2 -2
- data/spec/models/id_spec.rb +2 -2
- data/spec/models/integration_spec.rb +2 -2
- data/spec/models/integration_subscription__status_spec.rb +2 -2
- data/spec/models/integration_subscription_spec.rb +2 -2
- data/spec/models/integrations_spec.rb +2 -2
- data/spec/models/link_spec.rb +2 -2
- data/spec/models/links_spec.rb +2 -2
- data/spec/models/ma_uby_category_spec.rb +2 -2
- data/spec/models/mau_metadata_spec.rb +2 -2
- data/spec/models/mau_spec.rb +2 -2
- data/spec/models/member__last_seen_metadata_spec.rb +41 -0
- data/spec/models/member_spec.rb +14 -2
- data/spec/models/members_body_spec.rb +2 -2
- data/spec/models/members_spec.rb +2 -2
- data/spec/models/multi_environment_dependent_flag_spec.rb +65 -0
- data/spec/models/multi_environment_dependent_flags_spec.rb +53 -0
- data/spec/models/patch_comment_spec.rb +2 -2
- data/spec/models/patch_operation_spec.rb +2 -2
- data/spec/models/policy_spec.rb +2 -2
- data/spec/models/prerequisite_spec.rb +2 -2
- data/spec/models/project_body_spec.rb +2 -2
- data/spec/models/project_spec.rb +2 -2
- data/spec/models/projects_spec.rb +2 -2
- data/spec/models/relay_proxy_config_body_spec.rb +2 -2
- data/spec/models/relay_proxy_config_spec.rb +2 -2
- data/spec/models/relay_proxy_configs_spec.rb +2 -2
- data/spec/models/role_spec.rb +2 -2
- data/spec/models/rollout_spec.rb +2 -2
- data/spec/models/rule_spec.rb +2 -2
- data/spec/models/scheduled_changes_feature_flag_conflict_spec.rb +2 -2
- data/spec/models/semantic_patch_instruction_inner_spec.rb +2 -2
- data/spec/models/semantic_patch_instruction_spec.rb +2 -2
- data/spec/models/semantic_patch_operation_spec.rb +2 -2
- data/spec/models/site_spec.rb +2 -2
- data/spec/models/statement_spec.rb +2 -2
- data/spec/models/stream_by_sdk_links_metadata_spec.rb +2 -2
- data/spec/models/stream_by_sdk_links_spec.rb +2 -2
- data/spec/models/stream_by_sdk_spec.rb +2 -2
- data/spec/models/stream_links_spec.rb +2 -2
- data/spec/models/stream_sdk_version_data_spec.rb +2 -2
- data/spec/models/stream_sdk_version_spec.rb +2 -2
- data/spec/models/stream_spec.rb +2 -2
- data/spec/models/stream_usage_error_spec.rb +2 -2
- data/spec/models/stream_usage_links_spec.rb +2 -2
- data/spec/models/stream_usage_metadata_spec.rb +2 -2
- data/spec/models/stream_usage_series_spec.rb +2 -2
- data/spec/models/streams_spec.rb +2 -2
- data/spec/models/subscription_body_spec.rb +2 -2
- data/spec/models/target_spec.rb +2 -2
- data/spec/models/token_body_spec.rb +2 -2
- data/spec/models/token_spec.rb +2 -2
- data/spec/models/tokens_spec.rb +2 -2
- data/spec/models/usage_error_spec.rb +2 -2
- data/spec/models/usage_links_spec.rb +2 -2
- data/spec/models/usage_spec.rb +2 -2
- data/spec/models/user_flag_setting_spec.rb +2 -2
- data/spec/models/user_flag_settings_spec.rb +2 -2
- data/spec/models/user_record_spec.rb +2 -2
- data/spec/models/user_segment_body_spec.rb +2 -2
- data/spec/models/user_segment_rule_spec.rb +2 -2
- data/spec/models/user_segment_spec.rb +2 -2
- data/spec/models/user_segments_spec.rb +2 -2
- data/spec/models/user_settings_body_spec.rb +2 -2
- data/spec/models/user_spec.rb +2 -2
- data/spec/models/user_targeting_expiration_for_flag_spec.rb +2 -2
- data/spec/models/user_targeting_expiration_for_flags_spec.rb +2 -2
- data/spec/models/user_targeting_expiration_for_segment_spec.rb +2 -2
- data/spec/models/user_targeting_expiration_on_flags_for_user_spec.rb +2 -2
- data/spec/models/user_targeting_expiration_resource_id_for_flag_spec.rb +2 -2
- data/spec/models/users_spec.rb +2 -2
- data/spec/models/variation_spec.rb +2 -2
- data/spec/models/webhook_body_spec.rb +2 -2
- data/spec/models/webhook_spec.rb +2 -2
- data/spec/models/webhooks_spec.rb +2 -2
- data/spec/models/weighted_variation_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +218 -150
- data/docs/FeatureFlagApprovalRequest.md +0 -18
- data/docs/UnboundedSegmentTargetsBody.md +0 -9
- data/spec/models/feature_flag_approval_request_review_status_spec.rb +0 -35
@@ -0,0 +1,9 @@
|
|
1
|
+
# LaunchDarklyApi::FlagConfigScheduledChangesConflictsBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**execution_date** | **Integer** | A unix epoch time in milliseconds specifying the date the scheduled changes will be applied | [optional]
|
7
|
+
**instructions** | [**SemanticPatchInstruction**](SemanticPatchInstruction.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# LaunchDarklyApi::FlagConfigScheduledChangesPatchBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**comment** | **String** | Used to describe the scheduled changes. | [optional]
|
7
|
+
**instructions** | [**SemanticPatchInstruction**](SemanticPatchInstruction.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# LaunchDarklyApi::FlagConfigScheduledChangesPostBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**comment** | **String** | Used to describe the scheduled changes. | [optional]
|
7
|
+
**execution_date** | **Integer** | A unix epoch time in milliseconds specifying the date the scheduled changes will be applied | [optional]
|
8
|
+
**instructions** | [**SemanticPatchInstruction**](SemanticPatchInstruction.md) | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/Integration.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**_links** | [**
|
6
|
+
**_links** | [**DependentFlagLinks**](DependentFlagLinks.md) | | [optional]
|
7
7
|
**items** | [**Array<IntegrationSubscription>**](IntegrationSubscription.md) | | [optional]
|
8
8
|
|
9
9
|
|
data/docs/Member.md
CHANGED
@@ -13,5 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
**_pending_invite** | **BOOLEAN** | | [optional]
|
14
14
|
**is_beta** | **BOOLEAN** | | [optional]
|
15
15
|
**custom_roles** | [**Array<Id>**](Id.md) | | [optional]
|
16
|
+
**_last_seen** | **Integer** | A unix epoch time in milliseconds specifying the last time this member was active in LaunchDarkly. | [optional]
|
17
|
+
**_last_seen_metadata** | [**MemberLastSeenMetadata**](MemberLastSeenMetadata.md) | | [optional]
|
16
18
|
|
17
19
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# LaunchDarklyApi::MemberLastSeenMetadata
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**token_id** | **String** | If the last time this member accessed LaunchDarkly was using the REST API, this value will be set to the ID of the personal access token used. | [optional]
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# LaunchDarklyApi::MultiEnvironmentDependentFlag
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | | [optional]
|
7
|
+
**key** | **String** | | [optional]
|
8
|
+
**environments** | [**Array<DependentFlagEnvironment>**](DependentFlagEnvironment.md) | | [optional]
|
9
|
+
**_links** | [**DependentFlagsLinks**](DependentFlagsLinks.md) | | [optional]
|
10
|
+
**_site** | [**Site**](Site.md) | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# LaunchDarklyApi::MultiEnvironmentDependentFlags
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**items** | [**Array<MultiEnvironmentDependentFlag>**](MultiEnvironmentDependentFlag.md) | | [optional]
|
7
|
+
**_links** | [**DependentFlagsLinks**](DependentFlagsLinks.md) | | [optional]
|
8
|
+
**_site** | [**Site**](Site.md) | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/UserSegment.md
CHANGED
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**included** | **Array<String>** | An array of user keys that are included in this segment. | [optional]
|
12
12
|
**excluded** | **Array<String>** | An array of user keys that should not be included in this segment, unless they are also listed in \"included\". | [optional]
|
13
13
|
**rules** | [**Array<UserSegmentRule>**](UserSegmentRule.md) | An array of rules that can cause a user to be included in this segment. | [optional]
|
14
|
-
**unbounded** | **BOOLEAN** | Controls whether this segment can support unlimited numbers of users.
|
14
|
+
**unbounded** | **BOOLEAN** | Controls whether this is considered a \"big segment\" which can support an unlimited numbers of users. Include/exclude lists sent with this payload are not used in big segments. Contact your account manager for early access to this feature. | [optional]
|
15
15
|
**version** | **Integer** | | [optional]
|
16
16
|
**_links** | [**Links**](Links.md) | | [optional]
|
17
17
|
**_flags** | [**Array<FlagListItem>**](FlagListItem.md) | | [optional]
|
data/docs/UserSegmentBody.md
CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
**name** | **String** | A human-friendly name for the user segment. |
|
7
7
|
**key** | **String** | A unique key that will be used to reference the user segment in feature flags. |
|
8
8
|
**description** | **String** | A description for the user segment. | [optional]
|
9
|
-
**unbounded** | **BOOLEAN** | Controls whether this segment can support unlimited numbers of users.
|
9
|
+
**unbounded** | **BOOLEAN** | Controls whether this is considered a \"big segment\" which can support an unlimited numbers of users. Include/exclude lists sent with this payload are not used in big segments. Contact your account manager for early access to this feature. | [optional]
|
10
10
|
**tags** | **Array<String>** | Tags for the user segment. | [optional]
|
11
11
|
|
12
12
|
|
data/docs/UserSegmentsApi.md
CHANGED
@@ -11,7 +11,7 @@ Method | HTTP request | Description
|
|
11
11
|
[**patch_expiring_user_targets_on_segment**](UserSegmentsApi.md#patch_expiring_user_targets_on_segment) | **PATCH** /segments/{projectKey}/{userSegmentKey}/expiring-user-targets/{environmentKey} | Update, add, or delete expiring user targets on user segment
|
12
12
|
[**patch_user_segment**](UserSegmentsApi.md#patch_user_segment) | **PATCH** /segments/{projectKey}/{environmentKey}/{userSegmentKey} | Perform a partial update to a user segment.
|
13
13
|
[**post_user_segment**](UserSegmentsApi.md#post_user_segment) | **POST** /segments/{projectKey}/{environmentKey} | Creates a new user segment.
|
14
|
-
[**
|
14
|
+
[**update_big_segment_targets**](UserSegmentsApi.md#update_big_segment_targets) | **POST** /segments/{projectKey}/{environmentKey}/{userSegmentKey}/users | Update targets included or excluded in a big segment
|
15
15
|
|
16
16
|
|
17
17
|
# **delete_user_segment**
|
@@ -426,10 +426,10 @@ Name | Type | Description | Notes
|
|
426
426
|
|
427
427
|
|
428
428
|
|
429
|
-
# **
|
430
|
-
>
|
429
|
+
# **update_big_segment_targets**
|
430
|
+
> update_big_segment_targets(project_key, environment_key, user_segment_key, big_segment_targets_body)
|
431
431
|
|
432
|
-
Update targets included or excluded in
|
432
|
+
Update targets included or excluded in a big segment
|
433
433
|
|
434
434
|
### Example
|
435
435
|
```ruby
|
@@ -451,14 +451,14 @@ environment_key = 'environment_key_example' # String | The environment key, used
|
|
451
451
|
|
452
452
|
user_segment_key = 'user_segment_key_example' # String | The user segment's key. The key identifies the user segment in your code.
|
453
453
|
|
454
|
-
|
454
|
+
big_segment_targets_body = LaunchDarklyApi::BigSegmentTargetsBody.new # BigSegmentTargetsBody | Add or remove user targets to the included or excluded lists on a big segment. Contact your account manager for early access to this feature.
|
455
455
|
|
456
456
|
|
457
457
|
begin
|
458
|
-
#Update targets included or excluded in
|
459
|
-
api_instance.
|
458
|
+
#Update targets included or excluded in a big segment
|
459
|
+
api_instance.update_big_segment_targets(project_key, environment_key, user_segment_key, big_segment_targets_body)
|
460
460
|
rescue LaunchDarklyApi::ApiError => e
|
461
|
-
puts "Exception when calling UserSegmentsApi->
|
461
|
+
puts "Exception when calling UserSegmentsApi->update_big_segment_targets: #{e}"
|
462
462
|
end
|
463
463
|
```
|
464
464
|
|
@@ -469,7 +469,7 @@ Name | Type | Description | Notes
|
|
469
469
|
**project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
|
470
470
|
**environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
|
471
471
|
**user_segment_key** | **String**| The user segment's key. The key identifies the user segment in your code. |
|
472
|
-
**
|
472
|
+
**big_segment_targets_body** | [**BigSegmentTargetsBody**](BigSegmentTargetsBody.md)| Add or remove user targets to the included or excluded lists on a big segment. Contact your account manager for early access to this feature. |
|
473
473
|
|
474
474
|
### Return type
|
475
475
|
|
data/docs/UsersApi.md
CHANGED
@@ -133,7 +133,7 @@ Name | Type | Description | Notes
|
|
133
133
|
|
134
134
|
|
135
135
|
# **get_user**
|
136
|
-
>
|
136
|
+
> UserRecord get_user(project_key, environment_key, user_key, )
|
137
137
|
|
138
138
|
Get a user by key.
|
139
139
|
|
@@ -177,7 +177,7 @@ Name | Type | Description | Notes
|
|
177
177
|
|
178
178
|
### Return type
|
179
179
|
|
180
|
-
[**
|
180
|
+
[**UserRecord**](UserRecord.md)
|
181
181
|
|
182
182
|
### Authorization
|
183
183
|
|
data/launchdarkly_api.gemspec
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
#Build custom integrations with the LaunchDarkly REST API
|
7
7
|
|
8
|
-
OpenAPI spec version:
|
8
|
+
OpenAPI spec version: 5.1.0
|
9
9
|
Contact: support@launchdarkly.com
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 2.4.
|
11
|
+
Swagger Codegen version: 2.4.17
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
|
30
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0'
|
32
33
|
|
33
34
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
35
|
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
data/lib/launchdarkly_api.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 5.1.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.17
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,9 +17,18 @@ require 'launchdarkly_api/version'
|
|
17
17
|
require 'launchdarkly_api/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
+
require 'launchdarkly_api/models/approval_request'
|
21
|
+
require 'launchdarkly_api/models/approval_request_apply_config_body'
|
22
|
+
require 'launchdarkly_api/models/approval_request_config_body'
|
23
|
+
require 'launchdarkly_api/models/approval_request_review'
|
24
|
+
require 'launchdarkly_api/models/approval_request_review_config_body'
|
25
|
+
require 'launchdarkly_api/models/approval_request_review_status'
|
26
|
+
require 'launchdarkly_api/models/approval_requests'
|
20
27
|
require 'launchdarkly_api/models/audit_log_entries'
|
21
28
|
require 'launchdarkly_api/models/audit_log_entry'
|
22
29
|
require 'launchdarkly_api/models/audit_log_entry_target'
|
30
|
+
require 'launchdarkly_api/models/big_segment_target_changes'
|
31
|
+
require 'launchdarkly_api/models/big_segment_targets_body'
|
23
32
|
require 'launchdarkly_api/models/clause'
|
24
33
|
require 'launchdarkly_api/models/client_side_availability'
|
25
34
|
require 'launchdarkly_api/models/copy_actions'
|
@@ -29,6 +38,12 @@ require 'launchdarkly_api/models/custom_role'
|
|
29
38
|
require 'launchdarkly_api/models/custom_role_body'
|
30
39
|
require 'launchdarkly_api/models/custom_roles'
|
31
40
|
require 'launchdarkly_api/models/defaults'
|
41
|
+
require 'launchdarkly_api/models/dependent_flag'
|
42
|
+
require 'launchdarkly_api/models/dependent_flag_environment'
|
43
|
+
require 'launchdarkly_api/models/dependent_flag_environment__links'
|
44
|
+
require 'launchdarkly_api/models/dependent_flag__links'
|
45
|
+
require 'launchdarkly_api/models/dependent_flags_by_environment'
|
46
|
+
require 'launchdarkly_api/models/dependent_flags_links'
|
32
47
|
require 'launchdarkly_api/models/destination'
|
33
48
|
require 'launchdarkly_api/models/destination_amazon_kinesis'
|
34
49
|
require 'launchdarkly_api/models/destination_body'
|
@@ -43,13 +58,6 @@ require 'launchdarkly_api/models/evaluation_usage_error'
|
|
43
58
|
require 'launchdarkly_api/models/events'
|
44
59
|
require 'launchdarkly_api/models/fallthrough'
|
45
60
|
require 'launchdarkly_api/models/feature_flag'
|
46
|
-
require 'launchdarkly_api/models/feature_flag_approval_request'
|
47
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_apply_config_body'
|
48
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_config_body'
|
49
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_review'
|
50
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_review_config_body'
|
51
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_review_status'
|
52
|
-
require 'launchdarkly_api/models/feature_flag_approval_requests'
|
53
61
|
require 'launchdarkly_api/models/feature_flag_body'
|
54
62
|
require 'launchdarkly_api/models/feature_flag_config'
|
55
63
|
require 'launchdarkly_api/models/feature_flag_copy_body'
|
@@ -61,13 +69,16 @@ require 'launchdarkly_api/models/feature_flag_scheduled_changes_conflicts_instru
|
|
61
69
|
require 'launchdarkly_api/models/feature_flag_status'
|
62
70
|
require 'launchdarkly_api/models/feature_flag_status_across_environments'
|
63
71
|
require 'launchdarkly_api/models/feature_flag_status_for_queried_environment'
|
72
|
+
require 'launchdarkly_api/models/feature_flag_status_links'
|
64
73
|
require 'launchdarkly_api/models/feature_flag_statuses'
|
65
74
|
require 'launchdarkly_api/models/feature_flags'
|
75
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_conflicts_body'
|
76
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_patch_body'
|
77
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_post_body'
|
66
78
|
require 'launchdarkly_api/models/flag_list_item'
|
67
79
|
require 'launchdarkly_api/models/hierarchical_links'
|
68
80
|
require 'launchdarkly_api/models/id'
|
69
81
|
require 'launchdarkly_api/models/integration'
|
70
|
-
require 'launchdarkly_api/models/integration__links'
|
71
82
|
require 'launchdarkly_api/models/integration_subscription'
|
72
83
|
require 'launchdarkly_api/models/integration_subscription__status'
|
73
84
|
require 'launchdarkly_api/models/integrations'
|
@@ -77,8 +88,11 @@ require 'launchdarkly_api/models/mau'
|
|
77
88
|
require 'launchdarkly_api/models/mau_metadata'
|
78
89
|
require 'launchdarkly_api/models/ma_uby_category'
|
79
90
|
require 'launchdarkly_api/models/member'
|
91
|
+
require 'launchdarkly_api/models/member__last_seen_metadata'
|
80
92
|
require 'launchdarkly_api/models/members'
|
81
93
|
require 'launchdarkly_api/models/members_body'
|
94
|
+
require 'launchdarkly_api/models/multi_environment_dependent_flag'
|
95
|
+
require 'launchdarkly_api/models/multi_environment_dependent_flags'
|
82
96
|
require 'launchdarkly_api/models/patch_comment'
|
83
97
|
require 'launchdarkly_api/models/patch_operation'
|
84
98
|
require 'launchdarkly_api/models/policy'
|
@@ -115,8 +129,6 @@ require 'launchdarkly_api/models/target'
|
|
115
129
|
require 'launchdarkly_api/models/token'
|
116
130
|
require 'launchdarkly_api/models/token_body'
|
117
131
|
require 'launchdarkly_api/models/tokens'
|
118
|
-
require 'launchdarkly_api/models/unbounded_segment_target_changes'
|
119
|
-
require 'launchdarkly_api/models/unbounded_segment_targets_body'
|
120
132
|
require 'launchdarkly_api/models/usage'
|
121
133
|
require 'launchdarkly_api/models/usage_error'
|
122
134
|
require 'launchdarkly_api/models/usage_links'
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 5.1.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.17
|
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:
|
6
|
+
OpenAPI spec version: 5.1.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.17
|
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:
|
6
|
+
OpenAPI spec version: 5.1.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.17
|
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:
|
6
|
+
OpenAPI spec version: 5.1.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.17
|
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:
|
6
|
+
OpenAPI spec version: 5.1.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.17
|
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:
|
6
|
+
OpenAPI spec version: 5.1.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.17
|
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:
|
6
|
+
OpenAPI spec version: 5.1.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.17
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -83,6 +83,77 @@ module LaunchDarklyApi
|
|
83
83
|
end
|
84
84
|
return data, status_code, headers
|
85
85
|
end
|
86
|
+
# Delete an approval request for a feature flag config
|
87
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
88
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
89
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
90
|
+
# @param approval_request_id The approval request ID
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [ApprovalRequestConfigBody] :approval_request_config_body Create a new approval request
|
93
|
+
# @return [nil]
|
94
|
+
def delete_approval_request(project_key, environment_key, feature_flag_key, approval_request_id, opts = {})
|
95
|
+
delete_approval_request_with_http_info(project_key, environment_key, feature_flag_key, approval_request_id, opts)
|
96
|
+
nil
|
97
|
+
end
|
98
|
+
|
99
|
+
# Delete an approval request for a feature flag config
|
100
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
101
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
102
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
103
|
+
# @param approval_request_id The approval request ID
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [ApprovalRequestConfigBody] :approval_request_config_body Create a new approval request
|
106
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
107
|
+
def delete_approval_request_with_http_info(project_key, environment_key, feature_flag_key, approval_request_id, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.delete_approval_request ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'project_key' is set
|
112
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.delete_approval_request"
|
114
|
+
end
|
115
|
+
# verify the required parameter 'environment_key' is set
|
116
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.delete_approval_request"
|
118
|
+
end
|
119
|
+
# verify the required parameter 'feature_flag_key' is set
|
120
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.delete_approval_request"
|
122
|
+
end
|
123
|
+
# verify the required parameter 'approval_request_id' is set
|
124
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.delete_approval_request"
|
126
|
+
end
|
127
|
+
# resource path
|
128
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'approvalRequestId' + '}', approval_request_id.to_s)
|
129
|
+
|
130
|
+
# query parameters
|
131
|
+
query_params = {}
|
132
|
+
|
133
|
+
# header parameters
|
134
|
+
header_params = {}
|
135
|
+
# HTTP header 'Accept' (if needed)
|
136
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
137
|
+
# HTTP header 'Content-Type'
|
138
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
139
|
+
|
140
|
+
# form parameters
|
141
|
+
form_params = {}
|
142
|
+
|
143
|
+
# http body (model)
|
144
|
+
post_body = @api_client.object_to_http_body(opts[:'approval_request_config_body'])
|
145
|
+
auth_names = ['Token']
|
146
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
147
|
+
:header_params => header_params,
|
148
|
+
:query_params => query_params,
|
149
|
+
:form_params => form_params,
|
150
|
+
:body => post_body,
|
151
|
+
:auth_names => auth_names)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#delete_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
86
157
|
# Delete a feature flag in all environments. Be careful-- only delete feature flags that are no longer being used by your application.
|
87
158
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
88
159
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
@@ -140,49 +211,47 @@ module LaunchDarklyApi
|
|
140
211
|
end
|
141
212
|
return data, status_code, headers
|
142
213
|
end
|
143
|
-
# Delete
|
214
|
+
# Delete a scheduled change on a feature flag in an environment.
|
144
215
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
145
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
146
216
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
147
|
-
# @param
|
217
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
218
|
+
# @param scheduled_change_id The id of the scheduled change
|
148
219
|
# @param [Hash] opts the optional parameters
|
149
|
-
# @option opts [FeatureFlagApprovalRequestConfigBody] :feature_flag_approval_request_config_body Create a new feature flag approval request
|
150
220
|
# @return [nil]
|
151
|
-
def
|
152
|
-
|
221
|
+
def delete_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
222
|
+
delete_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts)
|
153
223
|
nil
|
154
224
|
end
|
155
225
|
|
156
|
-
# Delete
|
226
|
+
# Delete a scheduled change on a feature flag in an environment.
|
157
227
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
158
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
159
228
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
160
|
-
# @param
|
229
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
230
|
+
# @param scheduled_change_id The id of the scheduled change
|
161
231
|
# @param [Hash] opts the optional parameters
|
162
|
-
# @option opts [FeatureFlagApprovalRequestConfigBody] :feature_flag_approval_request_config_body Create a new feature flag approval request
|
163
232
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
164
|
-
def
|
233
|
+
def delete_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
165
234
|
if @api_client.config.debugging
|
166
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
235
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.delete_flag_config_scheduled_changes ...'
|
167
236
|
end
|
168
237
|
# verify the required parameter 'project_key' is set
|
169
238
|
if @api_client.config.client_side_validation && project_key.nil?
|
170
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
171
|
-
end
|
172
|
-
# verify the required parameter 'environment_key' is set
|
173
|
-
if @api_client.config.client_side_validation && environment_key.nil?
|
174
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.delete_feature_flag_approval_request"
|
239
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
175
240
|
end
|
176
241
|
# verify the required parameter 'feature_flag_key' is set
|
177
242
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
178
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
243
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
179
244
|
end
|
180
|
-
# verify the required parameter '
|
181
|
-
if @api_client.config.client_side_validation &&
|
182
|
-
fail ArgumentError, "Missing the required parameter '
|
245
|
+
# verify the required parameter 'environment_key' is set
|
246
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
248
|
+
end
|
249
|
+
# verify the required parameter 'scheduled_change_id' is set
|
250
|
+
if @api_client.config.client_side_validation && scheduled_change_id.nil?
|
251
|
+
fail ArgumentError, "Missing the required parameter 'scheduled_change_id' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
183
252
|
end
|
184
253
|
# resource path
|
185
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/
|
254
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{scheduledChangeId}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'scheduledChangeId' + '}', scheduled_change_id.to_s)
|
186
255
|
|
187
256
|
# query parameters
|
188
257
|
query_params = {}
|
@@ -198,7 +267,7 @@ module LaunchDarklyApi
|
|
198
267
|
form_params = {}
|
199
268
|
|
200
269
|
# http body (model)
|
201
|
-
post_body =
|
270
|
+
post_body = nil
|
202
271
|
auth_names = ['Token']
|
203
272
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
204
273
|
:header_params => header_params,
|
@@ -207,45 +276,45 @@ module LaunchDarklyApi
|
|
207
276
|
:body => post_body,
|
208
277
|
:auth_names => auth_names)
|
209
278
|
if @api_client.config.debugging
|
210
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
279
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#delete_flag_config_scheduled_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
280
|
end
|
212
281
|
return data, status_code, headers
|
213
282
|
end
|
214
|
-
# Get
|
283
|
+
# Get dependent flags for the flag in the environment specified in path parameters
|
215
284
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
216
285
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
217
286
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
218
287
|
# @param [Hash] opts the optional parameters
|
219
|
-
# @return [
|
220
|
-
def
|
221
|
-
data, _status_code, _headers =
|
288
|
+
# @return [DependentFlagsByEnvironment]
|
289
|
+
def flags_project_key_environment_key_feature_flag_key_dependent_flags_get(project_key, environment_key, feature_flag_key, opts = {})
|
290
|
+
data, _status_code, _headers = flags_project_key_environment_key_feature_flag_key_dependent_flags_get_with_http_info(project_key, environment_key, feature_flag_key, opts)
|
222
291
|
data
|
223
292
|
end
|
224
293
|
|
225
|
-
# Get
|
294
|
+
# Get dependent flags for the flag in the environment specified in path parameters
|
226
295
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
227
296
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
228
297
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
229
298
|
# @param [Hash] opts the optional parameters
|
230
|
-
# @return [Array<(
|
231
|
-
def
|
299
|
+
# @return [Array<(DependentFlagsByEnvironment, Fixnum, Hash)>] DependentFlagsByEnvironment data, response status code and response headers
|
300
|
+
def flags_project_key_environment_key_feature_flag_key_dependent_flags_get_with_http_info(project_key, environment_key, feature_flag_key, opts = {})
|
232
301
|
if @api_client.config.debugging
|
233
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
302
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.flags_project_key_environment_key_feature_flag_key_dependent_flags_get ...'
|
234
303
|
end
|
235
304
|
# verify the required parameter 'project_key' is set
|
236
305
|
if @api_client.config.client_side_validation && project_key.nil?
|
237
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
306
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.flags_project_key_environment_key_feature_flag_key_dependent_flags_get"
|
238
307
|
end
|
239
308
|
# verify the required parameter 'environment_key' is set
|
240
309
|
if @api_client.config.client_side_validation && environment_key.nil?
|
241
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
310
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.flags_project_key_environment_key_feature_flag_key_dependent_flags_get"
|
242
311
|
end
|
243
312
|
# verify the required parameter 'feature_flag_key' is set
|
244
313
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
245
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
314
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.flags_project_key_environment_key_feature_flag_key_dependent_flags_get"
|
246
315
|
end
|
247
316
|
# resource path
|
248
|
-
local_var_path = '/flags/{projectKey}/{featureFlagKey}/
|
317
|
+
local_var_path = '/flags/{projectKey}/{environmentKey}/{featureFlagKey}/dependent-flags'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
249
318
|
|
250
319
|
# query parameters
|
251
320
|
query_params = {}
|
@@ -269,47 +338,44 @@ module LaunchDarklyApi
|
|
269
338
|
:form_params => form_params,
|
270
339
|
:body => post_body,
|
271
340
|
:auth_names => auth_names,
|
272
|
-
:return_type => '
|
341
|
+
:return_type => 'DependentFlagsByEnvironment')
|
273
342
|
if @api_client.config.debugging
|
274
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
343
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#flags_project_key_environment_key_feature_flag_key_dependent_flags_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
275
344
|
end
|
276
345
|
return data, status_code, headers
|
277
346
|
end
|
278
|
-
# Get
|
347
|
+
# Get dependent flags across all environments for the flag specified in the path parameters
|
279
348
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
280
349
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
281
350
|
# @param [Hash] opts the optional parameters
|
282
|
-
# @
|
283
|
-
|
284
|
-
|
285
|
-
data, _status_code, _headers = get_feature_flag_with_http_info(project_key, feature_flag_key, opts)
|
351
|
+
# @return [MultiEnvironmentDependentFlags]
|
352
|
+
def flags_project_key_feature_flag_key_dependent_flags_get(project_key, feature_flag_key, opts = {})
|
353
|
+
data, _status_code, _headers = flags_project_key_feature_flag_key_dependent_flags_get_with_http_info(project_key, feature_flag_key, opts)
|
286
354
|
data
|
287
355
|
end
|
288
356
|
|
289
|
-
# Get
|
357
|
+
# Get dependent flags across all environments for the flag specified in the path parameters
|
290
358
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
291
359
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
292
360
|
# @param [Hash] opts the optional parameters
|
293
|
-
# @
|
294
|
-
|
295
|
-
def get_feature_flag_with_http_info(project_key, feature_flag_key, opts = {})
|
361
|
+
# @return [Array<(MultiEnvironmentDependentFlags, Fixnum, Hash)>] MultiEnvironmentDependentFlags data, response status code and response headers
|
362
|
+
def flags_project_key_feature_flag_key_dependent_flags_get_with_http_info(project_key, feature_flag_key, opts = {})
|
296
363
|
if @api_client.config.debugging
|
297
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
364
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.flags_project_key_feature_flag_key_dependent_flags_get ...'
|
298
365
|
end
|
299
366
|
# verify the required parameter 'project_key' is set
|
300
367
|
if @api_client.config.client_side_validation && project_key.nil?
|
301
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
368
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.flags_project_key_feature_flag_key_dependent_flags_get"
|
302
369
|
end
|
303
370
|
# verify the required parameter 'feature_flag_key' is set
|
304
371
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
305
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
372
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.flags_project_key_feature_flag_key_dependent_flags_get"
|
306
373
|
end
|
307
374
|
# resource path
|
308
|
-
local_var_path = '/flags/{projectKey}/{featureFlagKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
375
|
+
local_var_path = '/flags/{projectKey}/{featureFlagKey}/dependent-flags'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
309
376
|
|
310
377
|
# query parameters
|
311
378
|
query_params = {}
|
312
|
-
query_params[:'env'] = @api_client.build_collection_param(opts[:'env'], :multi) if !opts[:'env'].nil?
|
313
379
|
|
314
380
|
# header parameters
|
315
381
|
header_params = {}
|
@@ -330,53 +396,53 @@ module LaunchDarklyApi
|
|
330
396
|
:form_params => form_params,
|
331
397
|
:body => post_body,
|
332
398
|
:auth_names => auth_names,
|
333
|
-
:return_type => '
|
399
|
+
:return_type => 'MultiEnvironmentDependentFlags')
|
334
400
|
if @api_client.config.debugging
|
335
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
401
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#flags_project_key_feature_flag_key_dependent_flags_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
336
402
|
end
|
337
403
|
return data, status_code, headers
|
338
404
|
end
|
339
|
-
# Get a single approval request for a feature flag
|
405
|
+
# Get a single approval request for a feature flag config
|
340
406
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
341
407
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
342
408
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
343
|
-
# @param
|
409
|
+
# @param approval_request_id The approval request ID
|
344
410
|
# @param [Hash] opts the optional parameters
|
345
|
-
# @return [
|
346
|
-
def
|
347
|
-
data, _status_code, _headers =
|
411
|
+
# @return [ApprovalRequests]
|
412
|
+
def get_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, opts = {})
|
413
|
+
data, _status_code, _headers = get_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, opts)
|
348
414
|
data
|
349
415
|
end
|
350
416
|
|
351
|
-
# Get a single approval request for a feature flag
|
417
|
+
# Get a single approval request for a feature flag config
|
352
418
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
353
419
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
354
420
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
355
|
-
# @param
|
421
|
+
# @param approval_request_id The approval request ID
|
356
422
|
# @param [Hash] opts the optional parameters
|
357
|
-
# @return [Array<(
|
358
|
-
def
|
423
|
+
# @return [Array<(ApprovalRequests, Fixnum, Hash)>] ApprovalRequests data, response status code and response headers
|
424
|
+
def get_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, opts = {})
|
359
425
|
if @api_client.config.debugging
|
360
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
426
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_approval_request ...'
|
361
427
|
end
|
362
428
|
# verify the required parameter 'project_key' is set
|
363
429
|
if @api_client.config.client_side_validation && project_key.nil?
|
364
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
430
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_approval_request"
|
365
431
|
end
|
366
432
|
# verify the required parameter 'feature_flag_key' is set
|
367
433
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
368
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
434
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_approval_request"
|
369
435
|
end
|
370
436
|
# verify the required parameter 'environment_key' is set
|
371
437
|
if @api_client.config.client_side_validation && environment_key.nil?
|
372
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
438
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_approval_request"
|
373
439
|
end
|
374
|
-
# verify the required parameter '
|
375
|
-
if @api_client.config.client_side_validation &&
|
376
|
-
fail ArgumentError, "Missing the required parameter '
|
440
|
+
# verify the required parameter 'approval_request_id' is set
|
441
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
442
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.get_approval_request"
|
377
443
|
end
|
378
444
|
# resource path
|
379
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{
|
445
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'approvalRequestId' + '}', approval_request_id.to_s)
|
380
446
|
|
381
447
|
# query parameters
|
382
448
|
query_params = {}
|
@@ -400,44 +466,44 @@ module LaunchDarklyApi
|
|
400
466
|
:form_params => form_params,
|
401
467
|
:body => post_body,
|
402
468
|
:auth_names => auth_names,
|
403
|
-
:return_type => '
|
469
|
+
:return_type => 'ApprovalRequests')
|
404
470
|
if @api_client.config.debugging
|
405
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
471
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
406
472
|
end
|
407
473
|
return data, status_code, headers
|
408
474
|
end
|
409
|
-
# Get all approval requests for a feature flag
|
475
|
+
# Get all approval requests for a feature flag config
|
410
476
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
411
477
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
412
478
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
413
479
|
# @param [Hash] opts the optional parameters
|
414
|
-
# @return [
|
415
|
-
def
|
416
|
-
data, _status_code, _headers =
|
480
|
+
# @return [ApprovalRequests]
|
481
|
+
def get_approval_requests(project_key, feature_flag_key, environment_key, opts = {})
|
482
|
+
data, _status_code, _headers = get_approval_requests_with_http_info(project_key, feature_flag_key, environment_key, opts)
|
417
483
|
data
|
418
484
|
end
|
419
485
|
|
420
|
-
# Get all approval requests for a feature flag
|
486
|
+
# Get all approval requests for a feature flag config
|
421
487
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
422
488
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
423
489
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
424
490
|
# @param [Hash] opts the optional parameters
|
425
|
-
# @return [Array<(
|
426
|
-
def
|
491
|
+
# @return [Array<(ApprovalRequests, Fixnum, Hash)>] ApprovalRequests data, response status code and response headers
|
492
|
+
def get_approval_requests_with_http_info(project_key, feature_flag_key, environment_key, opts = {})
|
427
493
|
if @api_client.config.debugging
|
428
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
494
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_approval_requests ...'
|
429
495
|
end
|
430
496
|
# verify the required parameter 'project_key' is set
|
431
497
|
if @api_client.config.client_side_validation && project_key.nil?
|
432
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
498
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_approval_requests"
|
433
499
|
end
|
434
500
|
# verify the required parameter 'feature_flag_key' is set
|
435
501
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
436
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
502
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_approval_requests"
|
437
503
|
end
|
438
504
|
# verify the required parameter 'environment_key' is set
|
439
505
|
if @api_client.config.client_side_validation && environment_key.nil?
|
440
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
506
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_approval_requests"
|
441
507
|
end
|
442
508
|
# resource path
|
443
509
|
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
|
@@ -464,9 +530,134 @@ module LaunchDarklyApi
|
|
464
530
|
:form_params => form_params,
|
465
531
|
:body => post_body,
|
466
532
|
:auth_names => auth_names,
|
467
|
-
:return_type => '
|
533
|
+
:return_type => 'ApprovalRequests')
|
534
|
+
if @api_client.config.debugging
|
535
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_approval_requests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
536
|
+
end
|
537
|
+
return data, status_code, headers
|
538
|
+
end
|
539
|
+
# Get expiring user targets for feature flag
|
540
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
541
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
542
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
543
|
+
# @param [Hash] opts the optional parameters
|
544
|
+
# @return [UserTargetingExpirationForFlags]
|
545
|
+
def get_expiring_user_targets(project_key, environment_key, feature_flag_key, opts = {})
|
546
|
+
data, _status_code, _headers = get_expiring_user_targets_with_http_info(project_key, environment_key, feature_flag_key, opts)
|
547
|
+
data
|
548
|
+
end
|
549
|
+
|
550
|
+
# Get expiring user targets for feature flag
|
551
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
552
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
553
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
554
|
+
# @param [Hash] opts the optional parameters
|
555
|
+
# @return [Array<(UserTargetingExpirationForFlags, Fixnum, Hash)>] UserTargetingExpirationForFlags data, response status code and response headers
|
556
|
+
def get_expiring_user_targets_with_http_info(project_key, environment_key, feature_flag_key, opts = {})
|
557
|
+
if @api_client.config.debugging
|
558
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_expiring_user_targets ...'
|
559
|
+
end
|
560
|
+
# verify the required parameter 'project_key' is set
|
561
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
562
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
563
|
+
end
|
564
|
+
# verify the required parameter 'environment_key' is set
|
565
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
566
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
567
|
+
end
|
568
|
+
# verify the required parameter 'feature_flag_key' is set
|
569
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
570
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
571
|
+
end
|
572
|
+
# resource path
|
573
|
+
local_var_path = '/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
574
|
+
|
575
|
+
# query parameters
|
576
|
+
query_params = {}
|
577
|
+
|
578
|
+
# header parameters
|
579
|
+
header_params = {}
|
580
|
+
# HTTP header 'Accept' (if needed)
|
581
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
582
|
+
# HTTP header 'Content-Type'
|
583
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
584
|
+
|
585
|
+
# form parameters
|
586
|
+
form_params = {}
|
587
|
+
|
588
|
+
# http body (model)
|
589
|
+
post_body = nil
|
590
|
+
auth_names = ['Token']
|
591
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
592
|
+
:header_params => header_params,
|
593
|
+
:query_params => query_params,
|
594
|
+
:form_params => form_params,
|
595
|
+
:body => post_body,
|
596
|
+
:auth_names => auth_names,
|
597
|
+
:return_type => 'UserTargetingExpirationForFlags')
|
598
|
+
if @api_client.config.debugging
|
599
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_expiring_user_targets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
600
|
+
end
|
601
|
+
return data, status_code, headers
|
602
|
+
end
|
603
|
+
# Get a single feature flag by key.
|
604
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
605
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
606
|
+
# @param [Hash] opts the optional parameters
|
607
|
+
# @option opts [Array<String>] :env By default, each feature will include configurations for each environment. You can filter environments with the env query parameter. For example, setting env=[\"production\"] will restrict the returned configurations to just your production environment.
|
608
|
+
# @return [FeatureFlag]
|
609
|
+
def get_feature_flag(project_key, feature_flag_key, opts = {})
|
610
|
+
data, _status_code, _headers = get_feature_flag_with_http_info(project_key, feature_flag_key, opts)
|
611
|
+
data
|
612
|
+
end
|
613
|
+
|
614
|
+
# Get a single feature flag by key.
|
615
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
616
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
617
|
+
# @param [Hash] opts the optional parameters
|
618
|
+
# @option opts [Array<String>] :env By default, each feature will include configurations for each environment. You can filter environments with the env query parameter. For example, setting env=[\"production\"] will restrict the returned configurations to just your production environment.
|
619
|
+
# @return [Array<(FeatureFlag, Fixnum, Hash)>] FeatureFlag data, response status code and response headers
|
620
|
+
def get_feature_flag_with_http_info(project_key, feature_flag_key, opts = {})
|
621
|
+
if @api_client.config.debugging
|
622
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_feature_flag ...'
|
623
|
+
end
|
624
|
+
# verify the required parameter 'project_key' is set
|
625
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
626
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_feature_flag"
|
627
|
+
end
|
628
|
+
# verify the required parameter 'feature_flag_key' is set
|
629
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
630
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_feature_flag"
|
631
|
+
end
|
632
|
+
# resource path
|
633
|
+
local_var_path = '/flags/{projectKey}/{featureFlagKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
634
|
+
|
635
|
+
# query parameters
|
636
|
+
query_params = {}
|
637
|
+
query_params[:'env'] = @api_client.build_collection_param(opts[:'env'], :multi) if !opts[:'env'].nil?
|
638
|
+
|
639
|
+
# header parameters
|
640
|
+
header_params = {}
|
641
|
+
# HTTP header 'Accept' (if needed)
|
642
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
643
|
+
# HTTP header 'Content-Type'
|
644
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
645
|
+
|
646
|
+
# form parameters
|
647
|
+
form_params = {}
|
648
|
+
|
649
|
+
# http body (model)
|
650
|
+
post_body = nil
|
651
|
+
auth_names = ['Token']
|
652
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
653
|
+
:header_params => header_params,
|
654
|
+
:query_params => query_params,
|
655
|
+
:form_params => form_params,
|
656
|
+
:body => post_body,
|
657
|
+
:auth_names => auth_names,
|
658
|
+
:return_type => 'FeatureFlag')
|
468
659
|
if @api_client.config.debugging
|
469
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
660
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_feature_flag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
470
661
|
end
|
471
662
|
return data, status_code, headers
|
472
663
|
end
|
@@ -726,6 +917,210 @@ module LaunchDarklyApi
|
|
726
917
|
end
|
727
918
|
return data, status_code, headers
|
728
919
|
end
|
920
|
+
# Get a scheduled change on a feature flag by id.
|
921
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
922
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
923
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
924
|
+
# @param scheduled_change_id The id of the scheduled change
|
925
|
+
# @param [Hash] opts the optional parameters
|
926
|
+
# @return [FeatureFlagScheduledChange]
|
927
|
+
def get_flag_config_scheduled_change(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
928
|
+
data, _status_code, _headers = get_flag_config_scheduled_change_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts)
|
929
|
+
data
|
930
|
+
end
|
931
|
+
|
932
|
+
# Get a scheduled change on a feature flag by id.
|
933
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
934
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
935
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
936
|
+
# @param scheduled_change_id The id of the scheduled change
|
937
|
+
# @param [Hash] opts the optional parameters
|
938
|
+
# @return [Array<(FeatureFlagScheduledChange, Fixnum, Hash)>] FeatureFlagScheduledChange data, response status code and response headers
|
939
|
+
def get_flag_config_scheduled_change_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
940
|
+
if @api_client.config.debugging
|
941
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_flag_config_scheduled_change ...'
|
942
|
+
end
|
943
|
+
# verify the required parameter 'project_key' is set
|
944
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
945
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_flag_config_scheduled_change"
|
946
|
+
end
|
947
|
+
# verify the required parameter 'feature_flag_key' is set
|
948
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
949
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_flag_config_scheduled_change"
|
950
|
+
end
|
951
|
+
# verify the required parameter 'environment_key' is set
|
952
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
953
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_flag_config_scheduled_change"
|
954
|
+
end
|
955
|
+
# verify the required parameter 'scheduled_change_id' is set
|
956
|
+
if @api_client.config.client_side_validation && scheduled_change_id.nil?
|
957
|
+
fail ArgumentError, "Missing the required parameter 'scheduled_change_id' when calling FeatureFlagsApi.get_flag_config_scheduled_change"
|
958
|
+
end
|
959
|
+
# resource path
|
960
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{scheduledChangeId}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'scheduledChangeId' + '}', scheduled_change_id.to_s)
|
961
|
+
|
962
|
+
# query parameters
|
963
|
+
query_params = {}
|
964
|
+
|
965
|
+
# header parameters
|
966
|
+
header_params = {}
|
967
|
+
# HTTP header 'Accept' (if needed)
|
968
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
969
|
+
# HTTP header 'Content-Type'
|
970
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
971
|
+
|
972
|
+
# form parameters
|
973
|
+
form_params = {}
|
974
|
+
|
975
|
+
# http body (model)
|
976
|
+
post_body = nil
|
977
|
+
auth_names = ['Token']
|
978
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
979
|
+
:header_params => header_params,
|
980
|
+
:query_params => query_params,
|
981
|
+
:form_params => form_params,
|
982
|
+
:body => post_body,
|
983
|
+
:auth_names => auth_names,
|
984
|
+
:return_type => 'FeatureFlagScheduledChange')
|
985
|
+
if @api_client.config.debugging
|
986
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_flag_config_scheduled_change\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
987
|
+
end
|
988
|
+
return data, status_code, headers
|
989
|
+
end
|
990
|
+
# Get all scheduled workflows for a feature flag by key.
|
991
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
992
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
993
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
994
|
+
# @param [Hash] opts the optional parameters
|
995
|
+
# @return [FeatureFlagScheduledChanges]
|
996
|
+
def get_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, opts = {})
|
997
|
+
data, _status_code, _headers = get_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, opts)
|
998
|
+
data
|
999
|
+
end
|
1000
|
+
|
1001
|
+
# Get all scheduled workflows for a feature flag by key.
|
1002
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1003
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1004
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1005
|
+
# @param [Hash] opts the optional parameters
|
1006
|
+
# @return [Array<(FeatureFlagScheduledChanges, Fixnum, Hash)>] FeatureFlagScheduledChanges data, response status code and response headers
|
1007
|
+
def get_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, opts = {})
|
1008
|
+
if @api_client.config.debugging
|
1009
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_flag_config_scheduled_changes ...'
|
1010
|
+
end
|
1011
|
+
# verify the required parameter 'project_key' is set
|
1012
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
1013
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes"
|
1014
|
+
end
|
1015
|
+
# verify the required parameter 'feature_flag_key' is set
|
1016
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1017
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes"
|
1018
|
+
end
|
1019
|
+
# verify the required parameter 'environment_key' is set
|
1020
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
1021
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes"
|
1022
|
+
end
|
1023
|
+
# resource path
|
1024
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
|
1025
|
+
|
1026
|
+
# query parameters
|
1027
|
+
query_params = {}
|
1028
|
+
|
1029
|
+
# header parameters
|
1030
|
+
header_params = {}
|
1031
|
+
# HTTP header 'Accept' (if needed)
|
1032
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1033
|
+
# HTTP header 'Content-Type'
|
1034
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1035
|
+
|
1036
|
+
# form parameters
|
1037
|
+
form_params = {}
|
1038
|
+
|
1039
|
+
# http body (model)
|
1040
|
+
post_body = nil
|
1041
|
+
auth_names = ['Token']
|
1042
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1043
|
+
:header_params => header_params,
|
1044
|
+
:query_params => query_params,
|
1045
|
+
:form_params => form_params,
|
1046
|
+
:body => post_body,
|
1047
|
+
:auth_names => auth_names,
|
1048
|
+
:return_type => 'FeatureFlagScheduledChanges')
|
1049
|
+
if @api_client.config.debugging
|
1050
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_flag_config_scheduled_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1051
|
+
end
|
1052
|
+
return data, status_code, headers
|
1053
|
+
end
|
1054
|
+
# Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
|
1055
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1056
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1057
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1058
|
+
# @param flag_config_scheduled_changes_conflicts_body Used to determine if a semantic patch will result in conflicts with scheduled changes on a feature flag.
|
1059
|
+
# @param [Hash] opts the optional parameters
|
1060
|
+
# @return [FeatureFlagScheduledChangesConflicts]
|
1061
|
+
def get_flag_config_scheduled_changes_conflicts(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body, opts = {})
|
1062
|
+
data, _status_code, _headers = get_flag_config_scheduled_changes_conflicts_with_http_info(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body, opts)
|
1063
|
+
data
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
# Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
|
1067
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1068
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1069
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1070
|
+
# @param flag_config_scheduled_changes_conflicts_body Used to determine if a semantic patch will result in conflicts with scheduled changes on a feature flag.
|
1071
|
+
# @param [Hash] opts the optional parameters
|
1072
|
+
# @return [Array<(FeatureFlagScheduledChangesConflicts, Fixnum, Hash)>] FeatureFlagScheduledChangesConflicts data, response status code and response headers
|
1073
|
+
def get_flag_config_scheduled_changes_conflicts_with_http_info(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body, opts = {})
|
1074
|
+
if @api_client.config.debugging
|
1075
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts ...'
|
1076
|
+
end
|
1077
|
+
# verify the required parameter 'project_key' is set
|
1078
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
1079
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts"
|
1080
|
+
end
|
1081
|
+
# verify the required parameter 'feature_flag_key' is set
|
1082
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1083
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts"
|
1084
|
+
end
|
1085
|
+
# verify the required parameter 'environment_key' is set
|
1086
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
1087
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts"
|
1088
|
+
end
|
1089
|
+
# verify the required parameter 'flag_config_scheduled_changes_conflicts_body' is set
|
1090
|
+
if @api_client.config.client_side_validation && flag_config_scheduled_changes_conflicts_body.nil?
|
1091
|
+
fail ArgumentError, "Missing the required parameter 'flag_config_scheduled_changes_conflicts_body' when calling FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts"
|
1092
|
+
end
|
1093
|
+
# resource path
|
1094
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes-conflicts'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
|
1095
|
+
|
1096
|
+
# query parameters
|
1097
|
+
query_params = {}
|
1098
|
+
|
1099
|
+
# header parameters
|
1100
|
+
header_params = {}
|
1101
|
+
# HTTP header 'Accept' (if needed)
|
1102
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1103
|
+
# HTTP header 'Content-Type'
|
1104
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1105
|
+
|
1106
|
+
# form parameters
|
1107
|
+
form_params = {}
|
1108
|
+
|
1109
|
+
# http body (model)
|
1110
|
+
post_body = @api_client.object_to_http_body(flag_config_scheduled_changes_conflicts_body)
|
1111
|
+
auth_names = ['Token']
|
1112
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1113
|
+
:header_params => header_params,
|
1114
|
+
:query_params => query_params,
|
1115
|
+
:form_params => form_params,
|
1116
|
+
:body => post_body,
|
1117
|
+
:auth_names => auth_names,
|
1118
|
+
:return_type => 'FeatureFlagScheduledChangesConflicts')
|
1119
|
+
if @api_client.config.debugging
|
1120
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_flag_config_scheduled_changes_conflicts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1121
|
+
end
|
1122
|
+
return data, status_code, headers
|
1123
|
+
end
|
729
1124
|
# Update, add, or delete expiring user targets on feature flag
|
730
1125
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
731
1126
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
@@ -860,53 +1255,129 @@ module LaunchDarklyApi
|
|
860
1255
|
end
|
861
1256
|
return data, status_code, headers
|
862
1257
|
end
|
863
|
-
#
|
1258
|
+
# Updates an existing scheduled-change on a feature flag in an environment.
|
1259
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1260
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1261
|
+
# @param flag_config_scheduled_changes_patch_body Update scheduled changes on a feature flag.
|
1262
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1263
|
+
# @param scheduled_change_id The id of the scheduled change
|
1264
|
+
# @param [Hash] opts the optional parameters
|
1265
|
+
# @return [FeatureFlagScheduledChange]
|
1266
|
+
def patch_flag_config_scheduled_change(project_key, feature_flag_key, flag_config_scheduled_changes_patch_body, environment_key, scheduled_change_id, opts = {})
|
1267
|
+
data, _status_code, _headers = patch_flag_config_scheduled_change_with_http_info(project_key, feature_flag_key, flag_config_scheduled_changes_patch_body, environment_key, scheduled_change_id, opts)
|
1268
|
+
data
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
# Updates an existing scheduled-change on a feature flag in an environment.
|
1272
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1273
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1274
|
+
# @param flag_config_scheduled_changes_patch_body Update scheduled changes on a feature flag.
|
1275
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1276
|
+
# @param scheduled_change_id The id of the scheduled change
|
1277
|
+
# @param [Hash] opts the optional parameters
|
1278
|
+
# @return [Array<(FeatureFlagScheduledChange, Fixnum, Hash)>] FeatureFlagScheduledChange data, response status code and response headers
|
1279
|
+
def patch_flag_config_scheduled_change_with_http_info(project_key, feature_flag_key, flag_config_scheduled_changes_patch_body, environment_key, scheduled_change_id, opts = {})
|
1280
|
+
if @api_client.config.debugging
|
1281
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.patch_flag_config_scheduled_change ...'
|
1282
|
+
end
|
1283
|
+
# verify the required parameter 'project_key' is set
|
1284
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
1285
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1286
|
+
end
|
1287
|
+
# verify the required parameter 'feature_flag_key' is set
|
1288
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1289
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1290
|
+
end
|
1291
|
+
# verify the required parameter 'flag_config_scheduled_changes_patch_body' is set
|
1292
|
+
if @api_client.config.client_side_validation && flag_config_scheduled_changes_patch_body.nil?
|
1293
|
+
fail ArgumentError, "Missing the required parameter 'flag_config_scheduled_changes_patch_body' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1294
|
+
end
|
1295
|
+
# verify the required parameter 'environment_key' is set
|
1296
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
1297
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1298
|
+
end
|
1299
|
+
# verify the required parameter 'scheduled_change_id' is set
|
1300
|
+
if @api_client.config.client_side_validation && scheduled_change_id.nil?
|
1301
|
+
fail ArgumentError, "Missing the required parameter 'scheduled_change_id' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1302
|
+
end
|
1303
|
+
# resource path
|
1304
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{scheduledChangeId}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'scheduledChangeId' + '}', scheduled_change_id.to_s)
|
1305
|
+
|
1306
|
+
# query parameters
|
1307
|
+
query_params = {}
|
1308
|
+
|
1309
|
+
# header parameters
|
1310
|
+
header_params = {}
|
1311
|
+
# HTTP header 'Accept' (if needed)
|
1312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1313
|
+
# HTTP header 'Content-Type'
|
1314
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1315
|
+
|
1316
|
+
# form parameters
|
1317
|
+
form_params = {}
|
1318
|
+
|
1319
|
+
# http body (model)
|
1320
|
+
post_body = @api_client.object_to_http_body(flag_config_scheduled_changes_patch_body)
|
1321
|
+
auth_names = ['Token']
|
1322
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1323
|
+
:header_params => header_params,
|
1324
|
+
:query_params => query_params,
|
1325
|
+
:form_params => form_params,
|
1326
|
+
:body => post_body,
|
1327
|
+
:auth_names => auth_names,
|
1328
|
+
:return_type => 'FeatureFlagScheduledChange')
|
1329
|
+
if @api_client.config.debugging
|
1330
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#patch_flag_config_scheduled_change\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1331
|
+
end
|
1332
|
+
return data, status_code, headers
|
1333
|
+
end
|
1334
|
+
# Apply approval request for a feature flag config
|
864
1335
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
865
1336
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
866
1337
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
867
|
-
# @param
|
868
|
-
# @param
|
1338
|
+
# @param approval_request_id The approval request ID
|
1339
|
+
# @param approval_request_apply_config_body Apply an approval request
|
869
1340
|
# @param [Hash] opts the optional parameters
|
870
|
-
# @return [
|
871
|
-
def
|
872
|
-
data, _status_code, _headers =
|
1341
|
+
# @return [ApprovalRequests]
|
1342
|
+
def post_apply_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body, opts = {})
|
1343
|
+
data, _status_code, _headers = post_apply_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body, opts)
|
873
1344
|
data
|
874
1345
|
end
|
875
1346
|
|
876
|
-
# Apply approval request for a feature flag
|
1347
|
+
# Apply approval request for a feature flag config
|
877
1348
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
878
1349
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
879
1350
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
880
|
-
# @param
|
881
|
-
# @param
|
1351
|
+
# @param approval_request_id The approval request ID
|
1352
|
+
# @param approval_request_apply_config_body Apply an approval request
|
882
1353
|
# @param [Hash] opts the optional parameters
|
883
|
-
# @return [Array<(
|
884
|
-
def
|
1354
|
+
# @return [Array<(ApprovalRequests, Fixnum, Hash)>] ApprovalRequests data, response status code and response headers
|
1355
|
+
def post_apply_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body, opts = {})
|
885
1356
|
if @api_client.config.debugging
|
886
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1357
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_apply_approval_request ...'
|
887
1358
|
end
|
888
1359
|
# verify the required parameter 'project_key' is set
|
889
1360
|
if @api_client.config.client_side_validation && project_key.nil?
|
890
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
1361
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
891
1362
|
end
|
892
1363
|
# verify the required parameter 'feature_flag_key' is set
|
893
1364
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
894
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
1365
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
895
1366
|
end
|
896
1367
|
# verify the required parameter 'environment_key' is set
|
897
1368
|
if @api_client.config.client_side_validation && environment_key.nil?
|
898
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
1369
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
899
1370
|
end
|
900
|
-
# verify the required parameter '
|
901
|
-
if @api_client.config.client_side_validation &&
|
902
|
-
fail ArgumentError, "Missing the required parameter '
|
1371
|
+
# verify the required parameter 'approval_request_id' is set
|
1372
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
1373
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.post_apply_approval_request"
|
903
1374
|
end
|
904
|
-
# verify the required parameter '
|
905
|
-
if @api_client.config.client_side_validation &&
|
906
|
-
fail ArgumentError, "Missing the required parameter '
|
1375
|
+
# verify the required parameter 'approval_request_apply_config_body' is set
|
1376
|
+
if @api_client.config.client_side_validation && approval_request_apply_config_body.nil?
|
1377
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_apply_config_body' when calling FeatureFlagsApi.post_apply_approval_request"
|
907
1378
|
end
|
908
1379
|
# resource path
|
909
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{
|
1380
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId}/apply'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'approvalRequestId' + '}', approval_request_id.to_s)
|
910
1381
|
|
911
1382
|
# query parameters
|
912
1383
|
query_params = {}
|
@@ -922,7 +1393,7 @@ module LaunchDarklyApi
|
|
922
1393
|
form_params = {}
|
923
1394
|
|
924
1395
|
# http body (model)
|
925
|
-
post_body = @api_client.object_to_http_body(
|
1396
|
+
post_body = @api_client.object_to_http_body(approval_request_apply_config_body)
|
926
1397
|
auth_names = ['Token']
|
927
1398
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
928
1399
|
:header_params => header_params,
|
@@ -930,9 +1401,81 @@ module LaunchDarklyApi
|
|
930
1401
|
:form_params => form_params,
|
931
1402
|
:body => post_body,
|
932
1403
|
:auth_names => auth_names,
|
933
|
-
:return_type => '
|
1404
|
+
:return_type => 'ApprovalRequests')
|
934
1405
|
if @api_client.config.debugging
|
935
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
1406
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#post_apply_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1407
|
+
end
|
1408
|
+
return data, status_code, headers
|
1409
|
+
end
|
1410
|
+
# Create an approval request for a feature flag config
|
1411
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1412
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1413
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1414
|
+
# @param approval_request_id The approval request ID
|
1415
|
+
# @param [Hash] opts the optional parameters
|
1416
|
+
# @option opts [ApprovalRequestConfigBody] :approval_request_config_body Create a new approval request
|
1417
|
+
# @return [ApprovalRequest]
|
1418
|
+
def post_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, opts = {})
|
1419
|
+
data, _status_code, _headers = post_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, opts)
|
1420
|
+
data
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
# Create an approval request for a feature flag config
|
1424
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1425
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1426
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1427
|
+
# @param approval_request_id The approval request ID
|
1428
|
+
# @param [Hash] opts the optional parameters
|
1429
|
+
# @option opts [ApprovalRequestConfigBody] :approval_request_config_body Create a new approval request
|
1430
|
+
# @return [Array<(ApprovalRequest, Fixnum, Hash)>] ApprovalRequest data, response status code and response headers
|
1431
|
+
def post_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, opts = {})
|
1432
|
+
if @api_client.config.debugging
|
1433
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_approval_request ...'
|
1434
|
+
end
|
1435
|
+
# verify the required parameter 'project_key' is set
|
1436
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
1437
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_approval_request"
|
1438
|
+
end
|
1439
|
+
# verify the required parameter 'feature_flag_key' is set
|
1440
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1441
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_approval_request"
|
1442
|
+
end
|
1443
|
+
# verify the required parameter 'environment_key' is set
|
1444
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
1445
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_approval_request"
|
1446
|
+
end
|
1447
|
+
# verify the required parameter 'approval_request_id' is set
|
1448
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
1449
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.post_approval_request"
|
1450
|
+
end
|
1451
|
+
# resource path
|
1452
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'approvalRequestId' + '}', approval_request_id.to_s)
|
1453
|
+
|
1454
|
+
# query parameters
|
1455
|
+
query_params = {}
|
1456
|
+
|
1457
|
+
# header parameters
|
1458
|
+
header_params = {}
|
1459
|
+
# HTTP header 'Accept' (if needed)
|
1460
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1461
|
+
# HTTP header 'Content-Type'
|
1462
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1463
|
+
|
1464
|
+
# form parameters
|
1465
|
+
form_params = {}
|
1466
|
+
|
1467
|
+
# http body (model)
|
1468
|
+
post_body = @api_client.object_to_http_body(opts[:'approval_request_config_body'])
|
1469
|
+
auth_names = ['Token']
|
1470
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1471
|
+
:header_params => header_params,
|
1472
|
+
:query_params => query_params,
|
1473
|
+
:form_params => form_params,
|
1474
|
+
:body => post_body,
|
1475
|
+
:auth_names => auth_names,
|
1476
|
+
:return_type => 'ApprovalRequest')
|
1477
|
+
if @api_client.config.debugging
|
1478
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#post_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
936
1479
|
end
|
937
1480
|
return data, status_code, headers
|
938
1481
|
end
|
@@ -997,49 +1540,47 @@ module LaunchDarklyApi
|
|
997
1540
|
end
|
998
1541
|
return data, status_code, headers
|
999
1542
|
end
|
1000
|
-
#
|
1543
|
+
# Creates a new scheduled change for a feature flag.
|
1001
1544
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1545
|
+
# @param flag_config_scheduled_changes_post_body Create scheduled changes on a feature flag.
|
1002
1546
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1003
1547
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1004
|
-
# @param feature_flag_approval_request_id The feature flag approval request ID
|
1005
1548
|
# @param [Hash] opts the optional parameters
|
1006
|
-
# @
|
1007
|
-
|
1008
|
-
|
1009
|
-
data, _status_code, _headers = post_feature_flag_approval_request_with_http_info(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, opts)
|
1549
|
+
# @return [FeatureFlagScheduledChange]
|
1550
|
+
def post_flag_config_scheduled_changes(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, opts = {})
|
1551
|
+
data, _status_code, _headers = post_flag_config_scheduled_changes_with_http_info(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, opts)
|
1010
1552
|
data
|
1011
1553
|
end
|
1012
1554
|
|
1013
|
-
#
|
1555
|
+
# Creates a new scheduled change for a feature flag.
|
1014
1556
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1557
|
+
# @param flag_config_scheduled_changes_post_body Create scheduled changes on a feature flag.
|
1015
1558
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1016
1559
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1017
|
-
# @param feature_flag_approval_request_id The feature flag approval request ID
|
1018
1560
|
# @param [Hash] opts the optional parameters
|
1019
|
-
# @
|
1020
|
-
|
1021
|
-
def post_feature_flag_approval_request_with_http_info(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, opts = {})
|
1561
|
+
# @return [Array<(FeatureFlagScheduledChange, Fixnum, Hash)>] FeatureFlagScheduledChange data, response status code and response headers
|
1562
|
+
def post_flag_config_scheduled_changes_with_http_info(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, opts = {})
|
1022
1563
|
if @api_client.config.debugging
|
1023
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1564
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_flag_config_scheduled_changes ...'
|
1024
1565
|
end
|
1025
1566
|
# verify the required parameter 'project_key' is set
|
1026
1567
|
if @api_client.config.client_side_validation && project_key.nil?
|
1027
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
1568
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
1569
|
+
end
|
1570
|
+
# verify the required parameter 'flag_config_scheduled_changes_post_body' is set
|
1571
|
+
if @api_client.config.client_side_validation && flag_config_scheduled_changes_post_body.nil?
|
1572
|
+
fail ArgumentError, "Missing the required parameter 'flag_config_scheduled_changes_post_body' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
1028
1573
|
end
|
1029
1574
|
# verify the required parameter 'feature_flag_key' is set
|
1030
1575
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1031
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
1576
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
1032
1577
|
end
|
1033
1578
|
# verify the required parameter 'environment_key' is set
|
1034
1579
|
if @api_client.config.client_side_validation && environment_key.nil?
|
1035
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
1036
|
-
end
|
1037
|
-
# verify the required parameter 'feature_flag_approval_request_id' is set
|
1038
|
-
if @api_client.config.client_side_validation && feature_flag_approval_request_id.nil?
|
1039
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_approval_request_id' when calling FeatureFlagsApi.post_feature_flag_approval_request"
|
1580
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
1040
1581
|
end
|
1041
1582
|
# resource path
|
1042
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/
|
1583
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s)
|
1043
1584
|
|
1044
1585
|
# query parameters
|
1045
1586
|
query_params = {}
|
@@ -1055,7 +1596,7 @@ module LaunchDarklyApi
|
|
1055
1596
|
form_params = {}
|
1056
1597
|
|
1057
1598
|
# http body (model)
|
1058
|
-
post_body = @api_client.object_to_http_body(
|
1599
|
+
post_body = @api_client.object_to_http_body(flag_config_scheduled_changes_post_body)
|
1059
1600
|
auth_names = ['Token']
|
1060
1601
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1061
1602
|
:header_params => header_params,
|
@@ -1063,59 +1604,59 @@ module LaunchDarklyApi
|
|
1063
1604
|
:form_params => form_params,
|
1064
1605
|
:body => post_body,
|
1065
1606
|
:auth_names => auth_names,
|
1066
|
-
:return_type => '
|
1607
|
+
:return_type => 'FeatureFlagScheduledChange')
|
1067
1608
|
if @api_client.config.debugging
|
1068
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
1609
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#post_flag_config_scheduled_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1069
1610
|
end
|
1070
1611
|
return data, status_code, headers
|
1071
1612
|
end
|
1072
|
-
# Review approval request for a feature flag
|
1613
|
+
# Review approval request for a feature flag config
|
1073
1614
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1074
1615
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1075
1616
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1076
|
-
# @param
|
1077
|
-
# @param
|
1617
|
+
# @param approval_request_id The approval request ID
|
1618
|
+
# @param approval_request_review_config_body Review an approval request
|
1078
1619
|
# @param [Hash] opts the optional parameters
|
1079
|
-
# @return [
|
1080
|
-
def
|
1081
|
-
data, _status_code, _headers =
|
1620
|
+
# @return [ApprovalRequests]
|
1621
|
+
def post_review_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body, opts = {})
|
1622
|
+
data, _status_code, _headers = post_review_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body, opts)
|
1082
1623
|
data
|
1083
1624
|
end
|
1084
1625
|
|
1085
|
-
# Review approval request for a feature flag
|
1626
|
+
# Review approval request for a feature flag config
|
1086
1627
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1087
1628
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1088
1629
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1089
|
-
# @param
|
1090
|
-
# @param
|
1630
|
+
# @param approval_request_id The approval request ID
|
1631
|
+
# @param approval_request_review_config_body Review an approval request
|
1091
1632
|
# @param [Hash] opts the optional parameters
|
1092
|
-
# @return [Array<(
|
1093
|
-
def
|
1633
|
+
# @return [Array<(ApprovalRequests, Fixnum, Hash)>] ApprovalRequests data, response status code and response headers
|
1634
|
+
def post_review_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body, opts = {})
|
1094
1635
|
if @api_client.config.debugging
|
1095
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1636
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_review_approval_request ...'
|
1096
1637
|
end
|
1097
1638
|
# verify the required parameter 'project_key' is set
|
1098
1639
|
if @api_client.config.client_side_validation && project_key.nil?
|
1099
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
1640
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_review_approval_request"
|
1100
1641
|
end
|
1101
1642
|
# verify the required parameter 'feature_flag_key' is set
|
1102
1643
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1103
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
1644
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_review_approval_request"
|
1104
1645
|
end
|
1105
1646
|
# verify the required parameter 'environment_key' is set
|
1106
1647
|
if @api_client.config.client_side_validation && environment_key.nil?
|
1107
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
1648
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_review_approval_request"
|
1108
1649
|
end
|
1109
|
-
# verify the required parameter '
|
1110
|
-
if @api_client.config.client_side_validation &&
|
1111
|
-
fail ArgumentError, "Missing the required parameter '
|
1650
|
+
# verify the required parameter 'approval_request_id' is set
|
1651
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
1652
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.post_review_approval_request"
|
1112
1653
|
end
|
1113
|
-
# verify the required parameter '
|
1114
|
-
if @api_client.config.client_side_validation &&
|
1115
|
-
fail ArgumentError, "Missing the required parameter '
|
1654
|
+
# verify the required parameter 'approval_request_review_config_body' is set
|
1655
|
+
if @api_client.config.client_side_validation && approval_request_review_config_body.nil?
|
1656
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_review_config_body' when calling FeatureFlagsApi.post_review_approval_request"
|
1116
1657
|
end
|
1117
1658
|
# resource path
|
1118
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{
|
1659
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId}/review'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'approvalRequestId' + '}', approval_request_id.to_s)
|
1119
1660
|
|
1120
1661
|
# query parameters
|
1121
1662
|
query_params = {}
|
@@ -1131,7 +1672,7 @@ module LaunchDarklyApi
|
|
1131
1672
|
form_params = {}
|
1132
1673
|
|
1133
1674
|
# http body (model)
|
1134
|
-
post_body = @api_client.object_to_http_body(
|
1675
|
+
post_body = @api_client.object_to_http_body(approval_request_review_config_body)
|
1135
1676
|
auth_names = ['Token']
|
1136
1677
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1137
1678
|
:header_params => header_params,
|
@@ -1139,9 +1680,9 @@ module LaunchDarklyApi
|
|
1139
1680
|
:form_params => form_params,
|
1140
1681
|
:body => post_body,
|
1141
1682
|
:auth_names => auth_names,
|
1142
|
-
:return_type => '
|
1683
|
+
:return_type => 'ApprovalRequests')
|
1143
1684
|
if @api_client.config.debugging
|
1144
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
1685
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#post_review_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1145
1686
|
end
|
1146
1687
|
return data, status_code, headers
|
1147
1688
|
end
|