|
2 | 2 |
|
3 | 3 | namespace Spinen\Halo;
|
4 | 4 |
|
| 5 | +use Spinen\Halo\Support\Collection; |
5 | 6 | use Spinen\Halo\Support\Model;
|
6 | 7 |
|
7 | 8 | /**
|
8 | 9 | * Class Asset
|
9 | 10 | *
|
| 11 | + * @property bool $bookmarked |
10 | 12 | * @property bool $inactive
|
11 | 13 | * @property bool $non_consignable
|
12 |
| - * @property float $key_field3 |
| 14 | + * @property Collection $custombuttons |
| 15 | + * @property Collection $customfields |
| 16 | + * @property Collection $fields |
| 17 | + * @property int $access_control_level |
13 | 18 | * @property int $assettype_id
|
14 | 19 | * @property int $automate_id
|
15 | 20 | * @property int $business_owner_cab_id
|
16 | 21 | * @property int $business_owner_id
|
17 | 22 | * @property int $client_id
|
| 23 | + * @property int $commissioned |
| 24 | + * @property int $contract_id |
| 25 | + * @property int $criticality |
18 | 26 | * @property int $datto_alternate_id
|
19 | 27 | * @property int $defaultsequence
|
20 | 28 | * @property int $device_number
|
| 29 | + * @property int $device42_id |
| 30 | + * @property int $goodsin_po_id |
21 | 31 | * @property int $id
|
22 | 32 | * @property int $issue_consignment_line_id
|
| 33 | + * @property int $item_cost |
23 | 34 | * @property int $item_id
|
24 | 35 | * @property int $itemstock_id
|
| 36 | + * @property int $ncentral_details_id |
25 | 37 | * @property int $ninjarmm_id
|
| 38 | + * @property int $passportal_id |
| 39 | + * @property int $priority_id |
| 40 | + * @property int $prtg_id |
26 | 41 | * @property int $reserved_salesorder_id
|
27 | 42 | * @property int $reserved_salesorder_line_id
|
28 | 43 | * @property int $site_id
|
29 |
| - * @property int $snow_id |
| 44 | + * @property int $sla_id |
30 | 45 | * @property int $status_id
|
| 46 | + * @property int $stockbin_id |
31 | 47 | * @property int $supplier_contract_id
|
32 | 48 | * @property int $supplier_id
|
33 | 49 | * @property int $supplier_priority_id
|
|
36 | 52 | * @property int $technical_owner_cab_id
|
37 | 53 | * @property int $technical_owner_id
|
38 | 54 | * @property int $third_party_id
|
| 55 | + * @property string $addigy_id |
39 | 56 | * @property string $assettype_name
|
| 57 | + * @property string $ateraid |
40 | 58 | * @property string $auvik_device_id
|
41 |
| - * @property string $auvik_url |
| 59 | + * @property string $auvik_network_id |
| 60 | + * @property string $azureTenantId |
| 61 | + * @property string $business_owner_name |
42 | 62 | * @property string $client_name
|
43 | 63 | * @property string $colour
|
| 64 | + * @property string $contract_ref |
44 | 65 | * @property string $datto_id
|
45 | 66 | * @property string $datto_url
|
| 67 | + * @property string $dlastupdate |
| 68 | + * @property string $icon |
| 69 | + * @property string $intune_id |
46 | 70 | * @property string $inventory_number
|
47 |
| - * @property string $item_name |
| 71 | + * @property string $itglue_id |
48 | 72 | * @property string $itglue_url
|
49 | 73 | * @property string $key_field
|
50 | 74 | * @property string $key_field2
|
| 75 | + * @property string $key_field3 |
| 76 | + * @property string $lansweeper_id |
| 77 | + * @property string $lansweeper_url |
| 78 | + * @property string $last_modified |
| 79 | + * @property string $qualys_id |
51 | 80 | * @property string $site_name
|
| 81 | + * @property string $supplier_contract_ref |
| 82 | + * @property string $supplier_name |
| 83 | + * @property string $technical_owner_name |
52 | 84 | * @property string $use
|
53 | 85 | */
|
54 | 86 | class Asset extends Model
|
55 | 87 | {
|
| 88 | + /** |
| 89 | + * The name of the "updated at" column. |
| 90 | + * |
| 91 | + * @var string |
| 92 | + */ |
| 93 | + const UPDATED_AT = 'last_modified'; |
| 94 | + |
56 | 95 | /**
|
57 | 96 | * The attributes that should be cast to native types.
|
58 | 97 | *
|
59 | 98 | * @var array
|
60 | 99 | */
|
61 |
| - protected $casts = []; |
| 100 | + protected $casts = [ |
| 101 | + 'dlastupdate' => 'datetime', |
| 102 | + 'last_modified' => 'datetime', |
| 103 | + ]; |
62 | 104 |
|
63 | 105 | /**
|
64 | 106 | * Path to API endpoint.
|
|
0 commit comments