3 @qhc¦ã@snddlmZddlmZddlmZmZddlmZm Z m Z ddgZ Gdd„de eƒZ Gdd„de eeƒZ d S) é)Ú exceptions)Úutils)Ú RESTManagerÚ RESTObject)Ú DeleteMixinÚ ListMixinÚObjectDeleteMixinÚFeatureÚFeatureManagerc@seZdZdZdS)r ÚnameN)Ú__name__Ú __module__Ú __qualname__Z_id_attr©rrúY/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/features.pyr sc@s*eZdZdZeZejejƒddd„ƒZ dS)r z /features/Nc KsTd|j|jddƒf}|||||dœ} tj| ƒ} |jj|fd| i|—Ž} |j|| ƒS)a„Create or update the object. Args: name (str): The value to set for the object value (bool/int): The value to set for the object feature_group (str): A feature group name user (str): A GitLab username group (str): A GitLab group project (str): A GitLab project in form group/project **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabSetError: If an error occured Returns: obj: The created/updated attribute z%s/%sú/z%2F)ÚvalueÚ feature_groupÚuserÚgroupÚprojectZ post_data)ÚpathÚreplacerZremove_none_from_dictÚgitlabZ http_postÚ_obj_cls) Úselfr rrrrrÚkwargsrÚdataZ server_datarrrÚsets zFeatureManager.set)NNNN) r r rÚ_pathr rÚexcZ on_http_errorZGitlabSetErrorrrrrrr s N)rrr rZ gitlab.baserrZ gitlab.mixinsrrrÚ__all__r r rrrrÚs