github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/apiservice/task_properties.go (about) 1 /* Copyright © 2017 VMware, Inc. All Rights Reserved. 2 SPDX-License-Identifier: BSD-2-Clause 3 4 Generated by: https://github.com/swagger-api/swagger-codegen.git */ 5 6 package apiservice 7 8 import ( 9 "github.com/vmware/go-vmware-nsxt/common" 10 ) 11 12 type TaskProperties struct { 13 14 // The server will populate this field when returing the resource. Ignored on PUT and POST. 15 Links []common.ResourceLink `json:"_links,omitempty"` 16 17 Schema string `json:"_schema,omitempty"` 18 19 Self *common.SelfResourceLink `json:"_self,omitempty"` 20 21 // True if response for asynchronous request is available 22 AsyncResponseAvailable bool `json:"async_response_available,omitempty"` 23 24 // True if this task can be canceled 25 Cancelable bool `json:"cancelable,omitempty"` 26 27 // Description of the task 28 Description string `json:"description,omitempty"` 29 30 // The end time of the task in epoch milliseconds 31 EndTime int64 `json:"end_time,omitempty"` 32 33 // Identifier for this task 34 Id string `json:"id,omitempty"` 35 36 // A message describing the disposition of the task 37 Message string `json:"message,omitempty"` 38 39 // Task progress if known, from 0 to 100 40 Progress int64 `json:"progress,omitempty"` 41 42 // HTTP request method 43 RequestMethod string `json:"request_method,omitempty"` 44 45 // URI of the method invocation that spawned this task 46 RequestUri string `json:"request_uri,omitempty"` 47 48 // The start time of the task in epoch milliseconds 49 StartTime int64 `json:"start_time,omitempty"` 50 51 // Current status of the task 52 Status string `json:"status,omitempty"` 53 54 // Name of the user who created this task 55 User string `json:"user,omitempty"` 56 }