Skip to content

Commit

Permalink
Release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikouaj committed Feb 1, 2021
1 parent 93d2107 commit a80d352
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 12 deletions.
27 changes: 26 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
## 1.3.0 (Unreleased)
## 2.0.0 (February 01, 2021)

BREAKING CHANGES:

* General change in create functions: instead of returning copy of input structure,
that might be outdated anyway, functions return pointers to created object's identifiers.
Change affects below functions:
* `CreateL2Connection`
* `CreateL2Connection`
* `CreateL2ServiceProfile`
* `UpdateL2ServiceProfile` doest not return service profile's structure anymore
* General change in L2 Connection and Service Profile models: all basic type fields
are pointers now. Change affects below structures:
* `L2Connection`
* `L2ConnectionAdditionalInfo`
* `L2ConnectionAction`
* `L2ConnectionActionData`
* `L2ConnectionToConfirm`
* `L2ConnectionConfirmation`
* `L2ServiceProfile`
* `L2ServiceProfilePort`
* `L2ServiceProfileSpeedBand`
* `L2ServiceProfileFeatures`
* `Port`
* `L2SellerProfileMetro`
* `L2SellerProfileAdditionalInfo`

ENHANCEMENTS:

Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ type Port struct {
Status *string
}

//L2SellerProfileMetro describces details of a metro in which service provices is present
//L2SellerProfileMetro describes details of a metro in which service provices is present
type L2SellerProfileMetro struct {
Code *string
Name *string
IBXes []string
Regions map[string]string
}

//L2SellerProfileAdditionalInfo describces additional information that might be provided by service buyer when using given seller profile
//L2SellerProfileAdditionalInfo describes additional information that might be provided by service buyer when using given seller profile
type L2SellerProfileAdditionalInfo struct {
Name *string
Description *string
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/equinix/ecx-go
module github.com/equinix/ecx-go/v2

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion rest_l2_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"net/url"

"github.com/equinix/ecx-go/internal/api"
"github.com/equinix/ecx-go/v2/internal/api"
"github.com/equinix/rest-go"
)

Expand Down
2 changes: 1 addition & 1 deletion rest_l2_connection_confirm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"net/url"

"github.com/equinix/ecx-go/internal/api"
"github.com/equinix/ecx-go/v2/internal/api"
)

//ConfirmL2Connection operation accepts a hosted connection
Expand Down
2 changes: 1 addition & 1 deletion rest_l2_connection_confirm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"testing"

"github.com/equinix/ecx-go/internal/api"
"github.com/equinix/ecx-go/v2/internal/api"
"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion rest_l2_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"
"testing"

"github.com/equinix/ecx-go/internal/api"
"github.com/equinix/ecx-go/v2/internal/api"
"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion rest_l2_serviceprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"net/url"

"github.com/equinix/ecx-go/internal/api"
"github.com/equinix/ecx-go/v2/internal/api"
"github.com/equinix/rest-go"
)

Expand Down
2 changes: 1 addition & 1 deletion rest_l2_serviceprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"testing"

"github.com/equinix/ecx-go/internal/api"
"github.com/equinix/ecx-go/v2/internal/api"
"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion rest_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"github.com/equinix/ecx-go/internal/api"
"github.com/equinix/ecx-go/v2/internal/api"
)

//GetUserPorts operation retrieves Equinix Fabric user ports
Expand Down
2 changes: 1 addition & 1 deletion rest_port_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"testing"

"github.com/equinix/ecx-go/internal/api"
"github.com/equinix/ecx-go/v2/internal/api"
"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/assert"
)
Expand Down

0 comments on commit a80d352

Please sign in to comment.