Skip to content

Files

Latest commit

e44d477 · Apr 4, 2025

History

History
38 lines (32 loc) · 2.02 KB

ApprovalSettings.md

File metadata and controls

38 lines (32 loc) · 2.02 KB

LaunchDarklyApi::ApprovalSettings

Properties

Name Type Description Notes
required Boolean If approvals are required for this environment
bypass_approvals_for_pending_changes Boolean Whether to skip approvals for pending changes
min_num_approvals Integer Sets the amount of approvals required before a member can apply a change. The minimum is one and the maximum is five.
can_review_own_request Boolean Allow someone who makes an approval request to apply their own change
can_apply_declined_changes Boolean Allow applying the change as long as at least one person has approved
auto_apply_approved_changes Boolean Automatically apply changes that have been approved by all reviewers. This field is only applicable for approval services other than LaunchDarkly. [optional]
service_kind String Which service to use for managing approvals
service_config Hash<String, Object>
required_approval_tags Array<String> Require approval only on flags with the provided tags. Otherwise all flags will require approval.
service_kind_configuration_id String Optional field for integration configuration ID of a custom approval integration. This is an Enterprise-only feature. [optional]
resource_kind String The kind of resource for which the approval settings apply, for example, flag or segment [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::ApprovalSettings.new(
  required: true,
  bypass_approvals_for_pending_changes: false,
  min_num_approvals: 1,
  can_review_own_request: false,
  can_apply_declined_changes: true,
  auto_apply_approved_changes: true,
  service_kind: launchdarkly,
  service_config: {},
  required_approval_tags: [&quot;require-approval&quot;],
  service_kind_configuration_id: 1ef45a85-218f-4428-a8b2-a97e5f56c258,
  resource_kind: null
)