Skip to content

Commit dbc567d

Browse files
feat(flexibleip): add support for zone in flexible ip and MACAddress struct (#1045)
Co-authored-by: Rémy Léone <[email protected]>
1 parent bde7037 commit dbc567d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

api/flexibleip/v1alpha1/flexibleip_sdk.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ type FlexibleIP struct {
252252
ServerID *string `json:"server_id"`
253253
// Reverse: reverse DNS value
254254
Reverse string `json:"reverse"`
255+
// Zone: flexible IP Availability Zone
256+
Zone scw.Zone `json:"zone"`
255257
}
256258

257259
// ListFlexibleIPsResponse: list flexible i ps response
@@ -264,21 +266,24 @@ type ListFlexibleIPsResponse struct {
264266

265267
// MACAddress: mac address
266268
type MACAddress struct {
269+
// ID: ID of the Flexible IP
267270
ID string `json:"id"`
268-
271+
// MacAddress: mAC address of the Virtual MAC
269272
MacAddress string `json:"mac_address"`
270-
// MacType:
273+
// MacType: virtual MAC type
271274
//
272275
// Default value: unknown_type
273276
MacType MACAddressType `json:"mac_type"`
274-
// Status:
277+
// Status: virtual MAC status
275278
//
276279
// Default value: unknown
277280
Status MACAddressStatus `json:"status"`
278-
281+
// UpdatedAt: date of last update of the Virtual MAC
279282
UpdatedAt *time.Time `json:"updated_at"`
280-
283+
// CreatedAt: date of creation of the Virtual MAC
281284
CreatedAt *time.Time `json:"created_at"`
285+
// Zone: mAC Addr IP Availability Zone
286+
Zone scw.Zone `json:"zone"`
282287
}
283288

284289
// Service API

0 commit comments

Comments
 (0)