a *Nai@sddlmZddlmZddlmZddlmZmZmZm Z ddl m Z m Z m Z ddlmZmZmZmZddlmZmZmZgd ZGd d d e e eZGd d d e eZGddde e eZGddde eZdS))cli) exceptions)types)RequiredOptional RESTManager RESTObjectRESTObjectList) CRUDMixinObjectDeleteMixin SaveMixin) GroupIssueGroupIssueManager ProjectIssueProjectIssueManager)GroupMergeRequestProjectMergeRequestProjectMergeRequestManager)GroupMilestoneGroupMilestoneManagerProjectMilestoneProjectMilestoneManagerc@sLeZdZdZedeejddZ edeejddZ dS)rtitlecKsNd|jj|f}|jjj|fddi|}t|jj|jjd}t|t|SaList issues related to this milestone. Args: all (bool): If True, return all the items, without pagination per_page (int): Number of items to retrieve per request page (int): ID of the page to return (starts with page 1) as_list (bool): If set to False and no pagination option is defined, return a generator instead of a list **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabListError: If the list could not be retrieved Returns: RESTObjectList: The list of issues z %s/%s/issuesas_listFparent) managerpathget_idgitlab http_listr_parentrr selfkwargsrZ data_listrr&w/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/gitlab/v4/objects/milestones.pyissuesszGroupMilestone.issuescKsNd|jj|f}|jjj|fddi|}t|jj|jjd}t|t|SaList the merge requests related to this milestone. Args: all (bool): If True, return all the items, without pagination per_page (int): Number of items to retrieve per request page (int): ID of the page to return (starts with page 1) as_list (bool): If set to False and no pagination option is defined, return a generator instead of a list **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabListError: If the list could not be retrieved Returns: RESTObjectList: The list of merge requests z%s/%s/merge_requestsrFr) rrrr r!rr"rrr#r&r&r'merge_requests4szGroupMilestone.merge_requestsN __name__ __module__ __qualname__Z_short_print_attrrZregister_custom_actionexcZ on_http_errorZGitlabListErrorr(r*r&r&r&r'rs   rc@s@eZdZdZeZddiZedddZeddZ d Z d e j iZ d S) rz/groups/%(group_id)s/milestonesZgroup_ididr) descriptiondue_date start_daterequiredoptionalrr2r3r4 state_eventr7iidsstatesearchr<N)r,r-r._pathr_obj_cls_from_parent_attrsr _create_attrs _update_attrs _list_filtersr ListAttribute_typesr&r&r&r'rOsrc@sLeZdZdZedeejddZ edeejddZ dS)rrcKsNd|jj|f}|jjj|fddi|}t|jj|jjd}t|t|Sr) rrrr r!rr"rrr#r&r&r'r(`szProjectMilestone.issuescKsNd|jj|f}|jjj|fddi|}t|jj|jjd}t|t|Sr)) rrrr r!rr"rrr#r&r&r'r*{s  zProjectMilestone.merge_requestsNr+r&r&r&r'r]s   rc@s@eZdZdZeZddiZedddZeddZ d Z d e j iZ d S) rz#/projects/%(project_id)s/milestonesZ project_idr0r1)r2r3r4r9r5r8r:r;r<N)r,r-r.r?rr@rArrBrCrDrrErFr&r&r&r'rsrN)r rrr/rZ gitlab.baserrrrZ gitlab.mixinsr r r r(r rrrr*rrr__all__rrrrr&r&r&r's   9;