3 @qhcÑ&ã@stddlmZddlmZmZddlmZmZmZm Z m Z m Z ddgZ Gdd„de e eƒZ Gdd„dee eeeƒZdS) é)Úcli)Ú RESTManagerÚ RESTObject)Ú DeleteMixinÚGetMixinÚ ListMixinÚObjectDeleteMixinÚ SaveMixinÚ UpdateMixinÚProjectServiceÚProjectServiceManagerc@s eZdZdS)r N)Ú__name__Ú __module__Ú __qualname__©rrúY/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/services.pyr sc6sªeZdZdZddiZeZdXd[d^dadddgdjdmdpdsdvdweƒfdzd}d€dƒd†d‰dŠeƒfddd“d–d—eƒfdšdd d£d¦d©dªeƒfd­dNœ Z‡fdOdP„Z d®‡fdRdS„ Z e j dƒdTdU„ƒZ ‡ZS)¯r z!/projects/%(project_id)s/servicesZ project_idÚidÚapi_keyÚrestrict_to_branchÚ push_eventsÚtokenÚ subdomainÚ bamboo_urlÚ build_keyÚusernameÚpasswordÚ new_issue_urlÚ issues_urlÚ project_urlÚ descriptionÚtitleÚenable_ssl_verificationÚroomÚwebhookÚnotify_only_broken_pipelinesÚbranches_to_be_notifiedÚ issues_eventsÚconfidential_issues_eventsÚmerge_requests_eventsÚtag_push_eventsÚ note_eventsÚconfidential_note_eventsÚpipeline_eventsÚwiki_page_eventsÚ drone_urlÚ recipientsÚ disable_diffsÚsend_from_committer_emailÚ add_pusherÚnotify_only_broken_buildsÚnotify_only_default_branchÚexternal_wiki_urlÚrepository_urlÚstatic_contextÚcolorÚnotifyÚ api_versionÚserverÚdefault_irc_uriÚ server_portÚ server_hostÚcolorize_messagesÚurlÚapi_urlÚactiveÚjira_issue_transition_idÚ commit_eventsÚcomment_on_event_enabledÚchannelÚ push_channelÚ issue_channelÚ/confidential_issue_channelmerge_request_channelÚ note_channelÚconfidential_note_channelÚtag_push_channelÚpipeline_channelÚwiki_page_channelÚuser_keyÚpriorityÚdeviceÚsoundÚconfidential_issue_channelÚdeployment_channelÚdeployment_eventsÚ job_eventsÚmerge_request_channelÚ teamcity_urlÚ build_typeÚ jenkins_urlÚ project_nameÚmock_service_url) ZasanaZassemblaZbambooZbugzillaZ buildkiteZcampfireZcircuitzcustom-issue-trackerzdrone-cizemails-on-pushzpipelines-emailz external-wikiZflowdockZgithubz hangouts-chatZhipchatZirkerZjirazslack-slash-commandszmattermost-slash-commandsZ packagistZ mattermostZpivotaltrackerZ prometheusZpushoverZredmineZslackzmicrosoft-teamsZteamcityZjenkinszmock-ciZyoutrackc stt|ƒj|f|Ž}||_|S)avRetrieve a single object. Args: id (int or str): ID of the object to retrieve lazy (bool): If True, don't request the server, but create a shallow object giving access to the managers. This is useful if you want to avoid useless calls to the API. **kwargs: Extra options to send to the server (e.g. sudo) Returns: object: The generated RESTObject. Raises: GitlabAuthenticationError: If authentication is not correct GitlabGetError: If the server cannot perform the request )Úsuperr Úgetr)ÚselfrÚkwargsÚobj)Ú __class__rrr^szProjectServiceManager.getNc s(|pi}tt|ƒj||f|Ž||_dS)aéUpdate 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)r]r Úupdater)r_rZnew_datar`)rbrrrcszProjectServiceManager.updatecKst|jjƒƒS)z|List the services known by python-gitlab. Returns: list (str): The list of service code names. )ÚlistÚ_service_attrsÚkeys)r_r`rrrÚ available(szProjectServiceManager.available©r©rr)rhri©r©rr)rjrk©rrrr©r)rlrm©rrr©rr r)rnro©rr©r!r)rprq©r©rr"r)rrrs©r#© r$r%rr&r'r(r)r*r+r,r-)rtru©rrr©rr r)rvrw©rr.©r!rr(r))rxry©r/©r0r1rr)r%)rzr{©r/©r2r3r%r4r,)r|r})r5©r©r)r~r©rr6©r7)r€r©r#© r$r4r%rr&r'r(r)r*r+r,r-)r‚rƒ©r© r8r9r"r:r;rr&r'r(r)r*r+r,)r„r…©r/©r<r=r>r?r)r†r‡©r@rr©rArBrCrDr(rE)rˆr‰)r©r©r)rŠr‹©rr©r;rr(r))rŒr©r#©rrFr$r4r%rr&r'r(r)r*r+r,r-rGrHrIrJrKrLrMrN)rŽr©r©rr)rr‘)rA©rrOrP©rQrRr)r’r“©rrr©rr)r”r•©r#©rrFr$r4r%rDrSr'rKr+rTrUrHr&rVrWr(rJr*rMr,rGrrLr)rNr-)r–r—©r#© r$r4r%rr&r'r(r)r*r+r,r-)r˜r™©rXrYrr©r)ršr›©rZr[©rr)rœr)r\©rr©rr)ržrŸ)NN)r rrÚ_pathZ_from_parent_attrsr Z_obj_clsÚtuplerer^rcrZregister_custom_actionrgÚ __classcell__rr)rbrr sT N)ZgitlabrZ gitlab.baserrZ gitlab.mixinsrrrrr r Ú__all__r r rrrrÚs