3 @qhc,@sddlmZddlmZddlmZmZmZddlm Z m Z m Z m Z m Z mZddgZGddde e eZGddde e ee eZd S) )cli) exceptions)RequiredOptional RESTManager RESTObject) CreateMixin DeleteMixinObjectDeleteMixin RetrieveMixin SaveMixin UpdateMixinProjectEnvironmentProjectEnvironmentManagerc@s*eZdZejdejejddZdS)r cKs*d|jj|jf}|jjj|f|dS)aStop the environment. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabStopError: If the operation failed z %s/%s/stopN)managerpathZget_idgitlabZ http_post)selfkwargsrr]/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/environments.pystops zProjectEnvironment.stopN) __name__ __module__ __qualname__rZregister_custom_actionexcZ on_http_errorZGitlabStopErrorrrrrrr sc@s2eZdZdZeZddiZed d dZed dZ dS) rz%/projects/%(project_id)s/environmentsZ project_ididname external_url)requiredoptional)rN)r)r)rr) rrr_pathr Z_obj_clsZ_from_parent_attrsrZ _create_attrsZ _update_attrsrrrrr$s  N)rrrrZ gitlab.baserrrZ gitlab.mixinsrrr r r r __all__r rrrrrs