3 @qhc @sddlmZddlmZddlmZmZmZddlm Z m Z m Z m Z m Z mZmZddlmZddd d gZGd dde eeZGd dde eZGd d d e eeZGdd d e e ee eZdS)) exceptions)types)RequiredOptional RESTManager RESTObject) CreateMixin CRUDMixin DeleteMixin ListMixinObjectDeleteMixin SaveMixin UpdateMixin)"GroupEpicResourceLabelEventManager GroupEpicGroupEpicManagerGroupEpicIssueGroupEpicIssueManagerc@seZdZdZd ZdS) riidissuesrresourcelabeleventsrNrrrr)rr)__name__ __module__ __qualname___id_attrZ _managersrrV/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/epics.pyrsc@s@eZdZdZeZddiZdZeddd Z eddZ de j iZ dS)rz/groups/%(group_id)s/epicsgroup_idid author_idlabelsorder_bysortsearchtitle description start_dateend_date)requiredoptional)r+N)r!r"r#r$r%)r&)r"r'r(r))r&r"r'r(r))rrr_pathr_obj_cls_from_parent_attrsZ _list_filtersr _create_attrs _update_attrsrZ ListAttribute_typesrrrrr sc@seZdZdZddZdS)r epic_issue_idcKs.|j}|sdS|j}|jj||f|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)rrrrr7rrrrr/sc@sFeZdZdZeZdddZed dZedd Z e j e j d d Z d S)rz./groups/%(group_id)s/epics/%(epic_iid)s/issuesrr)rZepic_iidissue_id)r*move_before_id move_after_id)r+cKsHtj||d|j|jdf}|jj|f|}|d|d<|j||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/%sr8r r2)rZ_check_missing_create_attrspathpopgitlabZ http_postr-)r5datar6r;Z server_datarrrcreateQs   zGroupEpicIssueManager.createN)r8)r9r:)rrrr,rr-r.rr/r0excZ on_http_errorZGitlabCreateErrorr?rrrrrHs    N)r=rr@rZ gitlab.baserrrZ gitlab.mixinsrrr r r r r eventsr__all__rrrrrrrrs  $