a Æ*Na¦ã@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úu/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/gitlab/v4/objects/features.pyr sc@s*eZdZdZeZe ej¡ddd„ƒZ dS)r z /features/Nc KsTd|j| dd¡f}|||||dœ} t | ¡} |jj|fd| i|¤Ž} | || ¡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  þ