launchdarkly_api 3.10.0 → 5.0.3
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 +237 -224
- data/docs/ApprovalRequest.md +20 -0
- data/docs/{FeatureFlagChangeRequestApplyConfigBody.md → ApprovalRequestApplyConfigBody.md} +1 -1
- data/docs/{FeatureFlagChangeRequestConfigBody.md → ApprovalRequestConfigBody.md} +3 -1
- data/docs/{FeatureFlagChangeRequestReview.md → ApprovalRequestReview.md} +3 -3
- data/docs/{FeatureFlagChangeRequestReviewConfigBody.md → ApprovalRequestReviewConfigBody.md} +2 -2
- data/docs/{FeatureFlagChangeRequestReviewStatus.md → ApprovalRequestReviewStatus.md} +1 -1
- data/docs/{FeatureFlagChangeRequests.md → ApprovalRequests.md} +2 -2
- data/docs/{UnboundedSegmentTargetChanges.md → BigSegmentTargetChanges.md} +1 -1
- data/docs/BigSegmentTargetsBody.md +9 -0
- data/docs/Environment.md +1 -0
- data/docs/EnvironmentApprovalSettings.md +12 -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 +517 -77
- data/docs/FlagConfigScheduledChangesConflictsBody.md +9 -0
- data/docs/FlagConfigScheduledChangesPatchBody.md +9 -0
- data/docs/FlagConfigScheduledChangesPostBody.md +10 -0
- data/docs/Member.md +2 -0
- data/docs/MemberLastSeenMetadata.md +8 -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 +17 -11
- 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 +640 -142
- 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_change_request.rb → approval_request.rb} +37 -25
- data/lib/launchdarkly_api/models/{feature_flag_change_request_apply_config_body.rb → approval_request_apply_config_body.rb} +5 -4
- data/lib/launchdarkly_api/models/{feature_flag_change_request_config_body.rb → approval_request_config_body.rb} +29 -8
- data/lib/launchdarkly_api/models/{feature_flag_change_request_review.rb → approval_request_review.rb} +7 -6
- data/lib/launchdarkly_api/models/{feature_flag_change_request_review_config_body.rb → approval_request_review_config_body.rb} +8 -7
- data/lib/launchdarkly_api/models/{feature_flag_change_request_review_status.rb → approval_request_review_status.rb} +5 -5
- data/lib/launchdarkly_api/models/{feature_flag_change_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/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 +17 -7
- data/lib/launchdarkly_api/models/environment_approval_settings.rb +260 -0
- 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 +4 -3
- data/lib/launchdarkly_api/models/integration__links.rb +4 -3
- 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/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 +351 -93
- 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 +139 -38
- 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_change_request_apply_config_body_spec.rb → approval_request_apply_config_body_spec.rb} +8 -8
- data/spec/models/{feature_flag_change_request_config_body_spec.rb → approval_request_config_body_spec.rb} +20 -8
- data/spec/models/{feature_flag_change_request_review_config_body_spec.rb → approval_request_review_config_body_spec.rb} +9 -9
- data/spec/models/{feature_flag_change_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_change_request_spec.rb → approval_request_spec.rb} +19 -13
- data/spec/models/{feature_flag_change_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/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 +69 -0
- data/spec/models/environment_post_spec.rb +2 -2
- data/spec/models/environment_spec.rb +8 -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__links_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/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 +186 -142
- data/docs/FeatureFlagChangeRequest.md +0 -19
- data/docs/UnboundedSegmentTargetsBody.md +0 -9
- data/spec/models/feature_flag_change_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/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
|
+
|
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
|
+
[**updated_big_segment_targets**](UserSegmentsApi.md#updated_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
|
+
# **updated_big_segment_targets**
|
430
|
+
> updated_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.updated_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->updated_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.0.3
|
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.0.3
|
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'
|
@@ -37,19 +46,13 @@ require 'launchdarkly_api/models/destination_m_particle'
|
|
37
46
|
require 'launchdarkly_api/models/destination_segment'
|
38
47
|
require 'launchdarkly_api/models/destinations'
|
39
48
|
require 'launchdarkly_api/models/environment'
|
49
|
+
require 'launchdarkly_api/models/environment_approval_settings'
|
40
50
|
require 'launchdarkly_api/models/environment_post'
|
41
51
|
require 'launchdarkly_api/models/evaluation_usage_error'
|
42
52
|
require 'launchdarkly_api/models/events'
|
43
53
|
require 'launchdarkly_api/models/fallthrough'
|
44
54
|
require 'launchdarkly_api/models/feature_flag'
|
45
55
|
require 'launchdarkly_api/models/feature_flag_body'
|
46
|
-
require 'launchdarkly_api/models/feature_flag_change_request'
|
47
|
-
require 'launchdarkly_api/models/feature_flag_change_request_apply_config_body'
|
48
|
-
require 'launchdarkly_api/models/feature_flag_change_request_config_body'
|
49
|
-
require 'launchdarkly_api/models/feature_flag_change_request_review'
|
50
|
-
require 'launchdarkly_api/models/feature_flag_change_request_review_config_body'
|
51
|
-
require 'launchdarkly_api/models/feature_flag_change_request_review_status'
|
52
|
-
require 'launchdarkly_api/models/feature_flag_change_requests'
|
53
56
|
require 'launchdarkly_api/models/feature_flag_config'
|
54
57
|
require 'launchdarkly_api/models/feature_flag_copy_body'
|
55
58
|
require 'launchdarkly_api/models/feature_flag_copy_object'
|
@@ -60,8 +63,12 @@ require 'launchdarkly_api/models/feature_flag_scheduled_changes_conflicts_instru
|
|
60
63
|
require 'launchdarkly_api/models/feature_flag_status'
|
61
64
|
require 'launchdarkly_api/models/feature_flag_status_across_environments'
|
62
65
|
require 'launchdarkly_api/models/feature_flag_status_for_queried_environment'
|
66
|
+
require 'launchdarkly_api/models/feature_flag_status_links'
|
63
67
|
require 'launchdarkly_api/models/feature_flag_statuses'
|
64
68
|
require 'launchdarkly_api/models/feature_flags'
|
69
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_conflicts_body'
|
70
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_patch_body'
|
71
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_post_body'
|
65
72
|
require 'launchdarkly_api/models/flag_list_item'
|
66
73
|
require 'launchdarkly_api/models/hierarchical_links'
|
67
74
|
require 'launchdarkly_api/models/id'
|
@@ -76,6 +83,7 @@ require 'launchdarkly_api/models/mau'
|
|
76
83
|
require 'launchdarkly_api/models/mau_metadata'
|
77
84
|
require 'launchdarkly_api/models/ma_uby_category'
|
78
85
|
require 'launchdarkly_api/models/member'
|
86
|
+
require 'launchdarkly_api/models/member__last_seen_metadata'
|
79
87
|
require 'launchdarkly_api/models/members'
|
80
88
|
require 'launchdarkly_api/models/members_body'
|
81
89
|
require 'launchdarkly_api/models/patch_comment'
|
@@ -114,8 +122,6 @@ require 'launchdarkly_api/models/target'
|
|
114
122
|
require 'launchdarkly_api/models/token'
|
115
123
|
require 'launchdarkly_api/models/token_body'
|
116
124
|
require 'launchdarkly_api/models/tokens'
|
117
|
-
require 'launchdarkly_api/models/unbounded_segment_target_changes'
|
118
|
-
require 'launchdarkly_api/models/unbounded_segment_targets_body'
|
119
125
|
require 'launchdarkly_api/models/usage'
|
120
126
|
require 'launchdarkly_api/models/usage_error'
|
121
127
|
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.0.3
|
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.0.3
|
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.0.3
|
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.0.3
|
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.0.3
|
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.0.3
|
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.0.3
|
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,41 +211,47 @@ module LaunchDarklyApi
|
|
140
211
|
end
|
141
212
|
return data, status_code, headers
|
142
213
|
end
|
143
|
-
#
|
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.
|
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
|
147
219
|
# @param [Hash] opts the optional parameters
|
148
|
-
# @return [
|
149
|
-
def
|
150
|
-
|
151
|
-
|
220
|
+
# @return [nil]
|
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)
|
223
|
+
nil
|
152
224
|
end
|
153
225
|
|
154
|
-
#
|
226
|
+
# Delete a scheduled change on a feature flag in an environment.
|
155
227
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
156
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
157
228
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
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
|
158
231
|
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [Array<(
|
160
|
-
def
|
232
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
233
|
+
def delete_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
161
234
|
if @api_client.config.debugging
|
162
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
235
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.delete_flag_config_scheduled_changes ...'
|
163
236
|
end
|
164
237
|
# verify the required parameter 'project_key' is set
|
165
238
|
if @api_client.config.client_side_validation && project_key.nil?
|
166
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
239
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
240
|
+
end
|
241
|
+
# verify the required parameter 'feature_flag_key' is set
|
242
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
243
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
167
244
|
end
|
168
245
|
# verify the required parameter 'environment_key' is set
|
169
246
|
if @api_client.config.client_side_validation && environment_key.nil?
|
170
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
247
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
171
248
|
end
|
172
|
-
# verify the required parameter '
|
173
|
-
if @api_client.config.client_side_validation &&
|
174
|
-
fail ArgumentError, "Missing the required parameter '
|
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"
|
175
252
|
end
|
176
253
|
# resource path
|
177
|
-
local_var_path = '/
|
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)
|
178
255
|
|
179
256
|
# query parameters
|
180
257
|
query_params = {}
|
@@ -192,53 +269,61 @@ module LaunchDarklyApi
|
|
192
269
|
# http body (model)
|
193
270
|
post_body = nil
|
194
271
|
auth_names = ['Token']
|
195
|
-
data, status_code, headers = @api_client.call_api(:
|
272
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
196
273
|
:header_params => header_params,
|
197
274
|
:query_params => query_params,
|
198
275
|
:form_params => form_params,
|
199
276
|
:body => post_body,
|
200
|
-
:auth_names => auth_names
|
201
|
-
:return_type => 'UserTargetingExpirationForFlags')
|
277
|
+
:auth_names => auth_names)
|
202
278
|
if @api_client.config.debugging
|
203
|
-
@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}"
|
204
280
|
end
|
205
281
|
return data, status_code, headers
|
206
282
|
end
|
207
|
-
# Get a single feature flag
|
283
|
+
# Get a single approval request for a feature flag config
|
208
284
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
209
285
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
286
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
287
|
+
# @param approval_request_id The approval request ID
|
210
288
|
# @param [Hash] opts the optional parameters
|
211
|
-
# @
|
212
|
-
|
213
|
-
|
214
|
-
data, _status_code, _headers = get_feature_flag_with_http_info(project_key, feature_flag_key, opts)
|
289
|
+
# @return [ApprovalRequests]
|
290
|
+
def get_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, opts = {})
|
291
|
+
data, _status_code, _headers = get_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, opts)
|
215
292
|
data
|
216
293
|
end
|
217
294
|
|
218
|
-
# Get a single feature flag
|
295
|
+
# Get a single approval request for a feature flag config
|
219
296
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
220
297
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
298
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
299
|
+
# @param approval_request_id The approval request ID
|
221
300
|
# @param [Hash] opts the optional parameters
|
222
|
-
# @
|
223
|
-
|
224
|
-
def get_feature_flag_with_http_info(project_key, feature_flag_key, opts = {})
|
301
|
+
# @return [Array<(ApprovalRequests, Fixnum, Hash)>] ApprovalRequests data, response status code and response headers
|
302
|
+
def get_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, opts = {})
|
225
303
|
if @api_client.config.debugging
|
226
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
304
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_approval_request ...'
|
227
305
|
end
|
228
306
|
# verify the required parameter 'project_key' is set
|
229
307
|
if @api_client.config.client_side_validation && project_key.nil?
|
230
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
308
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_approval_request"
|
231
309
|
end
|
232
310
|
# verify the required parameter 'feature_flag_key' is set
|
233
311
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
234
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
312
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_approval_request"
|
313
|
+
end
|
314
|
+
# verify the required parameter 'environment_key' is set
|
315
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
316
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_approval_request"
|
317
|
+
end
|
318
|
+
# verify the required parameter 'approval_request_id' is set
|
319
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
320
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.get_approval_request"
|
235
321
|
end
|
236
322
|
# resource path
|
237
|
-
local_var_path = '/
|
323
|
+
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)
|
238
324
|
|
239
325
|
# query parameters
|
240
326
|
query_params = {}
|
241
|
-
query_params[:'env'] = @api_client.build_collection_param(opts[:'env'], :multi) if !opts[:'env'].nil?
|
242
327
|
|
243
328
|
# header parameters
|
244
329
|
header_params = {}
|
@@ -259,53 +344,47 @@ module LaunchDarklyApi
|
|
259
344
|
:form_params => form_params,
|
260
345
|
:body => post_body,
|
261
346
|
:auth_names => auth_names,
|
262
|
-
:return_type => '
|
347
|
+
:return_type => 'ApprovalRequests')
|
263
348
|
if @api_client.config.debugging
|
264
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
349
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
265
350
|
end
|
266
351
|
return data, status_code, headers
|
267
352
|
end
|
268
|
-
# Get
|
353
|
+
# Get all approval requests for a feature flag config
|
269
354
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
270
355
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
271
356
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
272
|
-
# @param feature_flag_change_request_id The feature flag change request ID
|
273
357
|
# @param [Hash] opts the optional parameters
|
274
|
-
# @return [
|
275
|
-
def
|
276
|
-
data, _status_code, _headers =
|
358
|
+
# @return [ApprovalRequests]
|
359
|
+
def get_approval_requests(project_key, feature_flag_key, environment_key, opts = {})
|
360
|
+
data, _status_code, _headers = get_approval_requests_with_http_info(project_key, feature_flag_key, environment_key, opts)
|
277
361
|
data
|
278
362
|
end
|
279
363
|
|
280
|
-
# Get
|
364
|
+
# Get all approval requests for a feature flag config
|
281
365
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
282
366
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
283
367
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
284
|
-
# @param feature_flag_change_request_id The feature flag change request ID
|
285
368
|
# @param [Hash] opts the optional parameters
|
286
|
-
# @return [Array<(
|
287
|
-
def
|
369
|
+
# @return [Array<(ApprovalRequests, Fixnum, Hash)>] ApprovalRequests data, response status code and response headers
|
370
|
+
def get_approval_requests_with_http_info(project_key, feature_flag_key, environment_key, opts = {})
|
288
371
|
if @api_client.config.debugging
|
289
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
372
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_approval_requests ...'
|
290
373
|
end
|
291
374
|
# verify the required parameter 'project_key' is set
|
292
375
|
if @api_client.config.client_side_validation && project_key.nil?
|
293
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
376
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_approval_requests"
|
294
377
|
end
|
295
378
|
# verify the required parameter 'feature_flag_key' is set
|
296
379
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
297
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
380
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_approval_requests"
|
298
381
|
end
|
299
382
|
# verify the required parameter 'environment_key' is set
|
300
383
|
if @api_client.config.client_side_validation && environment_key.nil?
|
301
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
302
|
-
end
|
303
|
-
# verify the required parameter 'feature_flag_change_request_id' is set
|
304
|
-
if @api_client.config.client_side_validation && feature_flag_change_request_id.nil?
|
305
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_change_request_id' when calling FeatureFlagsApi.get_feature_flag_change_request"
|
384
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_approval_requests"
|
306
385
|
end
|
307
386
|
# resource path
|
308
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests
|
387
|
+
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)
|
309
388
|
|
310
389
|
# query parameters
|
311
390
|
query_params = {}
|
@@ -329,50 +408,111 @@ module LaunchDarklyApi
|
|
329
408
|
:form_params => form_params,
|
330
409
|
:body => post_body,
|
331
410
|
:auth_names => auth_names,
|
332
|
-
:return_type => '
|
411
|
+
:return_type => 'ApprovalRequests')
|
333
412
|
if @api_client.config.debugging
|
334
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
413
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_approval_requests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
335
414
|
end
|
336
415
|
return data, status_code, headers
|
337
416
|
end
|
338
|
-
# Get
|
417
|
+
# Get expiring user targets for feature flag
|
339
418
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
340
|
-
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
341
419
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
420
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
342
421
|
# @param [Hash] opts the optional parameters
|
343
|
-
# @return [
|
344
|
-
def
|
345
|
-
data, _status_code, _headers =
|
422
|
+
# @return [UserTargetingExpirationForFlags]
|
423
|
+
def get_expiring_user_targets(project_key, environment_key, feature_flag_key, opts = {})
|
424
|
+
data, _status_code, _headers = get_expiring_user_targets_with_http_info(project_key, environment_key, feature_flag_key, opts)
|
346
425
|
data
|
347
426
|
end
|
348
427
|
|
349
|
-
# Get
|
428
|
+
# Get expiring user targets for feature flag
|
350
429
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
351
|
-
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
352
430
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
431
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
353
432
|
# @param [Hash] opts the optional parameters
|
354
|
-
# @return [Array<(
|
355
|
-
def
|
433
|
+
# @return [Array<(UserTargetingExpirationForFlags, Fixnum, Hash)>] UserTargetingExpirationForFlags data, response status code and response headers
|
434
|
+
def get_expiring_user_targets_with_http_info(project_key, environment_key, feature_flag_key, opts = {})
|
356
435
|
if @api_client.config.debugging
|
357
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
436
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_expiring_user_targets ...'
|
358
437
|
end
|
359
438
|
# verify the required parameter 'project_key' is set
|
360
439
|
if @api_client.config.client_side_validation && project_key.nil?
|
361
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
440
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
441
|
+
end
|
442
|
+
# verify the required parameter 'environment_key' is set
|
443
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
444
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
362
445
|
end
|
363
446
|
# verify the required parameter 'feature_flag_key' is set
|
364
447
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
365
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
448
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
366
449
|
end
|
367
|
-
#
|
368
|
-
|
369
|
-
|
450
|
+
# resource path
|
451
|
+
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)
|
452
|
+
|
453
|
+
# query parameters
|
454
|
+
query_params = {}
|
455
|
+
|
456
|
+
# header parameters
|
457
|
+
header_params = {}
|
458
|
+
# HTTP header 'Accept' (if needed)
|
459
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
460
|
+
# HTTP header 'Content-Type'
|
461
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
462
|
+
|
463
|
+
# form parameters
|
464
|
+
form_params = {}
|
465
|
+
|
466
|
+
# http body (model)
|
467
|
+
post_body = nil
|
468
|
+
auth_names = ['Token']
|
469
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
470
|
+
:header_params => header_params,
|
471
|
+
:query_params => query_params,
|
472
|
+
:form_params => form_params,
|
473
|
+
:body => post_body,
|
474
|
+
:auth_names => auth_names,
|
475
|
+
:return_type => 'UserTargetingExpirationForFlags')
|
476
|
+
if @api_client.config.debugging
|
477
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_expiring_user_targets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
478
|
+
end
|
479
|
+
return data, status_code, headers
|
480
|
+
end
|
481
|
+
# Get a single feature flag by key.
|
482
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
483
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
484
|
+
# @param [Hash] opts the optional parameters
|
485
|
+
# @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.
|
486
|
+
# @return [FeatureFlag]
|
487
|
+
def get_feature_flag(project_key, feature_flag_key, opts = {})
|
488
|
+
data, _status_code, _headers = get_feature_flag_with_http_info(project_key, feature_flag_key, opts)
|
489
|
+
data
|
490
|
+
end
|
491
|
+
|
492
|
+
# Get a single feature flag by key.
|
493
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
494
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
495
|
+
# @param [Hash] opts the optional parameters
|
496
|
+
# @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.
|
497
|
+
# @return [Array<(FeatureFlag, Fixnum, Hash)>] FeatureFlag data, response status code and response headers
|
498
|
+
def get_feature_flag_with_http_info(project_key, feature_flag_key, opts = {})
|
499
|
+
if @api_client.config.debugging
|
500
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_feature_flag ...'
|
501
|
+
end
|
502
|
+
# verify the required parameter 'project_key' is set
|
503
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
504
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_feature_flag"
|
505
|
+
end
|
506
|
+
# verify the required parameter 'feature_flag_key' is set
|
507
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
508
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_feature_flag"
|
370
509
|
end
|
371
510
|
# resource path
|
372
|
-
local_var_path = '/{projectKey}/
|
511
|
+
local_var_path = '/flags/{projectKey}/{featureFlagKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
373
512
|
|
374
513
|
# query parameters
|
375
514
|
query_params = {}
|
515
|
+
query_params[:'env'] = @api_client.build_collection_param(opts[:'env'], :multi) if !opts[:'env'].nil?
|
376
516
|
|
377
517
|
# header parameters
|
378
518
|
header_params = {}
|
@@ -393,9 +533,9 @@ module LaunchDarklyApi
|
|
393
533
|
:form_params => form_params,
|
394
534
|
:body => post_body,
|
395
535
|
:auth_names => auth_names,
|
396
|
-
:return_type => '
|
536
|
+
:return_type => 'FeatureFlag')
|
397
537
|
if @api_client.config.debugging
|
398
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
538
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_feature_flag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
399
539
|
end
|
400
540
|
return data, status_code, headers
|
401
541
|
end
|
@@ -655,6 +795,210 @@ module LaunchDarklyApi
|
|
655
795
|
end
|
656
796
|
return data, status_code, headers
|
657
797
|
end
|
798
|
+
# Get a scheduled change on a feature flag by id.
|
799
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
800
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
801
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
802
|
+
# @param scheduled_change_id The id of the scheduled change
|
803
|
+
# @param [Hash] opts the optional parameters
|
804
|
+
# @return [FeatureFlagScheduledChange]
|
805
|
+
def get_flag_config_scheduled_change(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
806
|
+
data, _status_code, _headers = get_flag_config_scheduled_change_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts)
|
807
|
+
data
|
808
|
+
end
|
809
|
+
|
810
|
+
# Get a scheduled change on a feature flag by id.
|
811
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
812
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
813
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
814
|
+
# @param scheduled_change_id The id of the scheduled change
|
815
|
+
# @param [Hash] opts the optional parameters
|
816
|
+
# @return [Array<(FeatureFlagScheduledChange, Fixnum, Hash)>] FeatureFlagScheduledChange data, response status code and response headers
|
817
|
+
def get_flag_config_scheduled_change_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
818
|
+
if @api_client.config.debugging
|
819
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_flag_config_scheduled_change ...'
|
820
|
+
end
|
821
|
+
# verify the required parameter 'project_key' is set
|
822
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
823
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_flag_config_scheduled_change"
|
824
|
+
end
|
825
|
+
# verify the required parameter 'feature_flag_key' is set
|
826
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
827
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_flag_config_scheduled_change"
|
828
|
+
end
|
829
|
+
# verify the required parameter 'environment_key' is set
|
830
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
831
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_flag_config_scheduled_change"
|
832
|
+
end
|
833
|
+
# verify the required parameter 'scheduled_change_id' is set
|
834
|
+
if @api_client.config.client_side_validation && scheduled_change_id.nil?
|
835
|
+
fail ArgumentError, "Missing the required parameter 'scheduled_change_id' when calling FeatureFlagsApi.get_flag_config_scheduled_change"
|
836
|
+
end
|
837
|
+
# resource path
|
838
|
+
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)
|
839
|
+
|
840
|
+
# query parameters
|
841
|
+
query_params = {}
|
842
|
+
|
843
|
+
# header parameters
|
844
|
+
header_params = {}
|
845
|
+
# HTTP header 'Accept' (if needed)
|
846
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
847
|
+
# HTTP header 'Content-Type'
|
848
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
849
|
+
|
850
|
+
# form parameters
|
851
|
+
form_params = {}
|
852
|
+
|
853
|
+
# http body (model)
|
854
|
+
post_body = nil
|
855
|
+
auth_names = ['Token']
|
856
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
857
|
+
:header_params => header_params,
|
858
|
+
:query_params => query_params,
|
859
|
+
:form_params => form_params,
|
860
|
+
:body => post_body,
|
861
|
+
:auth_names => auth_names,
|
862
|
+
:return_type => 'FeatureFlagScheduledChange')
|
863
|
+
if @api_client.config.debugging
|
864
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_flag_config_scheduled_change\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
865
|
+
end
|
866
|
+
return data, status_code, headers
|
867
|
+
end
|
868
|
+
# Get all scheduled workflows for a feature flag by key.
|
869
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
870
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
871
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
872
|
+
# @param [Hash] opts the optional parameters
|
873
|
+
# @return [FeatureFlagScheduledChanges]
|
874
|
+
def get_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, opts = {})
|
875
|
+
data, _status_code, _headers = get_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, opts)
|
876
|
+
data
|
877
|
+
end
|
878
|
+
|
879
|
+
# Get all scheduled workflows for a feature flag by key.
|
880
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
881
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
882
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
883
|
+
# @param [Hash] opts the optional parameters
|
884
|
+
# @return [Array<(FeatureFlagScheduledChanges, Fixnum, Hash)>] FeatureFlagScheduledChanges data, response status code and response headers
|
885
|
+
def get_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, opts = {})
|
886
|
+
if @api_client.config.debugging
|
887
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_flag_config_scheduled_changes ...'
|
888
|
+
end
|
889
|
+
# verify the required parameter 'project_key' is set
|
890
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
891
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes"
|
892
|
+
end
|
893
|
+
# verify the required parameter 'feature_flag_key' is set
|
894
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
895
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes"
|
896
|
+
end
|
897
|
+
# verify the required parameter 'environment_key' is set
|
898
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
899
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes"
|
900
|
+
end
|
901
|
+
# resource path
|
902
|
+
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)
|
903
|
+
|
904
|
+
# query parameters
|
905
|
+
query_params = {}
|
906
|
+
|
907
|
+
# header parameters
|
908
|
+
header_params = {}
|
909
|
+
# HTTP header 'Accept' (if needed)
|
910
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
911
|
+
# HTTP header 'Content-Type'
|
912
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
913
|
+
|
914
|
+
# form parameters
|
915
|
+
form_params = {}
|
916
|
+
|
917
|
+
# http body (model)
|
918
|
+
post_body = nil
|
919
|
+
auth_names = ['Token']
|
920
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
921
|
+
:header_params => header_params,
|
922
|
+
:query_params => query_params,
|
923
|
+
:form_params => form_params,
|
924
|
+
:body => post_body,
|
925
|
+
:auth_names => auth_names,
|
926
|
+
:return_type => 'FeatureFlagScheduledChanges')
|
927
|
+
if @api_client.config.debugging
|
928
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_flag_config_scheduled_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
929
|
+
end
|
930
|
+
return data, status_code, headers
|
931
|
+
end
|
932
|
+
# Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
|
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 flag_config_scheduled_changes_conflicts_body Used to determine if a semantic patch will result in conflicts with scheduled changes on a feature flag.
|
937
|
+
# @param [Hash] opts the optional parameters
|
938
|
+
# @return [FeatureFlagScheduledChangesConflicts]
|
939
|
+
def get_flag_config_scheduled_changes_conflicts(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body, opts = {})
|
940
|
+
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)
|
941
|
+
data
|
942
|
+
end
|
943
|
+
|
944
|
+
# Lists conflicts between the given instructions and any existing scheduled changes for the feature flag. The actual HTTP verb should be REPORT, not POST.
|
945
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
946
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
947
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
948
|
+
# @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.
|
949
|
+
# @param [Hash] opts the optional parameters
|
950
|
+
# @return [Array<(FeatureFlagScheduledChangesConflicts, Fixnum, Hash)>] FeatureFlagScheduledChangesConflicts data, response status code and response headers
|
951
|
+
def get_flag_config_scheduled_changes_conflicts_with_http_info(project_key, feature_flag_key, environment_key, flag_config_scheduled_changes_conflicts_body, opts = {})
|
952
|
+
if @api_client.config.debugging
|
953
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts ...'
|
954
|
+
end
|
955
|
+
# verify the required parameter 'project_key' is set
|
956
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
957
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts"
|
958
|
+
end
|
959
|
+
# verify the required parameter 'feature_flag_key' is set
|
960
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
961
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts"
|
962
|
+
end
|
963
|
+
# verify the required parameter 'environment_key' is set
|
964
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
965
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts"
|
966
|
+
end
|
967
|
+
# verify the required parameter 'flag_config_scheduled_changes_conflicts_body' is set
|
968
|
+
if @api_client.config.client_side_validation && flag_config_scheduled_changes_conflicts_body.nil?
|
969
|
+
fail ArgumentError, "Missing the required parameter 'flag_config_scheduled_changes_conflicts_body' when calling FeatureFlagsApi.get_flag_config_scheduled_changes_conflicts"
|
970
|
+
end
|
971
|
+
# resource path
|
972
|
+
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)
|
973
|
+
|
974
|
+
# query parameters
|
975
|
+
query_params = {}
|
976
|
+
|
977
|
+
# header parameters
|
978
|
+
header_params = {}
|
979
|
+
# HTTP header 'Accept' (if needed)
|
980
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
981
|
+
# HTTP header 'Content-Type'
|
982
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
983
|
+
|
984
|
+
# form parameters
|
985
|
+
form_params = {}
|
986
|
+
|
987
|
+
# http body (model)
|
988
|
+
post_body = @api_client.object_to_http_body(flag_config_scheduled_changes_conflicts_body)
|
989
|
+
auth_names = ['Token']
|
990
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
991
|
+
:header_params => header_params,
|
992
|
+
:query_params => query_params,
|
993
|
+
:form_params => form_params,
|
994
|
+
:body => post_body,
|
995
|
+
:auth_names => auth_names,
|
996
|
+
:return_type => 'FeatureFlagScheduledChangesConflicts')
|
997
|
+
if @api_client.config.debugging
|
998
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_flag_config_scheduled_changes_conflicts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
999
|
+
end
|
1000
|
+
return data, status_code, headers
|
1001
|
+
end
|
658
1002
|
# Update, add, or delete expiring user targets on feature flag
|
659
1003
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
660
1004
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
@@ -789,53 +1133,129 @@ module LaunchDarklyApi
|
|
789
1133
|
end
|
790
1134
|
return data, status_code, headers
|
791
1135
|
end
|
792
|
-
#
|
1136
|
+
# Updates an existing scheduled-change on a feature flag in an environment.
|
1137
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1138
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1139
|
+
# @param flag_config_scheduled_changes_patch_body Update scheduled changes on a feature flag.
|
1140
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1141
|
+
# @param scheduled_change_id The id of the scheduled change
|
1142
|
+
# @param [Hash] opts the optional parameters
|
1143
|
+
# @return [FeatureFlagScheduledChange]
|
1144
|
+
def patch_flag_config_scheduled_change(project_key, feature_flag_key, flag_config_scheduled_changes_patch_body, environment_key, scheduled_change_id, opts = {})
|
1145
|
+
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)
|
1146
|
+
data
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
# Updates an existing scheduled-change on a feature flag in an environment.
|
1150
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1151
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1152
|
+
# @param flag_config_scheduled_changes_patch_body Update scheduled changes on a feature flag.
|
1153
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1154
|
+
# @param scheduled_change_id The id of the scheduled change
|
1155
|
+
# @param [Hash] opts the optional parameters
|
1156
|
+
# @return [Array<(FeatureFlagScheduledChange, Fixnum, Hash)>] FeatureFlagScheduledChange data, response status code and response headers
|
1157
|
+
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 = {})
|
1158
|
+
if @api_client.config.debugging
|
1159
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.patch_flag_config_scheduled_change ...'
|
1160
|
+
end
|
1161
|
+
# verify the required parameter 'project_key' is set
|
1162
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
1163
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1164
|
+
end
|
1165
|
+
# verify the required parameter 'feature_flag_key' is set
|
1166
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1167
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1168
|
+
end
|
1169
|
+
# verify the required parameter 'flag_config_scheduled_changes_patch_body' is set
|
1170
|
+
if @api_client.config.client_side_validation && flag_config_scheduled_changes_patch_body.nil?
|
1171
|
+
fail ArgumentError, "Missing the required parameter 'flag_config_scheduled_changes_patch_body' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1172
|
+
end
|
1173
|
+
# verify the required parameter 'environment_key' is set
|
1174
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
1175
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1176
|
+
end
|
1177
|
+
# verify the required parameter 'scheduled_change_id' is set
|
1178
|
+
if @api_client.config.client_side_validation && scheduled_change_id.nil?
|
1179
|
+
fail ArgumentError, "Missing the required parameter 'scheduled_change_id' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
1180
|
+
end
|
1181
|
+
# resource path
|
1182
|
+
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)
|
1183
|
+
|
1184
|
+
# query parameters
|
1185
|
+
query_params = {}
|
1186
|
+
|
1187
|
+
# header parameters
|
1188
|
+
header_params = {}
|
1189
|
+
# HTTP header 'Accept' (if needed)
|
1190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1191
|
+
# HTTP header 'Content-Type'
|
1192
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1193
|
+
|
1194
|
+
# form parameters
|
1195
|
+
form_params = {}
|
1196
|
+
|
1197
|
+
# http body (model)
|
1198
|
+
post_body = @api_client.object_to_http_body(flag_config_scheduled_changes_patch_body)
|
1199
|
+
auth_names = ['Token']
|
1200
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1201
|
+
:header_params => header_params,
|
1202
|
+
:query_params => query_params,
|
1203
|
+
:form_params => form_params,
|
1204
|
+
:body => post_body,
|
1205
|
+
:auth_names => auth_names,
|
1206
|
+
:return_type => 'FeatureFlagScheduledChange')
|
1207
|
+
if @api_client.config.debugging
|
1208
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#patch_flag_config_scheduled_change\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1209
|
+
end
|
1210
|
+
return data, status_code, headers
|
1211
|
+
end
|
1212
|
+
# Apply approval request for a feature flag config
|
793
1213
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
794
1214
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
795
1215
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
796
|
-
# @param
|
797
|
-
# @param
|
1216
|
+
# @param approval_request_id The approval request ID
|
1217
|
+
# @param approval_request_apply_config_body Apply an approval request
|
798
1218
|
# @param [Hash] opts the optional parameters
|
799
|
-
# @return [
|
800
|
-
def
|
801
|
-
data, _status_code, _headers =
|
1219
|
+
# @return [ApprovalRequests]
|
1220
|
+
def post_apply_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body, opts = {})
|
1221
|
+
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)
|
802
1222
|
data
|
803
1223
|
end
|
804
1224
|
|
805
|
-
# Apply
|
1225
|
+
# Apply approval request for a feature flag config
|
806
1226
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
807
1227
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
808
1228
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
809
|
-
# @param
|
810
|
-
# @param
|
1229
|
+
# @param approval_request_id The approval request ID
|
1230
|
+
# @param approval_request_apply_config_body Apply an approval request
|
811
1231
|
# @param [Hash] opts the optional parameters
|
812
|
-
# @return [Array<(
|
813
|
-
def
|
1232
|
+
# @return [Array<(ApprovalRequests, Fixnum, Hash)>] ApprovalRequests data, response status code and response headers
|
1233
|
+
def post_apply_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_apply_config_body, opts = {})
|
814
1234
|
if @api_client.config.debugging
|
815
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1235
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_apply_approval_request ...'
|
816
1236
|
end
|
817
1237
|
# verify the required parameter 'project_key' is set
|
818
1238
|
if @api_client.config.client_side_validation && project_key.nil?
|
819
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
1239
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
820
1240
|
end
|
821
1241
|
# verify the required parameter 'feature_flag_key' is set
|
822
1242
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
823
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
1243
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
824
1244
|
end
|
825
1245
|
# verify the required parameter 'environment_key' is set
|
826
1246
|
if @api_client.config.client_side_validation && environment_key.nil?
|
827
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
1247
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
828
1248
|
end
|
829
|
-
# verify the required parameter '
|
830
|
-
if @api_client.config.client_side_validation &&
|
831
|
-
fail ArgumentError, "Missing the required parameter '
|
1249
|
+
# verify the required parameter 'approval_request_id' is set
|
1250
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
1251
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.post_apply_approval_request"
|
832
1252
|
end
|
833
|
-
# verify the required parameter '
|
834
|
-
if @api_client.config.client_side_validation &&
|
835
|
-
fail ArgumentError, "Missing the required parameter '
|
1253
|
+
# verify the required parameter 'approval_request_apply_config_body' is set
|
1254
|
+
if @api_client.config.client_side_validation && approval_request_apply_config_body.nil?
|
1255
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_apply_config_body' when calling FeatureFlagsApi.post_apply_approval_request"
|
836
1256
|
end
|
837
1257
|
# resource path
|
838
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{
|
1258
|
+
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)
|
839
1259
|
|
840
1260
|
# query parameters
|
841
1261
|
query_params = {}
|
@@ -851,7 +1271,7 @@ module LaunchDarklyApi
|
|
851
1271
|
form_params = {}
|
852
1272
|
|
853
1273
|
# http body (model)
|
854
|
-
post_body = @api_client.object_to_http_body(
|
1274
|
+
post_body = @api_client.object_to_http_body(approval_request_apply_config_body)
|
855
1275
|
auth_names = ['Token']
|
856
1276
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
857
1277
|
:header_params => header_params,
|
@@ -859,9 +1279,81 @@ module LaunchDarklyApi
|
|
859
1279
|
:form_params => form_params,
|
860
1280
|
:body => post_body,
|
861
1281
|
:auth_names => auth_names,
|
862
|
-
:return_type => '
|
1282
|
+
:return_type => 'ApprovalRequests')
|
863
1283
|
if @api_client.config.debugging
|
864
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
1284
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#post_apply_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1285
|
+
end
|
1286
|
+
return data, status_code, headers
|
1287
|
+
end
|
1288
|
+
# Create an approval request for a feature flag config
|
1289
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1290
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1291
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1292
|
+
# @param approval_request_id The approval request ID
|
1293
|
+
# @param [Hash] opts the optional parameters
|
1294
|
+
# @option opts [ApprovalRequestConfigBody] :approval_request_config_body Create a new approval request
|
1295
|
+
# @return [ApprovalRequest]
|
1296
|
+
def post_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, opts = {})
|
1297
|
+
data, _status_code, _headers = post_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, opts)
|
1298
|
+
data
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
# Create an approval request for a feature flag config
|
1302
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1303
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1304
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1305
|
+
# @param approval_request_id The approval request ID
|
1306
|
+
# @param [Hash] opts the optional parameters
|
1307
|
+
# @option opts [ApprovalRequestConfigBody] :approval_request_config_body Create a new approval request
|
1308
|
+
# @return [Array<(ApprovalRequest, Fixnum, Hash)>] ApprovalRequest data, response status code and response headers
|
1309
|
+
def post_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, opts = {})
|
1310
|
+
if @api_client.config.debugging
|
1311
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_approval_request ...'
|
1312
|
+
end
|
1313
|
+
# verify the required parameter 'project_key' is set
|
1314
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
1315
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_approval_request"
|
1316
|
+
end
|
1317
|
+
# verify the required parameter 'feature_flag_key' is set
|
1318
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1319
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_approval_request"
|
1320
|
+
end
|
1321
|
+
# verify the required parameter 'environment_key' is set
|
1322
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
1323
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_approval_request"
|
1324
|
+
end
|
1325
|
+
# verify the required parameter 'approval_request_id' is set
|
1326
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
1327
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.post_approval_request"
|
1328
|
+
end
|
1329
|
+
# resource path
|
1330
|
+
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)
|
1331
|
+
|
1332
|
+
# query parameters
|
1333
|
+
query_params = {}
|
1334
|
+
|
1335
|
+
# header parameters
|
1336
|
+
header_params = {}
|
1337
|
+
# HTTP header 'Accept' (if needed)
|
1338
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1339
|
+
# HTTP header 'Content-Type'
|
1340
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1341
|
+
|
1342
|
+
# form parameters
|
1343
|
+
form_params = {}
|
1344
|
+
|
1345
|
+
# http body (model)
|
1346
|
+
post_body = @api_client.object_to_http_body(opts[:'approval_request_config_body'])
|
1347
|
+
auth_names = ['Token']
|
1348
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1349
|
+
:header_params => header_params,
|
1350
|
+
:query_params => query_params,
|
1351
|
+
:form_params => form_params,
|
1352
|
+
:body => post_body,
|
1353
|
+
:auth_names => auth_names,
|
1354
|
+
:return_type => 'ApprovalRequest')
|
1355
|
+
if @api_client.config.debugging
|
1356
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#post_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
865
1357
|
end
|
866
1358
|
return data, status_code, headers
|
867
1359
|
end
|
@@ -926,41 +1418,47 @@ module LaunchDarklyApi
|
|
926
1418
|
end
|
927
1419
|
return data, status_code, headers
|
928
1420
|
end
|
1421
|
+
# Creates a new scheduled change for a feature flag.
|
929
1422
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1423
|
+
# @param flag_config_scheduled_changes_post_body Create scheduled changes on a feature flag.
|
930
1424
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
931
1425
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
932
1426
|
# @param [Hash] opts the optional parameters
|
933
|
-
# @
|
934
|
-
|
935
|
-
|
936
|
-
data, _status_code, _headers = post_feature_flag_change_request_with_http_info(project_key, feature_flag_key, environment_key, opts)
|
1427
|
+
# @return [FeatureFlagScheduledChange]
|
1428
|
+
def post_flag_config_scheduled_changes(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, opts = {})
|
1429
|
+
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)
|
937
1430
|
data
|
938
1431
|
end
|
939
1432
|
|
1433
|
+
# Creates a new scheduled change for a feature flag.
|
940
1434
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1435
|
+
# @param flag_config_scheduled_changes_post_body Create scheduled changes on a feature flag.
|
941
1436
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
942
1437
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
943
1438
|
# @param [Hash] opts the optional parameters
|
944
|
-
# @
|
945
|
-
|
946
|
-
def post_feature_flag_change_request_with_http_info(project_key, feature_flag_key, environment_key, opts = {})
|
1439
|
+
# @return [Array<(FeatureFlagScheduledChange, Fixnum, Hash)>] FeatureFlagScheduledChange data, response status code and response headers
|
1440
|
+
def post_flag_config_scheduled_changes_with_http_info(project_key, flag_config_scheduled_changes_post_body, feature_flag_key, environment_key, opts = {})
|
947
1441
|
if @api_client.config.debugging
|
948
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1442
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_flag_config_scheduled_changes ...'
|
949
1443
|
end
|
950
1444
|
# verify the required parameter 'project_key' is set
|
951
1445
|
if @api_client.config.client_side_validation && project_key.nil?
|
952
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
1446
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
1447
|
+
end
|
1448
|
+
# verify the required parameter 'flag_config_scheduled_changes_post_body' is set
|
1449
|
+
if @api_client.config.client_side_validation && flag_config_scheduled_changes_post_body.nil?
|
1450
|
+
fail ArgumentError, "Missing the required parameter 'flag_config_scheduled_changes_post_body' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
953
1451
|
end
|
954
1452
|
# verify the required parameter 'feature_flag_key' is set
|
955
1453
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
956
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
1454
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
957
1455
|
end
|
958
1456
|
# verify the required parameter 'environment_key' is set
|
959
1457
|
if @api_client.config.client_side_validation && environment_key.nil?
|
960
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
1458
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
961
1459
|
end
|
962
1460
|
# resource path
|
963
|
-
local_var_path = '/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/
|
1461
|
+
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)
|
964
1462
|
|
965
1463
|
# query parameters
|
966
1464
|
query_params = {}
|
@@ -976,7 +1474,7 @@ module LaunchDarklyApi
|
|
976
1474
|
form_params = {}
|
977
1475
|
|
978
1476
|
# http body (model)
|
979
|
-
post_body = @api_client.object_to_http_body(
|
1477
|
+
post_body = @api_client.object_to_http_body(flag_config_scheduled_changes_post_body)
|
980
1478
|
auth_names = ['Token']
|
981
1479
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
982
1480
|
:header_params => header_params,
|
@@ -984,59 +1482,59 @@ module LaunchDarklyApi
|
|
984
1482
|
:form_params => form_params,
|
985
1483
|
:body => post_body,
|
986
1484
|
:auth_names => auth_names,
|
987
|
-
:return_type => '
|
1485
|
+
:return_type => 'FeatureFlagScheduledChange')
|
988
1486
|
if @api_client.config.debugging
|
989
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
1487
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#post_flag_config_scheduled_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
990
1488
|
end
|
991
1489
|
return data, status_code, headers
|
992
1490
|
end
|
993
|
-
# Review
|
1491
|
+
# Review approval request for a feature flag config
|
994
1492
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
995
1493
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
996
1494
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
997
|
-
# @param
|
998
|
-
# @param
|
1495
|
+
# @param approval_request_id The approval request ID
|
1496
|
+
# @param approval_request_review_config_body Review an approval request
|
999
1497
|
# @param [Hash] opts the optional parameters
|
1000
|
-
# @return [
|
1001
|
-
def
|
1002
|
-
data, _status_code, _headers =
|
1498
|
+
# @return [ApprovalRequests]
|
1499
|
+
def post_review_approval_request(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body, opts = {})
|
1500
|
+
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)
|
1003
1501
|
data
|
1004
1502
|
end
|
1005
1503
|
|
1006
|
-
# Review
|
1504
|
+
# Review approval request for a feature flag config
|
1007
1505
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1008
1506
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1009
1507
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1010
|
-
# @param
|
1011
|
-
# @param
|
1508
|
+
# @param approval_request_id The approval request ID
|
1509
|
+
# @param approval_request_review_config_body Review an approval request
|
1012
1510
|
# @param [Hash] opts the optional parameters
|
1013
|
-
# @return [Array<(
|
1014
|
-
def
|
1511
|
+
# @return [Array<(ApprovalRequests, Fixnum, Hash)>] ApprovalRequests data, response status code and response headers
|
1512
|
+
def post_review_approval_request_with_http_info(project_key, feature_flag_key, environment_key, approval_request_id, approval_request_review_config_body, opts = {})
|
1015
1513
|
if @api_client.config.debugging
|
1016
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1514
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_review_approval_request ...'
|
1017
1515
|
end
|
1018
1516
|
# verify the required parameter 'project_key' is set
|
1019
1517
|
if @api_client.config.client_side_validation && project_key.nil?
|
1020
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
1518
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_review_approval_request"
|
1021
1519
|
end
|
1022
1520
|
# verify the required parameter 'feature_flag_key' is set
|
1023
1521
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1024
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
1522
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_review_approval_request"
|
1025
1523
|
end
|
1026
1524
|
# verify the required parameter 'environment_key' is set
|
1027
1525
|
if @api_client.config.client_side_validation && environment_key.nil?
|
1028
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
1526
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_review_approval_request"
|
1029
1527
|
end
|
1030
|
-
# verify the required parameter '
|
1031
|
-
if @api_client.config.client_side_validation &&
|
1032
|
-
fail ArgumentError, "Missing the required parameter '
|
1528
|
+
# verify the required parameter 'approval_request_id' is set
|
1529
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
1530
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.post_review_approval_request"
|
1033
1531
|
end
|
1034
|
-
# verify the required parameter '
|
1035
|
-
if @api_client.config.client_side_validation &&
|
1036
|
-
fail ArgumentError, "Missing the required parameter '
|
1532
|
+
# verify the required parameter 'approval_request_review_config_body' is set
|
1533
|
+
if @api_client.config.client_side_validation && approval_request_review_config_body.nil?
|
1534
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_review_config_body' when calling FeatureFlagsApi.post_review_approval_request"
|
1037
1535
|
end
|
1038
1536
|
# resource path
|
1039
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{
|
1537
|
+
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)
|
1040
1538
|
|
1041
1539
|
# query parameters
|
1042
1540
|
query_params = {}
|
@@ -1052,7 +1550,7 @@ module LaunchDarklyApi
|
|
1052
1550
|
form_params = {}
|
1053
1551
|
|
1054
1552
|
# http body (model)
|
1055
|
-
post_body = @api_client.object_to_http_body(
|
1553
|
+
post_body = @api_client.object_to_http_body(approval_request_review_config_body)
|
1056
1554
|
auth_names = ['Token']
|
1057
1555
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1058
1556
|
:header_params => header_params,
|
@@ -1060,9 +1558,9 @@ module LaunchDarklyApi
|
|
1060
1558
|
:form_params => form_params,
|
1061
1559
|
:body => post_body,
|
1062
1560
|
:auth_names => auth_names,
|
1063
|
-
:return_type => '
|
1561
|
+
:return_type => 'ApprovalRequests')
|
1064
1562
|
if @api_client.config.debugging
|
1065
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
1563
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#post_review_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1066
1564
|
end
|
1067
1565
|
return data, status_code, headers
|
1068
1566
|
end
|