diff options
Diffstat (limited to 'lib/api/settings.rb')
-rw-r--r-- | lib/api/settings.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/api/settings.rb b/lib/api/settings.rb index b12ca48829b..e2dc78fe84a 100644 --- a/lib/api/settings.rb +++ b/lib/api/settings.rb @@ -49,6 +49,16 @@ module API optional :default_ci_config_path, type: String, desc: 'The instance default CI/CD configuration file and path for new projects' optional :default_project_creation, type: Integer, values: ::Gitlab::Access.project_creation_values, desc: 'Determine if developers can create projects in the group' optional :default_branch_protection, type: Integer, values: ::Gitlab::Access.protection_values, desc: 'Determine if developers can push to default branch' + optional :default_branch_protection_defaults, type: Hash, desc: 'Determine if developers can push to default branch' do + optional :allowed_to_push, type: Array, desc: 'An array of access levels allowed to push' do + requires :access_level, type: Integer, values: [::Gitlab::Access::DEVELOPER, ::Gitlab::Access::MAINTAINER], desc: 'A valid access level' + end + optional :allow_force_push, type: Boolean, desc: 'Allow force push for all users with push access.' + optional :allowed_to_merge, type: Array, desc: 'An array of access levels allowed to merge' do + requires :access_level, type: Integer, values: [::Gitlab::Access::DEVELOPER, ::Gitlab::Access::MAINTAINER], desc: 'A valid access level' + end + optional :developer_can_initial_push, type: Boolean, desc: 'Allow developers to initial push' + end optional :default_group_visibility, type: String, values: Gitlab::VisibilityLevel.string_values, desc: 'The default group visibility' optional :default_project_visibility, type: String, values: Gitlab::VisibilityLevel.string_values, desc: 'The default project visibility' optional :default_projects_limit, type: Integer, desc: 'The maximum number of personal projects' @@ -105,6 +115,8 @@ module API optional :max_attachment_size, type: Integer, desc: 'Maximum attachment size in MB' optional :max_export_size, type: Integer, desc: 'Maximum export size in MB' optional :max_import_size, type: Integer, desc: 'Maximum import size in MB' + optional :max_import_remote_file_size, type: Integer, desc: 'Maximum remote file size in MB for imports from external object storages' + optional :max_decompressed_archive_size, type: Integer, desc: 'Maximum decompressed size in MB' optional :max_pages_size, type: Integer, desc: 'Maximum size of pages in MB' optional :max_pages_custom_domains_per_project, type: Integer, desc: 'Maximum number of GitLab Pages custom domains per project' optional :max_terraform_state_size_bytes, type: Integer, desc: "Maximum size in bytes of the Terraform state file. Set this to 0 for unlimited file size." @@ -200,6 +212,7 @@ module API optional :jira_connect_application_key, type: String, desc: "Application ID of the OAuth application that should be used to authenticate with the GitLab for Jira Cloud app" optional :jira_connect_proxy_url, type: String, desc: "URL of the GitLab instance that should be used as a proxy for the GitLab for Jira Cloud app" optional :bulk_import_enabled, type: Boolean, desc: 'Enable migrating GitLab groups and projects by direct transfer' + optional :bulk_import_max_download_file, type: Integer, desc: 'Maximum download file size in MB when importing from source GitLab instances by direct transfer' optional :allow_runner_registration_token, type: Boolean, desc: 'Allow registering runners using a registration token' optional :ci_max_includes, type: Integer, desc: 'Maximum number of includes per pipeline' optional :security_policy_global_group_approvers_enabled, type: Boolean, desc: 'Query scan result policy approval groups globally' @@ -210,6 +223,7 @@ module API requires :slack_app_signing_secret, type: String, desc: 'The signing secret of the GitLab for Slack app. Used for authenticating API requests from the app' requires :slack_app_verification_token, type: String, desc: 'The verification token of the GitLab for Slack app. This method of authentication is deprecated by Slack and used only for authenticating slash commands from the app' end + optional :namespace_aggregation_schedule_lease_duration_in_seconds, type: Integer, desc: 'Maximum duration (in seconds) between refreshes of namespace statistics (Default: 300)' Gitlab::SSHPublicKey.supported_types.each do |type| optional :"#{type}_key_restriction", |