hooks
Hook
Bases: BitbucketCloudBase
Bitbucket Cloud hook endpoint.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|
active()
is webhook active?
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
82 83 84 |
|
delete()
Delete the webhook.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
113 114 115 116 117 |
|
description()
webhook description.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
78 79 80 |
|
events()
events that the webhook is triggered by
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
86 87 88 |
|
update(**kwargs)
Update a webhook
Valid keywords: param: url: string: Url that will receive event requests param: description: string: Details about the webhook param: events: [string] List of event types that requests will generate for param: active: boolean: Enables/Disables the webhook
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
|
uuid()
hook uuid.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
70 71 72 |
|
webhook_url()
webhook url.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
74 75 76 |
|
Hooks
Bases: BitbucketCloudBase
Bitbucket Cloud webhooks.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
create(url, description, events, active=True)
Creates a new webhook for the current repository
param: url: string: Url that will receive event requests param: description: string: Details about the webhook param: events: [string] List of event types that requests will generate for param: active: boolean: Enables/Disables the webhook
:return: Hook Object
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
each()
Return the list of webhooks in this repository.
:return: A generator for the Webhook objects
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
37 38 39 40 41 42 43 44 |
|
get(id)
Return the hook with the requested hook uuid in this repository.
:param id: string: The id of the webhook
:return: The requested hook object
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/hooks.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|