Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 2.3 KB

HorizonsV1WebsitesBuildTaskResource.md

File metadata and controls

34 lines (25 loc) · 2.3 KB

HorizonsV1WebsitesBuildTaskResource

Properties

Name Type Description Notes
id str The build task ID, used with the `Get website build task` tool
state str The build state. `TASK_STATE_SUBMITTED` and `TASK_STATE_WORKING` mean the build is still running. `TASK_STATE_COMPLETED` means it finished. `TASK_STATE_FAILED` means it broke, and `TASK_STATE_REJECTED` means it never started: the website does not contain the requested changes. `TASK_STATE_CANCELED` means the user stopped it; changes made before that may be kept.
updated_at datetime When the build last changed state [optional]
reason_code str Why the build stopped, or null. `insufficient_credits`: the user has no credits left; `execution_error` or `missing_result`: the build broke; `iteration_limit`: the build stopped early and kept the work done so far. [optional]
message str Guidance to tell the user about the build outcome, or null [optional]
summary str An internal changelog entry describing what the build changed, or null until the build ends. Rewrite it in plain language before showing it to the user. [optional]

Example

from hostinger_api.models.horizons_v1_websites_build_task_resource import HorizonsV1WebsitesBuildTaskResource

# TODO update the JSON string below
json = "{}"
# create an instance of HorizonsV1WebsitesBuildTaskResource from a JSON string
horizons_v1_websites_build_task_resource_instance = HorizonsV1WebsitesBuildTaskResource.from_json(json)
# print the JSON string representation of the object
print(HorizonsV1WebsitesBuildTaskResource.to_json())

# convert the object into a dict
horizons_v1_websites_build_task_resource_dict = horizons_v1_websites_build_task_resource_instance.to_dict()
# create an instance of HorizonsV1WebsitesBuildTaskResource from a dict
horizons_v1_websites_build_task_resource_from_dict = HorizonsV1WebsitesBuildTaskResource.from_dict(horizons_v1_websites_build_task_resource_dict)

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