3 @qhc!@sddlZddlmZddlmZddlmZmZmZddl m Z m Z m Z m Z mZmZmZmZmZmZdddd d d d d ddddddddgZGdddeZGddde eeZGdddeeeZGdd d ee e eZGdd d eZGdd d eeZGdd d eZGdd d eeZGdddeZGdddeeZGd ddeeeZGd!dde ee eZ Gd"ddeeeZ!Gd#dde eZ"Gd$ddeZ#Gd%dde eZ$dS)&N)cli) exceptions)RequiredOptional RESTManager RESTObject) CreateMixin CRUDMixin DeleteMixinGetWithoutIdMixin ListMixinObjectDeleteMixin RefreshMixin RetrieveMixin SaveMixin UpdateMixinProjectMergeRequestPipeline"ProjectMergeRequestPipelineManagerProjectPipelineProjectPipelineManagerProjectPipelineJobProjectPipelineJobManagerProjectPipelineBridgeProjectPipelineBridgeManagerProjectPipelineVariableProjectPipelineVariableManagerProjectPipelineScheduleVariable&ProjectPipelineScheduleVariableManagerProjectPipelineScheduleProjectPipelineScheduleManagerProjectPipelineTestReport ProjectPipelineTestReportManagerc@s eZdZdS)rN)__name__ __module__ __qualname__r$r$Z/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/pipelines.pyr'sc@s@eZdZdZeZdddZejddde j e j dd Z d S) rzr$r$r$r%rLsc @s2eZdZdZeZddiZdZedd Z ddZ dS)rz"/projects/%(project_id)s/pipelinesr&idscopestatusrefsha yaml_errorsnameusernameorder_bysort)requiredcKs&|jdd}tj||fd|i|S)a Creates 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 managed object class build with the data sent by the server Nr9)r9rcreate)r+datar,r9r$r$r%rQszProjectPipelineManager.createN) rErFrGrHrIrJrKrLrM)rG) r!r"r#r.rr/r0 _list_filtersr _create_attrsrQr$r$r$r%rss c@s eZdZdS)rN)r!r"r#r$r$r$r%rsc@s"eZdZdZeZdddZdZdS) rz7/projects/%(project_id)s/pipelines/%(pipeline_id)s/jobsr&rD)r& pipeline_idrEinclude_retriedN)rErV)r!r"r#r.rr/r0rSr$r$r$r%rs c@s eZdZdS)rN)r!r"r#r$r$r$r%rsc@s"eZdZdZeZdddZdZdS)rz:/projects/%(project_id)s/pipelines/%(pipeline_id)s/bridgesr&rD)r&rUrEN)rE)r!r"r#r.rr/r0rSr$r$r$r%rs c@seZdZdZdS)rkeyN)r!r"r#_id_attrr$r$r$r%rsc@seZdZdZeZdddZdS)rz/projects/%(project_id)s/pipelines/%(pipeline_id)s/test_reportr&rD)r&rUN)r!r"r#r.rr/r0r$r$r$r%r s)%r'r;rrr2Z gitlab.baserrrZ gitlab.mixinsrrr r r r r rrr__all__rrrrrrrrrrrrrrrr r$r$r$r%sJ  0!'%  &