Skip to content

Commit

Permalink
SECKSD-13178 Allow multiple protection setting resources
Browse files Browse the repository at this point in the history
  • Loading branch information
robertolopezlopez committed Feb 2, 2022
1 parent 553b6a0 commit 77f0f85
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 21 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# EDGEGRID GOLANG RELEASE NOTES

## 2.9.1 (Feb. 2, 2022)

#### FEATURES/ENHANCEMENTS:

* APPSEC
* Remove deprecation notes for individual policy protection methods

## 2.9.0 (Jan. 24, 2022)

#### FEATURES/ENHANCEMENTS:
Expand Down
2 changes: 0 additions & 2 deletions pkg/appsec/api_constraints_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ type (
// The APIConstraintsProtection interface supports retrieving and updating API request constraints
// for a configuration and policy.
//
// Deprecated: this interface will be removed in a future release. Use the PolicyProtections interface instead.
//
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#protections
APIConstraintsProtection interface {
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#getapirequestconstraints
Expand Down
20 changes: 9 additions & 11 deletions pkg/appsec/ip_geo_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ type (
// The IPGeoProtection interface supports retrieving and modifying the protections for a policy,
// and whether each is enabled or disabled.
//
// Deprecated: this interface will be removed in a future release. Use the PolicyProtections interface instead.
//
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#protections
IPGeoProtection interface {
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#getprotections
Expand Down Expand Up @@ -64,7 +62,15 @@ type (
ApplySlowPostControls bool `json:"applySlowPostControls,omitempty"`
}

// UpdateIPGeoProtectionResponse is used to modify the IPGeo protection settings.
// UpdateIPGeoProtectionRequest is used to modify the IPGeo protection settings.
UpdateIPGeoProtectionRequest struct {
ConfigID int `json:"-"`
Version int `json:"-"`
PolicyID string `json:"-"`
ApplyNetworkLayerControls bool `json:"applyNetworkLayerControls"`
}

// UpdateIPGeoProtectionResponse is returned from a call to UpdateIPGeoProtection.
UpdateIPGeoProtectionResponse struct {
ApplyAPIConstraints bool `json:"applyApiConstraints"`
ApplyApplicationLayerControls bool `json:"applyApplicationLayerControls"`
Expand All @@ -74,14 +80,6 @@ type (
ApplyReputationControls bool `json:"applyReputationControls"`
ApplySlowPostControls bool `json:"applySlowPostControls"`
}

// UpdateIPGeoProtectionRequest is returned from a call to UpdateIPGeoProtection.
UpdateIPGeoProtectionRequest struct {
ConfigID int `json:"-"`
Version int `json:"-"`
PolicyID string `json:"-"`
ApplyNetworkLayerControls bool `json:"applyNetworkLayerControls"`
}
)

// Validate validates a GetIPGeoProtectionRequest.
Expand Down
2 changes: 0 additions & 2 deletions pkg/appsec/network_layer_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
type (
// The NetworkLayerProtection interface supports retrieving, modifying and removing network layer protection.
//
// Deprecated: this interface will be removed in a future release. Use the PolicyProtections interface instead.
//
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#protections
NetworkLayerProtection interface {
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#getprotections
Expand Down
2 changes: 0 additions & 2 deletions pkg/appsec/reputation_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ type (
// The ReputationProtection interface supports retrieving, modifying and removing reputation
// protection.
//
// Deprecated: this interface will be removed in a future release. Use the PolicyProtections interface instead.
//
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#protections
ReputationProtection interface {
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#getprotections
Expand Down
2 changes: 0 additions & 2 deletions pkg/appsec/slowpost_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ type (
// The SlowPostProtection interface supports retrieving and updating slow post protection
// for a configuration and policy.
//
// Deprecated: this interface will be removed in a future release. Use the PolicyProtections interface instead.
//
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#slowpostprotection
SlowPostProtection interface {
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#getprotections
Expand Down
2 changes: 0 additions & 2 deletions pkg/appsec/waf_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ type (
// The WAFProtection interface supports retrieving, modifying and removing protections for a
// security policy.
//
// Deprecated: this interface will be removed in a future release. Use the PolicyProtections interface instead.
//
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#protections
WAFProtection interface {
// https://developer.akamai.com/api/cloud_security/application_security/v1.html#getprotections
Expand Down

0 comments on commit 77f0f85

Please sign in to comment.