Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.29 KB

Hook.md

File metadata and controls

41 lines (32 loc) · 1.29 KB

Hook

Hook a hook is a web hook when one repository changed

Properties

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]

Example

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)

[Back to Model list] [Back to API list] [Back to README]