Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the RiskPolicyResult object, where the Level should only be LOW #178

Merged
merged 1 commit into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Release (Unreleased)

* `github.com/patrickcping/pingone-go-sdk-v2/risk` : [v0.6.1](./risk/CHANGELOG.md)
* **Bug** Fix the `RiskPolicyResult` object, where the `Level` should only be `LOW`.

# Release (2023-05-22)

* `github.com/patrickcping/pingone-go-sdk-v2` : v0.7.1
Expand Down
13 changes: 12 additions & 1 deletion pingone-risk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ components:
description: |
Indicates the type of policy you are defining. Can be one of the following values: `AGGREGATED_SCORES`, `AGGREGATED_WEIGHTS`, `VALUE_COMPARISON`, and `IP_RANGE` (for override policies or custom predictors).
enum: [AGGREGATED_WEIGHTS, AGGREGATED_SCORES, VALUE_COMPARISON, IP_RANGE]
EnumRiskPolicyResultLevel:
type: string
enum: [LOW]
description: Contains the default result level returned if none of the conditions in the policy are evaluated to true. At this time, the value must be `LOW`.
EnumPredictorCompositeConditionType:
type: string
enum: [VALUE_COMPARISON, STRING_LIST, AND, NOT, OR]
Expand Down Expand Up @@ -605,8 +609,15 @@ components:
type: integer
description: An integer that specifies priority of the policy inside a risk policy set, designating which policy should run first. This is a read-only value. The priority is determined by the order in which policies are listed in the policy set. The first policy in the list is assigned priority 1 and is evaluated first. The next policy in the list is assigned priority 2 and so on.
result:
$ref: '#/components/schemas/RiskPolicyResult'
type: object
description: A result object that specifies the result returned if the policy is evaluated as true. If several policies are evaluated as true, the result related to the highest priority policy is returned. for more information, see the Result attribute data model in the Risk Evaluations topic.
properties:
level:
$ref: '#/components/schemas/EnumRiskPolicyResultLevel'
type:
$ref: '#/components/schemas/EnumResultType'
required:
- level
updatedAt:
type: string
format: date-time
Expand Down
2 changes: 2 additions & 0 deletions risk/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ docs/EnumPredictorVelocityUseType.md
docs/EnumResultType.md
docs/EnumRiskLevel.md
docs/EnumRiskPolicyConditionType.md
docs/EnumRiskPolicyResultLevel.md
docs/EnumThresholdSource.md
docs/EnumUserRiskBehaviorRiskModel.md
docs/EnumUserType.md
Expand Down Expand Up @@ -124,6 +125,7 @@ model_enum_predictor_velocity_use_type.go
model_enum_result_type.go
model_enum_risk_level.go
model_enum_risk_policy_condition_type.go
model_enum_risk_policy_result_level.go
model_enum_threshold_source.go
model_enum_user_risk_behavior_risk_model.go
model_enum_user_type.go
Expand Down
2 changes: 1 addition & 1 deletion risk/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.6.1
4 changes: 4 additions & 0 deletions risk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.6.1 (Unreleased)

* **Bug** Fix the `RiskPolicyResult` object, where the `Level` should only be `LOW`.

# v0.6.0 (2023-05-19)

* **Breaking change** `RiskPolicySetRiskPoliciesInner` model changed to `RiskPolicy`. [#170](https://github.com/patrickcping/pingone-go-sdk-v2/pull/170)
Expand Down
3 changes: 2 additions & 1 deletion 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: 2021-10-17
- Package version: 0.6.0
- Package version: 0.6.1
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -110,6 +110,7 @@ Class | Method | HTTP request | Description
- [EnumResultType](docs/EnumResultType.md)
- [EnumRiskLevel](docs/EnumRiskLevel.md)
- [EnumRiskPolicyConditionType](docs/EnumRiskPolicyConditionType.md)
- [EnumRiskPolicyResultLevel](docs/EnumRiskPolicyResultLevel.md)
- [EnumThresholdSource](docs/EnumThresholdSource.md)
- [EnumUserRiskBehaviorRiskModel](docs/EnumUserRiskBehaviorRiskModel.md)
- [EnumUserType](docs/EnumUserType.md)
Expand Down
35 changes: 23 additions & 12 deletions risk/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -969,7 +968,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -1018,7 +1016,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -1051,7 +1048,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -1138,6 +1134,12 @@ components:
- VALUE_COMPARISON
- IP_RANGE
type: string
EnumRiskPolicyResultLevel:
description: "Contains the default result level returned if none of the conditions\
\ in the policy are evaluated to true. At this time, the value must be `LOW`."
enum:
- LOW
type: string
EnumPredictorCompositeConditionType:
enum:
- VALUE_COMPARISON
Expand Down Expand Up @@ -1638,7 +1640,6 @@ components:
result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -1703,7 +1704,7 @@ components:
\ list is assigned priority 2 and so on."
type: integer
result:
$ref: '#/components/schemas/RiskPolicyResult'
$ref: '#/components/schemas/RiskPolicy_result'
updatedAt:
description: The time the resource was last updated (format ISO-8061).
format: date-time
Expand All @@ -1730,7 +1731,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -1763,7 +1763,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -2089,7 +2088,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -2122,7 +2120,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -2171,7 +2168,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -2204,7 +2200,6 @@ components:
- result:
level: null
type: null
value: value
createdAt: 2000-01-23T04:56:07.000+00:00
condition:
aggregatedWeights:
Expand Down Expand Up @@ -2853,6 +2848,22 @@ components:
between:
$ref: '#/components/schemas/RiskPolicy_condition_between'
type: object
RiskPolicy_result:
description: "A result object that specifies the result returned if the policy\
\ is evaluated as true. If several policies are evaluated as true, the result\
\ related to the highest priority policy is returned. for more information,\
\ see the Result attribute data model in the Risk Evaluations topic."
example:
level: null
type: null
properties:
level:
$ref: '#/components/schemas/EnumRiskPolicyResultLevel'
type:
$ref: '#/components/schemas/EnumResultType'
required:
- level
type: object
RiskPolicySet_evaluatedPredictors_inner:
example:
id: id
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.

11 changes: 11 additions & 0 deletions risk/docs/EnumRiskPolicyResultLevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# EnumRiskPolicyResultLevel

## Enum


* `LOW` (value: `"LOW"`)


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


36 changes: 5 additions & 31 deletions risk/docs/RiskPolicyResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Level** | [**EnumRiskLevel**](EnumRiskLevel.md) | |
**Level** | [**EnumRiskPolicyResultLevel**](EnumRiskPolicyResultLevel.md) | |
**Type** | Pointer to [**EnumResultType**](EnumResultType.md) | | [optional]
**Value** | Pointer to **string** | | [optional]

## Methods

### NewRiskPolicyResult

`func NewRiskPolicyResult(level EnumRiskLevel, ) *RiskPolicyResult`
`func NewRiskPolicyResult(level EnumRiskPolicyResultLevel, ) *RiskPolicyResult`

NewRiskPolicyResult instantiates a new RiskPolicyResult object
This constructor will assign default values to properties that have it defined,
Expand All @@ -29,20 +28,20 @@ but it doesn't guarantee that properties required by API are set

### GetLevel

`func (o *RiskPolicyResult) GetLevel() EnumRiskLevel`
`func (o *RiskPolicyResult) GetLevel() EnumRiskPolicyResultLevel`

GetLevel returns the Level field if non-nil, zero value otherwise.

### GetLevelOk

`func (o *RiskPolicyResult) GetLevelOk() (*EnumRiskLevel, bool)`
`func (o *RiskPolicyResult) GetLevelOk() (*EnumRiskPolicyResultLevel, bool)`

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

### SetLevel

`func (o *RiskPolicyResult) SetLevel(v EnumRiskLevel)`
`func (o *RiskPolicyResult) SetLevel(v EnumRiskPolicyResultLevel)`

SetLevel sets Level field to given value.

Expand Down Expand Up @@ -72,31 +71,6 @@ SetType sets Type field to given value.

HasType returns a boolean if a field has been set.

### GetValue

`func (o *RiskPolicyResult) GetValue() string`

GetValue returns the Value field if non-nil, zero value otherwise.

### GetValueOk

`func (o *RiskPolicyResult) GetValueOk() (*string, bool)`

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

### SetValue

`func (o *RiskPolicyResult) SetValue(v string)`

SetValue sets Value field to given value.

### HasValue

`func (o *RiskPolicyResult) HasValue() bool`

HasValue returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion risk/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/patrickcping/pingone-go-sdk-v2/risk

go 1.18

require golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc
require golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
4 changes: 2 additions & 2 deletions risk/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU=
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc=
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
Loading