@@ -43,26 +43,28 @@ const (
43
43
44
44
// Instance represents a linode object
45
45
type Instance struct {
46
- ID int `json:"id"`
47
- Created * time.Time `json:"-"`
48
- Updated * time.Time `json:"-"`
49
- Region string `json:"region"`
50
- Alerts * InstanceAlert `json:"alerts"`
51
- Backups * InstanceBackup `json:"backups"`
52
- Image string `json:"image"`
53
- Group string `json:"group"`
54
- IPv4 []* net.IP `json:"ipv4"`
55
- IPv6 string `json:"ipv6"`
56
- Label string `json:"label"`
57
- Type string `json:"type"`
58
- Status InstanceStatus `json:"status"`
59
- HasUserData bool `json:"has_user_data"`
60
- Hypervisor string `json:"hypervisor"`
61
- HostUUID string `json:"host_uuid"`
62
- Specs * InstanceSpec `json:"specs"`
63
- WatchdogEnabled bool `json:"watchdog_enabled"`
64
- Tags []string `json:"tags"`
65
- PlacementGroup * InstancePlacementGroup `json:"placement_group"`
46
+ ID int `json:"id"`
47
+ Created * time.Time `json:"-"`
48
+ Updated * time.Time `json:"-"`
49
+ Region string `json:"region"`
50
+ Alerts * InstanceAlert `json:"alerts"`
51
+ Backups * InstanceBackup `json:"backups"`
52
+ Image string `json:"image"`
53
+ Group string `json:"group"`
54
+ IPv4 []* net.IP `json:"ipv4"`
55
+ IPv6 string `json:"ipv6"`
56
+ Label string `json:"label"`
57
+ Type string `json:"type"`
58
+ Status InstanceStatus `json:"status"`
59
+ HasUserData bool `json:"has_user_data"`
60
+ Hypervisor string `json:"hypervisor"`
61
+ HostUUID string `json:"host_uuid"`
62
+ Specs * InstanceSpec `json:"specs"`
63
+ WatchdogEnabled bool `json:"watchdog_enabled"`
64
+ Tags []string `json:"tags"`
65
+
66
+ // NOTE: Placement Groups may not currently be available to all users.
67
+ PlacementGroup * InstancePlacementGroup `json:"placement_group"`
66
68
}
67
69
68
70
// InstanceSpec represents a linode spec
@@ -139,7 +141,9 @@ type InstanceCreateOptions struct {
139
141
Tags []string `json:"tags,omitempty"`
140
142
Metadata * InstanceMetadataOptions `json:"metadata,omitempty"`
141
143
FirewallID int `json:"firewall_id,omitempty"`
142
- PlacementGroup * InstanceCreatePlacementGroupOptions `json:"placement_group,omitempty"`
144
+
145
+ // NOTE: Placement Groups may not currently be available to all users.
146
+ PlacementGroup * InstanceCreatePlacementGroupOptions `json:"placement_group,omitempty"`
143
147
144
148
// Creation fields that need to be set explicitly false, "", or 0 use pointers
145
149
SwapSize * int `json:"swap_size,omitempty"`
0 commit comments