From 4e93ef0b37edd44f6e3d8aac8569072ed2fae453 Mon Sep 17 00:00:00 2001 From: Patrick Cowland <44225864+patrickcping@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:44:53 +0000 Subject: [PATCH] Add missing protect predictor composite conditions (#401) * Add missing protect predictor composite conditions * changelogs * re-generate housekeeping --- CHANGELOG.md | 2 + risk/.openapi-generator/FILES | 4 +- risk/.version | 2 +- risk/CHANGELOG.md | 4 + risk/README.md | 4 +- risk/api/openapi.yaml | 48 ++- risk/configuration.go | 2 +- .../EnumPredictorCompositeConditionType.md | 4 + risk/docs/RiskPredictor.md | 52 +-- .../docs/RiskPredictorAdversaryInTheMiddle.md | 26 ++ risk/docs/RiskPredictorAnonymousNetwork.md | 26 ++ risk/docs/RiskPredictorBotDetection.md | 26 ++ risk/docs/RiskPredictorCommon.md | 26 ++ risk/docs/RiskPredictorComposite.md | 52 +-- risk/docs/RiskPredictorCompositeCondition.md | 95 ++++- risk/docs/RiskPredictorCompositeIPRange.md | 207 +++++++++++ risk/docs/RiskPredictorCustom.md | 26 ++ risk/docs/RiskPredictorDevice.md | 26 ++ risk/docs/RiskPredictorEmailReputation.md | 26 ++ risk/docs/RiskPredictorGeovelocity.md | 26 ++ risk/docs/RiskPredictorIPReputation.md | 26 ++ risk/docs/RiskPredictorTrafficAnomaly.md | 26 ++ risk/docs/RiskPredictorUserLocationAnomaly.md | 26 ++ risk/docs/RiskPredictorUserRiskBehavior.md | 26 ++ risk/docs/RiskPredictorVelocity.md | 26 ++ risk/generate/pingone-risk.yml | 45 ++- .../postprocessing/generate-replace-regex.go | 16 + ...enum_predictor_composite_condition_type.go | 4 + ..._risk_predictor_adversary_in_the_middle.go | 36 ++ .../model_risk_predictor_anonymous_network.go | 36 ++ risk/model_risk_predictor_bot_detection.go | 36 ++ risk/model_risk_predictor_common.go | 36 ++ risk/model_risk_predictor_composite.go | 76 ++-- ...odel_risk_predictor_composite_condition.go | 32 ++ ...model_risk_predictor_composite_ip_range.go | 334 ++++++++++++++++++ risk/model_risk_predictor_custom.go | 36 ++ risk/model_risk_predictor_device.go | 36 ++ risk/model_risk_predictor_email_reputation.go | 36 ++ risk/model_risk_predictor_geovelocity.go | 36 ++ risk/model_risk_predictor_ip_reputation.go | 36 ++ risk/model_risk_predictor_traffic_anomaly.go | 36 ++ ...el_risk_predictor_user_location_anomaly.go | 36 ++ ...model_risk_predictor_user_risk_behavior.go | 36 ++ risk/model_risk_predictor_velocity.go | 36 ++ 44 files changed, 1654 insertions(+), 135 deletions(-) create mode 100644 risk/docs/RiskPredictorCompositeIPRange.md create mode 100644 risk/model_risk_predictor_composite_ip_range.go diff --git a/CHANGELOG.md b/CHANGELOG.md index bed62a5e..9370fa36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/risk/.openapi-generator/FILES b/risk/.openapi-generator/FILES index 863d0b3c..57309a37 100644 --- a/risk/.openapi-generator/FILES +++ b/risk/.openapi-generator/FILES @@ -78,7 +78,6 @@ docs/RiskPredictorCommonConditionScoresInner.md docs/RiskPredictorCommonDefault.md docs/RiskPredictorCommonDefaultResult.md docs/RiskPredictorComposite.md -docs/RiskPredictorCompositeAllOfComposition.md docs/RiskPredictorCompositeAllOfCompositionsInner.md docs/RiskPredictorCompositeAnd.md docs/RiskPredictorCompositeCondition.md @@ -86,6 +85,7 @@ docs/RiskPredictorCompositeConditionBase.md docs/RiskPredictorCompositeConditionOneOf.md docs/RiskPredictorCompositeConditionOneOf1.md docs/RiskPredictorCompositeConditionOneOf1Equals.md +docs/RiskPredictorCompositeIPRange.md docs/RiskPredictorCompositeNot.md docs/RiskPredictorCompositeOr.md docs/RiskPredictorCustom.md @@ -186,7 +186,6 @@ 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 @@ -194,6 +193,7 @@ 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 diff --git a/risk/.version b/risk/.version index 07feb823..47d04a52 100644 --- a/risk/.version +++ b/risk/.version @@ -1 +1 @@ -0.17.0 \ No newline at end of file +0.18.0 \ No newline at end of file diff --git a/risk/CHANGELOG.md b/risk/CHANGELOG.md index 37d1cbe1..e1ba2565 100644 --- a/risk/CHANGELOG.md +++ b/risk/CHANGELOG.md @@ -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) diff --git a/risk/README.md b/risk/README.md index 8b7e386e..b0562c09 100644 --- a/risk/README.md +++ b/risk/README.md @@ -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 @@ -166,7 +166,6 @@ 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) @@ -174,6 +173,7 @@ Class | Method | HTTP request | Description - [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) diff --git a/risk/api/openapi.yaml b/risk/api/openapi.yaml index 88d8e97b..79eeb94e 100644 --- a/risk/api/openapi.yaml +++ b/risk/api/openapi.yaml @@ -1308,6 +1308,8 @@ components: EnumPredictorCompositeConditionType: enum: - VALUE_COMPARISON + - IP_RANGE + - IP_COMPARISON - STRING_LIST - AND - NOT @@ -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\ @@ -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. @@ -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: @@ -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' @@ -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: diff --git a/risk/configuration.go b/risk/configuration.go index a78f8156..e4e6e6bb 100644 --- a/risk/configuration.go +++ b/risk/configuration.go @@ -91,7 +91,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "pingtools PingOne-GOLANG-SDK-risk/0.17.0", + UserAgent: "pingtools PingOne-GOLANG-SDK-risk/0.18.0", Debug: false, DefaultServerIndex: 0, Servers: ServerConfigurations{ diff --git a/risk/docs/EnumPredictorCompositeConditionType.md b/risk/docs/EnumPredictorCompositeConditionType.md index faa313f6..990cf042 100644 --- a/risk/docs/EnumPredictorCompositeConditionType.md +++ b/risk/docs/EnumPredictorCompositeConditionType.md @@ -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"`) diff --git a/risk/docs/RiskPredictor.md b/risk/docs/RiskPredictor.md index dd09060d..90b105f1 100644 --- a/risk/docs/RiskPredictor.md +++ b/risk/docs/RiskPredictor.md @@ -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) | | @@ -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) | | @@ -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` @@ -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` diff --git a/risk/docs/RiskPredictorAdversaryInTheMiddle.md b/risk/docs/RiskPredictorAdversaryInTheMiddle.md index fbb22b00..f6092744 100644 --- a/risk/docs/RiskPredictorAdversaryInTheMiddle.md +++ b/risk/docs/RiskPredictorAdversaryInTheMiddle.md @@ -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) | | @@ -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` diff --git a/risk/docs/RiskPredictorAnonymousNetwork.md b/risk/docs/RiskPredictorAnonymousNetwork.md index e2f271f2..d2a65451 100644 --- a/risk/docs/RiskPredictorAnonymousNetwork.md +++ b/risk/docs/RiskPredictorAnonymousNetwork.md @@ -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) | | @@ -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` diff --git a/risk/docs/RiskPredictorBotDetection.md b/risk/docs/RiskPredictorBotDetection.md index 0c7276f2..88efb404 100644 --- a/risk/docs/RiskPredictorBotDetection.md +++ b/risk/docs/RiskPredictorBotDetection.md @@ -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) | | @@ -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` diff --git a/risk/docs/RiskPredictorCommon.md b/risk/docs/RiskPredictorCommon.md index 478534f0..31e1b3b9 100644 --- a/risk/docs/RiskPredictorCommon.md +++ b/risk/docs/RiskPredictorCommon.md @@ -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) | | @@ -86,6 +87,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorCommon) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorCommon) 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 *RiskPredictorCommon) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorCommon) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorCommon) GetName() string` diff --git a/risk/docs/RiskPredictorComposite.md b/risk/docs/RiskPredictorComposite.md index 3e820237..4778a8b9 100644 --- a/risk/docs/RiskPredictorComposite.md +++ b/risk/docs/RiskPredictorComposite.md @@ -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) | | @@ -16,7 +17,6 @@ Name | Type | Description | Notes **Deletable** | Pointer to **bool** | A boolean to indicate whether the predictor is deletable in the environment. | [optional] [readonly] **Default** | Pointer to [**RiskPredictorCommonDefault**](RiskPredictorCommonDefault.md) | | [optional] **Condition** | Pointer to [**RiskPredictorCommonCondition**](RiskPredictorCommonCondition.md) | | [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. | ## Methods @@ -88,6 +88,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorComposite) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorComposite) 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 *RiskPredictorComposite) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorComposite) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorComposite) GetName() string` @@ -323,31 +348,6 @@ SetCondition sets Condition field to given value. HasCondition returns a boolean if a field has been set. -### GetComposition - -`func (o *RiskPredictorComposite) GetComposition() RiskPredictorCompositeAllOfComposition` - -GetComposition returns the Composition field if non-nil, zero value otherwise. - -### GetCompositionOk - -`func (o *RiskPredictorComposite) 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 *RiskPredictorComposite) SetComposition(v RiskPredictorCompositeAllOfComposition)` - -SetComposition sets Composition field to given value. - -### HasComposition - -`func (o *RiskPredictorComposite) HasComposition() bool` - -HasComposition returns a boolean if a field has been set. - ### GetCompositions `func (o *RiskPredictorComposite) GetCompositions() []RiskPredictorCompositeAllOfCompositionsInner` diff --git a/risk/docs/RiskPredictorCompositeCondition.md b/risk/docs/RiskPredictorCompositeCondition.md index d0659e9a..202ca1bc 100644 --- a/risk/docs/RiskPredictorCompositeCondition.md +++ b/risk/docs/RiskPredictorCompositeCondition.md @@ -9,9 +9,12 @@ Name | Type | Description | Notes **Or** | [**[]RiskPredictorCompositeCondition**](RiskPredictorCompositeCondition.md) | | **And** | [**[]RiskPredictorCompositeCondition**](RiskPredictorCompositeCondition.md) | | **Contains** | **string** | | -**List** | **[]string** | | +**NotContains** | Pointer to **string** | | [optional] **Equals** | Pointer to [**RiskPredictorCompositeConditionOneOf1Equals**](RiskPredictorCompositeConditionOneOf1Equals.md) | | [optional] **NotEquals** | Pointer to [**RiskPredictorCompositeConditionOneOf1Equals**](RiskPredictorCompositeConditionOneOf1Equals.md) | | [optional] +**IpRange** | **[]string** | List of CIDRs to include | +**Ip** | Pointer to **string** | | [optional] +**List** | **[]string** | | **Greater** | Pointer to **int32** | | [optional] **GreaterEquals** | Pointer to **int32** | | [optional] **Lower** | Pointer to **int32** | | [optional] @@ -22,7 +25,7 @@ Name | Type | Description | Notes ### NewRiskPredictorCompositeCondition -`func NewRiskPredictorCompositeCondition(not RiskPredictorCompositeOr, type_ EnumPredictorCompositeConditionType, or []RiskPredictorCompositeCondition, and []RiskPredictorCompositeCondition, contains string, list []string, value string, ) *RiskPredictorCompositeCondition` +`func NewRiskPredictorCompositeCondition(not RiskPredictorCompositeOr, type_ EnumPredictorCompositeConditionType, or []RiskPredictorCompositeCondition, and []RiskPredictorCompositeCondition, contains string, ipRange []string, list []string, value string, ) *RiskPredictorCompositeCondition` NewRiskPredictorCompositeCondition instantiates a new RiskPredictorCompositeCondition object This constructor will assign default values to properties that have it defined, @@ -137,25 +140,30 @@ and a boolean to check if the value has been set. SetContains sets Contains field to given value. -### GetList +### GetNotContains -`func (o *RiskPredictorCompositeCondition) GetList() []string` +`func (o *RiskPredictorCompositeCondition) GetNotContains() string` -GetList returns the List field if non-nil, zero value otherwise. +GetNotContains returns the NotContains field if non-nil, zero value otherwise. -### GetListOk +### GetNotContainsOk -`func (o *RiskPredictorCompositeCondition) GetListOk() (*[]string, bool)` +`func (o *RiskPredictorCompositeCondition) GetNotContainsOk() (*string, bool)` -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +GetNotContainsOk returns a tuple with the NotContains field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetList +### SetNotContains -`func (o *RiskPredictorCompositeCondition) SetList(v []string)` +`func (o *RiskPredictorCompositeCondition) SetNotContains(v string)` -SetList sets List field to given value. +SetNotContains sets NotContains field to given value. + +### HasNotContains +`func (o *RiskPredictorCompositeCondition) HasNotContains() bool` + +HasNotContains returns a boolean if a field has been set. ### GetEquals @@ -207,6 +215,71 @@ SetNotEquals sets NotEquals field to given value. HasNotEquals returns a boolean if a field has been set. +### GetIpRange + +`func (o *RiskPredictorCompositeCondition) GetIpRange() []string` + +GetIpRange returns the IpRange field if non-nil, zero value otherwise. + +### GetIpRangeOk + +`func (o *RiskPredictorCompositeCondition) GetIpRangeOk() (*[]string, bool)` + +GetIpRangeOk returns a tuple with the IpRange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpRange + +`func (o *RiskPredictorCompositeCondition) SetIpRange(v []string)` + +SetIpRange sets IpRange field to given value. + + +### GetIp + +`func (o *RiskPredictorCompositeCondition) GetIp() string` + +GetIp returns the Ip field if non-nil, zero value otherwise. + +### GetIpOk + +`func (o *RiskPredictorCompositeCondition) GetIpOk() (*string, bool)` + +GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIp + +`func (o *RiskPredictorCompositeCondition) SetIp(v string)` + +SetIp sets Ip field to given value. + +### HasIp + +`func (o *RiskPredictorCompositeCondition) HasIp() bool` + +HasIp returns a boolean if a field has been set. + +### GetList + +`func (o *RiskPredictorCompositeCondition) GetList() []string` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *RiskPredictorCompositeCondition) GetListOk() (*[]string, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *RiskPredictorCompositeCondition) SetList(v []string)` + +SetList sets List field to given value. + + ### GetGreater `func (o *RiskPredictorCompositeCondition) GetGreater() int32` diff --git a/risk/docs/RiskPredictorCompositeIPRange.md b/risk/docs/RiskPredictorCompositeIPRange.md new file mode 100644 index 00000000..5b33cd34 --- /dev/null +++ b/risk/docs/RiskPredictorCompositeIPRange.md @@ -0,0 +1,207 @@ +# RiskPredictorCompositeIPRange + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Contains** | Pointer to **string** | | [optional] +**NotContains** | Pointer to **string** | | [optional] +**Equals** | Pointer to **string** | | [optional] +**NotEquals** | Pointer to **string** | | [optional] +**Type** | Pointer to [**EnumPredictorCompositeConditionType**](EnumPredictorCompositeConditionType.md) | | [optional] +**IpRange** | **[]string** | List of CIDRs to include | +**Ip** | Pointer to **string** | | [optional] + +## Methods + +### NewRiskPredictorCompositeIPRange + +`func NewRiskPredictorCompositeIPRange(ipRange []string, ) *RiskPredictorCompositeIPRange` + +NewRiskPredictorCompositeIPRange instantiates a new RiskPredictorCompositeIPRange object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRiskPredictorCompositeIPRangeWithDefaults + +`func NewRiskPredictorCompositeIPRangeWithDefaults() *RiskPredictorCompositeIPRange` + +NewRiskPredictorCompositeIPRangeWithDefaults instantiates a new RiskPredictorCompositeIPRange object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContains + +`func (o *RiskPredictorCompositeIPRange) GetContains() string` + +GetContains returns the Contains field if non-nil, zero value otherwise. + +### GetContainsOk + +`func (o *RiskPredictorCompositeIPRange) GetContainsOk() (*string, bool)` + +GetContainsOk returns a tuple with the Contains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContains + +`func (o *RiskPredictorCompositeIPRange) SetContains(v string)` + +SetContains sets Contains field to given value. + +### HasContains + +`func (o *RiskPredictorCompositeIPRange) HasContains() bool` + +HasContains returns a boolean if a field has been set. + +### GetNotContains + +`func (o *RiskPredictorCompositeIPRange) GetNotContains() string` + +GetNotContains returns the NotContains field if non-nil, zero value otherwise. + +### GetNotContainsOk + +`func (o *RiskPredictorCompositeIPRange) GetNotContainsOk() (*string, bool)` + +GetNotContainsOk returns a tuple with the NotContains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotContains + +`func (o *RiskPredictorCompositeIPRange) SetNotContains(v string)` + +SetNotContains sets NotContains field to given value. + +### HasNotContains + +`func (o *RiskPredictorCompositeIPRange) HasNotContains() bool` + +HasNotContains returns a boolean if a field has been set. + +### GetEquals + +`func (o *RiskPredictorCompositeIPRange) GetEquals() string` + +GetEquals returns the Equals field if non-nil, zero value otherwise. + +### GetEqualsOk + +`func (o *RiskPredictorCompositeIPRange) GetEqualsOk() (*string, bool)` + +GetEqualsOk returns a tuple with the Equals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEquals + +`func (o *RiskPredictorCompositeIPRange) SetEquals(v string)` + +SetEquals sets Equals field to given value. + +### HasEquals + +`func (o *RiskPredictorCompositeIPRange) HasEquals() bool` + +HasEquals returns a boolean if a field has been set. + +### GetNotEquals + +`func (o *RiskPredictorCompositeIPRange) GetNotEquals() string` + +GetNotEquals returns the NotEquals field if non-nil, zero value otherwise. + +### GetNotEqualsOk + +`func (o *RiskPredictorCompositeIPRange) GetNotEqualsOk() (*string, bool)` + +GetNotEqualsOk returns a tuple with the NotEquals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotEquals + +`func (o *RiskPredictorCompositeIPRange) SetNotEquals(v string)` + +SetNotEquals sets NotEquals field to given value. + +### HasNotEquals + +`func (o *RiskPredictorCompositeIPRange) HasNotEquals() bool` + +HasNotEquals returns a boolean if a field has been set. + +### GetType + +`func (o *RiskPredictorCompositeIPRange) GetType() EnumPredictorCompositeConditionType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RiskPredictorCompositeIPRange) GetTypeOk() (*EnumPredictorCompositeConditionType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RiskPredictorCompositeIPRange) SetType(v EnumPredictorCompositeConditionType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RiskPredictorCompositeIPRange) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetIpRange + +`func (o *RiskPredictorCompositeIPRange) GetIpRange() []string` + +GetIpRange returns the IpRange field if non-nil, zero value otherwise. + +### GetIpRangeOk + +`func (o *RiskPredictorCompositeIPRange) GetIpRangeOk() (*[]string, bool)` + +GetIpRangeOk returns a tuple with the IpRange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpRange + +`func (o *RiskPredictorCompositeIPRange) SetIpRange(v []string)` + +SetIpRange sets IpRange field to given value. + + +### GetIp + +`func (o *RiskPredictorCompositeIPRange) GetIp() string` + +GetIp returns the Ip field if non-nil, zero value otherwise. + +### GetIpOk + +`func (o *RiskPredictorCompositeIPRange) GetIpOk() (*string, bool)` + +GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIp + +`func (o *RiskPredictorCompositeIPRange) SetIp(v string)` + +SetIp sets Ip field to given value. + +### HasIp + +`func (o *RiskPredictorCompositeIPRange) HasIp() bool` + +HasIp 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) + + diff --git a/risk/docs/RiskPredictorCustom.md b/risk/docs/RiskPredictorCustom.md index 07e75ef2..4b3b992c 100644 --- a/risk/docs/RiskPredictorCustom.md +++ b/risk/docs/RiskPredictorCustom.md @@ -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) | | @@ -87,6 +88,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorCustom) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorCustom) 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 *RiskPredictorCustom) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorCustom) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorCustom) GetName() string` diff --git a/risk/docs/RiskPredictorDevice.md b/risk/docs/RiskPredictorDevice.md index a7d23c43..a190387a 100644 --- a/risk/docs/RiskPredictorDevice.md +++ b/risk/docs/RiskPredictorDevice.md @@ -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) | | @@ -89,6 +90,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorDevice) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorDevice) 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 *RiskPredictorDevice) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorDevice) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorDevice) GetName() string` diff --git a/risk/docs/RiskPredictorEmailReputation.md b/risk/docs/RiskPredictorEmailReputation.md index 471ff6dd..c4624502 100644 --- a/risk/docs/RiskPredictorEmailReputation.md +++ b/risk/docs/RiskPredictorEmailReputation.md @@ -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) | | @@ -86,6 +87,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorEmailReputation) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorEmailReputation) 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 *RiskPredictorEmailReputation) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorEmailReputation) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorEmailReputation) GetName() string` diff --git a/risk/docs/RiskPredictorGeovelocity.md b/risk/docs/RiskPredictorGeovelocity.md index cc278f42..c08235b7 100644 --- a/risk/docs/RiskPredictorGeovelocity.md +++ b/risk/docs/RiskPredictorGeovelocity.md @@ -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) | | @@ -87,6 +88,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorGeovelocity) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorGeovelocity) 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 *RiskPredictorGeovelocity) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorGeovelocity) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorGeovelocity) GetName() string` diff --git a/risk/docs/RiskPredictorIPReputation.md b/risk/docs/RiskPredictorIPReputation.md index cd4ea3df..9cc23988 100644 --- a/risk/docs/RiskPredictorIPReputation.md +++ b/risk/docs/RiskPredictorIPReputation.md @@ -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) | | @@ -87,6 +88,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorIPReputation) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorIPReputation) 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 *RiskPredictorIPReputation) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorIPReputation) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorIPReputation) GetName() string` diff --git a/risk/docs/RiskPredictorTrafficAnomaly.md b/risk/docs/RiskPredictorTrafficAnomaly.md index 8187e2d6..38761a32 100644 --- a/risk/docs/RiskPredictorTrafficAnomaly.md +++ b/risk/docs/RiskPredictorTrafficAnomaly.md @@ -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) | | @@ -87,6 +88,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorTrafficAnomaly) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorTrafficAnomaly) 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 *RiskPredictorTrafficAnomaly) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorTrafficAnomaly) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorTrafficAnomaly) GetName() string` diff --git a/risk/docs/RiskPredictorUserLocationAnomaly.md b/risk/docs/RiskPredictorUserLocationAnomaly.md index 1420ba37..d892aafa 100644 --- a/risk/docs/RiskPredictorUserLocationAnomaly.md +++ b/risk/docs/RiskPredictorUserLocationAnomaly.md @@ -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) | | @@ -88,6 +89,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorUserLocationAnomaly) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorUserLocationAnomaly) 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 *RiskPredictorUserLocationAnomaly) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorUserLocationAnomaly) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorUserLocationAnomaly) GetName() string` diff --git a/risk/docs/RiskPredictorUserRiskBehavior.md b/risk/docs/RiskPredictorUserRiskBehavior.md index 74851747..a6aca558 100644 --- a/risk/docs/RiskPredictorUserRiskBehavior.md +++ b/risk/docs/RiskPredictorUserRiskBehavior.md @@ -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) | | @@ -87,6 +88,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorUserRiskBehavior) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorUserRiskBehavior) 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 *RiskPredictorUserRiskBehavior) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorUserRiskBehavior) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorUserRiskBehavior) GetName() string` diff --git a/risk/docs/RiskPredictorVelocity.md b/risk/docs/RiskPredictorVelocity.md index e3a3e064..e7501abc 100644 --- a/risk/docs/RiskPredictorVelocity.md +++ b/risk/docs/RiskPredictorVelocity.md @@ -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) | | @@ -94,6 +95,31 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. +### GetEnvironment + +`func (o *RiskPredictorVelocity) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *RiskPredictorVelocity) 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 *RiskPredictorVelocity) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *RiskPredictorVelocity) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + ### GetName `func (o *RiskPredictorVelocity) GetName() string` diff --git a/risk/generate/pingone-risk.yml b/risk/generate/pingone-risk.yml index 4e0677f7..70e8b0c0 100644 --- a/risk/generate/pingone-risk.yml +++ b/risk/generate/pingone-risk.yml @@ -108,7 +108,7 @@ components: description: A string that specifies the trigger type for the policy set. The only option is `POLICY_SET_STAGING`. EnumPredictorCompositeConditionType: type: string - enum: [VALUE_COMPARISON, STRING_LIST, AND, NOT, OR] + enum: [VALUE_COMPARISON, IP_RANGE, IP_COMPARISON, STRING_LIST, AND, NOT, OR] EnumPredictorNewDeviceDetectType: type: string description: Used only for New Device predictors and Suspicious Device predictors. Both of these predictor types use the value `DEVICE` for `type`. The `detect` field is used to specify the kind of devices you are trying to detect. @@ -793,6 +793,8 @@ components: type: string readOnly: true description: A string that specifies the resource’s unique identifier. + environment: + $ref: '#/components/schemas/ObjectEnvironment' name: type: string 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 to define the overrides and weights. @@ -901,17 +903,6 @@ components: - $ref: '#/components/schemas/RiskPredictorCommon' - type: object properties: - composition: - type: object - deprecated: true - properties: - condition: - $ref: '#/components/schemas/RiskPredictorCompositeConditionBase' - level: - $ref: '#/components/schemas/EnumRiskLevel' - required: - - condition - - level compositions: type: array description: 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. @@ -947,6 +938,7 @@ components: - $ref: '#/components/schemas/RiskPredictorCompositeNot' - $ref: '#/components/schemas/RiskPredictorCompositeOr' - $ref: '#/components/schemas/RiskPredictorCompositeAnd' + - $ref: '#/components/schemas/RiskPredictorCompositeIPRange' - type: object properties: contains: @@ -1007,6 +999,35 @@ components: $ref: '#/components/schemas/EnumPredictorCompositeConditionType' required: - or + RiskPredictorCompositeIPRange: + type: object + description: The mapping of risk levels for the IP ranges specified. + properties: + contains: + type: string + format: ^\${(event|details)[a-z\.]+}$ + notContains: + type: string + format: ^\${(event|details)[a-z\.]+}$ + equals: + type: string + format: ^\${(event|details)[a-z\.]+}$ + notEquals: + type: string + format: ^\${(event|details)[a-z\.]+}$ + type: + $ref: '#/components/schemas/EnumPredictorCompositeConditionType' + ipRange: + type: array + description: List of CIDRs to include + items: + type: string + pattern: ^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$ + ip: + type: string + pattern: ^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$ + required: + - ipRange RiskPredictorCustom: allOf: - $ref: '#/components/schemas/RiskPredictorCommon' diff --git a/risk/generate/postprocessing/generate-replace-regex.go b/risk/generate/postprocessing/generate-replace-regex.go index 9b9a7eba..f30a18c9 100644 --- a/risk/generate/postprocessing/generate-replace-regex.go +++ b/risk/generate/postprocessing/generate-replace-regex.go @@ -167,6 +167,7 @@ var ( dst.RiskPredictorCompositeAnd = nil dst.RiskPredictorCompositeConditionOneOf = nil dst.RiskPredictorCompositeConditionOneOf1 = nil + dst.RiskPredictorCompositeIPRange = nil dst.RiskPredictorCompositeNot = nil dst.RiskPredictorCompositeOr = nil @@ -198,6 +199,20 @@ var ( match++ } + if v, ok := common["type"].(string); ok && v == string(ENUMPREDICTORCOMPOSITECONDITIONTYPE_IP_RANGE) { + if err := json.Unmarshal(data, &dst.RiskPredictorCompositeIPRange); err != nil { + return err + } + match++ + } + + if v, ok := common["type"].(string); ok && v == string(ENUMPREDICTORCOMPOSITECONDITIONTYPE_IP_COMPARISON) { + if err := json.Unmarshal(data, &dst.RiskPredictorCompositeIPRange); err != nil { + return err + } + match++ + } + if v, ok := common["type"].(string); ok && v == string(ENUMPREDICTORCOMPOSITECONDITIONTYPE_VALUE_COMPARISON) { if err := json.Unmarshal(data, &dst.RiskPredictorCompositeConditionOneOf1); err != nil { return err @@ -210,6 +225,7 @@ var ( dst.RiskPredictorCompositeAnd = nil dst.RiskPredictorCompositeConditionOneOf = nil dst.RiskPredictorCompositeConditionOneOf1 = nil + dst.RiskPredictorCompositeIPRange = nil dst.RiskPredictorCompositeNot = nil dst.RiskPredictorCompositeOr = nil diff --git a/risk/model_enum_predictor_composite_condition_type.go b/risk/model_enum_predictor_composite_condition_type.go index 1d16bafd..0f0a2ce2 100644 --- a/risk/model_enum_predictor_composite_condition_type.go +++ b/risk/model_enum_predictor_composite_condition_type.go @@ -21,6 +21,8 @@ type EnumPredictorCompositeConditionType string // List of EnumPredictorCompositeConditionType const ( ENUMPREDICTORCOMPOSITECONDITIONTYPE_VALUE_COMPARISON EnumPredictorCompositeConditionType = "VALUE_COMPARISON" + ENUMPREDICTORCOMPOSITECONDITIONTYPE_IP_RANGE EnumPredictorCompositeConditionType = "IP_RANGE" + ENUMPREDICTORCOMPOSITECONDITIONTYPE_IP_COMPARISON EnumPredictorCompositeConditionType = "IP_COMPARISON" ENUMPREDICTORCOMPOSITECONDITIONTYPE_STRING_LIST EnumPredictorCompositeConditionType = "STRING_LIST" ENUMPREDICTORCOMPOSITECONDITIONTYPE_AND EnumPredictorCompositeConditionType = "AND" ENUMPREDICTORCOMPOSITECONDITIONTYPE_NOT EnumPredictorCompositeConditionType = "NOT" @@ -30,6 +32,8 @@ const ( // All allowed values of EnumPredictorCompositeConditionType enum var AllowedEnumPredictorCompositeConditionTypeEnumValues = []EnumPredictorCompositeConditionType{ "VALUE_COMPARISON", + "IP_RANGE", + "IP_COMPARISON", "STRING_LIST", "AND", "NOT", diff --git a/risk/model_risk_predictor_adversary_in_the_middle.go b/risk/model_risk_predictor_adversary_in_the_middle.go index 289e396c..6c16db4c 100644 --- a/risk/model_risk_predictor_adversary_in_the_middle.go +++ b/risk/model_risk_predictor_adversary_in_the_middle.go @@ -23,6 +23,7 @@ type RiskPredictorAdversaryInTheMiddle struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -128,6 +129,38 @@ func (o *RiskPredictorAdversaryInTheMiddle) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorAdversaryInTheMiddle) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorAdversaryInTheMiddle) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorAdversaryInTheMiddle) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorAdversaryInTheMiddle) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorAdversaryInTheMiddle) GetName() string { if o == nil { @@ -472,6 +505,9 @@ func (o RiskPredictorAdversaryInTheMiddle) ToMap() (map[string]interface{}, erro if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_anonymous_network.go b/risk/model_risk_predictor_anonymous_network.go index c1fffc20..1bf57f55 100644 --- a/risk/model_risk_predictor_anonymous_network.go +++ b/risk/model_risk_predictor_anonymous_network.go @@ -23,6 +23,7 @@ type RiskPredictorAnonymousNetwork struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -128,6 +129,38 @@ func (o *RiskPredictorAnonymousNetwork) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorAnonymousNetwork) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorAnonymousNetwork) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorAnonymousNetwork) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorAnonymousNetwork) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorAnonymousNetwork) GetName() string { if o == nil { @@ -472,6 +505,9 @@ func (o RiskPredictorAnonymousNetwork) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_bot_detection.go b/risk/model_risk_predictor_bot_detection.go index a9c13921..f644a151 100644 --- a/risk/model_risk_predictor_bot_detection.go +++ b/risk/model_risk_predictor_bot_detection.go @@ -23,6 +23,7 @@ type RiskPredictorBotDetection struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -128,6 +129,38 @@ func (o *RiskPredictorBotDetection) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorBotDetection) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorBotDetection) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorBotDetection) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorBotDetection) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorBotDetection) GetName() string { if o == nil { @@ -472,6 +505,9 @@ func (o RiskPredictorBotDetection) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_common.go b/risk/model_risk_predictor_common.go index 93fb2f32..12870013 100644 --- a/risk/model_risk_predictor_common.go +++ b/risk/model_risk_predictor_common.go @@ -23,6 +23,7 @@ type RiskPredictorCommon struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -126,6 +127,38 @@ func (o *RiskPredictorCommon) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorCommon) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorCommon) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorCommon) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorCommon) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorCommon) GetName() string { if o == nil { @@ -438,6 +471,9 @@ func (o RiskPredictorCommon) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_composite.go b/risk/model_risk_predictor_composite.go index e0d7011c..2adf509b 100644 --- a/risk/model_risk_predictor_composite.go +++ b/risk/model_risk_predictor_composite.go @@ -23,6 +23,7 @@ type RiskPredictorComposite struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -40,8 +41,6 @@ type RiskPredictorComposite struct { Deletable *bool `json:"deletable,omitempty"` Default *RiskPredictorCommonDefault `json:"default,omitempty"` Condition *RiskPredictorCommonCondition `json:"condition,omitempty"` - // Deprecated - Composition *RiskPredictorCompositeAllOfComposition `json:"composition,omitempty"` // 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. Compositions []RiskPredictorCompositeAllOfCompositionsInner `json:"compositions"` } @@ -131,6 +130,38 @@ func (o *RiskPredictorComposite) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorComposite) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorComposite) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorComposite) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorComposite) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorComposite) GetName() string { if o == nil { @@ -427,41 +458,6 @@ func (o *RiskPredictorComposite) SetCondition(v RiskPredictorCommonCondition) { o.Condition = &v } -// GetComposition returns the Composition field value if set, zero value otherwise. -// Deprecated -func (o *RiskPredictorComposite) GetComposition() RiskPredictorCompositeAllOfComposition { - if o == nil || IsNil(o.Composition) { - var ret RiskPredictorCompositeAllOfComposition - return ret - } - return *o.Composition -} - -// GetCompositionOk returns a tuple with the Composition field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *RiskPredictorComposite) GetCompositionOk() (*RiskPredictorCompositeAllOfComposition, bool) { - if o == nil || IsNil(o.Composition) { - return nil, false - } - return o.Composition, true -} - -// HasComposition returns a boolean if a field has been set. -func (o *RiskPredictorComposite) HasComposition() bool { - if o != nil && !IsNil(o.Composition) { - return true - } - - return false -} - -// SetComposition gets a reference to the given RiskPredictorCompositeAllOfComposition and assigns it to the Composition field. -// Deprecated -func (o *RiskPredictorComposite) SetComposition(v RiskPredictorCompositeAllOfComposition) { - o.Composition = &v -} - // GetCompositions returns the Compositions field value func (o *RiskPredictorComposite) GetCompositions() []RiskPredictorCompositeAllOfCompositionsInner { if o == nil { @@ -502,6 +498,9 @@ func (o RiskPredictorComposite) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type @@ -526,9 +525,6 @@ func (o RiskPredictorComposite) ToMap() (map[string]interface{}, error) { if !IsNil(o.Condition) { toSerialize["condition"] = o.Condition } - if !IsNil(o.Composition) { - toSerialize["composition"] = o.Composition - } toSerialize["compositions"] = o.Compositions return toSerialize, nil } diff --git a/risk/model_risk_predictor_composite_condition.go b/risk/model_risk_predictor_composite_condition.go index 2f846bd1..6331fbf3 100644 --- a/risk/model_risk_predictor_composite_condition.go +++ b/risk/model_risk_predictor_composite_condition.go @@ -20,6 +20,7 @@ type RiskPredictorCompositeCondition struct { RiskPredictorCompositeAnd *RiskPredictorCompositeAnd RiskPredictorCompositeConditionOneOf *RiskPredictorCompositeConditionOneOf RiskPredictorCompositeConditionOneOf1 *RiskPredictorCompositeConditionOneOf1 + RiskPredictorCompositeIPRange *RiskPredictorCompositeIPRange RiskPredictorCompositeNot *RiskPredictorCompositeNot RiskPredictorCompositeOr *RiskPredictorCompositeOr } @@ -45,6 +46,13 @@ func RiskPredictorCompositeConditionOneOf1AsRiskPredictorCompositeCondition(v *R } } +// RiskPredictorCompositeIPRangeAsRiskPredictorCompositeCondition is a convenience function that returns RiskPredictorCompositeIPRange wrapped in RiskPredictorCompositeCondition +func RiskPredictorCompositeIPRangeAsRiskPredictorCompositeCondition(v *RiskPredictorCompositeIPRange) RiskPredictorCompositeCondition { + return RiskPredictorCompositeCondition{ + RiskPredictorCompositeIPRange: v, + } +} + // RiskPredictorCompositeNotAsRiskPredictorCompositeCondition is a convenience function that returns RiskPredictorCompositeNot wrapped in RiskPredictorCompositeCondition func RiskPredictorCompositeNotAsRiskPredictorCompositeCondition(v *RiskPredictorCompositeNot) RiskPredictorCompositeCondition { return RiskPredictorCompositeCondition{ @@ -73,6 +81,7 @@ func (dst *RiskPredictorCompositeCondition) UnmarshalJSON(data []byte) error { dst.RiskPredictorCompositeAnd = nil dst.RiskPredictorCompositeConditionOneOf = nil dst.RiskPredictorCompositeConditionOneOf1 = nil + dst.RiskPredictorCompositeIPRange = nil dst.RiskPredictorCompositeNot = nil dst.RiskPredictorCompositeOr = nil @@ -104,6 +113,20 @@ func (dst *RiskPredictorCompositeCondition) UnmarshalJSON(data []byte) error { match++ } + if v, ok := common["type"].(string); ok && v == string(ENUMPREDICTORCOMPOSITECONDITIONTYPE_IP_RANGE) { + if err := json.Unmarshal(data, &dst.RiskPredictorCompositeIPRange); err != nil { + return err + } + match++ + } + + if v, ok := common["type"].(string); ok && v == string(ENUMPREDICTORCOMPOSITECONDITIONTYPE_IP_COMPARISON) { + if err := json.Unmarshal(data, &dst.RiskPredictorCompositeIPRange); err != nil { + return err + } + match++ + } + if v, ok := common["type"].(string); ok && v == string(ENUMPREDICTORCOMPOSITECONDITIONTYPE_VALUE_COMPARISON) { if err := json.Unmarshal(data, &dst.RiskPredictorCompositeConditionOneOf1); err != nil { return err @@ -116,6 +139,7 @@ func (dst *RiskPredictorCompositeCondition) UnmarshalJSON(data []byte) error { dst.RiskPredictorCompositeAnd = nil dst.RiskPredictorCompositeConditionOneOf = nil dst.RiskPredictorCompositeConditionOneOf1 = nil + dst.RiskPredictorCompositeIPRange = nil dst.RiskPredictorCompositeNot = nil dst.RiskPredictorCompositeOr = nil @@ -141,6 +165,10 @@ func (src RiskPredictorCompositeCondition) MarshalJSON() ([]byte, error) { return json.Marshal(&src.RiskPredictorCompositeConditionOneOf1) } + if src.RiskPredictorCompositeIPRange != nil { + return json.Marshal(&src.RiskPredictorCompositeIPRange) + } + if src.RiskPredictorCompositeNot != nil { return json.Marshal(&src.RiskPredictorCompositeNot) } @@ -169,6 +197,10 @@ func (obj *RiskPredictorCompositeCondition) GetActualInstance() (interface{}) { return obj.RiskPredictorCompositeConditionOneOf1 } + if obj.RiskPredictorCompositeIPRange != nil { + return obj.RiskPredictorCompositeIPRange + } + if obj.RiskPredictorCompositeNot != nil { return obj.RiskPredictorCompositeNot } diff --git a/risk/model_risk_predictor_composite_ip_range.go b/risk/model_risk_predictor_composite_ip_range.go new file mode 100644 index 00000000..083c6531 --- /dev/null +++ b/risk/model_risk_predictor_composite_ip_range.go @@ -0,0 +1,334 @@ +/* +PingOne Platform API - PingOne Risk + +The PingOne Platform API covering the PingOne Risk service + +API version: 2023-06-29 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package risk + +import ( + "encoding/json" +) + +// checks if the RiskPredictorCompositeIPRange type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RiskPredictorCompositeIPRange{} + +// RiskPredictorCompositeIPRange The mapping of risk levels for the IP ranges specified. +type RiskPredictorCompositeIPRange struct { + Contains *string `json:"contains,omitempty"` + NotContains *string `json:"notContains,omitempty"` + Equals *string `json:"equals,omitempty"` + NotEquals *string `json:"notEquals,omitempty"` + Type *EnumPredictorCompositeConditionType `json:"type,omitempty"` + // List of CIDRs to include + IpRange []string `json:"ipRange"` + Ip *string `json:"ip,omitempty"` +} + +// NewRiskPredictorCompositeIPRange instantiates a new RiskPredictorCompositeIPRange object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRiskPredictorCompositeIPRange(ipRange []string) *RiskPredictorCompositeIPRange { + this := RiskPredictorCompositeIPRange{} + this.IpRange = ipRange + return &this +} + +// NewRiskPredictorCompositeIPRangeWithDefaults instantiates a new RiskPredictorCompositeIPRange object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRiskPredictorCompositeIPRangeWithDefaults() *RiskPredictorCompositeIPRange { + this := RiskPredictorCompositeIPRange{} + return &this +} + +// GetContains returns the Contains field value if set, zero value otherwise. +func (o *RiskPredictorCompositeIPRange) GetContains() string { + if o == nil || IsNil(o.Contains) { + var ret string + return ret + } + return *o.Contains +} + +// GetContainsOk returns a tuple with the Contains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorCompositeIPRange) GetContainsOk() (*string, bool) { + if o == nil || IsNil(o.Contains) { + return nil, false + } + return o.Contains, true +} + +// HasContains returns a boolean if a field has been set. +func (o *RiskPredictorCompositeIPRange) HasContains() bool { + if o != nil && !IsNil(o.Contains) { + return true + } + + return false +} + +// SetContains gets a reference to the given string and assigns it to the Contains field. +func (o *RiskPredictorCompositeIPRange) SetContains(v string) { + o.Contains = &v +} + +// GetNotContains returns the NotContains field value if set, zero value otherwise. +func (o *RiskPredictorCompositeIPRange) GetNotContains() string { + if o == nil || IsNil(o.NotContains) { + var ret string + return ret + } + return *o.NotContains +} + +// GetNotContainsOk returns a tuple with the NotContains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorCompositeIPRange) GetNotContainsOk() (*string, bool) { + if o == nil || IsNil(o.NotContains) { + return nil, false + } + return o.NotContains, true +} + +// HasNotContains returns a boolean if a field has been set. +func (o *RiskPredictorCompositeIPRange) HasNotContains() bool { + if o != nil && !IsNil(o.NotContains) { + return true + } + + return false +} + +// SetNotContains gets a reference to the given string and assigns it to the NotContains field. +func (o *RiskPredictorCompositeIPRange) SetNotContains(v string) { + o.NotContains = &v +} + +// GetEquals returns the Equals field value if set, zero value otherwise. +func (o *RiskPredictorCompositeIPRange) GetEquals() string { + if o == nil || IsNil(o.Equals) { + var ret string + return ret + } + return *o.Equals +} + +// GetEqualsOk returns a tuple with the Equals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorCompositeIPRange) GetEqualsOk() (*string, bool) { + if o == nil || IsNil(o.Equals) { + return nil, false + } + return o.Equals, true +} + +// HasEquals returns a boolean if a field has been set. +func (o *RiskPredictorCompositeIPRange) HasEquals() bool { + if o != nil && !IsNil(o.Equals) { + return true + } + + return false +} + +// SetEquals gets a reference to the given string and assigns it to the Equals field. +func (o *RiskPredictorCompositeIPRange) SetEquals(v string) { + o.Equals = &v +} + +// GetNotEquals returns the NotEquals field value if set, zero value otherwise. +func (o *RiskPredictorCompositeIPRange) GetNotEquals() string { + if o == nil || IsNil(o.NotEquals) { + var ret string + return ret + } + return *o.NotEquals +} + +// GetNotEqualsOk returns a tuple with the NotEquals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorCompositeIPRange) GetNotEqualsOk() (*string, bool) { + if o == nil || IsNil(o.NotEquals) { + return nil, false + } + return o.NotEquals, true +} + +// HasNotEquals returns a boolean if a field has been set. +func (o *RiskPredictorCompositeIPRange) HasNotEquals() bool { + if o != nil && !IsNil(o.NotEquals) { + return true + } + + return false +} + +// SetNotEquals gets a reference to the given string and assigns it to the NotEquals field. +func (o *RiskPredictorCompositeIPRange) SetNotEquals(v string) { + o.NotEquals = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *RiskPredictorCompositeIPRange) GetType() EnumPredictorCompositeConditionType { + if o == nil || IsNil(o.Type) { + var ret EnumPredictorCompositeConditionType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorCompositeIPRange) GetTypeOk() (*EnumPredictorCompositeConditionType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *RiskPredictorCompositeIPRange) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given EnumPredictorCompositeConditionType and assigns it to the Type field. +func (o *RiskPredictorCompositeIPRange) SetType(v EnumPredictorCompositeConditionType) { + o.Type = &v +} + +// GetIpRange returns the IpRange field value +func (o *RiskPredictorCompositeIPRange) GetIpRange() []string { + if o == nil { + var ret []string + return ret + } + + return o.IpRange +} + +// GetIpRangeOk returns a tuple with the IpRange field value +// and a boolean to check if the value has been set. +func (o *RiskPredictorCompositeIPRange) GetIpRangeOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.IpRange, true +} + +// SetIpRange sets field value +func (o *RiskPredictorCompositeIPRange) SetIpRange(v []string) { + o.IpRange = v +} + +// GetIp returns the Ip field value if set, zero value otherwise. +func (o *RiskPredictorCompositeIPRange) GetIp() string { + if o == nil || IsNil(o.Ip) { + var ret string + return ret + } + return *o.Ip +} + +// GetIpOk returns a tuple with the Ip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorCompositeIPRange) GetIpOk() (*string, bool) { + if o == nil || IsNil(o.Ip) { + return nil, false + } + return o.Ip, true +} + +// HasIp returns a boolean if a field has been set. +func (o *RiskPredictorCompositeIPRange) HasIp() bool { + if o != nil && !IsNil(o.Ip) { + return true + } + + return false +} + +// SetIp gets a reference to the given string and assigns it to the Ip field. +func (o *RiskPredictorCompositeIPRange) SetIp(v string) { + o.Ip = &v +} + +func (o RiskPredictorCompositeIPRange) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RiskPredictorCompositeIPRange) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Contains) { + toSerialize["contains"] = o.Contains + } + if !IsNil(o.NotContains) { + toSerialize["notContains"] = o.NotContains + } + if !IsNil(o.Equals) { + toSerialize["equals"] = o.Equals + } + if !IsNil(o.NotEquals) { + toSerialize["notEquals"] = o.NotEquals + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + toSerialize["ipRange"] = o.IpRange + if !IsNil(o.Ip) { + toSerialize["ip"] = o.Ip + } + return toSerialize, nil +} + +type NullableRiskPredictorCompositeIPRange struct { + value *RiskPredictorCompositeIPRange + isSet bool +} + +func (v NullableRiskPredictorCompositeIPRange) Get() *RiskPredictorCompositeIPRange { + return v.value +} + +func (v *NullableRiskPredictorCompositeIPRange) Set(val *RiskPredictorCompositeIPRange) { + v.value = val + v.isSet = true +} + +func (v NullableRiskPredictorCompositeIPRange) IsSet() bool { + return v.isSet +} + +func (v *NullableRiskPredictorCompositeIPRange) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRiskPredictorCompositeIPRange(val *RiskPredictorCompositeIPRange) *NullableRiskPredictorCompositeIPRange { + return &NullableRiskPredictorCompositeIPRange{value: val, isSet: true} +} + +func (v NullableRiskPredictorCompositeIPRange) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRiskPredictorCompositeIPRange) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/risk/model_risk_predictor_custom.go b/risk/model_risk_predictor_custom.go index f604a732..f5dca851 100644 --- a/risk/model_risk_predictor_custom.go +++ b/risk/model_risk_predictor_custom.go @@ -23,6 +23,7 @@ type RiskPredictorCustom struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -128,6 +129,38 @@ func (o *RiskPredictorCustom) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorCustom) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorCustom) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorCustom) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorCustom) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorCustom) GetName() string { if o == nil { @@ -464,6 +497,9 @@ func (o RiskPredictorCustom) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_device.go b/risk/model_risk_predictor_device.go index 0c35af61..cc48cddd 100644 --- a/risk/model_risk_predictor_device.go +++ b/risk/model_risk_predictor_device.go @@ -23,6 +23,7 @@ type RiskPredictorDevice struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -132,6 +133,38 @@ func (o *RiskPredictorDevice) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorDevice) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorDevice) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorDevice) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorDevice) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorDevice) GetName() string { if o == nil { @@ -532,6 +565,9 @@ func (o RiskPredictorDevice) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_email_reputation.go b/risk/model_risk_predictor_email_reputation.go index 7a4ae77f..5b987032 100644 --- a/risk/model_risk_predictor_email_reputation.go +++ b/risk/model_risk_predictor_email_reputation.go @@ -23,6 +23,7 @@ type RiskPredictorEmailReputation struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -126,6 +127,38 @@ func (o *RiskPredictorEmailReputation) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorEmailReputation) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorEmailReputation) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorEmailReputation) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorEmailReputation) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorEmailReputation) GetName() string { if o == nil { @@ -438,6 +471,9 @@ func (o RiskPredictorEmailReputation) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_geovelocity.go b/risk/model_risk_predictor_geovelocity.go index 2e2ff40f..8f335ae0 100644 --- a/risk/model_risk_predictor_geovelocity.go +++ b/risk/model_risk_predictor_geovelocity.go @@ -23,6 +23,7 @@ type RiskPredictorGeovelocity struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -128,6 +129,38 @@ func (o *RiskPredictorGeovelocity) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorGeovelocity) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorGeovelocity) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorGeovelocity) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorGeovelocity) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorGeovelocity) GetName() string { if o == nil { @@ -472,6 +505,9 @@ func (o RiskPredictorGeovelocity) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_ip_reputation.go b/risk/model_risk_predictor_ip_reputation.go index 4841d684..47bd951f 100644 --- a/risk/model_risk_predictor_ip_reputation.go +++ b/risk/model_risk_predictor_ip_reputation.go @@ -23,6 +23,7 @@ type RiskPredictorIPReputation struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -128,6 +129,38 @@ func (o *RiskPredictorIPReputation) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorIPReputation) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorIPReputation) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorIPReputation) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorIPReputation) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorIPReputation) GetName() string { if o == nil { @@ -472,6 +505,9 @@ func (o RiskPredictorIPReputation) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_traffic_anomaly.go b/risk/model_risk_predictor_traffic_anomaly.go index 18b84e61..eb474dce 100644 --- a/risk/model_risk_predictor_traffic_anomaly.go +++ b/risk/model_risk_predictor_traffic_anomaly.go @@ -23,6 +23,7 @@ type RiskPredictorTrafficAnomaly struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -128,6 +129,38 @@ func (o *RiskPredictorTrafficAnomaly) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorTrafficAnomaly) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorTrafficAnomaly) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorTrafficAnomaly) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorTrafficAnomaly) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorTrafficAnomaly) GetName() string { if o == nil { @@ -464,6 +497,9 @@ func (o RiskPredictorTrafficAnomaly) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_user_location_anomaly.go b/risk/model_risk_predictor_user_location_anomaly.go index 1ecdd525..a5c9ddff 100644 --- a/risk/model_risk_predictor_user_location_anomaly.go +++ b/risk/model_risk_predictor_user_location_anomaly.go @@ -23,6 +23,7 @@ type RiskPredictorUserLocationAnomaly struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -130,6 +131,38 @@ func (o *RiskPredictorUserLocationAnomaly) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorUserLocationAnomaly) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorUserLocationAnomaly) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorUserLocationAnomaly) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorUserLocationAnomaly) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorUserLocationAnomaly) GetName() string { if o == nil { @@ -490,6 +523,9 @@ func (o RiskPredictorUserLocationAnomaly) ToMap() (map[string]interface{}, error if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_user_risk_behavior.go b/risk/model_risk_predictor_user_risk_behavior.go index a6cd53a4..f85a0ada 100644 --- a/risk/model_risk_predictor_user_risk_behavior.go +++ b/risk/model_risk_predictor_user_risk_behavior.go @@ -23,6 +23,7 @@ type RiskPredictorUserRiskBehavior struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -128,6 +129,38 @@ func (o *RiskPredictorUserRiskBehavior) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorUserRiskBehavior) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorUserRiskBehavior) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorUserRiskBehavior) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorUserRiskBehavior) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorUserRiskBehavior) GetName() string { if o == nil { @@ -464,6 +497,9 @@ func (o RiskPredictorUserRiskBehavior) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type diff --git a/risk/model_risk_predictor_velocity.go b/risk/model_risk_predictor_velocity.go index 08954421..14a2bd10 100644 --- a/risk/model_risk_predictor_velocity.go +++ b/risk/model_risk_predictor_velocity.go @@ -23,6 +23,7 @@ type RiskPredictorVelocity struct { Links *map[string]LinksHATEOASValue `json:"_links,omitempty"` // A string that specifies the resource’s unique identifier. Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` // 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. Name string `json:"name"` // 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). @@ -134,6 +135,38 @@ func (o *RiskPredictorVelocity) SetId(v string) { o.Id = &v } +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *RiskPredictorVelocity) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RiskPredictorVelocity) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *RiskPredictorVelocity) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *RiskPredictorVelocity) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + // GetName returns the Name field value func (o *RiskPredictorVelocity) GetName() string { if o == nil { @@ -702,6 +735,9 @@ func (o RiskPredictorVelocity) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } toSerialize["name"] = o.Name toSerialize["compactName"] = o.CompactName toSerialize["type"] = o.Type