Skip to content

Commit

Permalink
Add missing protect predictor composite conditions (#401)
Browse files Browse the repository at this point in the history
* Add missing protect predictor composite conditions

* changelogs

* re-generate housekeeping
  • Loading branch information
patrickcping authored Dec 18, 2024
1 parent 1579831 commit 4e93ef0
Show file tree
Hide file tree
Showing 44 changed files with 1,654 additions and 135 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* `github.com/patrickcping/pingone-go-sdk-v2` : v0.12.5
* `github.com/patrickcping/pingone-go-sdk-v2/management` : [v0.45.0](./management/CHANGELOG.md)
* **Enhancement** Added `SUSPICIOUS_TRAFFIC` enum to `EnumAlertChannelAlertType` model. [#399](https://github.com/patrickcping/pingone-go-sdk-v2/pull/399)
* `github.com/patrickcping/pingone-go-sdk-v2/risk` : [v0.18.0](./risk/CHANGELOG.md)
* **Bug** Add missing protect predictor composite conditions `IP_RANGE` and `IP_COMPARISON`. [#401](https://github.com/patrickcping/pingone-go-sdk-v2/pull/401)

# Release (2024-11-15)

Expand Down
4 changes: 2 additions & 2 deletions risk/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ docs/RiskPredictorCommonConditionScoresInner.md
docs/RiskPredictorCommonDefault.md
docs/RiskPredictorCommonDefaultResult.md
docs/RiskPredictorComposite.md
docs/RiskPredictorCompositeAllOfComposition.md
docs/RiskPredictorCompositeAllOfCompositionsInner.md
docs/RiskPredictorCompositeAnd.md
docs/RiskPredictorCompositeCondition.md
docs/RiskPredictorCompositeConditionBase.md
docs/RiskPredictorCompositeConditionOneOf.md
docs/RiskPredictorCompositeConditionOneOf1.md
docs/RiskPredictorCompositeConditionOneOf1Equals.md
docs/RiskPredictorCompositeIPRange.md
docs/RiskPredictorCompositeNot.md
docs/RiskPredictorCompositeOr.md
docs/RiskPredictorCustom.md
Expand Down Expand Up @@ -186,14 +186,14 @@ model_risk_predictor_common_condition_scores_inner.go
model_risk_predictor_common_default.go
model_risk_predictor_common_default_result.go
model_risk_predictor_composite.go
model_risk_predictor_composite_all_of_composition.go
model_risk_predictor_composite_all_of_compositions_inner.go
model_risk_predictor_composite_and.go
model_risk_predictor_composite_condition.go
model_risk_predictor_composite_condition_base.go
model_risk_predictor_composite_condition_one_of.go
model_risk_predictor_composite_condition_one_of_1.go
model_risk_predictor_composite_condition_one_of_1_equals.go
model_risk_predictor_composite_ip_range.go
model_risk_predictor_composite_not.go
model_risk_predictor_composite_or.go
model_risk_predictor_custom.go
Expand Down
2 changes: 1 addition & 1 deletion risk/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.17.0
0.18.0
4 changes: 4 additions & 0 deletions risk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.18.0 (2024-11-15)

* **Bug** Add missing protect predictor composite conditions `IP_RANGE` and `IP_COMPARISON`. [#401](https://github.com/patrickcping/pingone-go-sdk-v2/pull/401)

# v0.17.0 (2024-11-15)

* **Breaking change** `(Api[a-zA-Z]Request).Execute()` and `(*Api[a-zA-Z]Request).[a-zA-Z]Execute()` API functions now returns the `EntityArrayPagedIterator` data type to for code clients to implement paging of results. [#392](https://github.com/patrickcping/pingone-go-sdk-v2/pull/392)
Expand Down
4 changes: 2 additions & 2 deletions risk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The PingOne Platform API covering the PingOne Risk service
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2023-06-29
- Package version: 0.17.0
- Package version: 0.18.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -166,14 +166,14 @@ Class | Method | HTTP request | Description
- [RiskPredictorCommonDefault](docs/RiskPredictorCommonDefault.md)
- [RiskPredictorCommonDefaultResult](docs/RiskPredictorCommonDefaultResult.md)
- [RiskPredictorComposite](docs/RiskPredictorComposite.md)
- [RiskPredictorCompositeAllOfComposition](docs/RiskPredictorCompositeAllOfComposition.md)
- [RiskPredictorCompositeAllOfCompositionsInner](docs/RiskPredictorCompositeAllOfCompositionsInner.md)
- [RiskPredictorCompositeAnd](docs/RiskPredictorCompositeAnd.md)
- [RiskPredictorCompositeCondition](docs/RiskPredictorCompositeCondition.md)
- [RiskPredictorCompositeConditionBase](docs/RiskPredictorCompositeConditionBase.md)
- [RiskPredictorCompositeConditionOneOf](docs/RiskPredictorCompositeConditionOneOf.md)
- [RiskPredictorCompositeConditionOneOf1](docs/RiskPredictorCompositeConditionOneOf1.md)
- [RiskPredictorCompositeConditionOneOf1Equals](docs/RiskPredictorCompositeConditionOneOf1Equals.md)
- [RiskPredictorCompositeIPRange](docs/RiskPredictorCompositeIPRange.md)
- [RiskPredictorCompositeNot](docs/RiskPredictorCompositeNot.md)
- [RiskPredictorCompositeOr](docs/RiskPredictorCompositeOr.md)
- [RiskPredictorCustom](docs/RiskPredictorCustom.md)
Expand Down
48 changes: 34 additions & 14 deletions risk/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,8 @@ components:
EnumPredictorCompositeConditionType:
enum:
- VALUE_COMPARISON
- IP_RANGE
- IP_COMPARISON
- STRING_LIST
- AND
- NOT
Expand Down Expand Up @@ -2131,6 +2133,8 @@ components:
description: A string that specifies the resource’s unique identifier.
readOnly: true
type: string
environment:
$ref: '#/components/schemas/ObjectEnvironment'
name:
description: "A string type. A unique, friendly name for the predictor.\
\ This name is displayed in the Risk Policies UI, when the admin is asked\
Expand Down Expand Up @@ -2215,8 +2219,6 @@ components:
allOf:
- $ref: '#/components/schemas/RiskPredictorCommon'
- properties:
composition:
$ref: '#/components/schemas/RiskPredictorComposite_allOf_composition'
compositions:
description: Contains the objects that specify the conditions to test
and the risk level that should be assigned if the conditions are met.
Expand Down Expand Up @@ -2248,6 +2250,7 @@ components:
- $ref: '#/components/schemas/RiskPredictorCompositeNot'
- $ref: '#/components/schemas/RiskPredictorCompositeOr'
- $ref: '#/components/schemas/RiskPredictorCompositeAnd'
- $ref: '#/components/schemas/RiskPredictorCompositeIPRange'
- $ref: '#/components/schemas/RiskPredictorCompositeCondition_oneOf'
- $ref: '#/components/schemas/RiskPredictorCompositeCondition_oneOf_1'
RiskPredictorCompositeNot:
Expand All @@ -2270,6 +2273,35 @@ components:
required:
- or
type: object
RiskPredictorCompositeIPRange:
description: The mapping of risk levels for the IP ranges specified.
properties:
contains:
format: "^\\${(event|details)[a-z\\.]+}$"
type: string
notContains:
format: "^\\${(event|details)[a-z\\.]+}$"
type: string
equals:
format: "^\\${(event|details)[a-z\\.]+}$"
type: string
notEquals:
format: "^\\${(event|details)[a-z\\.]+}$"
type: string
type:
$ref: '#/components/schemas/EnumPredictorCompositeConditionType'
ipRange:
description: List of CIDRs to include
items:
pattern: "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}$"
type: string
type: array
ip:
pattern: "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}$"
type: string
required:
- ipRange
type: object
RiskPredictorCustom:
allOf:
- $ref: '#/components/schemas/RiskPredictorCommon'
Expand Down Expand Up @@ -3371,18 +3403,6 @@ components:
type: array
readOnly: true
type: object
RiskPredictorComposite_allOf_composition:
deprecated: true
properties:
condition:
$ref: '#/components/schemas/RiskPredictorCompositeConditionBase'
level:
$ref: '#/components/schemas/EnumRiskLevel'
required:
- condition
- level
type: object
example: null
RiskPredictorComposite_allOf_compositions_inner:
properties:
condition:
Expand Down
2 changes: 1 addition & 1 deletion risk/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions risk/docs/EnumPredictorCompositeConditionType.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

* `VALUE_COMPARISON` (value: `"VALUE_COMPARISON"`)

* `IP_RANGE` (value: `"IP_RANGE"`)

* `IP_COMPARISON` (value: `"IP_COMPARISON"`)

* `STRING_LIST` (value: `"STRING_LIST"`)

* `AND` (value: `"AND"`)
Expand Down
52 changes: 26 additions & 26 deletions risk/docs/RiskPredictor.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**map[string]LinksHATEOASValue**](LinksHATEOASValue.md) | | [optional] [readonly]
**Id** | Pointer to **string** | A string that specifies the resource’s unique identifier. | [optional] [readonly]
**Environment** | Pointer to [**ObjectEnvironment**](ObjectEnvironment.md) | | [optional]
**Name** | **string** | A string type. A unique, friendly name for the predictor. This name is displayed in the Risk Policies UI, when the admin is asked to define the overrides and weights. |
**CompactName** | **string** | A string type. A unique name for the predictor. This property is immutable; it cannot be modified after initial creation. The value must be alpha-numeric, with no special characters or spaces. This name is used in the API both for policy configuration, and in the Risk Evaluation response (under details). |
**Type** | [**EnumPredictorType**](EnumPredictorType.md) | |
Expand All @@ -19,7 +20,6 @@ Name | Type | Description | Notes
**DomainWhiteList** | Pointer to **[]string** | A list of strings that specify legitimate domains that users will access for restricted resources. | [optional]
**WhiteList** | Pointer to **[]string** | A list of IP addresses (CDIRs) that are ignored for the predictor results. | [optional]
**IncludeRepeatedEventsWithoutSdk** | Pointer to **bool** | Set the value of `includeRepeatedEventsWithoutSdk` to `true` to expand the range of bot activity that PingOne Protect can detect. | [optional]
**Composition** | Pointer to [**RiskPredictorCompositeAllOfComposition**](RiskPredictorCompositeAllOfComposition.md) | | [optional]
**Compositions** | [**[]RiskPredictorCompositeAllOfCompositionsInner**](RiskPredictorCompositeAllOfCompositionsInner.md) | Contains the objects that specify the conditions to test and the risk level that should be assigned if the conditions are met. The array can contain a maximum of three elements. |
**Map** | [**RiskPredictorCustomAllOfMap**](RiskPredictorCustomAllOfMap.md) | |
**Detect** | [**EnumPredictorNewDeviceDetectType**](EnumPredictorNewDeviceDetectType.md) | |
Expand Down Expand Up @@ -107,6 +107,31 @@ SetId sets Id field to given value.

HasId returns a boolean if a field has been set.

### GetEnvironment

`func (o *RiskPredictor) GetEnvironment() ObjectEnvironment`

GetEnvironment returns the Environment field if non-nil, zero value otherwise.

### GetEnvironmentOk

`func (o *RiskPredictor) GetEnvironmentOk() (*ObjectEnvironment, bool)`

GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetEnvironment

`func (o *RiskPredictor) SetEnvironment(v ObjectEnvironment)`

SetEnvironment sets Environment field to given value.

### HasEnvironment

`func (o *RiskPredictor) HasEnvironment() bool`

HasEnvironment returns a boolean if a field has been set.

### GetName

`func (o *RiskPredictor) GetName() string`
Expand Down Expand Up @@ -417,31 +442,6 @@ SetIncludeRepeatedEventsWithoutSdk sets IncludeRepeatedEventsWithoutSdk field to

HasIncludeRepeatedEventsWithoutSdk returns a boolean if a field has been set.

### GetComposition

`func (o *RiskPredictor) GetComposition() RiskPredictorCompositeAllOfComposition`

GetComposition returns the Composition field if non-nil, zero value otherwise.

### GetCompositionOk

`func (o *RiskPredictor) GetCompositionOk() (*RiskPredictorCompositeAllOfComposition, bool)`

GetCompositionOk returns a tuple with the Composition field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetComposition

`func (o *RiskPredictor) SetComposition(v RiskPredictorCompositeAllOfComposition)`

SetComposition sets Composition field to given value.

### HasComposition

`func (o *RiskPredictor) HasComposition() bool`

HasComposition returns a boolean if a field has been set.

### GetCompositions

`func (o *RiskPredictor) GetCompositions() []RiskPredictorCompositeAllOfCompositionsInner`
Expand Down
26 changes: 26 additions & 0 deletions risk/docs/RiskPredictorAdversaryInTheMiddle.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**map[string]LinksHATEOASValue**](LinksHATEOASValue.md) | | [optional] [readonly]
**Id** | Pointer to **string** | A string that specifies the resource’s unique identifier. | [optional] [readonly]
**Environment** | Pointer to [**ObjectEnvironment**](ObjectEnvironment.md) | | [optional]
**Name** | **string** | A string type. A unique, friendly name for the predictor. This name is displayed in the Risk Policies UI, when the admin is asked to define the overrides and weights. |
**CompactName** | **string** | A string type. A unique name for the predictor. This property is immutable; it cannot be modified after initial creation. The value must be alpha-numeric, with no special characters or spaces. This name is used in the API both for policy configuration, and in the Risk Evaluation response (under details). |
**Type** | [**EnumPredictorType**](EnumPredictorType.md) | |
Expand Down Expand Up @@ -87,6 +88,31 @@ SetId sets Id field to given value.

HasId returns a boolean if a field has been set.

### GetEnvironment

`func (o *RiskPredictorAdversaryInTheMiddle) GetEnvironment() ObjectEnvironment`

GetEnvironment returns the Environment field if non-nil, zero value otherwise.

### GetEnvironmentOk

`func (o *RiskPredictorAdversaryInTheMiddle) GetEnvironmentOk() (*ObjectEnvironment, bool)`

GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetEnvironment

`func (o *RiskPredictorAdversaryInTheMiddle) SetEnvironment(v ObjectEnvironment)`

SetEnvironment sets Environment field to given value.

### HasEnvironment

`func (o *RiskPredictorAdversaryInTheMiddle) HasEnvironment() bool`

HasEnvironment returns a boolean if a field has been set.

### GetName

`func (o *RiskPredictorAdversaryInTheMiddle) GetName() string`
Expand Down
26 changes: 26 additions & 0 deletions risk/docs/RiskPredictorAnonymousNetwork.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**map[string]LinksHATEOASValue**](LinksHATEOASValue.md) | | [optional] [readonly]
**Id** | Pointer to **string** | A string that specifies the resource’s unique identifier. | [optional] [readonly]
**Environment** | Pointer to [**ObjectEnvironment**](ObjectEnvironment.md) | | [optional]
**Name** | **string** | A string type. A unique, friendly name for the predictor. This name is displayed in the Risk Policies UI, when the admin is asked to define the overrides and weights. |
**CompactName** | **string** | A string type. A unique name for the predictor. This property is immutable; it cannot be modified after initial creation. The value must be alpha-numeric, with no special characters or spaces. This name is used in the API both for policy configuration, and in the Risk Evaluation response (under details). |
**Type** | [**EnumPredictorType**](EnumPredictorType.md) | |
Expand Down Expand Up @@ -87,6 +88,31 @@ SetId sets Id field to given value.

HasId returns a boolean if a field has been set.

### GetEnvironment

`func (o *RiskPredictorAnonymousNetwork) GetEnvironment() ObjectEnvironment`

GetEnvironment returns the Environment field if non-nil, zero value otherwise.

### GetEnvironmentOk

`func (o *RiskPredictorAnonymousNetwork) GetEnvironmentOk() (*ObjectEnvironment, bool)`

GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetEnvironment

`func (o *RiskPredictorAnonymousNetwork) SetEnvironment(v ObjectEnvironment)`

SetEnvironment sets Environment field to given value.

### HasEnvironment

`func (o *RiskPredictorAnonymousNetwork) HasEnvironment() bool`

HasEnvironment returns a boolean if a field has been set.

### GetName

`func (o *RiskPredictorAnonymousNetwork) GetName() string`
Expand Down
26 changes: 26 additions & 0 deletions risk/docs/RiskPredictorBotDetection.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**map[string]LinksHATEOASValue**](LinksHATEOASValue.md) | | [optional] [readonly]
**Id** | Pointer to **string** | A string that specifies the resource’s unique identifier. | [optional] [readonly]
**Environment** | Pointer to [**ObjectEnvironment**](ObjectEnvironment.md) | | [optional]
**Name** | **string** | A string type. A unique, friendly name for the predictor. This name is displayed in the Risk Policies UI, when the admin is asked to define the overrides and weights. |
**CompactName** | **string** | A string type. A unique name for the predictor. This property is immutable; it cannot be modified after initial creation. The value must be alpha-numeric, with no special characters or spaces. This name is used in the API both for policy configuration, and in the Risk Evaluation response (under details). |
**Type** | [**EnumPredictorType**](EnumPredictorType.md) | |
Expand Down Expand Up @@ -87,6 +88,31 @@ SetId sets Id field to given value.

HasId returns a boolean if a field has been set.

### GetEnvironment

`func (o *RiskPredictorBotDetection) GetEnvironment() ObjectEnvironment`

GetEnvironment returns the Environment field if non-nil, zero value otherwise.

### GetEnvironmentOk

`func (o *RiskPredictorBotDetection) GetEnvironmentOk() (*ObjectEnvironment, bool)`

GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetEnvironment

`func (o *RiskPredictorBotDetection) SetEnvironment(v ObjectEnvironment)`

SetEnvironment sets Environment field to given value.

### HasEnvironment

`func (o *RiskPredictorBotDetection) HasEnvironment() bool`

HasEnvironment returns a boolean if a field has been set.

### GetName

`func (o *RiskPredictorBotDetection) GetName() string`
Expand Down
Loading

0 comments on commit 4e93ef0

Please sign in to comment.