mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): use task data model when creating a new task (#20275)
Updates coder/internal#976
This commit is contained in:
Generated
+46
-15
@@ -302,6 +302,7 @@
|
||||
"template_icon": "string",
|
||||
"template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
|
||||
"template_name": "string",
|
||||
"template_version_id": "0ba39c92-1f1b-4c32-aa3e-9925d7713eb1",
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"workspace_agent_health": {
|
||||
"healthy": false,
|
||||
@@ -320,7 +321,8 @@
|
||||
"workspace_id": {
|
||||
"uuid": "string",
|
||||
"valid": true
|
||||
}
|
||||
},
|
||||
"workspace_status": "pending"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -7732,6 +7734,7 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
|
||||
"template_icon": "string",
|
||||
"template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
|
||||
"template_name": "string",
|
||||
"template_version_id": "0ba39c92-1f1b-4c32-aa3e-9925d7713eb1",
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"workspace_agent_health": {
|
||||
"healthy": false,
|
||||
@@ -7750,7 +7753,8 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
|
||||
"workspace_id": {
|
||||
"uuid": "string",
|
||||
"valid": true
|
||||
}
|
||||
},
|
||||
"workspace_status": "pending"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -7766,11 +7770,12 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
|
||||
| `organization_id` | string | false | | |
|
||||
| `owner_id` | string | false | | |
|
||||
| `owner_name` | string | false | | |
|
||||
| `status` | [codersdk.WorkspaceStatus](#codersdkworkspacestatus) | false | | |
|
||||
| `status` | [codersdk.TaskStatus](#codersdktaskstatus) | false | | |
|
||||
| `template_display_name` | string | false | | |
|
||||
| `template_icon` | string | false | | |
|
||||
| `template_id` | string | false | | |
|
||||
| `template_name` | string | false | | |
|
||||
| `template_version_id` | string | false | | |
|
||||
| `updated_at` | string | false | | |
|
||||
| `workspace_agent_health` | [codersdk.WorkspaceAgentHealth](#codersdkworkspaceagenthealth) | false | | |
|
||||
| `workspace_agent_id` | [uuid.NullUUID](#uuidnulluuid) | false | | |
|
||||
@@ -7778,21 +7783,28 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
|
||||
| `workspace_app_id` | [uuid.NullUUID](#uuidnulluuid) | false | | |
|
||||
| `workspace_build_number` | integer | false | | |
|
||||
| `workspace_id` | [uuid.NullUUID](#uuidnulluuid) | false | | |
|
||||
| `workspace_status` | [codersdk.WorkspaceStatus](#codersdkworkspacestatus) | false | | |
|
||||
|
||||
#### Enumerated Values
|
||||
|
||||
| Property | Value |
|
||||
|----------|-------------|
|
||||
| `status` | `pending` |
|
||||
| `status` | `starting` |
|
||||
| `status` | `running` |
|
||||
| `status` | `stopping` |
|
||||
| `status` | `stopped` |
|
||||
| `status` | `failed` |
|
||||
| `status` | `canceling` |
|
||||
| `status` | `canceled` |
|
||||
| `status` | `deleting` |
|
||||
| `status` | `deleted` |
|
||||
| Property | Value |
|
||||
|--------------------|----------------|
|
||||
| `status` | `pending` |
|
||||
| `status` | `initializing` |
|
||||
| `status` | `active` |
|
||||
| `status` | `paused` |
|
||||
| `status` | `unknown` |
|
||||
| `status` | `error` |
|
||||
| `workspace_status` | `pending` |
|
||||
| `workspace_status` | `starting` |
|
||||
| `workspace_status` | `running` |
|
||||
| `workspace_status` | `stopping` |
|
||||
| `workspace_status` | `stopped` |
|
||||
| `workspace_status` | `failed` |
|
||||
| `workspace_status` | `canceling` |
|
||||
| `workspace_status` | `canceled` |
|
||||
| `workspace_status` | `deleting` |
|
||||
| `workspace_status` | `deleted` |
|
||||
|
||||
## codersdk.TaskLogEntry
|
||||
|
||||
@@ -7901,6 +7913,25 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
|
||||
| `timestamp` | string | false | | |
|
||||
| `uri` | string | false | | |
|
||||
|
||||
## codersdk.TaskStatus
|
||||
|
||||
```json
|
||||
"pending"
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
#### Enumerated Values
|
||||
|
||||
| Value |
|
||||
|----------------|
|
||||
| `pending` |
|
||||
| `initializing` |
|
||||
| `active` |
|
||||
| `paused` |
|
||||
| `unknown` |
|
||||
| `error` |
|
||||
|
||||
## codersdk.TelemetryConfig
|
||||
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user