| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -564,119 +564,137 @@ def artifact( | |||
| 564 | 564 | class ProjectManager(CRUDMixin, RESTManager): | |
| 565 | 565 | _path = "/projects" | |
| 566 | 566 | _obj_cls = Project | |
| 567 | + # Please keep these _create_attrs in same order as they are at: | ||
| 568 | + # https://docs.gitlab.com/ee/api/projects.html#create-project | ||
| 567 | 569 | _create_attrs = RequiredOptional( | |
| 568 | 570 | optional=( | |
| 569 | 571 | "name", | |
| 570 | 572 | "path", | |
| 571 | - "namespace_id", | ||
| 573 | + "allow_merge_on_skipped_pipeline", | ||
| 574 | + "analytics_access_level", | ||
| 575 | + "approvals_before_merge", | ||
| 576 | + "auto_cancel_pending_pipelines", | ||
| 577 | + "auto_devops_deploy_strategy", | ||
| 578 | + "auto_devops_enabled", | ||
| 579 | + "autoclose_referenced_issues", | ||
| 580 | + "avatar", | ||
| 581 | + "build_coverage_regex", | ||
| 582 | + "build_git_strategy", | ||
| 583 | + "build_timeout", | ||
| 584 | + "builds_access_level", | ||
| 585 | + "ci_config_path", | ||
| 586 | + "container_expiration_policy_attributes", | ||
| 587 | + "container_registry_enabled", | ||
| 572 | 588 | "default_branch", | |
| 573 | 589 | "description", | |
| 590 | + "emails_disabled", | ||
| 591 | + "external_authorization_classification_label", | ||
| 592 | + "forking_access_level", | ||
| 593 | + "group_with_project_templates_id", | ||
| 594 | + "import_url", | ||
| 595 | + "initialize_with_readme", | ||
| 596 | + "issues_access_level", | ||
| 574 | 597 | "issues_enabled", | |
| 575 | - "merge_requests_enabled", | ||
| 576 | 598 | "jobs_enabled", | |
| 577 | - "wiki_enabled", | ||
| 578 | - "snippets_enabled", | ||
| 579 | - "issues_access_level", | ||
| 580 | - "repository_access_level", | ||
| 599 | + "lfs_enabled", | ||
| 600 | + "merge_method", | ||
| 581 | 601 | "merge_requests_access_level", | |
| 582 | - "forking_access_level", | ||
| 583 | - "builds_access_level", | ||
| 584 | - "wiki_access_level", | ||
| 585 | - "snippets_access_level", | ||
| 602 | + "merge_requests_enabled", | ||
| 603 | + "mirror_trigger_builds", | ||
| 604 | + "mirror", | ||
| 605 | + "namespace_id", | ||
| 606 | + "operations_access_level", | ||
| 607 | + "only_allow_merge_if_all_discussions_are_resolved", | ||
| 608 | + "only_allow_merge_if_pipeline_succeeds", | ||
| 609 | + "packages_enabled", | ||
| 586 | 610 | "pages_access_level", | |
| 587 | - "emails_disabled", | ||
| 588 | - "resolve_outdated_diff_discussions", | ||
| 589 | - "container_registry_enabled", | ||
| 590 | - "container_expiration_policy_attributes", | ||
| 591 | - "shared_runners_enabled", | ||
| 592 | - "visibility", | ||
| 593 | - "import_url", | ||
| 611 | + "requirements_access_level", | ||
| 612 | + "printing_merge_request_link_enabled", | ||
| 594 | 613 | "public_builds", | |
| 595 | - "only_allow_merge_if_pipeline_succeeds", | ||
| 596 | - "only_allow_merge_if_all_discussions_are_resolved", | ||
| 597 | - "merge_method", | ||
| 598 | - "autoclose_referenced_issues", | ||
| 599 | 614 | "remove_source_branch_after_merge", | |
| 600 | - "lfs_enabled", | ||
| 615 | + "repository_access_level", | ||
| 616 | + "repository_storage", | ||
| 601 | 617 | "request_access_enabled", | |
| 618 | + "resolve_outdated_diff_discussions", | ||
| 619 | + "shared_runners_enabled", | ||
| 620 | + "show_default_award_emojis", | ||
| 621 | + "snippets_access_level", | ||
| 622 | + "snippets_enabled", | ||
| 602 | 623 | "tag_list", | |
| 603 | - "avatar", | ||
| 604 | - "printing_merge_request_link_enabled", | ||
| 605 | - "build_git_strategy", | ||
| 606 | - "build_timeout", | ||
| 607 | - "auto_cancel_pending_pipelines", | ||
| 608 | - "build_coverage_regex", | ||
| 609 | - "ci_config_path", | ||
| 610 | - "auto_devops_enabled", | ||
| 611 | - "auto_devops_deploy_strategy", | ||
| 612 | - "repository_storage", | ||
| 613 | - "approvals_before_merge", | ||
| 614 | - "external_authorization_classification_label", | ||
| 615 | - "mirror", | ||
| 616 | - "mirror_trigger_builds", | ||
| 617 | - "initialize_with_readme", | ||
| 618 | 624 | "template_name", | |
| 619 | 625 | "template_project_id", | |
| 620 | 626 | "use_custom_template", | |
| 621 | - "group_with_project_templates_id", | ||
| 622 | - "packages_enabled", | ||
| 627 | + "visibility", | ||
| 628 | + "wiki_access_level", | ||
| 629 | + "wiki_enabled", | ||
| 623 | 630 | ), | |
| 624 | 631 | ) | |
| 632 | + # Please keep these _update_attrs in same order as they are at: | ||
| 633 | + # https://docs.gitlab.com/ee/api/projects.html#edit-project | ||
| 625 | 634 | _update_attrs = RequiredOptional( | |
| 626 | 635 | optional=( | |
| 627 | - "name", | ||
| 628 | - "path", | ||
| 629 | - "default_branch", | ||
| 630 | - "description", | ||
| 631 | - "issues_enabled", | ||
| 632 | - "merge_requests_enabled", | ||
| 633 | - "jobs_enabled", | ||
| 634 | - "wiki_enabled", | ||
| 635 | - "snippets_enabled", | ||
| 636 | - "issues_access_level", | ||
| 637 | - "repository_access_level", | ||
| 638 | - "merge_requests_access_level", | ||
| 639 | - "forking_access_level", | ||
| 640 | - "builds_access_level", | ||
| 641 | - "wiki_access_level", | ||
| 642 | - "snippets_access_level", | ||
| 643 | - "pages_access_level", | ||
| 644 | - "emails_disabled", | ||
| 645 | - "resolve_outdated_diff_discussions", | ||
| 646 | - "container_registry_enabled", | ||
| 647 | - "container_expiration_policy_attributes", | ||
| 648 | - "shared_runners_enabled", | ||
| 649 | - "visibility", | ||
| 650 | - "import_url", | ||
| 651 | - "public_builds", | ||
| 652 | - "only_allow_merge_if_pipeline_succeeds", | ||
| 653 | - "only_allow_merge_if_all_discussions_are_resolved", | ||
| 654 | - "merge_method", | ||
| 636 | + "allow_merge_on_skipped_pipeline", | ||
| 637 | + "analytics_access_level", | ||
| 638 | + "approvals_before_merge", | ||
| 639 | + "auto_cancel_pending_pipelines", | ||
| 640 | + "auto_devops_deploy_strategy", | ||
| 641 | + "auto_devops_enabled", | ||
| 655 | 642 | "autoclose_referenced_issues", | |
| 656 | - "suggestion_commit_message", | ||
| 657 | - "remove_source_branch_after_merge", | ||
| 658 | - "lfs_enabled", | ||
| 659 | - "request_access_enabled", | ||
| 660 | - "tag_list", | ||
| 661 | 643 | "avatar", | |
| 644 | + "build_coverage_regex", | ||
| 662 | 645 | "build_git_strategy", | |
| 663 | 646 | "build_timeout", | |
| 664 | - "auto_cancel_pending_pipelines", | ||
| 665 | - "build_coverage_regex", | ||
| 647 | + "builds_access_level", | ||
| 666 | 648 | "ci_config_path", | |
| 667 | 649 | "ci_default_git_depth", | |
| 668 | - "auto_devops_enabled", | ||
| 669 | - "auto_devops_deploy_strategy", | ||
| 670 | - "repository_storage", | ||
| 671 | - "approvals_before_merge", | ||
| 650 | + "ci_forward_deployment_enabled", | ||
| 651 | + "container_expiration_policy_attributes", | ||
| 652 | + "container_registry_enabled", | ||
| 653 | + "default_branch", | ||
| 654 | + "description", | ||
| 655 | + "emails_disabled", | ||
| 672 | 656 | "external_authorization_classification_label", | |
| 673 | - "mirror", | ||
| 674 | - "mirror_user_id", | ||
| 657 | + "forking_access_level", | ||
| 658 | + "import_url", | ||
| 659 | + "issues_access_level", | ||
| 660 | + "issues_enabled", | ||
| 661 | + "jobs_enabled", | ||
| 662 | + "lfs_enabled", | ||
| 663 | + "merge_method", | ||
| 664 | + "merge_requests_access_level", | ||
| 665 | + "merge_requests_enabled", | ||
| 666 | + "mirror_overwrites_diverged_branches", | ||
| 675 | 667 | "mirror_trigger_builds", | |
| 668 | + "mirror_user_id", | ||
| 669 | + "mirror", | ||
| 670 | + "name", | ||
| 671 | + "operations_access_level", | ||
| 672 | + "only_allow_merge_if_all_discussions_are_resolved", | ||
| 673 | + "only_allow_merge_if_pipeline_succeeds", | ||
| 676 | 674 | "only_mirror_protected_branches", | |
| 677 | - "mirror_overwrites_diverged_branches", | ||
| 678 | 675 | "packages_enabled", | |
| 676 | + "pages_access_level", | ||
| 677 | + "requirements_access_level", | ||
| 678 | + "restrict_user_defined_variables", | ||
| 679 | + "path", | ||
| 680 | + "public_builds", | ||
| 681 | + "remove_source_branch_after_merge", | ||
| 682 | + "repository_access_level", | ||
| 683 | + "repository_storage", | ||
| 684 | + "request_access_enabled", | ||
| 685 | + "resolve_outdated_diff_discussions", | ||
| 679 | 686 | "service_desk_enabled", | |
| 687 | + "shared_runners_enabled", | ||
| 688 | + "show_default_award_emojis", | ||
| 689 | + "snippets_access_level", | ||
| 690 | + "snippets_enabled", | ||
| 691 | + "suggestion_commit_message", | ||
| 692 | + "tag_list", | ||
| 693 | + "visibility", | ||
| 694 | + "wiki_access_level", | ||
| 695 | + "wiki_enabled", | ||
| 696 | + "issues_template", | ||
| 697 | + "merge_requests_template", | ||
| 680 | 698 | ), | |
| 681 | 699 | ) | |
| 682 | 700 | _list_filters = ( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments