3 @qhck@sfddlmZddlmZmZmZddlmZm Z m Z ddgZ Gddde eZ Gdddee eZ dS) ) exceptions)RequiredOptional RESTManager RESTObject)GetWithoutIdMixin SaveMixin UpdateMixinApplicationAppearanceApplicationAppearanceManagerc@seZdZdZdS)r N)__name__ __module__ __qualname__Z_id_attrrr[/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/appearance.pyr sc s<eZdZdZeZedd Zej ej dfdd Z Z S)r z/application/appearancetitle descriptionlogo header_logofaviconnew_project_guidelinesheader_messagefooter_messagemessage_background_colormessage_font_coloremail_header_and_footer_enabled)optionalNc s*|pi}|j}tt|j||f|dS)aUpdate an object on the server. Args: id: ID of the object to update (can be None if not required) new_data: the update data for the object **kwargs: Extra options to send to the server (e.g. sudo) Returns: dict: The new object data (*not* a RESTObject) Raises: GitlabAuthenticationError: If authentication is not correct GitlabUpdateError: If the server cannot perform the request N)copysuperr update)selfidZnew_datakwargsdata) __class__rrr"sz#ApplicationAppearanceManager.update) rrrrrrrrrrr)NN) r r r _pathr Z_obj_clsrZ _update_attrsexcZ on_http_errorZGitlabUpdateErrorr __classcell__rr)r#rr s  N)Zgitlabrr%Z gitlab.baserrrZ gitlab.mixinsrrr__all__r r rrrrs