diff --git a/client.go b/client.go index ade0e91..023b772 100644 --- a/client.go +++ b/client.go @@ -455,11 +455,10 @@ type DeviceLinkGroupLink struct { // DeviceLinkGroupMetroLink describes metro details and throughput type DeviceLinkGroupMetroLink struct { - AccountNumber *string - AccountReferenceId *string - MetroCode *string - Throughput *string - ThroughputUnit *string + AccountNumber *string + MetroCode *string + Throughput *string + ThroughputUnit *string } // ClusterDetails describes Network Edge cluster device details diff --git a/internal/api/device_link.go b/internal/api/device_link.go index 994d6b2..7e5f1ec 100644 --- a/internal/api/device_link.go +++ b/internal/api/device_link.go @@ -39,11 +39,10 @@ type DeviceLinkGroupLink struct { DestinationZoneCode *string `json:"destinationZoneCode,omitempty"` } type DeviceLinkGroupMetroLink struct { - AccountNumber *string `json:"accountNumber,omitempty"` - AccountReferenceId *string `json:"accountReferenceID,omitempty"` - MetroCode *string `json:"metroCode,omitempty"` - Throughput *string `json:"throughput,omitempty"` - ThroughputUnit *string `json:"throughputUnit,omitempty"` + AccountNumber *string `json:"accountNumber,omitempty"` + MetroCode *string `json:"metroCode,omitempty"` + Throughput *string `json:"throughput,omitempty"` + ThroughputUnit *string `json:"throughputUnit,omitempty"` } type DeviceLinkGroupCreateResponse struct { diff --git a/rest_device_link.go b/rest_device_link.go index 201fc56..b85c8e0 100644 --- a/rest_device_link.go +++ b/rest_device_link.go @@ -188,11 +188,10 @@ func mapDeviceLinkGroupLinkAPIToDomain(apiLinkGroupLink api.DeviceLinkGroupLink) func mapDeviceLinkGroupMetroLinkAPIToDomain(apiLinkGroupMetroLink api.DeviceLinkGroupMetroLink) DeviceLinkGroupMetroLink { return DeviceLinkGroupMetroLink{ - AccountNumber: apiLinkGroupMetroLink.AccountNumber, - AccountReferenceId: apiLinkGroupMetroLink.AccountReferenceId, - MetroCode: apiLinkGroupMetroLink.MetroCode, - Throughput: apiLinkGroupMetroLink.Throughput, - ThroughputUnit: apiLinkGroupMetroLink.ThroughputUnit, + AccountNumber: apiLinkGroupMetroLink.AccountNumber, + MetroCode: apiLinkGroupMetroLink.MetroCode, + Throughput: apiLinkGroupMetroLink.Throughput, + ThroughputUnit: apiLinkGroupMetroLink.ThroughputUnit, } } @@ -241,10 +240,9 @@ func mapDeviceLinkGroupLinkDomainToAPI(linkGroupLink DeviceLinkGroupLink) api.De func mapDeviceLinkGroupMetroLinkDomainToAPI(metroLink DeviceLinkGroupMetroLink) api.DeviceLinkGroupMetroLink { return api.DeviceLinkGroupMetroLink{ - AccountNumber: metroLink.AccountNumber, - AccountReferenceId: metroLink.AccountReferenceId, - MetroCode: metroLink.MetroCode, - Throughput: metroLink.Throughput, - ThroughputUnit: metroLink.ThroughputUnit, + AccountNumber: metroLink.AccountNumber, + MetroCode: metroLink.MetroCode, + Throughput: metroLink.Throughput, + ThroughputUnit: metroLink.ThroughputUnit, } } diff --git a/test-fixtures/ne_device_link_get_resp.json b/test-fixtures/ne_device_link_get_resp.json index 60de9e6..210955b 100644 --- a/test-fixtures/ne_device_link_get_resp.json +++ b/test-fixtures/ne_device_link_get_resp.json @@ -31,14 +31,12 @@ "metroLinks": [ { "accountNumber": "592205", - "accountReferenceId": "", "metroCode": "MX", "throughput": "10", "throughputUnit": "Mbps" }, { "account_number": "606828", - "accountReferenceId": "", "metroCode": "LD", "throughput": "10", "throughputUnit": "Mbps"