launchdarkly_api 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +235 -225
- data/docs/{FeatureFlagApprovalRequest.md → ApprovalRequest.md} +4 -4
- data/docs/{FeatureFlagApprovalRequestApplyConfigBody.md → ApprovalRequestApplyConfigBody.md} +1 -1
- data/docs/{FeatureFlagApprovalRequestConfigBody.md → ApprovalRequestConfigBody.md} +1 -1
- data/docs/{FeatureFlagApprovalRequestReview.md → ApprovalRequestReview.md} +2 -2
- data/docs/{FeatureFlagApprovalRequestReviewConfigBody.md → ApprovalRequestReviewConfigBody.md} +1 -1
- data/docs/{FeatureFlagApprovalRequestReviewStatus.md → ApprovalRequestReviewStatus.md} +1 -1
- data/docs/{FeatureFlagApprovalRequests.md → ApprovalRequests.md} +2 -2
- data/docs/FeatureFlagsApi.md +470 -99
- 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/UserRecordApi.md +67 -0
- data/docs/UsersApi.md +0 -59
- data/launchdarkly_api.gemspec +1 -1
- data/lib/launchdarkly_api.rb +13 -8
- data/lib/launchdarkly_api/api/access_tokens_api.rb +1 -1
- data/lib/launchdarkly_api/api/audit_log_api.rb +1 -1
- data/lib/launchdarkly_api/api/custom_roles_api.rb +1 -1
- data/lib/launchdarkly_api/api/customer_metrics_api.rb +1 -1
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +1 -1
- data/lib/launchdarkly_api/api/environments_api.rb +1 -1
- data/lib/launchdarkly_api/api/feature_flags_api.rb +594 -175
- data/lib/launchdarkly_api/api/integrations_api.rb +1 -1
- data/lib/launchdarkly_api/api/projects_api.rb +1 -1
- data/lib/launchdarkly_api/api/relay_proxy_configurations_api.rb +1 -1
- data/lib/launchdarkly_api/api/root_api.rb +1 -1
- data/lib/launchdarkly_api/api/team_members_api.rb +1 -1
- data/lib/launchdarkly_api/api/user_record_api.rb +87 -0
- data/lib/launchdarkly_api/api/user_segments_api.rb +1 -1
- data/lib/launchdarkly_api/api/user_settings_api.rb +1 -1
- data/lib/launchdarkly_api/api/users_api.rb +1 -65
- data/lib/launchdarkly_api/api/webhooks_api.rb +1 -1
- data/lib/launchdarkly_api/api_client.rb +1 -1
- data/lib/launchdarkly_api/api_error.rb +1 -1
- data/lib/launchdarkly_api/configuration.rb +1 -1
- data/lib/launchdarkly_api/models/{feature_flag_approval_request.rb → approval_request.rb} +5 -5
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_apply_config_body.rb → approval_request_apply_config_body.rb} +2 -2
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_config_body.rb → approval_request_config_body.rb} +2 -2
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_review.rb → approval_request_review.rb} +3 -3
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_review_config_body.rb → approval_request_review_config_body.rb} +2 -2
- data/lib/launchdarkly_api/models/{feature_flag_approval_request_review_status.rb → approval_request_review_status.rb} +4 -4
- data/lib/launchdarkly_api/models/{feature_flag_approval_requests.rb → approval_requests.rb} +3 -3
- data/lib/launchdarkly_api/models/audit_log_entries.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entry.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +1 -1
- data/lib/launchdarkly_api/models/clause.rb +1 -1
- data/lib/launchdarkly_api/models/client_side_availability.rb +1 -1
- data/lib/launchdarkly_api/models/copy_actions.rb +1 -1
- data/lib/launchdarkly_api/models/custom_property.rb +1 -1
- data/lib/launchdarkly_api/models/custom_property_values.rb +1 -1
- data/lib/launchdarkly_api/models/custom_role.rb +1 -1
- data/lib/launchdarkly_api/models/custom_role_body.rb +1 -1
- data/lib/launchdarkly_api/models/custom_roles.rb +1 -1
- data/lib/launchdarkly_api/models/defaults.rb +1 -1
- data/lib/launchdarkly_api/models/destination.rb +1 -1
- data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +1 -1
- data/lib/launchdarkly_api/models/destination_body.rb +1 -1
- data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +1 -1
- data/lib/launchdarkly_api/models/destination_m_particle.rb +1 -1
- data/lib/launchdarkly_api/models/destination_segment.rb +1 -1
- data/lib/launchdarkly_api/models/destinations.rb +1 -1
- data/lib/launchdarkly_api/models/environment.rb +1 -1
- data/lib/launchdarkly_api/models/environment_approval_settings.rb +1 -1
- data/lib/launchdarkly_api/models/environment_post.rb +1 -1
- data/lib/launchdarkly_api/models/evaluation_usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/events.rb +1 -1
- data/lib/launchdarkly_api/models/fallthrough.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_body.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_config.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_scheduled_change.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_scheduled_changes.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_scheduled_changes_conflicts.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_scheduled_changes_conflicts_instructions.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flags.rb +1 -1
- data/lib/launchdarkly_api/models/flag_config_scheduled_changes_conflicts_body.rb +193 -0
- data/lib/launchdarkly_api/models/flag_config_scheduled_changes_patch_body.rb +193 -0
- data/lib/launchdarkly_api/models/flag_config_scheduled_changes_post_body.rb +203 -0
- data/lib/launchdarkly_api/models/flag_list_item.rb +1 -1
- data/lib/launchdarkly_api/models/hierarchical_links.rb +1 -1
- data/lib/launchdarkly_api/models/id.rb +1 -1
- data/lib/launchdarkly_api/models/integration.rb +1 -1
- data/lib/launchdarkly_api/models/integration__links.rb +1 -1
- data/lib/launchdarkly_api/models/integration_subscription.rb +1 -1
- data/lib/launchdarkly_api/models/integration_subscription__status.rb +1 -1
- data/lib/launchdarkly_api/models/integrations.rb +1 -1
- data/lib/launchdarkly_api/models/link.rb +1 -1
- data/lib/launchdarkly_api/models/links.rb +1 -1
- data/lib/launchdarkly_api/models/ma_uby_category.rb +1 -1
- data/lib/launchdarkly_api/models/mau.rb +1 -1
- data/lib/launchdarkly_api/models/mau_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/member.rb +24 -5
- data/lib/launchdarkly_api/models/member__last_seen_metadata.rb +184 -0
- data/lib/launchdarkly_api/models/members.rb +1 -1
- data/lib/launchdarkly_api/models/members_body.rb +1 -1
- data/lib/launchdarkly_api/models/patch_comment.rb +1 -1
- data/lib/launchdarkly_api/models/patch_operation.rb +1 -1
- data/lib/launchdarkly_api/models/policy.rb +1 -1
- data/lib/launchdarkly_api/models/prerequisite.rb +1 -1
- data/lib/launchdarkly_api/models/project.rb +1 -1
- data/lib/launchdarkly_api/models/project_body.rb +1 -1
- data/lib/launchdarkly_api/models/projects.rb +1 -1
- data/lib/launchdarkly_api/models/relay_proxy_config.rb +1 -1
- data/lib/launchdarkly_api/models/relay_proxy_config_body.rb +1 -1
- data/lib/launchdarkly_api/models/relay_proxy_configs.rb +1 -1
- data/lib/launchdarkly_api/models/role.rb +1 -1
- data/lib/launchdarkly_api/models/rollout.rb +1 -1
- data/lib/launchdarkly_api/models/rule.rb +1 -1
- data/lib/launchdarkly_api/models/scheduled_changes_feature_flag_conflict.rb +1 -1
- data/lib/launchdarkly_api/models/semantic_patch_instruction.rb +1 -1
- data/lib/launchdarkly_api/models/semantic_patch_instruction_inner.rb +1 -1
- data/lib/launchdarkly_api/models/semantic_patch_operation.rb +1 -1
- data/lib/launchdarkly_api/models/site.rb +1 -1
- data/lib/launchdarkly_api/models/statement.rb +1 -1
- data/lib/launchdarkly_api/models/stream.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk_links_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/stream_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_sdk_version.rb +1 -1
- data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_series.rb +1 -1
- data/lib/launchdarkly_api/models/streams.rb +1 -1
- data/lib/launchdarkly_api/models/subscription_body.rb +1 -1
- data/lib/launchdarkly_api/models/target.rb +1 -1
- data/lib/launchdarkly_api/models/token.rb +1 -1
- data/lib/launchdarkly_api/models/token_body.rb +1 -1
- data/lib/launchdarkly_api/models/tokens.rb +1 -1
- data/lib/launchdarkly_api/models/unbounded_segment_target_changes.rb +1 -1
- data/lib/launchdarkly_api/models/unbounded_segment_targets_body.rb +1 -1
- data/lib/launchdarkly_api/models/usage.rb +1 -1
- data/lib/launchdarkly_api/models/usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/usage_links.rb +1 -1
- data/lib/launchdarkly_api/models/user.rb +1 -1
- data/lib/launchdarkly_api/models/user_flag_setting.rb +1 -1
- data/lib/launchdarkly_api/models/user_flag_settings.rb +1 -1
- data/lib/launchdarkly_api/models/user_record.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment_body.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment_rule.rb +1 -1
- data/lib/launchdarkly_api/models/user_segments.rb +1 -1
- data/lib/launchdarkly_api/models/user_settings_body.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flag.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flags.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_segment.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_on_flags_for_user.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_resource_id_for_flag.rb +1 -1
- data/lib/launchdarkly_api/models/users.rb +1 -1
- data/lib/launchdarkly_api/models/variation.rb +1 -1
- data/lib/launchdarkly_api/models/webhook.rb +1 -1
- data/lib/launchdarkly_api/models/webhook_body.rb +1 -1
- data/lib/launchdarkly_api/models/webhooks.rb +1 -1
- data/lib/launchdarkly_api/models/weighted_variation.rb +1 -1
- data/lib/launchdarkly_api/version.rb +2 -2
- data/openapi.yml +247 -69
- data/spec/api/access_tokens_api_spec.rb +1 -1
- data/spec/api/audit_log_api_spec.rb +1 -1
- data/spec/api/custom_roles_api_spec.rb +1 -1
- data/spec/api/customer_metrics_api_spec.rb +1 -1
- data/spec/api/data_export_destinations_api_spec.rb +1 -1
- data/spec/api/environments_api_spec.rb +1 -1
- data/spec/api/feature_flags_api_spec.rb +130 -46
- data/spec/api/integrations_api_spec.rb +1 -1
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/relay_proxy_configurations_api_spec.rb +1 -1
- data/spec/api/root_api_spec.rb +1 -1
- data/spec/api/team_members_api_spec.rb +1 -1
- data/spec/api/user_record_api_spec.rb +48 -0
- data/spec/api/user_segments_api_spec.rb +1 -1
- data/spec/api/user_settings_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +1 -14
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{feature_flag_approval_request_apply_config_body_spec.rb → approval_request_apply_config_body_spec.rb} +7 -7
- data/spec/models/{feature_flag_approval_request_config_body_spec.rb → approval_request_config_body_spec.rb} +7 -7
- data/spec/models/{feature_flag_approval_request_review_config_body_spec.rb → approval_request_review_config_body_spec.rb} +7 -7
- data/spec/models/{feature_flag_approval_request_review_spec.rb → approval_request_review_spec.rb} +7 -7
- data/spec/models/{feature_flag_approval_request_review_status_spec.rb → approval_request_review_status_spec.rb} +7 -7
- data/spec/models/{feature_flag_approval_request_spec.rb → approval_request_spec.rb} +7 -7
- data/spec/models/{feature_flag_approval_requests_spec.rb → approval_requests_spec.rb} +7 -7
- data/spec/models/audit_log_entries_spec.rb +1 -1
- data/spec/models/audit_log_entry_spec.rb +1 -1
- data/spec/models/audit_log_entry_target_spec.rb +1 -1
- data/spec/models/clause_spec.rb +1 -1
- data/spec/models/client_side_availability_spec.rb +1 -1
- data/spec/models/copy_actions_spec.rb +1 -1
- data/spec/models/custom_property_spec.rb +1 -1
- data/spec/models/custom_property_values_spec.rb +1 -1
- data/spec/models/custom_role_body_spec.rb +1 -1
- data/spec/models/custom_role_spec.rb +1 -1
- data/spec/models/custom_roles_spec.rb +1 -1
- data/spec/models/defaults_spec.rb +1 -1
- data/spec/models/destination_amazon_kinesis_spec.rb +1 -1
- data/spec/models/destination_body_spec.rb +1 -1
- data/spec/models/destination_google_pub_sub_spec.rb +1 -1
- data/spec/models/destination_m_particle_spec.rb +1 -1
- data/spec/models/destination_segment_spec.rb +1 -1
- data/spec/models/destination_spec.rb +1 -1
- data/spec/models/destinations_spec.rb +1 -1
- data/spec/models/environment_approval_settings_spec.rb +1 -1
- data/spec/models/environment_post_spec.rb +1 -1
- data/spec/models/environment_spec.rb +1 -1
- data/spec/models/evaluation_usage_error_spec.rb +1 -1
- data/spec/models/events_spec.rb +1 -1
- data/spec/models/fallthrough_spec.rb +1 -1
- data/spec/models/feature_flag_body_spec.rb +1 -1
- data/spec/models/feature_flag_config_spec.rb +1 -1
- data/spec/models/feature_flag_copy_body_spec.rb +1 -1
- data/spec/models/feature_flag_copy_object_spec.rb +1 -1
- data/spec/models/feature_flag_scheduled_change_spec.rb +1 -1
- data/spec/models/feature_flag_scheduled_changes_conflicts_instructions_spec.rb +1 -1
- data/spec/models/feature_flag_scheduled_changes_conflicts_spec.rb +1 -1
- data/spec/models/feature_flag_scheduled_changes_spec.rb +1 -1
- data/spec/models/feature_flag_spec.rb +1 -1
- data/spec/models/feature_flag_status_across_environments_spec.rb +1 -1
- data/spec/models/feature_flag_status_for_queried_environment_spec.rb +1 -1
- data/spec/models/feature_flag_status_spec.rb +1 -1
- data/spec/models/feature_flag_statuses_spec.rb +1 -1
- data/spec/models/feature_flags_spec.rb +1 -1
- data/spec/models/flag_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 +1 -1
- data/spec/models/hierarchical_links_spec.rb +1 -1
- data/spec/models/id_spec.rb +1 -1
- data/spec/models/integration__links_spec.rb +1 -1
- data/spec/models/integration_spec.rb +1 -1
- data/spec/models/integration_subscription__status_spec.rb +1 -1
- data/spec/models/integration_subscription_spec.rb +1 -1
- data/spec/models/integrations_spec.rb +1 -1
- data/spec/models/link_spec.rb +1 -1
- data/spec/models/links_spec.rb +1 -1
- data/spec/models/ma_uby_category_spec.rb +1 -1
- data/spec/models/mau_metadata_spec.rb +1 -1
- data/spec/models/mau_spec.rb +1 -1
- data/spec/models/member__last_seen_metadata_spec.rb +41 -0
- data/spec/models/member_spec.rb +13 -1
- data/spec/models/members_body_spec.rb +1 -1
- data/spec/models/members_spec.rb +1 -1
- data/spec/models/patch_comment_spec.rb +1 -1
- data/spec/models/patch_operation_spec.rb +1 -1
- data/spec/models/policy_spec.rb +1 -1
- data/spec/models/prerequisite_spec.rb +1 -1
- data/spec/models/project_body_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/projects_spec.rb +1 -1
- data/spec/models/relay_proxy_config_body_spec.rb +1 -1
- data/spec/models/relay_proxy_config_spec.rb +1 -1
- data/spec/models/relay_proxy_configs_spec.rb +1 -1
- data/spec/models/role_spec.rb +1 -1
- data/spec/models/rollout_spec.rb +1 -1
- data/spec/models/rule_spec.rb +1 -1
- data/spec/models/scheduled_changes_feature_flag_conflict_spec.rb +1 -1
- data/spec/models/semantic_patch_instruction_inner_spec.rb +1 -1
- data/spec/models/semantic_patch_instruction_spec.rb +1 -1
- data/spec/models/semantic_patch_operation_spec.rb +1 -1
- data/spec/models/site_spec.rb +1 -1
- data/spec/models/statement_spec.rb +1 -1
- data/spec/models/stream_by_sdk_links_metadata_spec.rb +1 -1
- data/spec/models/stream_by_sdk_links_spec.rb +1 -1
- data/spec/models/stream_by_sdk_spec.rb +1 -1
- data/spec/models/stream_links_spec.rb +1 -1
- data/spec/models/stream_sdk_version_data_spec.rb +1 -1
- data/spec/models/stream_sdk_version_spec.rb +1 -1
- data/spec/models/stream_spec.rb +1 -1
- data/spec/models/stream_usage_error_spec.rb +1 -1
- data/spec/models/stream_usage_links_spec.rb +1 -1
- data/spec/models/stream_usage_metadata_spec.rb +1 -1
- data/spec/models/stream_usage_series_spec.rb +1 -1
- data/spec/models/streams_spec.rb +1 -1
- data/spec/models/subscription_body_spec.rb +1 -1
- data/spec/models/target_spec.rb +1 -1
- data/spec/models/token_body_spec.rb +1 -1
- data/spec/models/token_spec.rb +1 -1
- data/spec/models/tokens_spec.rb +1 -1
- data/spec/models/unbounded_segment_target_changes_spec.rb +1 -1
- data/spec/models/unbounded_segment_targets_body_spec.rb +1 -1
- data/spec/models/usage_error_spec.rb +1 -1
- data/spec/models/usage_links_spec.rb +1 -1
- data/spec/models/usage_spec.rb +1 -1
- data/spec/models/user_flag_setting_spec.rb +1 -1
- data/spec/models/user_flag_settings_spec.rb +1 -1
- data/spec/models/user_record_spec.rb +1 -1
- data/spec/models/user_segment_body_spec.rb +1 -1
- data/spec/models/user_segment_rule_spec.rb +1 -1
- data/spec/models/user_segment_spec.rb +1 -1
- data/spec/models/user_segments_spec.rb +1 -1
- data/spec/models/user_settings_body_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_flag_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_flags_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_segment_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_on_flags_for_user_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_resource_id_for_flag_spec.rb +1 -1
- data/spec/models/users_spec.rb +1 -1
- data/spec/models/variation_spec.rb +1 -1
- data/spec/models/webhook_body_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/models/webhooks_spec.rb +1 -1
- data/spec/models/weighted_variation_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +161 -141
@@ -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
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# LaunchDarklyApi::UserRecordApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://app.launchdarkly.com/api/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_user**](UserRecordApi.md#get_user) | **GET** /users/{projectKey}/{environmentKey}/{userKey} | Get a user by key.
|
8
|
+
|
9
|
+
|
10
|
+
# **get_user**
|
11
|
+
> User get_user(project_key, environment_key, user_key, )
|
12
|
+
|
13
|
+
Get a user by key.
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'launchdarkly_api'
|
19
|
+
# setup authorization
|
20
|
+
LaunchDarklyApi.configure do |config|
|
21
|
+
# Configure API key authorization: Token
|
22
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
23
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
24
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = LaunchDarklyApi::UserRecordApi.new
|
28
|
+
|
29
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
30
|
+
|
31
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
32
|
+
|
33
|
+
user_key = 'user_key_example' # String | The user's key.
|
34
|
+
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Get a user by key.
|
38
|
+
result = api_instance.get_user(project_key, environment_key, user_key, )
|
39
|
+
p result
|
40
|
+
rescue LaunchDarklyApi::ApiError => e
|
41
|
+
puts "Exception when calling UserRecordApi->get_user: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
|
50
|
+
**environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
|
51
|
+
**user_key** | **String**| The user's key. |
|
52
|
+
|
53
|
+
### Return type
|
54
|
+
|
55
|
+
[**User**](User.md)
|
56
|
+
|
57
|
+
### Authorization
|
58
|
+
|
59
|
+
[Token](../README.md#Token)
|
60
|
+
|
61
|
+
### HTTP request headers
|
62
|
+
|
63
|
+
- **Content-Type**: application/json
|
64
|
+
- **Accept**: application/json
|
65
|
+
|
66
|
+
|
67
|
+
|
data/docs/UsersApi.md
CHANGED
@@ -6,7 +6,6 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**delete_user**](UsersApi.md#delete_user) | **DELETE** /users/{projectKey}/{environmentKey}/{userKey} | Delete a user by ID.
|
8
8
|
[**get_search_users**](UsersApi.md#get_search_users) | **GET** /user-search/{projectKey}/{environmentKey} | Search users in LaunchDarkly based on their last active date, or a search query. It should not be used to enumerate all users in LaunchDarkly-- use the List users API resource.
|
9
|
-
[**get_user**](UsersApi.md#get_user) | **GET** /users/{projectKey}/{environmentKey}/{userKey} | Get a user by key.
|
10
9
|
[**get_users**](UsersApi.md#get_users) | **GET** /users/{projectKey}/{environmentKey} | List all users in the environment. Includes the total count of users. In each page, there will be up to 'limit' users returned (default 20). This is useful for exporting all users in the system for further analysis. Paginated collections will include a next link containing a URL with the next set of elements in the collection.
|
11
10
|
|
12
11
|
|
@@ -132,64 +131,6 @@ Name | Type | Description | Notes
|
|
132
131
|
|
133
132
|
|
134
133
|
|
135
|
-
# **get_user**
|
136
|
-
> User get_user(project_key, environment_key, user_key, )
|
137
|
-
|
138
|
-
Get a user by key.
|
139
|
-
|
140
|
-
### Example
|
141
|
-
```ruby
|
142
|
-
# load the gem
|
143
|
-
require 'launchdarkly_api'
|
144
|
-
# setup authorization
|
145
|
-
LaunchDarklyApi.configure do |config|
|
146
|
-
# Configure API key authorization: Token
|
147
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
148
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
149
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
150
|
-
end
|
151
|
-
|
152
|
-
api_instance = LaunchDarklyApi::UsersApi.new
|
153
|
-
|
154
|
-
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
155
|
-
|
156
|
-
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
157
|
-
|
158
|
-
user_key = 'user_key_example' # String | The user's key.
|
159
|
-
|
160
|
-
|
161
|
-
begin
|
162
|
-
#Get a user by key.
|
163
|
-
result = api_instance.get_user(project_key, environment_key, user_key, )
|
164
|
-
p result
|
165
|
-
rescue LaunchDarklyApi::ApiError => e
|
166
|
-
puts "Exception when calling UsersApi->get_user: #{e}"
|
167
|
-
end
|
168
|
-
```
|
169
|
-
|
170
|
-
### Parameters
|
171
|
-
|
172
|
-
Name | Type | Description | Notes
|
173
|
-
------------- | ------------- | ------------- | -------------
|
174
|
-
**project_key** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
|
175
|
-
**environment_key** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
|
176
|
-
**user_key** | **String**| The user's key. |
|
177
|
-
|
178
|
-
### Return type
|
179
|
-
|
180
|
-
[**User**](User.md)
|
181
|
-
|
182
|
-
### Authorization
|
183
|
-
|
184
|
-
[Token](../README.md#Token)
|
185
|
-
|
186
|
-
### HTTP request headers
|
187
|
-
|
188
|
-
- **Content-Type**: application/json
|
189
|
-
- **Accept**: application/json
|
190
|
-
|
191
|
-
|
192
|
-
|
193
134
|
# **get_users**
|
194
135
|
> Users get_users(project_key, environment_key, , opts)
|
195
136
|
|
data/launchdarkly_api.gemspec
CHANGED
data/lib/launchdarkly_api.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 5.0.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.8
|
@@ -17,6 +17,13 @@ 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'
|
@@ -43,13 +50,6 @@ require 'launchdarkly_api/models/evaluation_usage_error'
|
|
43
50
|
require 'launchdarkly_api/models/events'
|
44
51
|
require 'launchdarkly_api/models/fallthrough'
|
45
52
|
require 'launchdarkly_api/models/feature_flag'
|
46
|
-
require 'launchdarkly_api/models/feature_flag_approval_request'
|
47
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_apply_config_body'
|
48
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_config_body'
|
49
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_review'
|
50
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_review_config_body'
|
51
|
-
require 'launchdarkly_api/models/feature_flag_approval_request_review_status'
|
52
|
-
require 'launchdarkly_api/models/feature_flag_approval_requests'
|
53
53
|
require 'launchdarkly_api/models/feature_flag_body'
|
54
54
|
require 'launchdarkly_api/models/feature_flag_config'
|
55
55
|
require 'launchdarkly_api/models/feature_flag_copy_body'
|
@@ -63,6 +63,9 @@ require 'launchdarkly_api/models/feature_flag_status_across_environments'
|
|
63
63
|
require 'launchdarkly_api/models/feature_flag_status_for_queried_environment'
|
64
64
|
require 'launchdarkly_api/models/feature_flag_statuses'
|
65
65
|
require 'launchdarkly_api/models/feature_flags'
|
66
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_conflicts_body'
|
67
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_patch_body'
|
68
|
+
require 'launchdarkly_api/models/flag_config_scheduled_changes_post_body'
|
66
69
|
require 'launchdarkly_api/models/flag_list_item'
|
67
70
|
require 'launchdarkly_api/models/hierarchical_links'
|
68
71
|
require 'launchdarkly_api/models/id'
|
@@ -77,6 +80,7 @@ require 'launchdarkly_api/models/mau'
|
|
77
80
|
require 'launchdarkly_api/models/mau_metadata'
|
78
81
|
require 'launchdarkly_api/models/ma_uby_category'
|
79
82
|
require 'launchdarkly_api/models/member'
|
83
|
+
require 'launchdarkly_api/models/member__last_seen_metadata'
|
80
84
|
require 'launchdarkly_api/models/members'
|
81
85
|
require 'launchdarkly_api/models/members_body'
|
82
86
|
require 'launchdarkly_api/models/patch_comment'
|
@@ -154,6 +158,7 @@ require 'launchdarkly_api/api/projects_api'
|
|
154
158
|
require 'launchdarkly_api/api/relay_proxy_configurations_api'
|
155
159
|
require 'launchdarkly_api/api/root_api'
|
156
160
|
require 'launchdarkly_api/api/team_members_api'
|
161
|
+
require 'launchdarkly_api/api/user_record_api'
|
157
162
|
require 'launchdarkly_api/api/user_segments_api'
|
158
163
|
require 'launchdarkly_api/api/user_settings_api'
|
159
164
|
require 'launchdarkly_api/api/users_api'
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 5.0.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.8
|
@@ -83,6 +83,77 @@ module LaunchDarklyApi
|
|
83
83
|
end
|
84
84
|
return data, status_code, headers
|
85
85
|
end
|
86
|
+
# Delete an approval request for a feature flag config
|
87
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
88
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
89
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
90
|
+
# @param approval_request_id The approval request ID
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [ApprovalRequestConfigBody] :approval_request_config_body Create a new approval request
|
93
|
+
# @return [nil]
|
94
|
+
def delete_approval_request(project_key, environment_key, feature_flag_key, approval_request_id, opts = {})
|
95
|
+
delete_approval_request_with_http_info(project_key, environment_key, feature_flag_key, approval_request_id, opts)
|
96
|
+
nil
|
97
|
+
end
|
98
|
+
|
99
|
+
# Delete an approval request for a feature flag config
|
100
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
101
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
102
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
103
|
+
# @param approval_request_id The approval request ID
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [ApprovalRequestConfigBody] :approval_request_config_body Create a new approval request
|
106
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
107
|
+
def delete_approval_request_with_http_info(project_key, environment_key, feature_flag_key, approval_request_id, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.delete_approval_request ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'project_key' is set
|
112
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.delete_approval_request"
|
114
|
+
end
|
115
|
+
# verify the required parameter 'environment_key' is set
|
116
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.delete_approval_request"
|
118
|
+
end
|
119
|
+
# verify the required parameter 'feature_flag_key' is set
|
120
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.delete_approval_request"
|
122
|
+
end
|
123
|
+
# verify the required parameter 'approval_request_id' is set
|
124
|
+
if @api_client.config.client_side_validation && approval_request_id.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'approval_request_id' when calling FeatureFlagsApi.delete_approval_request"
|
126
|
+
end
|
127
|
+
# resource path
|
128
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{approvalRequestId}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'approvalRequestId' + '}', approval_request_id.to_s)
|
129
|
+
|
130
|
+
# query parameters
|
131
|
+
query_params = {}
|
132
|
+
|
133
|
+
# header parameters
|
134
|
+
header_params = {}
|
135
|
+
# HTTP header 'Accept' (if needed)
|
136
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
137
|
+
# HTTP header 'Content-Type'
|
138
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
139
|
+
|
140
|
+
# form parameters
|
141
|
+
form_params = {}
|
142
|
+
|
143
|
+
# http body (model)
|
144
|
+
post_body = @api_client.object_to_http_body(opts[:'approval_request_config_body'])
|
145
|
+
auth_names = ['Token']
|
146
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
147
|
+
:header_params => header_params,
|
148
|
+
:query_params => query_params,
|
149
|
+
:form_params => form_params,
|
150
|
+
:body => post_body,
|
151
|
+
:auth_names => auth_names)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#delete_approval_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
86
157
|
# Delete a feature flag in all environments. Be careful-- only delete feature flags that are no longer being used by your application.
|
87
158
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
88
159
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
@@ -140,49 +211,47 @@ module LaunchDarklyApi
|
|
140
211
|
end
|
141
212
|
return data, status_code, headers
|
142
213
|
end
|
143
|
-
# Delete
|
214
|
+
# Delete a scheduled change on a feature flag in an environment.
|
144
215
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
145
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
146
216
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
147
|
-
# @param
|
217
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
218
|
+
# @param scheduled_change_id The id of the scheduled change
|
148
219
|
# @param [Hash] opts the optional parameters
|
149
|
-
# @option opts [FeatureFlagApprovalRequestConfigBody] :feature_flag_approval_request_config_body Create a new feature flag approval request
|
150
220
|
# @return [nil]
|
151
|
-
def
|
152
|
-
|
221
|
+
def delete_flag_config_scheduled_changes(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
222
|
+
delete_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts)
|
153
223
|
nil
|
154
224
|
end
|
155
225
|
|
156
|
-
# Delete
|
226
|
+
# Delete a scheduled change on a feature flag in an environment.
|
157
227
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
158
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
159
228
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
160
|
-
# @param
|
229
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
230
|
+
# @param scheduled_change_id The id of the scheduled change
|
161
231
|
# @param [Hash] opts the optional parameters
|
162
|
-
# @option opts [FeatureFlagApprovalRequestConfigBody] :feature_flag_approval_request_config_body Create a new feature flag approval request
|
163
232
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
164
|
-
def
|
233
|
+
def delete_flag_config_scheduled_changes_with_http_info(project_key, feature_flag_key, environment_key, scheduled_change_id, opts = {})
|
165
234
|
if @api_client.config.debugging
|
166
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
235
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.delete_flag_config_scheduled_changes ...'
|
167
236
|
end
|
168
237
|
# verify the required parameter 'project_key' is set
|
169
238
|
if @api_client.config.client_side_validation && project_key.nil?
|
170
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
171
|
-
end
|
172
|
-
# verify the required parameter 'environment_key' is set
|
173
|
-
if @api_client.config.client_side_validation && environment_key.nil?
|
174
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.delete_feature_flag_approval_request"
|
239
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
175
240
|
end
|
176
241
|
# verify the required parameter 'feature_flag_key' is set
|
177
242
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
178
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
243
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
244
|
+
end
|
245
|
+
# verify the required parameter 'environment_key' is set
|
246
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.delete_flag_config_scheduled_changes"
|
179
248
|
end
|
180
|
-
# verify the required parameter '
|
181
|
-
if @api_client.config.client_side_validation &&
|
182
|
-
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"
|
183
252
|
end
|
184
253
|
# resource path
|
185
|
-
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/
|
254
|
+
local_var_path = '/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{scheduledChangeId}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s).sub('{' + 'environmentKey' + '}', environment_key.to_s).sub('{' + 'scheduledChangeId' + '}', scheduled_change_id.to_s)
|
186
255
|
|
187
256
|
# query parameters
|
188
257
|
query_params = {}
|
@@ -198,7 +267,7 @@ module LaunchDarklyApi
|
|
198
267
|
form_params = {}
|
199
268
|
|
200
269
|
# http body (model)
|
201
|
-
post_body =
|
270
|
+
post_body = nil
|
202
271
|
auth_names = ['Token']
|
203
272
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
204
273
|
:header_params => header_params,
|
@@ -207,45 +276,51 @@ module LaunchDarklyApi
|
|
207
276
|
:body => post_body,
|
208
277
|
:auth_names => auth_names)
|
209
278
|
if @api_client.config.debugging
|
210
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
279
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#delete_flag_config_scheduled_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
280
|
end
|
212
281
|
return data, status_code, headers
|
213
282
|
end
|
214
|
-
# Get
|
283
|
+
# Get a single approval request for a feature flag config
|
215
284
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
216
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
217
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
|
218
288
|
# @param [Hash] opts the optional parameters
|
219
|
-
# @return [
|
220
|
-
def
|
221
|
-
data, _status_code, _headers =
|
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)
|
222
292
|
data
|
223
293
|
end
|
224
294
|
|
225
|
-
# Get
|
295
|
+
# Get a single approval request for a feature flag config
|
226
296
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
227
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
228
297
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
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
|
229
300
|
# @param [Hash] opts the optional parameters
|
230
|
-
# @return [Array<(
|
231
|
-
def
|
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 = {})
|
232
303
|
if @api_client.config.debugging
|
233
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
304
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_approval_request ...'
|
234
305
|
end
|
235
306
|
# verify the required parameter 'project_key' is set
|
236
307
|
if @api_client.config.client_side_validation && project_key.nil?
|
237
|
-
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"
|
309
|
+
end
|
310
|
+
# verify the required parameter 'feature_flag_key' is set
|
311
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
312
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_approval_request"
|
238
313
|
end
|
239
314
|
# verify the required parameter 'environment_key' is set
|
240
315
|
if @api_client.config.client_side_validation && environment_key.nil?
|
241
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
316
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_approval_request"
|
242
317
|
end
|
243
|
-
# verify the required parameter '
|
244
|
-
if @api_client.config.client_side_validation &&
|
245
|
-
fail ArgumentError, "Missing the required parameter '
|
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"
|
246
321
|
end
|
247
322
|
# resource path
|
248
|
-
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)
|
249
324
|
|
250
325
|
# query parameters
|
251
326
|
query_params = {}
|
@@ -269,47 +344,50 @@ module LaunchDarklyApi
|
|
269
344
|
:form_params => form_params,
|
270
345
|
:body => post_body,
|
271
346
|
:auth_names => auth_names,
|
272
|
-
:return_type => '
|
347
|
+
:return_type => 'ApprovalRequests')
|
273
348
|
if @api_client.config.debugging
|
274
|
-
@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}"
|
275
350
|
end
|
276
351
|
return data, status_code, headers
|
277
352
|
end
|
278
|
-
# Get a
|
353
|
+
# Get all approval requests for a feature flag config
|
279
354
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
280
355
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
356
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
281
357
|
# @param [Hash] opts the optional parameters
|
282
|
-
# @
|
283
|
-
|
284
|
-
|
285
|
-
data, _status_code, _headers = get_feature_flag_with_http_info(project_key, feature_flag_key, opts)
|
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)
|
286
361
|
data
|
287
362
|
end
|
288
363
|
|
289
|
-
# Get a
|
364
|
+
# Get all approval requests for a feature flag config
|
290
365
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
291
366
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
367
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
292
368
|
# @param [Hash] opts the optional parameters
|
293
|
-
# @
|
294
|
-
|
295
|
-
def get_feature_flag_with_http_info(project_key, feature_flag_key, opts = {})
|
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 = {})
|
296
371
|
if @api_client.config.debugging
|
297
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
372
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_approval_requests ...'
|
298
373
|
end
|
299
374
|
# verify the required parameter 'project_key' is set
|
300
375
|
if @api_client.config.client_side_validation && project_key.nil?
|
301
|
-
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"
|
302
377
|
end
|
303
378
|
# verify the required parameter 'feature_flag_key' is set
|
304
379
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
305
|
-
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"
|
381
|
+
end
|
382
|
+
# verify the required parameter 'environment_key' is set
|
383
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
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 = '/
|
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 = {}
|
312
|
-
query_params[:'env'] = @api_client.build_collection_param(opts[:'env'], :multi) if !opts[:'env'].nil?
|
313
391
|
|
314
392
|
# header parameters
|
315
393
|
header_params = {}
|
@@ -330,53 +408,47 @@ module LaunchDarklyApi
|
|
330
408
|
:form_params => form_params,
|
331
409
|
:body => post_body,
|
332
410
|
:auth_names => auth_names,
|
333
|
-
:return_type => '
|
411
|
+
:return_type => 'ApprovalRequests')
|
334
412
|
if @api_client.config.debugging
|
335
|
-
@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}"
|
336
414
|
end
|
337
415
|
return data, status_code, headers
|
338
416
|
end
|
339
|
-
# Get
|
417
|
+
# Get expiring user targets for feature flag
|
340
418
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
341
|
-
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
342
419
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
343
|
-
# @param
|
420
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
344
421
|
# @param [Hash] opts the optional parameters
|
345
|
-
# @return [
|
346
|
-
def
|
347
|
-
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)
|
348
425
|
data
|
349
426
|
end
|
350
427
|
|
351
|
-
# Get
|
428
|
+
# Get expiring user targets for feature flag
|
352
429
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
353
|
-
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
354
430
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
355
|
-
# @param
|
431
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
356
432
|
# @param [Hash] opts the optional parameters
|
357
|
-
# @return [Array<(
|
358
|
-
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 = {})
|
359
435
|
if @api_client.config.debugging
|
360
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
436
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_expiring_user_targets ...'
|
361
437
|
end
|
362
438
|
# verify the required parameter 'project_key' is set
|
363
439
|
if @api_client.config.client_side_validation && project_key.nil?
|
364
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
365
|
-
end
|
366
|
-
# verify the required parameter 'feature_flag_key' is set
|
367
|
-
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
368
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_feature_flag_approval_request"
|
440
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
369
441
|
end
|
370
442
|
# verify the required parameter 'environment_key' is set
|
371
443
|
if @api_client.config.client_side_validation && environment_key.nil?
|
372
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
444
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
373
445
|
end
|
374
|
-
# verify the required parameter '
|
375
|
-
if @api_client.config.client_side_validation &&
|
376
|
-
fail ArgumentError, "Missing the required parameter '
|
446
|
+
# verify the required parameter 'feature_flag_key' is set
|
447
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
448
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_expiring_user_targets"
|
377
449
|
end
|
378
450
|
# resource path
|
379
|
-
local_var_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)
|
380
452
|
|
381
453
|
# query parameters
|
382
454
|
query_params = {}
|
@@ -400,50 +472,47 @@ module LaunchDarklyApi
|
|
400
472
|
:form_params => form_params,
|
401
473
|
:body => post_body,
|
402
474
|
:auth_names => auth_names,
|
403
|
-
:return_type => '
|
475
|
+
:return_type => 'UserTargetingExpirationForFlags')
|
404
476
|
if @api_client.config.debugging
|
405
|
-
@api_client.config.logger.debug "API called: FeatureFlagsApi#
|
477
|
+
@api_client.config.logger.debug "API called: FeatureFlagsApi#get_expiring_user_targets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
406
478
|
end
|
407
479
|
return data, status_code, headers
|
408
480
|
end
|
409
|
-
# Get
|
481
|
+
# Get a single feature flag by key.
|
410
482
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
411
483
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
412
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
413
484
|
# @param [Hash] opts the optional parameters
|
414
|
-
# @
|
415
|
-
|
416
|
-
|
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)
|
417
489
|
data
|
418
490
|
end
|
419
491
|
|
420
|
-
# Get
|
492
|
+
# Get a single feature flag by key.
|
421
493
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
422
494
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
423
|
-
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
424
495
|
# @param [Hash] opts the optional parameters
|
425
|
-
# @
|
426
|
-
|
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 = {})
|
427
499
|
if @api_client.config.debugging
|
428
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
500
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.get_feature_flag ...'
|
429
501
|
end
|
430
502
|
# verify the required parameter 'project_key' is set
|
431
503
|
if @api_client.config.client_side_validation && project_key.nil?
|
432
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
504
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.get_feature_flag"
|
433
505
|
end
|
434
506
|
# verify the required parameter 'feature_flag_key' is set
|
435
507
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
436
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
437
|
-
end
|
438
|
-
# verify the required parameter 'environment_key' is set
|
439
|
-
if @api_client.config.client_side_validation && environment_key.nil?
|
440
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.get_feature_flag_approval_requests"
|
508
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.get_feature_flag"
|
441
509
|
end
|
442
510
|
# resource path
|
443
|
-
local_var_path = '/
|
511
|
+
local_var_path = '/flags/{projectKey}/{featureFlagKey}'.sub('{' + 'projectKey' + '}', project_key.to_s).sub('{' + 'featureFlagKey' + '}', feature_flag_key.to_s)
|
444
512
|
|
445
513
|
# query parameters
|
446
514
|
query_params = {}
|
515
|
+
query_params[:'env'] = @api_client.build_collection_param(opts[:'env'], :multi) if !opts[:'env'].nil?
|
447
516
|
|
448
517
|
# header parameters
|
449
518
|
header_params = {}
|
@@ -464,9 +533,9 @@ module LaunchDarklyApi
|
|
464
533
|
:form_params => form_params,
|
465
534
|
:body => post_body,
|
466
535
|
:auth_names => auth_names,
|
467
|
-
:return_type => '
|
536
|
+
:return_type => 'FeatureFlag')
|
468
537
|
if @api_client.config.debugging
|
469
|
-
@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}"
|
470
539
|
end
|
471
540
|
return data, status_code, headers
|
472
541
|
end
|
@@ -726,6 +795,210 @@ module LaunchDarklyApi
|
|
726
795
|
end
|
727
796
|
return data, status_code, headers
|
728
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
|
729
1002
|
# Update, add, or delete expiring user targets on feature flag
|
730
1003
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
731
1004
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
@@ -860,53 +1133,129 @@ module LaunchDarklyApi
|
|
860
1133
|
end
|
861
1134
|
return data, status_code, headers
|
862
1135
|
end
|
863
|
-
#
|
1136
|
+
# Updates an existing scheduled-change on a feature flag in an environment.
|
864
1137
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
865
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.
|
866
1140
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
867
|
-
# @param
|
868
|
-
# @param feature_flag_approval_request_apply_config_body Apply a new feature flag approval request
|
1141
|
+
# @param scheduled_change_id The id of the scheduled change
|
869
1142
|
# @param [Hash] opts the optional parameters
|
870
|
-
# @return [
|
871
|
-
def
|
872
|
-
data, _status_code, _headers =
|
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)
|
873
1146
|
data
|
874
1147
|
end
|
875
1148
|
|
876
|
-
#
|
1149
|
+
# Updates an existing scheduled-change on a feature flag in an environment.
|
877
1150
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
878
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.
|
879
1153
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
880
|
-
# @param
|
881
|
-
# @param feature_flag_approval_request_apply_config_body Apply a new feature flag approval request
|
1154
|
+
# @param scheduled_change_id The id of the scheduled change
|
882
1155
|
# @param [Hash] opts the optional parameters
|
883
|
-
# @return [Array<(
|
884
|
-
def
|
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 = {})
|
885
1158
|
if @api_client.config.debugging
|
886
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1159
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.patch_flag_config_scheduled_change ...'
|
887
1160
|
end
|
888
1161
|
# verify the required parameter 'project_key' is set
|
889
1162
|
if @api_client.config.client_side_validation && project_key.nil?
|
890
|
-
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.
|
1163
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
891
1164
|
end
|
892
1165
|
# verify the required parameter 'feature_flag_key' is set
|
893
1166
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
894
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.
|
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"
|
895
1172
|
end
|
896
1173
|
# verify the required parameter 'environment_key' is set
|
897
1174
|
if @api_client.config.client_side_validation && environment_key.nil?
|
898
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
1175
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.patch_flag_config_scheduled_change"
|
899
1176
|
end
|
900
|
-
# verify the required parameter '
|
901
|
-
if @api_client.config.client_side_validation &&
|
902
|
-
fail ArgumentError, "Missing the required parameter '
|
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"
|
903
1180
|
end
|
904
|
-
#
|
905
|
-
|
906
|
-
|
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
|
1213
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1214
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1215
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1216
|
+
# @param approval_request_id The approval request ID
|
1217
|
+
# @param approval_request_apply_config_body Apply an approval request
|
1218
|
+
# @param [Hash] opts the optional parameters
|
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)
|
1222
|
+
data
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
# Apply approval request for a feature flag config
|
1226
|
+
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1227
|
+
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1228
|
+
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1229
|
+
# @param approval_request_id The approval request ID
|
1230
|
+
# @param approval_request_apply_config_body Apply an approval request
|
1231
|
+
# @param [Hash] opts the optional parameters
|
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 = {})
|
1234
|
+
if @api_client.config.debugging
|
1235
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_apply_approval_request ...'
|
1236
|
+
end
|
1237
|
+
# verify the required parameter 'project_key' is set
|
1238
|
+
if @api_client.config.client_side_validation && project_key.nil?
|
1239
|
+
fail ArgumentError, "Missing the required parameter 'project_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
1240
|
+
end
|
1241
|
+
# verify the required parameter 'feature_flag_key' is set
|
1242
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1243
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
1244
|
+
end
|
1245
|
+
# verify the required parameter 'environment_key' is set
|
1246
|
+
if @api_client.config.client_side_validation && environment_key.nil?
|
1247
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_apply_approval_request"
|
1248
|
+
end
|
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"
|
1252
|
+
end
|
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"
|
907
1256
|
end
|
908
1257
|
# resource path
|
909
|
-
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)
|
910
1259
|
|
911
1260
|
# query parameters
|
912
1261
|
query_params = {}
|
@@ -922,7 +1271,7 @@ module LaunchDarklyApi
|
|
922
1271
|
form_params = {}
|
923
1272
|
|
924
1273
|
# http body (model)
|
925
|
-
post_body = @api_client.object_to_http_body(
|
1274
|
+
post_body = @api_client.object_to_http_body(approval_request_apply_config_body)
|
926
1275
|
auth_names = ['Token']
|
927
1276
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
928
1277
|
:header_params => header_params,
|
@@ -930,9 +1279,81 @@ module LaunchDarklyApi
|
|
930
1279
|
:form_params => form_params,
|
931
1280
|
:body => post_body,
|
932
1281
|
:auth_names => auth_names,
|
933
|
-
:return_type => '
|
1282
|
+
:return_type => 'ApprovalRequests')
|
934
1283
|
if @api_client.config.debugging
|
935
|
-
@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}"
|
936
1357
|
end
|
937
1358
|
return data, status_code, headers
|
938
1359
|
end
|
@@ -997,49 +1418,47 @@ module LaunchDarklyApi
|
|
997
1418
|
end
|
998
1419
|
return data, status_code, headers
|
999
1420
|
end
|
1000
|
-
#
|
1421
|
+
# Creates a new scheduled change for a feature flag.
|
1001
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.
|
1002
1424
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1003
1425
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1004
|
-
# @param feature_flag_approval_request_id The feature flag approval request ID
|
1005
1426
|
# @param [Hash] opts the optional parameters
|
1006
|
-
# @
|
1007
|
-
|
1008
|
-
|
1009
|
-
data, _status_code, _headers = post_feature_flag_approval_request_with_http_info(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, opts)
|
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)
|
1010
1430
|
data
|
1011
1431
|
end
|
1012
1432
|
|
1013
|
-
#
|
1433
|
+
# Creates a new scheduled change for a feature flag.
|
1014
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.
|
1015
1436
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1016
1437
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1017
|
-
# @param feature_flag_approval_request_id The feature flag approval request ID
|
1018
1438
|
# @param [Hash] opts the optional parameters
|
1019
|
-
# @
|
1020
|
-
|
1021
|
-
def post_feature_flag_approval_request_with_http_info(project_key, feature_flag_key, environment_key, feature_flag_approval_request_id, opts = {})
|
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 = {})
|
1022
1441
|
if @api_client.config.debugging
|
1023
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1442
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_flag_config_scheduled_changes ...'
|
1024
1443
|
end
|
1025
1444
|
# verify the required parameter 'project_key' is set
|
1026
1445
|
if @api_client.config.client_side_validation && project_key.nil?
|
1027
|
-
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"
|
1028
1451
|
end
|
1029
1452
|
# verify the required parameter 'feature_flag_key' is set
|
1030
1453
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1031
|
-
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"
|
1032
1455
|
end
|
1033
1456
|
# verify the required parameter 'environment_key' is set
|
1034
1457
|
if @api_client.config.client_side_validation && environment_key.nil?
|
1035
|
-
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.
|
1036
|
-
end
|
1037
|
-
# verify the required parameter 'feature_flag_approval_request_id' is set
|
1038
|
-
if @api_client.config.client_side_validation && feature_flag_approval_request_id.nil?
|
1039
|
-
fail ArgumentError, "Missing the required parameter 'feature_flag_approval_request_id' when calling FeatureFlagsApi.post_feature_flag_approval_request"
|
1458
|
+
fail ArgumentError, "Missing the required parameter 'environment_key' when calling FeatureFlagsApi.post_flag_config_scheduled_changes"
|
1040
1459
|
end
|
1041
1460
|
# resource path
|
1042
|
-
local_var_path = '/projects/{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)
|
1043
1462
|
|
1044
1463
|
# query parameters
|
1045
1464
|
query_params = {}
|
@@ -1055,7 +1474,7 @@ module LaunchDarklyApi
|
|
1055
1474
|
form_params = {}
|
1056
1475
|
|
1057
1476
|
# http body (model)
|
1058
|
-
post_body = @api_client.object_to_http_body(
|
1477
|
+
post_body = @api_client.object_to_http_body(flag_config_scheduled_changes_post_body)
|
1059
1478
|
auth_names = ['Token']
|
1060
1479
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1061
1480
|
:header_params => header_params,
|
@@ -1063,59 +1482,59 @@ module LaunchDarklyApi
|
|
1063
1482
|
:form_params => form_params,
|
1064
1483
|
:body => post_body,
|
1065
1484
|
:auth_names => auth_names,
|
1066
|
-
:return_type => '
|
1485
|
+
:return_type => 'FeatureFlagScheduledChange')
|
1067
1486
|
if @api_client.config.debugging
|
1068
|
-
@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}"
|
1069
1488
|
end
|
1070
1489
|
return data, status_code, headers
|
1071
1490
|
end
|
1072
|
-
# Review approval request for a feature flag
|
1491
|
+
# Review approval request for a feature flag config
|
1073
1492
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1074
1493
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1075
1494
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1076
|
-
# @param
|
1077
|
-
# @param
|
1495
|
+
# @param approval_request_id The approval request ID
|
1496
|
+
# @param approval_request_review_config_body Review an approval request
|
1078
1497
|
# @param [Hash] opts the optional parameters
|
1079
|
-
# @return [
|
1080
|
-
def
|
1081
|
-
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)
|
1082
1501
|
data
|
1083
1502
|
end
|
1084
1503
|
|
1085
|
-
# Review approval request for a feature flag
|
1504
|
+
# Review approval request for a feature flag config
|
1086
1505
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
1087
1506
|
# @param feature_flag_key The feature flag's key. The key identifies the flag in your code.
|
1088
1507
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
1089
|
-
# @param
|
1090
|
-
# @param
|
1508
|
+
# @param approval_request_id The approval request ID
|
1509
|
+
# @param approval_request_review_config_body Review an approval request
|
1091
1510
|
# @param [Hash] opts the optional parameters
|
1092
|
-
# @return [Array<(
|
1093
|
-
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 = {})
|
1094
1513
|
if @api_client.config.debugging
|
1095
|
-
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.
|
1514
|
+
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.post_review_approval_request ...'
|
1096
1515
|
end
|
1097
1516
|
# verify the required parameter 'project_key' is set
|
1098
1517
|
if @api_client.config.client_side_validation && project_key.nil?
|
1099
|
-
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"
|
1100
1519
|
end
|
1101
1520
|
# verify the required parameter 'feature_flag_key' is set
|
1102
1521
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1103
|
-
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"
|
1104
1523
|
end
|
1105
1524
|
# verify the required parameter 'environment_key' is set
|
1106
1525
|
if @api_client.config.client_side_validation && environment_key.nil?
|
1107
|
-
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"
|
1108
1527
|
end
|
1109
|
-
# verify the required parameter '
|
1110
|
-
if @api_client.config.client_side_validation &&
|
1111
|
-
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"
|
1112
1531
|
end
|
1113
|
-
# verify the required parameter '
|
1114
|
-
if @api_client.config.client_side_validation &&
|
1115
|
-
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"
|
1116
1535
|
end
|
1117
1536
|
# resource path
|
1118
|
-
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)
|
1119
1538
|
|
1120
1539
|
# query parameters
|
1121
1540
|
query_params = {}
|
@@ -1131,7 +1550,7 @@ module LaunchDarklyApi
|
|
1131
1550
|
form_params = {}
|
1132
1551
|
|
1133
1552
|
# http body (model)
|
1134
|
-
post_body = @api_client.object_to_http_body(
|
1553
|
+
post_body = @api_client.object_to_http_body(approval_request_review_config_body)
|
1135
1554
|
auth_names = ['Token']
|
1136
1555
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1137
1556
|
:header_params => header_params,
|
@@ -1139,9 +1558,9 @@ module LaunchDarklyApi
|
|
1139
1558
|
:form_params => form_params,
|
1140
1559
|
:body => post_body,
|
1141
1560
|
:auth_names => auth_names,
|
1142
|
-
:return_type => '
|
1561
|
+
:return_type => 'ApprovalRequests')
|
1143
1562
|
if @api_client.config.debugging
|
1144
|
-
@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}"
|
1145
1564
|
end
|
1146
1565
|
return data, status_code, headers
|
1147
1566
|
end
|