| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + from gitlab import types | ||
| 1 | 2 | from gitlab.base import RequiredOptional, RESTManager, RESTObject | |
| 2 | 3 | from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin | |
| 3 | 4 | ||
@@ -39,6 +40,7 @@ class GroupDeployTokenManager(ListMixin, CreateMixin, DeleteMixin, RESTManager): | |||
| 39 | 40 | "username", | |
| 40 | 41 | ), | |
| 41 | 42 | ) | |
| 43 | + _types = {"scopes": types.ListAttribute} | ||
| 42 | 44 | ||
| 43 | 45 | ||
| 44 | 46 | class ProjectDeployToken(ObjectDeleteMixin, RESTObject): | |
@@ -59,3 +61,4 @@ class ProjectDeployTokenManager(ListMixin, CreateMixin, DeleteMixin, RESTManager | |||
| 59 | 61 | "username", | |
| 60 | 62 | ), | |
| 61 | 63 | ) | |
| 64 | + _types = {"scopes": types.ListAttribute} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -244,7 +244,7 @@ class GroupManager(CRUDMixin, RESTManager): | |||
| 244 | 244 | "default_branch_protection", | |
| 245 | 245 | ), | |
| 246 | 246 | ) | |
| 247 | - _types = {"avatar": types.ImageAttribute} | ||
| 247 | + _types = {"avatar": types.ImageAttribute, "skip_groups": types.ListAttribute} | ||
| 248 | 248 | ||
| 249 | 249 | @exc.on_http_error(exc.GitlabImportError) | |
| 250 | 250 | def import_group(self, file, path, name, parent_id=None, **kwargs): | |
@@ -293,3 +293,4 @@ class GroupSubgroupManager(ListMixin, RESTManager): | |||
| 293 | 293 | "owned", | |
| 294 | 294 | "with_custom_attributes", | |
| 295 | 295 | ) | |
| 296 | + _types = {"skip_groups": types.ListAttribute} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ class IssueManager(RetrieveMixin, RESTManager): | |||
| 62 | 62 | "updated_after", | |
| 63 | 63 | "updated_before", | |
| 64 | 64 | ) | |
| 65 | - _types = {"labels": types.ListAttribute} | ||
| 65 | + _types = {"iids": types.ListAttribute, "labels": types.ListAttribute} | ||
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | 68 | class GroupIssue(RESTObject): | |
@@ -89,7 +89,7 @@ class GroupIssueManager(ListMixin, RESTManager): | |||
| 89 | 89 | "updated_after", | |
| 90 | 90 | "updated_before", | |
| 91 | 91 | ) | |
| 92 | - _types = {"labels": types.ListAttribute} | ||
| 92 | + _types = {"iids": types.ListAttribute, "labels": types.ListAttribute} | ||
| 93 | 93 | ||
| 94 | 94 | ||
| 95 | 95 | class ProjectIssue( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - from gitlab import cli | ||
| 1 | + from gitlab import cli, types | ||
| 2 | 2 | from gitlab import exceptions as exc | |
| 3 | 3 | from gitlab.base import RequiredOptional, RESTManager, RESTObject | |
| 4 | 4 | from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin | |
@@ -26,6 +26,7 @@ class GroupMemberManager(CRUDMixin, RESTManager): | |||
| 26 | 26 | _update_attrs = RequiredOptional( | |
| 27 | 27 | required=("access_level",), optional=("expires_at",) | |
| 28 | 28 | ) | |
| 29 | + _types = {"user_ids": types.ListAttribute} | ||
| 29 | 30 | ||
| 30 | 31 | @cli.register_custom_action("GroupMemberManager") | |
| 31 | 32 | @exc.on_http_error(exc.GitlabListError) | |
@@ -67,6 +68,7 @@ class ProjectMemberManager(CRUDMixin, RESTManager): | |||
| 67 | 68 | _update_attrs = RequiredOptional( | |
| 68 | 69 | required=("access_level",), optional=("expires_at",) | |
| 69 | 70 | ) | |
| 71 | + _types = {"user_ids": types.ListAttribute} | ||
| 70 | 72 | ||
| 71 | 73 | @cli.register_custom_action("ProjectMemberManager") | |
| 72 | 74 | @exc.on_http_error(exc.GitlabListError) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,13 +62,19 @@ class MergeRequestManager(ListMixin, RESTManager): | |||
| 62 | 62 | "scope", | |
| 63 | 63 | "author_id", | |
| 64 | 64 | "assignee_id", | |
| 65 | + "approver_ids", | ||
| 66 | + "approved_by_ids", | ||
| 65 | 67 | "my_reaction_emoji", | |
| 66 | 68 | "source_branch", | |
| 67 | 69 | "target_branch", | |
| 68 | 70 | "search", | |
| 69 | 71 | "wip", | |
| 70 | 72 | ) | |
| 71 | - _types = {"labels": types.ListAttribute} | ||
| 73 | + _types = { | ||
| 74 | + "approver_ids": types.ListAttribute, | ||
| 75 | + "approved_by_ids": types.ListAttribute, | ||
| 76 | + "labels": types.ListAttribute, | ||
| 77 | + } | ||
| 72 | 78 | ||
| 73 | 79 | ||
| 74 | 80 | class GroupMergeRequest(RESTObject): | |
@@ -93,13 +99,19 @@ class GroupMergeRequestManager(ListMixin, RESTManager): | |||
| 93 | 99 | "scope", | |
| 94 | 100 | "author_id", | |
| 95 | 101 | "assignee_id", | |
| 102 | + "approver_ids", | ||
| 103 | + "approved_by_ids", | ||
| 96 | 104 | "my_reaction_emoji", | |
| 97 | 105 | "source_branch", | |
| 98 | 106 | "target_branch", | |
| 99 | 107 | "search", | |
| 100 | 108 | "wip", | |
| 101 | 109 | ) | |
| 102 | - _types = {"labels": types.ListAttribute} | ||
| 110 | + _types = { | ||
| 111 | + "approver_ids": types.ListAttribute, | ||
| 112 | + "approved_by_ids": types.ListAttribute, | ||
| 113 | + "labels": types.ListAttribute, | ||
| 114 | + } | ||
| 103 | 115 | ||
| 104 | 116 | ||
| 105 | 117 | class ProjectMergeRequest( | |
@@ -377,15 +389,23 @@ class ProjectMergeRequestManager(CRUDMixin, RESTManager): | |||
| 377 | 389 | "updated_after", | |
| 378 | 390 | "updated_before", | |
| 379 | 391 | "scope", | |
| 392 | + "iids", | ||
| 380 | 393 | "author_id", | |
| 381 | 394 | "assignee_id", | |
| 395 | + "approver_ids", | ||
| 396 | + "approved_by_ids", | ||
| 382 | 397 | "my_reaction_emoji", | |
| 383 | 398 | "source_branch", | |
| 384 | 399 | "target_branch", | |
| 385 | 400 | "search", | |
| 386 | 401 | "wip", | |
| 387 | 402 | ) | |
| 388 | - _types = {"labels": types.ListAttribute} | ||
| 403 | + _types = { | ||
| 404 | + "approver_ids": types.ListAttribute, | ||
| 405 | + "approved_by_ids": types.ListAttribute, | ||
| 406 | + "iids": types.ListAttribute, | ||
| 407 | + "labels": types.ListAttribute, | ||
| 408 | + } | ||
| 389 | 409 | ||
| 390 | 410 | ||
| 391 | 411 | class ProjectMergeRequestDiff(RESTObject): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - from gitlab import cli | ||
| 1 | + from gitlab import cli, types | ||
| 2 | 2 | from gitlab import exceptions as exc | |
| 3 | 3 | from gitlab.base import RequiredOptional, RESTManager, RESTObject, RESTObjectList | |
| 4 | 4 | from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin | |
@@ -86,6 +86,7 @@ class GroupMilestoneManager(CRUDMixin, RESTManager): | |||
| 86 | 86 | optional=("title", "description", "due_date", "start_date", "state_event"), | |
| 87 | 87 | ) | |
| 88 | 88 | _list_filters = ("iids", "state", "search") | |
| 89 | + _types = {"iids": types.ListAttribute} | ||
| 89 | 90 | ||
| 90 | 91 | ||
| 91 | 92 | class ProjectMilestone(SaveMixin, ObjectDeleteMixin, RESTObject): | |
@@ -159,3 +160,4 @@ class ProjectMilestoneManager(CRUDMixin, RESTManager): | |||
| 159 | 160 | optional=("title", "description", "due_date", "start_date", "state_event"), | |
| 160 | 161 | ) | |
| 161 | 162 | _list_filters = ("iids", "state", "search") | |
| 163 | + _types = {"iids": types.ListAttribute} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -676,7 +676,6 @@ class ProjectManager(CRUDMixin, RESTManager): | |||
| 676 | 676 | "service_desk_enabled", | |
| 677 | 677 | ), | |
| 678 | 678 | ) | |
| 679 | - _types = {"avatar": types.ImageAttribute} | ||
| 680 | 679 | _list_filters = ( | |
| 681 | 680 | "archived", | |
| 682 | 681 | "id_after", | |
@@ -695,13 +694,15 @@ class ProjectManager(CRUDMixin, RESTManager): | |||
| 695 | 694 | "sort", | |
| 696 | 695 | "starred", | |
| 697 | 696 | "statistics", | |
| 697 | + "topic", | ||
| 698 | 698 | "visibility", | |
| 699 | 699 | "wiki_checksum_failed", | |
| 700 | 700 | "with_custom_attributes", | |
| 701 | 701 | "with_issues_enabled", | |
| 702 | 702 | "with_merge_requests_enabled", | |
| 703 | 703 | "with_programming_language", | |
| 704 | 704 | ) | |
| 705 | + _types = {"avatar": types.ImageAttribute, "topic": types.ListAttribute} | ||
| 705 | 706 | ||
| 706 | 707 | def import_project( | |
| 707 | 708 | self, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - from gitlab import cli | ||
| 1 | + from gitlab import cli, types | ||
| 2 | 2 | from gitlab import exceptions as exc | |
| 3 | 3 | from gitlab.base import RequiredOptional, RESTManager, RESTObject | |
| 4 | 4 | from gitlab.mixins import ( | |
@@ -40,7 +40,6 @@ class Runner(SaveMixin, ObjectDeleteMixin, RESTObject): | |||
| 40 | 40 | class RunnerManager(CRUDMixin, RESTManager): | |
| 41 | 41 | _path = "/runners" | |
| 42 | 42 | _obj_cls = Runner | |
| 43 | - _list_filters = ("scope",) | ||
| 44 | 43 | _create_attrs = RequiredOptional( | |
| 45 | 44 | required=("token",), | |
| 46 | 45 | optional=( | |
@@ -65,6 +64,8 @@ class RunnerManager(CRUDMixin, RESTManager): | |||
| 65 | 64 | "maximum_timeout", | |
| 66 | 65 | ), | |
| 67 | 66 | ) | |
| 67 | + _list_filters = ("scope", "tag_list") | ||
| 68 | + _types = {"tag_list": types.ListAttribute} | ||
| 68 | 69 | ||
| 69 | 70 | @cli.register_custom_action("RunnerManager", tuple(), ("scope",)) | |
| 70 | 71 | @exc.on_http_error(exc.GitlabListError) | |
@@ -122,6 +123,8 @@ class GroupRunnerManager(NoUpdateMixin, RESTManager): | |||
| 122 | 123 | _obj_cls = GroupRunner | |
| 123 | 124 | _from_parent_attrs = {"group_id": "id"} | |
| 124 | 125 | _create_attrs = RequiredOptional(required=("runner_id",)) | |
| 126 | + _list_filters = ("scope", "tag_list") | ||
| 127 | + _types = {"tag_list": types.ListAttribute} | ||
| 125 | 128 | ||
| 126 | 129 | ||
| 127 | 130 | class ProjectRunner(ObjectDeleteMixin, RESTObject): | |
@@ -133,3 +136,5 @@ class ProjectRunnerManager(NoUpdateMixin, RESTManager): | |||
| 133 | 136 | _obj_cls = ProjectRunner | |
| 134 | 137 | _from_parent_attrs = {"project_id": "id"} | |
| 135 | 138 | _create_attrs = RequiredOptional(required=("runner_id",)) | |
| 139 | + _list_filters = ("scope", "tag_list") | ||
| 140 | + _types = {"tag_list": types.ListAttribute} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + from gitlab import types | ||
| 1 | 2 | from gitlab import exceptions as exc | |
| 2 | 3 | from gitlab.base import RequiredOptional, RESTManager, RESTObject | |
| 3 | 4 | from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin | |
@@ -35,13 +36,18 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager): | |||
| 35 | 36 | "default_snippet_visibility", | |
| 36 | 37 | "default_group_visibility", | |
| 37 | 38 | "outbound_local_requests_whitelist", | |
| 39 | + "disabled_oauth_sign_in_sources", | ||
| 38 | 40 | "domain_whitelist", | |
| 39 | 41 | "domain_blacklist_enabled", | |
| 40 | 42 | "domain_blacklist", | |
| 43 | + "domain_allowlist", | ||
| 44 | + "domain_denylist_enabled", | ||
| 45 | + "domain_denylist", | ||
| 41 | 46 | "external_authorization_service_enabled", | |
| 42 | 47 | "external_authorization_service_url", | |
| 43 | 48 | "external_authorization_service_default_label", | |
| 44 | 49 | "external_authorization_service_timeout", | |
| 50 | + "import_sources", | ||
| 45 | 51 | "user_oauth_applications", | |
| 46 | 52 | "after_sign_out_path", | |
| 47 | 53 | "container_registry_token_expire_delay", | |
@@ -65,12 +71,21 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager): | |||
| 65 | 71 | "asset_proxy_enabled", | |
| 66 | 72 | "asset_proxy_url", | |
| 67 | 73 | "asset_proxy_whitelist", | |
| 74 | + "asset_proxy_allowlist", | ||
| 68 | 75 | "geo_node_allowed_ips", | |
| 69 | 76 | "allow_local_requests_from_hooks_and_services", | |
| 70 | 77 | "allow_local_requests_from_web_hooks_and_services", | |
| 71 | 78 | "allow_local_requests_from_system_hooks", | |
| 72 | 79 | ), | |
| 73 | 80 | ) | |
| 81 | + _types = { | ||
| 82 | + "asset_proxy_allowlist": types.ListAttribute, | ||
| 83 | + "disabled_oauth_sign_in_sources": types.ListAttribute, | ||
| 84 | + "domain_allowlist": types.ListAttribute, | ||
| 85 | + "domain_denylist": types.ListAttribute, | ||
| 86 | + "import_sources": types.ListAttribute, | ||
| 87 | + "restricted_visibility_levels": types.ListAttribute, | ||
| 88 | + } | ||
| 74 | 89 | ||
| 75 | 90 | @exc.on_http_error(exc.GitlabUpdateError) | |
| 76 | 91 | def update(self, id=None, new_data=None, **kwargs): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -328,7 +328,8 @@ class ProjectUserManager(ListMixin, RESTManager): | |||
| 328 | 328 | _path = "/projects/%(project_id)s/users" | |
| 329 | 329 | _obj_cls = ProjectUser | |
| 330 | 330 | _from_parent_attrs = {"project_id": "id"} | |
| 331 | - _list_filters = ("search",) | ||
| 331 | + _list_filters = ("search", "skip_users") | ||
| 332 | + _types = {"skip_users": types.ListAttribute} | ||
| 332 | 333 | ||
| 333 | 334 | ||
| 334 | 335 | class UserEmail(ObjectDeleteMixin, RESTObject): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments