Skip to content

Commit aa44f2a

Browse files
jrdescartesJohnVillalovos
authored andcommitted
chore: update attributes for create and update projects
1 parent 122988c commit aa44f2a

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

gitlab/v4/objects/projects.py

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ class ProjectManager(CRUDMixin, RESTManager):
667667
"name",
668668
"path",
669669
"allow_merge_on_skipped_pipeline",
670+
"only_allow_merge_if_all_status_checks_passed",
670671
"analytics_access_level",
671672
"approvals_before_merge",
672673
"auto_cancel_pending_pipelines",
@@ -680,6 +681,7 @@ class ProjectManager(CRUDMixin, RESTManager):
680681
"builds_access_level",
681682
"ci_config_path",
682683
"container_expiration_policy_attributes",
684+
"container_registry_access_level",
683685
"container_registry_enabled",
684686
"default_branch",
685687
"description",
@@ -708,11 +710,17 @@ class ProjectManager(CRUDMixin, RESTManager):
708710
"requirements_access_level",
709711
"printing_merge_request_link_enabled",
710712
"public_builds",
713+
"releases_access_level",
714+
"environments_access_level",
715+
"feature_flags_access_level",
716+
"infrastructure_access_level",
717+
"monitor_access_level",
711718
"remove_source_branch_after_merge",
712719
"repository_access_level",
713720
"repository_storage",
714721
"request_access_enabled",
715722
"resolve_outdated_diff_discussions",
723+
"security_and_compliance_access_level",
716724
"shared_runners_enabled",
717725
"show_default_award_emojis",
718726
"snippets_access_level",
@@ -733,6 +741,7 @@ class ProjectManager(CRUDMixin, RESTManager):
733741
_update_attrs = RequiredOptional(
734742
optional=(
735743
"allow_merge_on_skipped_pipeline",
744+
"only_allow_merge_if_all_status_checks_passed",
736745
"analytics_access_level",
737746
"approvals_before_merge",
738747
"auto_cancel_pending_pipelines",
@@ -747,22 +756,31 @@ class ProjectManager(CRUDMixin, RESTManager):
747756
"ci_config_path",
748757
"ci_default_git_depth",
749758
"ci_forward_deployment_enabled",
759+
"ci_allow_fork_pipelines_to_run_in_parent_project",
760+
"ci_separated_caches",
750761
"container_expiration_policy_attributes",
762+
"container_registry_access_level",
751763
"container_registry_enabled",
752764
"default_branch",
753765
"description",
754766
"emails_disabled",
767+
"enforce_auth_checks_on_uploads",
755768
"external_authorization_classification_label",
756769
"forking_access_level",
757770
"import_url",
758771
"issues_access_level",
759772
"issues_enabled",
773+
"issues_template",
760774
"jobs_enabled",
775+
"keep_latest_artifact",
761776
"lfs_enabled",
777+
"merge_commit_template",
762778
"merge_method",
763779
"merge_pipelines_enabled",
764780
"merge_requests_access_level",
765781
"merge_requests_enabled",
782+
"merge_requests_template",
783+
"merge_trains_enabled",
766784
"mirror_overwrites_diverged_branches",
767785
"mirror_trigger_builds",
768786
"mirror_user_id",
@@ -779,25 +797,31 @@ class ProjectManager(CRUDMixin, RESTManager):
779797
"restrict_user_defined_variables",
780798
"path",
781799
"public_builds",
800+
"releases_access_level",
801+
"environments_access_level",
802+
"feature_flags_access_level",
803+
"infrastructure_access_level",
804+
"monitor_access_level",
782805
"remove_source_branch_after_merge",
783806
"repository_access_level",
784807
"repository_storage",
785808
"request_access_enabled",
786809
"resolve_outdated_diff_discussions",
810+
"security_and_compliance_access_level",
787811
"service_desk_enabled",
788812
"shared_runners_enabled",
789813
"show_default_award_emojis",
790814
"snippets_access_level",
791815
"snippets_enabled",
816+
"issue_branch_template",
817+
"squash_commit_template",
792818
"squash_option",
793819
"suggestion_commit_message",
794820
"tag_list",
795821
"topics",
796822
"visibility",
797823
"wiki_access_level",
798824
"wiki_enabled",
799-
"issues_template",
800-
"merge_requests_template",
801825
),
802826
)
803827
_list_filters = (

0 commit comments

Comments
 (0)