|
1 | 1 | fromgitlab.baseimportRequiredOptional,RESTManager,RESTObject
|
2 |
| -fromgitlab.mixinsimportCRUDMixin,NoUpdateMixin,ObjectDeleteMixin,SaveMixin |
| 2 | +fromgitlab.mixinsimportCRUDMixin,ObjectDeleteMixin,SaveMixin |
3 | 3 |
|
4 | 4 | __all__= [
|
5 | 5 | "ProjectRelease",
|
|
9 | 9 | ]
|
10 | 10 |
|
11 | 11 |
|
12 |
| -classProjectRelease(RESTObject): |
| 12 | +classProjectRelease(SaveMixin,RESTObject): |
13 | 13 | _id_attr="tag_name"
|
14 | 14 | _managers= (("links","ProjectReleaseLinkManager"),)
|
15 | 15 |
|
16 | 16 |
|
17 |
| -classProjectReleaseManager(NoUpdateMixin,RESTManager): |
| 17 | +classProjectReleaseManager(CRUDMixin,RESTManager): |
18 | 18 | _path="/projects/%(project_id)s/releases"
|
19 | 19 | _obj_cls=ProjectRelease
|
20 | 20 | _from_parent_attrs= {"project_id":"id"}
|
21 | 21 | _create_attrs=RequiredOptional(
|
22 | 22 | required=("name","tag_name","description"),optional=("ref","assets")
|
23 | 23 | )
|
| 24 | +_update_attrs=RequiredOptional( |
| 25 | +optional=("name","description","milestones","released_at") |
| 26 | + ) |
24 | 27 |
|
25 | 28 |
|
26 | 29 | classProjectReleaseLink(ObjectDeleteMixin,SaveMixin,RESTObject):
|
|