diff options
author | Max Wittig <max.wittig@siemens.com> | 2020-04-16 10:08:10 +0200 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2020-04-16 14:39:04 +0200 |
commit | 7afc3570c02c5421df76e097ce33d1021820a3d6 (patch) | |
tree | b075c219b5d9bc91a7139376108719b0f75c7dc7 | |
parent | fc5222188ad096932fa89bb53f03f7118926898a (diff) | |
download | gitlab-7afc3570c02c5421df76e097ce33d1021820a3d6.tar.gz |
chore(services): update available service attributes
-rw-r--r-- | gitlab/v4/objects.py | 229 |
1 files changed, 203 insertions, 26 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 525c05c..aac4dff 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -4001,52 +4001,229 @@ class ProjectServiceManager(GetMixin, UpdateMixin, DeleteMixin, ListMixin, RESTM _obj_cls = ProjectService _service_attrs = { - "asana": (("api_key",), ("restrict_to_branch",)), - "assembla": (("token",), ("subdomain",)), - "bamboo": (("bamboo_url", "build_key", "username", "password"), tuple()), - "buildkite": (("token", "project_url"), ("enable_ssl_verification",)), - "campfire": (("token",), ("subdomain", "room")), + "asana": (("api_key",), ("restrict_to_branch", "push_events")), + "assembla": (("token",), ("subdomain", "push_events")), + "bamboo": ( + ("bamboo_url", "build_key", "username", "password"), + ("push_events",), + ), + "bugzilla": ( + ("new_issue_url", "issues_url", "project_url"), + ("description", "title", "push_events"), + ), + "buildkite": ( + ("token", "project_url"), + ("enable_ssl_verification", "push_events"), + ), + "campfire": (("token",), ("subdomain", "room", "push_events")), + "circuit": ( + ("webhook",), + ( + "notify_only_broken_pipelines", + "branches_to_be_notified", + "push_events", + "issues_events", + "confidential_issues_events", + "merge_requests_events", + "tag_push_events", + "note_events", + "confidential_note_events", + "pipeline_events", + "wiki_page_events", + ), + ), "custom-issue-tracker": ( ("new_issue_url", "issues_url", "project_url"), - ("description", "title"), + ("description", "title", "push_events"), + ), + "drone-ci": ( + ("token", "drone_url"), + ( + "enable_ssl_verification", + "push_events", + "merge_requests_events", + "tag_push_events", + ), ), - "drone-ci": (("token", "drone_url"), ("enable_ssl_verification",)), "emails-on-push": ( ("recipients",), - ("disable_diffs", "send_from_committer_email"), + ( + "disable_diffs", + "send_from_committer_email", + "push_events", + "tag_push_events", + "branches_to_be_notified", + ), ), "builds-email": (("recipients",), ("add_pusher", "notify_only_broken_builds")), "pipelines-email": ( ("recipients",), - ("add_pusher", "notify_only_broken_builds"), + ( + "add_pusher", + "notify_only_broken_builds", + "branches_to_be_notified", + "notify_only_default_branch", + "pipeline_events", + ), ), "external-wiki": (("external_wiki_url",), tuple()), - "flowdock": (("token",), tuple()), - "gemnasium": (("api_key", "token"), tuple()), - "hipchat": (("token",), ("color", "notify", "room", "api_version", "server")), + "flowdock": (("token",), ("push_events",)), + "github": (("token", "repository_url"), ("static_context",)), + "hangouts-chat": ( + ("webhook",), + ( + "notify_only_broken_pipelines", + "notify_only_default_branch", + "branches_to_be_notified", + "push_events", + "issues_events", + "confidential_issues_events", + "merge_requests_events", + "tag_push_events", + "note_events", + "confidential_note_events", + "pipeline_events", + "wiki_page_events", + ), + ), + "hipchat": ( + ("token",), + ( + "color", + "notify", + "room", + "api_version", + "server", + "push_events", + "issues_events", + "confidential_issues_events", + "merge_requests_events", + "tag_push_events", + "note_events", + "confidential_note_events", + "pipeline_events", + ), + ), "irker": ( ("recipients",), - ("default_irc_uri", "server_port", "server_host", "colorize_messages"), + ( + "default_irc_uri", + "server_port", + "server_host", + "colorize_messages", + "push_events", + ), ), "jira": ( - ("url", "project_key"), + ("url", "username", "password",), ( - "new_issue_url", - "project_url", - "issues_url", "api_url", - "description", - "username", - "password", + "active", "jira_issue_transition_id", + "commit_events", + "merge_requests_events", + "comment_on_event_enabled", + ), + ), + "slack-slash-commands": (("token",), tuple()), + "mattermost-slash-commands": (("token",), ("username",)), + "packagist": ( + ("username", "token"), + ("server", "push_events", "merge_requests_events", "tag_push_events"), + ), + "mattermost": ( + ("webhook",), + ( + "username", + "channel", + "notify_only_broken_pipelines", + "notify_only_default_branch", + "branches_to_be_notified", + "push_events", + "issues_events", + "confidential_issues_events", + "merge_requests_events", + "tag_push_events", + "note_events", + "confidential_note_events", + "pipeline_events", + "wiki_page_events", + "push_channel", + "issue_channel", + "confidential_issue_channel" "merge_request_channel", + "note_channel", + "confidential_note_channel", + "tag_push_channel", + "pipeline_channel", + "wiki_page_channel", ), ), - "mattermost": (("webhook",), ("username", "channel")), - "pivotaltracker": (("token",), tuple()), - "pushover": (("api_key", "user_key", "priority"), ("device", "sound")), - "redmine": (("new_issue_url", "project_url", "issues_url"), ("description",)), - "slack": (("webhook",), ("username", "channel")), - "teamcity": (("teamcity_url", "build_type", "username", "password"), tuple()), + "pivotaltracker": (("token",), ("restrict_to_branch", "push_events")), + "prometheus": (("api_url",), tuple()), + "pushover": ( + ("api_key", "user_key", "priority"), + ("device", "sound", "push_events"), + ), + "redmine": ( + ("new_issue_url", "project_url", "issues_url"), + ("description", "push_events"), + ), + "slack": ( + ("webhook",), + ( + "username", + "channel", + "notify_only_broken_pipelines", + "notify_only_default_branch", + "branches_to_be_notified", + "commit_events", + "confidential_issue_channel", + "confidential_issues_events", + "confidential_note_channel", + "confidential_note_events", + "deployment_channel", + "deployment_events", + "issue_channel", + "issues_events", + "job_events", + "merge_request_channel", + "merge_requests_events", + "note_channel", + "note_events", + "pipeline_channel", + "pipeline_events", + "push_channel", + "push_events", + "tag_push_channel", + "tag_push_events", + "wiki_page_channel", + "wiki_page_events", + ), + ), + "microsoft-teams": ( + ("webhook",), + ( + "notify_only_broken_pipelines", + "notify_only_default_branch", + "branches_to_be_notified", + "push_events", + "issues_events", + "confidential_issues_events", + "merge_requests_events", + "tag_push_events", + "note_events", + "confidential_note_events", + "pipeline_events", + "wiki_page_events", + ), + ), + "teamcity": ( + ("teamcity_url", "build_type", "username", "password"), + ("push_events",), + ), + "jenkins": (("jenkins_url", "project_name"), ("username", "password")), + "mock-ci": (("mock_service_url",), tuple()), + "youtrack": (("issues_url", "project_url"), ("description", "push_events")), } def get(self, id, **kwargs): |