chore: regenerate CLI from OpenAPI spec · hostinger/api-cli@40d8436 · GitHub
Skip to content

Commit 40d8436

Browse files
chore: regenerate CLI from OpenAPI spec
1 parent ce831e5 commit 40d8436

5 files changed

Lines changed: 44 additions & 2 deletions

File tree

‎client/client.gen.go‎

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎cmd/hosting/orders/list.go‎

Lines changed: 1 addition & 1 deletion

‎cmd/hosting/websites/create.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
var CreateCmd = &cobra.Command{
1515
Use: "create",
1616
Short: "Create website",
17-
Long: "Create a new website for the authenticated client.\n\nYou must choose which hosting order to create this website on. Pass that\norder as `order_id` together with the domain name. List orders to see\navailable IDs; the website is provisioned on that order's hosting plan.\n\nThe datacenter_code parameter is required when creating the first website\non a new hosting plan - this will set up and configure new hosting account\nin the selected datacenter.\n\nSubsequent websites will be hosted on the same datacenter automatically.\n\nWebsite creation is asynchronous and takes up to a few minutes. Poll the list website\nsetups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status:\ncompleted` before uploading files, deploying or creating databases. While the setup is\n`running`, endpoints that operate on the website may respond with `404` or `409`.\n`is_enabled` on the websites list reflects suspension, not readiness.",
17+
Long: "Create a new website for the authenticated client.\n\nYou must choose which hosting order to create this website on. Pass that\norder as `order_id` together with the domain name. List orders to see\navailable IDs; the website is provisioned on that order's hosting plan.\n\nOnly Web and Cloud hosting orders are accepted. To create a website on an Agency\nPlan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.\n\nThe datacenter_code parameter is required when creating the first website\non a new hosting plan - this will set up and configure new hosting account\nin the selected datacenter.\n\nSubsequent websites will be hosted on the same datacenter automatically.\n\nWebsite creation is asynchronous and takes up to a few minutes. Poll the list website\nsetups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status:\ncompleted` before uploading files, deploying or creating databases. While the setup is\n`running`, endpoints that operate on the website may respond with `404` or `409`.\n`is_enabled` on the websites list reflects suspension, not readiness.",
1818
Run: func(cmd *cobra.Command, args []string) {
1919
payload, err := json.Marshal(createBody(cmd))
2020
if err != nil {

‎docs/hostinger_hosting_orders_list.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ List orders
66

77
Retrieve a paginated list of orders accessible to the authenticated client.
88

9+
Only Web and Cloud hosting orders are listed. Agency Plan orders are listed by
10+
`GET /api/agency-hosting/v1/orders`.
11+
912
This endpoint returns orders of your hosting accounts as well as orders
1013
of other client hosting accounts that have shared access with you.
1114

‎docs/hostinger_hosting_websites_create.md‎

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)