Hook a hook is a web hook when one repository changed
Name | Type | Description | Notes |
---|---|---|---|
active | bool | [optional] | |
authorization_header | str | [optional] | |
branch_filter | str | [optional] | |
config | Dict[str, str] | Deprecated: use Metadata instead | [optional] |
content_type | str | [optional] | |
created_at | datetime | [optional] | |
events | List[str] | [optional] | |
id | int | [optional] | |
metadata | object | [optional] | |
type | str | [optional] | |
updated_at | datetime | [optional] | |
url | str | [optional] |
from clientapi_forgejo.models.hook import Hook
# TODO update the JSON string below
json = "{}"
# create an instance of Hook from a JSON string
hook_instance = Hook.from_json(json)
# print the JSON string representation of the object
print(Hook.to_json())
# convert the object into a dict
hook_dict = hook_instance.to_dict()
# create an instance of Hook from a dict
hook_from_dict = Hook.from_dict(hook_dict)