Skip to content

Commit

Permalink
DXE-3554 Merge pull request #201 from akamai/release/v8.0.0
Browse files Browse the repository at this point in the history
DXE-3554 Release/v8.0.0
  • Loading branch information
dawiddzhafarov authored Mar 19, 2024
2 parents a944412 + f946868 commit 7f9b338
Show file tree
Hide file tree
Showing 306 changed files with 3,644 additions and 2,912 deletions.
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- v4
- v5
- v6
- v7
- master
jobs:
test:
Expand Down
143 changes: 143 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,148 @@
# EDGEGRID GOLANG RELEASE NOTES

## 8.0.0 (March 19, 2024)

#### BREAKING CHANGES:

* Migrated to go 1.21

* CPS
* Split request and response structures for create and update enrollment operations

* DNS
* Renamed following structs:
* `RecordsetQueryArgs` into `RecordSetQueryArgs`
* `Recordsets` into `RecordSets`
* `Recordset` into `RecordSet`
* `MetadataH` into `Metadata`
* Renamed following fields:
* `GroupId` into `GroupID` in `ListGroupRequest`
* `Recordsets` into `RecordSets` in `RecordSetResponse`
* `ContractIds` into `ContractIDs` in `TSIGQueryString`
* `Gid` into `GID` in `TSIGQueryString` and `TSIGReportMeta`
* `TsigKey` into `TSIGKey` in `ZoneCreate` and `ZoneResponse`
* `VersionId` into `VersionID` in `ZoneResponse`
* `RequestId` into `RequestID` in `BulkZonesResponse`, `BulkStatusResponse`, `BulkCreateResultResponse` and `BulkDeleteResultResponse`
* Renamed `RecordSets` interface into `Recordsets`
* Renamed following methods:
* `ListTsigKeys` into `ListTSIGKeys`
* `GetTsigKeyZones` into `GetTSIGKeyZones`
* `GetTsigKeyAliases` into `GetTSIGKeyAliases`
* `TsigKeyBulkUpdate` into `TSIGKeyBulkUpdate`
* `GetTsigKey` into `GetTSIGKey`
* `DeleteTsigKey` into `DeleteTSIGKey`
* `UpdateTsigKey` into `UpdateTSIGKey`
* `GetRecordsets` into `GetRecordSets`
* `CreateRecordsets` into `CreateRecordSets`
* `UpdateRecordsets` into `UpdateRecordSets`
* Deleted following methods:
* `NewAuthorityResponse`
* `NewChangeListResponse`
* `NewRecordBody`
* `NewRecordSetResponse`
* `NewTsigKey`
* `NewTsigQueryString`
* `NewZone`
* `NewZoneQueryString`
* `NewZoneResponse`
* `RecordToMap`
* Unexported following methods:
* `FullIPv6`
* `PadCoordinates`
* `ValidateZone`

* GTM
* Renamed following structs:
* `AsAssignment` into `ASAssignment`
* `AsMap` into `ASMap`
* `AsMapList` into `ASMapList`
* `CidrAssignment` into `CIDRAssignment`
* `CidrMap` into `CIDRMap`
* `CidrMapList` into `CIDRMapList`
* `CidrMapResponse` into `CIDRMapResponse`
* `AsMapResponse` into `ASMapResponse`
* `HttpHeader` into `HTTPHeader`
* Renamed following fields:
* `AsNumbers` into `ASNumbers` in `ASAssignment`
* `AsMapItems` into `ASMapItems` in `ASMapList`
* `CidrMapItems` into `CIDRMapItems` in `CIDRMapList`
* `ChangeId` into `ChangeID` in `ResponseStatus`
* `DatacenterId` into `DatacenterID` in `DatacenterBase`, `Datacenter`, `TrafficTarget` and `ResourceInstance`
* `AsMaps` into `ASMaps` in `Domain`
* `DefaultSslClientPrivateKey` into `DefaultSSLClientPrivateKey` in `Domain`
* `CnameCoalescingEnabled` into `CNameCoalescingEnabled` in `Domain`
* `CidrMaps` into `CIDRMaps` in `Domain`
* `DefaultSslClientCertificate` into `DefaultSSLClientCertificate` in `Domain`
* `AcgId` into `AcgID` in `DomainItem`
* `HttpError3xx` into `HTTPError3xx` in `LivenessTest`
* `HttpError4xx` into `HTTPError4xx` in `LivenessTest`
* `HttpError5xx` into `HTTPError5xx` in `LivenessTest`
* `SslClientPrivateKey` into `SSLClientPrivateKey` in `LivenessTest`
* `SslClientCertificate` into `SSLClientCertificate` in `LivenessTest`
* `HttpHeaders` into `HTTPHeaders` in `LivenessTest`
* `Ipv6` into `IPv6` in `Property`
* `BackupIp` into `BackupIP` in `Property`
* Renamed `CidrMaps` interface into `CIDRMaps`
* Renamed following methods:
* `ListAsMaps` into `ListASMaps`
* `GetAsMap` into `GetASMap`
* `CreateAsMap` into `CreateASMap`
* `DeleteAsMap` into `DeleteASMap`
* `UpdateAsMap` into `UpdateASMap`
* `ListCidrMaps` into `ListCIDRMaps`
* `GetCidrMap` into `GetCIDRMap`
* `CreateCidrMap` into `CreateCIDRMap`
* `DeleteCidrMap` into `DeleteCIDRMap`
* `UpdateCidrMap` into `UpdateCIDRMap`
* Deleted following methods:
* `NewASAssignment`
* `NewAsMap`
* `NewCidrAssignment`
* `NewCidrMap`
* `NewDatacenter`
* `NewDatacenterBase`
* `NewDatacenterResponse`
* `NewDefaultDatacenter`
* `NewDomain`
* `NewGeoAssignment`
* `NewHttpHeader`
* `NewGeoMap`
* `NewLivenessTest`
* `NewLoadObject`
* `NewProperty`
* `NewResource`
* `NewResourceInstance`
* `NewResponseStatus`
* `NewStaticRRSet`
* `NewTrafficTarget`

#### FEATURES/ENHANCEMENTS:

* Added default value `application/json` for `Accept` header for all requests sent to API

* Appsec
* Added `PenaltyBoxConditions` API - read and update
* Added `EvalPenaltyBoxConditions` API - read and update

* CPS
* Added `ID`, `OrgID`, `ProductionSlots`, `StagingSlots` and `AssignedSlots` to the response structures of `GetEnrollment` and `ListEnrollment` operations

* GTM
* Added new fields:
* `SignAndServe` and `SignAndServeAlgorithm` for the `Domain`
* `HTTPMethod`, `HTTPRequestBody`, `Pre2023SecurityPosture` and `AlternateCACertificates` for the `LivenessTest` in `Property`
* `Precedence` for the `TrafficTarget` in `Property`
* Enhanced error details by addition of `Errors` field in `Error` structure
* Added support for the creation of `ranked-failover` properties

#### BUG FIXES:

* DNS
* Removed not working `DeleteZone` method
*
* PAPI
* Updated documentation link for `GetProperties` method

## 7.6.1 (February 14, 2024)

#### BUG FIXES:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Akamai OPEN EdgeGrid for GoLang v7
# Akamai OPEN EdgeGrid for GoLang v8

![Build Status](https://github.com/akamai/akamaiOPEN-edgegrid-golang/actions/workflows/checks.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/akamai/AkamaiOPEN-edgegrid-golang/v7)](https://goreportcard.com/report/github.com/akamai/AkamaiOPEN-edgegrid-golang/v7)
[![Go Report Card](https://goreportcard.com/badge/github.com/akamai/AkamaiOPEN-edgegrid-golang/v8)](https://goreportcard.com/report/github.com/akamai/AkamaiOPEN-edgegrid-golang/v8)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/akamai/akamaiOPEN-edgegrid-golang)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GoDoc](https://pkg.go.dev/badge/github.com/akamai/akamaiOPEN-edgegrid-golang?utm_source=godoc)](https://pkg.go.dev/github.com/akamai/AkamaiOPEN-edgegrid-golang/v7)
[![GoDoc](https://pkg.go.dev/badge/github.com/akamai/akamaiOPEN-edgegrid-golang?utm_source=godoc)](https://pkg.go.dev/github.com/akamai/AkamaiOPEN-edgegrid-golang/v8)

This module is presently in active development and provides Akamai REST API support for the Akamai Terraform Provider.

## Backward Compatibility

This module is not backward compatible with the version `v1`.

Originally branch `master` was representing version `v1`. Now it is representing the latest version `v7` and
Originally branch `master` was representing version `v1`. Now it is representing the latest version `v8` and
version `v1`
was moved to dedicated `v1` branch.

Expand All @@ -23,6 +23,6 @@ The packages of library can be imported alongside the `v1` library versions with
```
import (
papiv1 "github.com/akamai/AkamaiOPEN-edgegrid-golang/papi-v1"
papi "github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/papi"
papi "github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/papi"
)
```
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/akamai/AkamaiOPEN-edgegrid-golang/v7
module github.com/akamai/AkamaiOPEN-edgegrid-golang/v8

go 1.18
go 1.21

require (
github.com/apex/log v1.9.0
Expand All @@ -25,8 +25,6 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/stretchr/objx v0.5.0 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/tools v0.17.0 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ go.uber.org/ratelimit v0.2.0 h1:UQE2Bgi7p2B85uP5dC2bbRtig0C+OeNRnNEafLjsLPA=
go.uber.org/ratelimit v0.2.0/go.mod h1:YYBV4e4naJvhpitQrWJu1vCpgB7CboMe0qhltKt6mUg=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
Expand All @@ -104,8 +102,6 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc=
golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/activations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_attack_payload_logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"net/http"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/edgegriderr"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/edgegriderr"
validation "github.com/go-ozzo/ozzo-validation/v4"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_evasive_path_match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_pii_learning.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/edgegriderr"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/edgegriderr"
validation "github.com/go-ozzo/ozzo-validation/v4"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_pii_learning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_pragma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_prefetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_request_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/edgegriderr"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/edgegriderr"
validation "github.com/go-ozzo/ozzo-validation/v4"
)

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

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/api_constraints_protection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/api_endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/api_hostname_coverage_match_targets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/api_hostname_coverage_overlapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/api_hostname_coverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/api_request_constraints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v7/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v8/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
Loading

0 comments on commit 7f9b338

Please sign in to comment.