github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/workspace/v2/jobs/results.go (about) 1 package jobs 2 3 // QueryResp is the structure that represents the API response of Create method request. 4 type QueryResp struct { 5 // The total count of job list. 6 TotalCount int `json:"total_count"` 7 // The job list. 8 Jobs []Job `json:"jobs"` 9 } 10 11 // Job is an object to specified the operation detail of desktop. 12 type Job struct { 13 // Job ID. 14 ID string `json:"id"` 15 // Job type. 16 Type string `json:"job_type"` 17 // Job entity. 18 Entities Entities `json:"entities"` 19 // Start time. 20 BeginTime string `json:"begin_time"` 21 // End time. 22 EndTime string `json:"end_time"` 23 // Job status. 24 Status string `json:"status"` 25 // Error code. 26 ErrorCode string `json:"error_code"` 27 // The fail reason. 28 FailReason string `json:"fail_reason"` 29 // The message of fail reason. 30 Message string `json:"message"` 31 // Sub-job ID. 32 SubJobID string `json:"job_id"` 33 } 34 35 // Entities is an object to specified the job entity details of desktop. 36 type Entities struct { 37 // Desktop ID. 38 DesktopId string `json:"desktop_id"` 39 // Product ID. 40 ProductId string `json:"product_id"` 41 // User name. 42 UserName string `json:"user_name"` 43 }