Skip to content

Commit

Permalink
Merge pull request #91 from ukfast/multi-az
Browse files Browse the repository at this point in the history
add availability_zone_id to floating  ip
  • Loading branch information
Overglazed authored Jul 27, 2021
2 parents 2b12521 + 31817ab commit 14a9a1a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
17 changes: 9 additions & 8 deletions pkg/service/ecloud/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,15 @@ type Instance struct {
// +genie:model_response
// +genie:model_paginated
type FloatingIP struct {
ID string `json:"id"`
Name string `json:"name"`
VPCID string `json:"vpc_id"`
IPAddress string `json:"ip_address"`
ResourceID string `json:"resource_id"`
Sync ResourceSync `json:"sync"`
CreatedAt connection.DateTime `json:"created_at"`
UpdatedAt connection.DateTime `json:"updated_at"`
ID string `json:"id"`
Name string `json:"name"`
VPCID string `json:"vpc_id"`
IPAddress string `json:"ip_address"`
ResourceID string `json:"resource_id"`
AvailabilityZoneID string `json:"availability_zone_id"`
Sync ResourceSync `json:"sync"`
CreatedAt connection.DateTime `json:"created_at"`
UpdatedAt connection.DateTime `json:"updated_at"`
}

// FirewallPolicy represents an eCloud firewall policy
Expand Down
5 changes: 3 additions & 2 deletions pkg/service/ecloud/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,9 @@ type PatchFirewallRulePortRequest struct {

// CreateFloatingIPRequest represents a request to create a floating IP
type CreateFloatingIPRequest struct {
Name string `json:"name,omitempty"`
VPCID string `json:"vpc_id"`
Name string `json:"name,omitempty"`
VPCID string `json:"vpc_id"`
AvailabilityZoneID string `json:"availability_zone_id"`
}

// PatchFloatingIPRequest represents a request to patch a floating IP
Expand Down

0 comments on commit 14a9a1a

Please sign in to comment.