Skip to content

Commit 4389be0

Browse files
committed
add missing fields for baremetal models
1 parent 5e2a599 commit 4389be0

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

pkg/types.go

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ type ConfigurationDetails struct {
115115
// DedicatedServer represents dedicated server
116116
type DedicatedServer struct {
117117
ID string `json:"id"`
118+
RackID string `json:"rack_id"`
118119
Type string `json:"type"`
119120
Title string `json:"title"`
120121
LocationID int64 `json:"location_id"`
@@ -125,7 +126,9 @@ type DedicatedServer struct {
125126
Configuration string `json:"configuration"`
126127
PrivateIPv4Address *string `json:"private_ipv4_address"`
127128
PublicIPv4Address *string `json:"public_ipv4_address"`
129+
LeaseStart string `json:"lease_start_at"`
128130
ScheduledRelease *time.Time `json:"scheduled_release_at"`
131+
OobIPv4Address string `json:"oob_ipv4_address"`
129132
ConfigurationDetails ConfigurationDetails `json:"configuration_details"`
130133
Labels map[string]string `json:"labels"`
131134
Created time.Time `json:"created_at"`
@@ -134,27 +137,34 @@ type DedicatedServer struct {
134137

135138
// KubernetesBaremetalNode represents kubernetes baremetal node
136139
type KubernetesBaremetalNode struct {
137-
ID string `json:"id"`
138-
Type string `json:"type"`
139-
Title string `json:"title"`
140-
LocationID int64 `json:"location_id"`
141-
LocationCode string `json:"location_code"`
142-
Status string `json:"status"`
143-
OperationalStatus string `json:"operational_status"`
144-
PowerStatus string `json:"power_status"`
145-
Configuration string `json:"configuration"`
146-
PrivateIPv4Address *string `json:"private_ipv4_address"`
147-
PublicIPv4Address *string `json:"public_ipv4_address"`
148-
ScheduledRelease *time.Time `json:"scheduled_release_at"`
149-
ConfigurationDetails ConfigurationDetails `json:"configuration_details"`
150-
Labels map[string]string `json:"labels"`
151-
Created time.Time `json:"created_at"`
152-
Updated time.Time `json:"updated_at"`
140+
ID string `json:"id"`
141+
KubernetesClusterID string `json:"kubernetes_cluster_id"`
142+
KubernetesClusterNodeID string `json:"kubernetes_cluster_node_id"`
143+
KubernetesClusterNodeNumber int64 `json:"kubernetes_cluster_node_number"`
144+
RackID string `json:"rack_id"`
145+
Type string `json:"type"`
146+
Title string `json:"title"`
147+
LocationID int64 `json:"location_id"`
148+
LocationCode string `json:"location_code"`
149+
Status string `json:"status"`
150+
OperationalStatus string `json:"operational_status"`
151+
PowerStatus string `json:"power_status"`
152+
Configuration string `json:"configuration"`
153+
PrivateIPv4Address *string `json:"private_ipv4_address"`
154+
PublicIPv4Address *string `json:"public_ipv4_address"`
155+
LeaseStart string `json:"lease_start_at"`
156+
ScheduledRelease *time.Time `json:"scheduled_release_at"`
157+
OobIPv4Address string `json:"oob_ipv4_address"`
158+
ConfigurationDetails ConfigurationDetails `json:"configuration_details"`
159+
Labels map[string]string `json:"labels"`
160+
Created time.Time `json:"created_at"`
161+
Updated time.Time `json:"updated_at"`
153162
}
154163

155164
// SBMServer represents scalable baremetal server
156165
type SBMServer struct {
157166
ID string `json:"id"`
167+
RackID string `json:"rack_id"`
158168
Type string `json:"type"`
159169
Title string `json:"title"`
160170
LocationID int64 `json:"location_id"`
@@ -165,7 +175,9 @@ type SBMServer struct {
165175
Configuration string `json:"configuration"`
166176
PrivateIPv4Address *string `json:"private_ipv4_address"`
167177
PublicIPv4Address *string `json:"public_ipv4_address"`
178+
LeaseStart string `json:"lease_start_at"`
168179
ScheduledRelease *time.Time `json:"scheduled_release_at"`
180+
OobIPv4Address string `json:"oob_ipv4_address"`
169181
ConfigurationDetails ConfigurationDetails `json:"configuration_details"`
170182
Labels map[string]string `json:"labels"`
171183
Created time.Time `json:"created_at"`

0 commit comments

Comments
 (0)