Skip to content

Commit

Permalink
Rename some api types
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitrios Karagiannis <[email protected]>
  • Loading branch information
alkar committed Oct 25, 2019
1 parent 7932c44 commit d376824
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions megaport/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type responseLoginData struct {

// Location data
type Location struct {
Address MegaportAddress
Address LocationAddress
Campus string
Country string
Id uint64
Expand All @@ -38,7 +38,7 @@ type Location struct {
}

// Address data
type MegaportAddress struct {
type LocationAddress struct {
City string
Country string
Postcode string
Expand Down Expand Up @@ -77,14 +77,14 @@ type InternetExchange struct {
GroupMetro string `json:"group_metro"`
Name string
NetworkRegion string `json:"network_region"`
PrimaryIPv4 MegaportIPAddress
PrimaryIPv6 MegaportIPAddress
SecondaryIPv4 MegaportIPAddress
SecondaryIPv6 MegaportIPAddress
PrimaryIPv4 InternetExchangeIPAddress
PrimaryIPv6 InternetExchangeIPAddress
SecondaryIPv4 InternetExchangeIPAddress
SecondaryIPv6 InternetExchangeIPAddress
State string
}

type MegaportIPAddress struct {
type InternetExchangeIPAddress struct {
Type string
Value string
}
Expand Down

0 comments on commit d376824

Please sign in to comment.