a *Na @sddlmZddlmZddlmZmZmZddlm Z m Z m Z m Z m Z mZmZddlmZgdZGdd d e eeZGd d d e eZGd d d e eeZGddde e ee eZdS)) exceptions)types)RequiredOptional RESTManager RESTObject) CreateMixin CRUDMixin DeleteMixin ListMixinObjectDeleteMixin SaveMixin UpdateMixin)"GroupEpicResourceLabelEventManager) GroupEpicGroupEpicManagerGroupEpicIssueGroupEpicIssueManagerc@seZdZdZdZdS)riid))Zissuesr)ZresourcelabeleventsrN)__name__ __module__ __qualname___id_attrZ _managersrrr/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/gitlab/v4/objects/epics.pyrsrc@s@eZdZdZeZddiZdZedddZ edd Z d e j iZ d S) rz/groups/%(group_id)s/epicsgroup_idid)Z author_idlabelsZorder_bysortsearch)title)r description start_dateend_date)requiredoptional)r rr!r"r#r%rN)rrr_pathr_obj_cls_from_parent_attrsZ _list_filtersr _create_attrs _update_attrsrZ ListAttribute_typesrrrrr src@seZdZdZddZdS)r epic_issue_idcKs2|}|sdS|}|jj||fi|dS)aqSave the changes made to the object to the server. The object is updated to match what the server returns. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raise: GitlabAuthenticationError: If authentication is not correct GitlabUpdateError: If the server cannot perform the request N)Z_get_updated_dataZget_idmanagerupdate)selfkwargsZ updated_dataZobj_idrrrsave2s zGroupEpicIssue.saveN)rrrrr2rrrrr/src@sFeZdZdZeZdddZeddZeddZ e e j d d Z d S) rz./groups/%(group_id)s/epics/%(epic_iid)s/issuesrr)rZepic_iid)issue_id)r$)Zmove_before_idZ move_after_idr&cKsLt||d|j|df}|jj|fi|}|d|d<|||S)aCreate a new object. Args: data (dict): Parameters to send to the server to create the resource **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabCreateError: If the server cannot perform the request Returns: RESTObject: A new instance of the manage object class build with the data sent by the server z%s/%sr3rr-)rZ_check_missing_create_attrspathpopgitlabZ http_postr()r0datar1r4Z server_datarrrcreateQs   zGroupEpicIssueManager.createN)rrrr'rr(r)rr*r+excZ on_http_errorZGitlabCreateErrorr8rrrrrHs    rN)r6rr9rZ gitlab.baserrrZ gitlab.mixinsrrr r r r r eventsr__all__rrrrrrrrs  $