Skip to content

Commit

Permalink
Make json logic internal types as any
Browse files Browse the repository at this point in the history
  • Loading branch information
sidpan1 committed May 8, 2024
1 parent 5ded31d commit fdeec2d
Show file tree
Hide file tree
Showing 49 changed files with 867 additions and 200 deletions.
18 changes: 9 additions & 9 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ docs/AddTenantPolicyExclusionsAPIRequest.md
docs/AddTenantPolicyExclusionsRequest.md
docs/AddTenantPolicyExclusionsResponse.md
docs/AndItem.md
docs/AndItemGteInner.md
docs/AnomalyLogicOperationInput.md
docs/AnomalyLogicOperationOutput.md
docs/AnomalyLogicOperation.md
docs/AwsService.md
docs/CreatePolicyTemplatePackRequest.md
docs/CreatePolicyTemplatePackResponse.md
Expand All @@ -22,7 +20,9 @@ docs/CreateTenantProviderResponse.md
docs/CreateTenantRequest.md
docs/CreateTenantResponse.md
docs/CreateTenantUserRequest.md
docs/CreateTenantUserRequestRole.md
docs/CreateTenantUserResponse.md
docs/CreateTenantUserResponseStatus.md
docs/CreateUserRequest.md
docs/CreateUserResponse.md
docs/CreateUserTenantMappingRequest.md
Expand Down Expand Up @@ -70,7 +70,6 @@ docs/GetTenantsRequest.md
docs/GetTenantsResponse.md
docs/GetUserByIDResponse.md
docs/HTTPValidationError.md
docs/Item.md
docs/OrItem.md
docs/OverrideTenantAnomalyConfigAPIRequest.md
docs/OverrideTenantAnomalyConfigRequest.md
Expand Down Expand Up @@ -206,9 +205,7 @@ onelens_backend_client/models/add_tenant_policy_exclusions_api_request.py
onelens_backend_client/models/add_tenant_policy_exclusions_request.py
onelens_backend_client/models/add_tenant_policy_exclusions_response.py
onelens_backend_client/models/and_item.py
onelens_backend_client/models/and_item_gte_inner.py
onelens_backend_client/models/anomaly_logic_operation_input.py
onelens_backend_client/models/anomaly_logic_operation_output.py
onelens_backend_client/models/anomaly_logic_operation.py
onelens_backend_client/models/aws_service.py
onelens_backend_client/models/create_policy_template_pack_request.py
onelens_backend_client/models/create_policy_template_pack_response.py
Expand All @@ -220,7 +217,9 @@ onelens_backend_client/models/create_tenant_provider_response.py
onelens_backend_client/models/create_tenant_request.py
onelens_backend_client/models/create_tenant_response.py
onelens_backend_client/models/create_tenant_user_request.py
onelens_backend_client/models/create_tenant_user_request_role.py
onelens_backend_client/models/create_tenant_user_response.py
onelens_backend_client/models/create_tenant_user_response_status.py
onelens_backend_client/models/create_user_request.py
onelens_backend_client/models/create_user_response.py
onelens_backend_client/models/create_user_tenant_mapping_request.py
Expand Down Expand Up @@ -267,7 +266,6 @@ onelens_backend_client/models/get_tenants_request.py
onelens_backend_client/models/get_tenants_response.py
onelens_backend_client/models/get_user_by_id_response.py
onelens_backend_client/models/http_validation_error.py
onelens_backend_client/models/item.py
onelens_backend_client/models/or_item.py
onelens_backend_client/models/override_tenant_anomaly_config_api_request.py
onelens_backend_client/models/override_tenant_anomaly_config_request.py
Expand Down Expand Up @@ -365,5 +363,7 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_and_item_gte_inner.py
test/test_anomaly_logic_operation.py
test/test_create_tenant_user_request_role.py
test/test_create_tenant_user_response_status.py
tox.ini
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ Class | Method | Description
- [AddTenantPolicyExclusionsRequest](docs/AddTenantPolicyExclusionsRequest.md)
- [AddTenantPolicyExclusionsResponse](docs/AddTenantPolicyExclusionsResponse.md)
- [AndItem](docs/AndItem.md)
- [AndItemGteInner](docs/AndItemGteInner.md)
- [AnomalyLogicOperationInput](docs/AnomalyLogicOperationInput.md)
- [AnomalyLogicOperationOutput](docs/AnomalyLogicOperationOutput.md)
- [AnomalyLogicOperation](docs/AnomalyLogicOperation.md)
- [AwsService](docs/AwsService.md)
- [CreatePolicyTemplatePackRequest](docs/CreatePolicyTemplatePackRequest.md)
- [CreatePolicyTemplatePackResponse](docs/CreatePolicyTemplatePackResponse.md)
Expand All @@ -178,7 +176,9 @@ Class | Method | Description
- [CreateTenantRequest](docs/CreateTenantRequest.md)
- [CreateTenantResponse](docs/CreateTenantResponse.md)
- [CreateTenantUserRequest](docs/CreateTenantUserRequest.md)
- [CreateTenantUserRequestRole](docs/CreateTenantUserRequestRole.md)
- [CreateTenantUserResponse](docs/CreateTenantUserResponse.md)
- [CreateTenantUserResponseStatus](docs/CreateTenantUserResponseStatus.md)
- [CreateUserRequest](docs/CreateUserRequest.md)
- [CreateUserResponse](docs/CreateUserResponse.md)
- [CreateUserTenantMappingRequest](docs/CreateUserTenantMappingRequest.md)
Expand Down Expand Up @@ -225,7 +225,6 @@ Class | Method | Description
- [GetTenantsResponse](docs/GetTenantsResponse.md)
- [GetUserByIDResponse](docs/GetUserByIDResponse.md)
- [HTTPValidationError](docs/HTTPValidationError.md)
- [Item](docs/Item.md)
- [OrItem](docs/OrItem.md)
- [OverrideTenantAnomalyConfigAPIRequest](docs/OverrideTenantAnomalyConfigAPIRequest.md)
- [OverrideTenantAnomalyConfigRequest](docs/OverrideTenantAnomalyConfigRequest.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/AndItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**gte** | [**List[AndItemGteInner]**](AndItemGteInner.md) | | [optional]
**gt** | [**List[AndItemGteInner]**](AndItemGteInner.md) | | [optional]
**gte** | **List[object]** | | [optional]
**gt** | **List[object]** | | [optional]

## Example

Expand Down
30 changes: 30 additions & 0 deletions docs/AnomalyLogicOperation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# AnomalyLogicOperation


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**var_and** | [**List[AndItem]**](AndItem.md) | | [optional]
**var_or** | [**List[OrItem]**](OrItem.md) | | [optional]

## Example

```python
from onelens_backend_client.models.anomaly_logic_operation import AnomalyLogicOperation

# TODO update the JSON string below
json = "{}"
# create an instance of AnomalyLogicOperation from a JSON string
anomaly_logic_operation_instance = AnomalyLogicOperation.from_json(json)
# print the JSON string representation of the object
print(AnomalyLogicOperation.to_json())

# convert the object into a dict
anomaly_logic_operation_dict = anomaly_logic_operation_instance.to_dict()
# create an instance of AnomalyLogicOperation from a dict
anomaly_logic_operation_form_dict = anomaly_logic_operation.from_dict(anomaly_logic_operation_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


6 changes: 3 additions & 3 deletions docs/CreateTenantUserRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ol_user_id** | **str** | Unique onelens identifier for the user |
**role** | [**UserRole**](UserRole.md) | | [optional]
**sources** | **List[str]** | Different sources from where user signed up. e.g. social signup, username-password |
**ol_user_id** | **object** | Unique onelens identifier for the user |
**role** | [**CreateTenantUserRequestRole**](CreateTenantUserRequestRole.md) | | [optional]
**sources** | **List[object]** | Different sources from where user signed up. e.g. social signup, username-password |

## Example

Expand Down
29 changes: 29 additions & 0 deletions docs/CreateTenantUserRequestRole.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# CreateTenantUserRequestRole

Role of the user in the tenant

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

## Example

```python
from onelens_backend_client.models.create_tenant_user_request_role import CreateTenantUserRequestRole

# TODO update the JSON string below
json = "{}"
# create an instance of CreateTenantUserRequestRole from a JSON string
create_tenant_user_request_role_instance = CreateTenantUserRequestRole.from_json(json)
# print the JSON string representation of the object
print(CreateTenantUserRequestRole.to_json())

# convert the object into a dict
create_tenant_user_request_role_dict = create_tenant_user_request_role_instance.to_dict()
# create an instance of CreateTenantUserRequestRole from a dict
create_tenant_user_request_role_form_dict = create_tenant_user_request_role.from_dict(create_tenant_user_request_role_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 5 additions & 5 deletions docs/CreateTenantUserResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | [**UserStatus**](UserStatus.md) | | [optional]
**ol_user_id** | **str** | Unique onelens identifier for the user |
**role** | [**UserRole**](UserRole.md) | | [optional]
**sources** | **List[str]** | Different sources from where user signed up. e.g. social signup, username-password |
**id** | **str** | PK in the tenant users table |
**status** | [**CreateTenantUserResponseStatus**](CreateTenantUserResponseStatus.md) | | [optional]
**ol_user_id** | **object** | Unique onelens identifier for the user |
**role** | [**CreateTenantUserRequestRole**](CreateTenantUserRequestRole.md) | | [optional]
**sources** | **List[object]** | Different sources from where user signed up. e.g. social signup, username-password |
**id** | **object** | PK in the tenant users table |

## Example

Expand Down
29 changes: 29 additions & 0 deletions docs/CreateTenantUserResponseStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# CreateTenantUserResponseStatus

Status of the user like ACTIVE, BLOCKED etc.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

## Example

```python
from onelens_backend_client.models.create_tenant_user_response_status import CreateTenantUserResponseStatus

# TODO update the JSON string below
json = "{}"
# create an instance of CreateTenantUserResponseStatus from a JSON string
create_tenant_user_response_status_instance = CreateTenantUserResponseStatus.from_json(json)
# print the JSON string representation of the object
print(CreateTenantUserResponseStatus.to_json())

# convert the object into a dict
create_tenant_user_response_status_dict = create_tenant_user_response_status_instance.to_dict()
# create an instance of CreateTenantUserResponseStatus from a dict
create_tenant_user_response_status_form_dict = create_tenant_user_response_status.from_dict(create_tenant_user_response_status_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion docs/CreateUserRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**auth0_id** | **str** | Auth0 user identifier |
**auth0_id** | **object** | Auth0 user identifier |

## Example

Expand Down
4 changes: 2 additions & 2 deletions docs/CreateUserResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**auth0_id** | **str** | Auth0 user identifier |
**id** | **str** | Unique identifier for the user |
**auth0_id** | **object** | Auth0 user identifier |
**id** | **object** | Unique identifier for the user |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/DisableTenantAnomalySettingsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**config_overrides** | [**AnomalyLogicOperationOutput**](AnomalyLogicOperationOutput.md) | | [optional]
**config_overrides** | [**AnomalyLogicOperation**](AnomalyLogicOperation.md) | | [optional]
**state** | [**TenantAnomalyState**](TenantAnomalyState.md) | The state of the policy template. |
**id** | **str** | The unique identifier of the tenant policy. |

Expand Down
2 changes: 1 addition & 1 deletion docs/EnableTenantAnomalySettingsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**config_overrides** | [**AnomalyLogicOperationOutput**](AnomalyLogicOperationOutput.md) | | [optional]
**config_overrides** | [**AnomalyLogicOperation**](AnomalyLogicOperation.md) | | [optional]
**state** | [**TenantAnomalyState**](TenantAnomalyState.md) | The state of the policy template. |
**id** | **str** | The unique identifier of the tenant policy. |

Expand Down
2 changes: 1 addition & 1 deletion docs/GetAllUsersRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**auth0_id** | **str** | Auth0 user identifier |
**auth0_id** | **object** | Auth0 user identifier |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/GetAllUsersResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**auth0_id** | **str** | Auth0 user identifier |
**auth0_id** | **object** | Auth0 user identifier |
**users** | [**List[GetUserByIDResponse]**](GetUserByIDResponse.md) | List of users |

## Example
Expand Down
4 changes: 2 additions & 2 deletions docs/GetUserByIDResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**auth0_id** | **str** | Auth0 user identifier |
**id** | **str** | Unique identifier for the user |
**auth0_id** | **object** | Auth0 user identifier |
**id** | **object** | Unique identifier for the user |

## Example

Expand Down
4 changes: 2 additions & 2 deletions docs/OrItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**gte** | [**List[AndItemGteInner]**](AndItemGteInner.md) | | [optional]
**gt** | [**List[AndItemGteInner]**](AndItemGteInner.md) | | [optional]
**gte** | **List[object]** | | [optional]
**gt** | **List[object]** | | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/OverrideTenantAnomalyConfigAPIRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**config_override** | [**AnomalyLogicOperationInput**](AnomalyLogicOperationInput.md) | The config overrides for the anomaly. |
**config_override** | [**AnomalyLogicOperation**](AnomalyLogicOperation.md) | The config overrides for the anomaly. |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/OverrideTenantAnomalyConfigRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**config_override** | [**AnomalyLogicOperationInput**](AnomalyLogicOperationInput.md) | The config overrides for the anomaly. |
**config_override** | [**AnomalyLogicOperation**](AnomalyLogicOperation.md) | The config overrides for the anomaly. |
**tenant_id** | **str** | The id of the tenant. |
**node_id** | **object** | | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/OverrideTenantAnomalyConfigResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**config_overrides** | [**AnomalyLogicOperationOutput**](AnomalyLogicOperationOutput.md) | | [optional]
**config_overrides** | [**AnomalyLogicOperation**](AnomalyLogicOperation.md) | | [optional]
**state** | [**TenantAnomalyState**](TenantAnomalyState.md) | The state of the policy template. |
**id** | **str** | The unique identifier of the tenant policy. |

Expand Down
2 changes: 1 addition & 1 deletion docs/TenantAnomalySettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**config_overrides** | [**AnomalyLogicOperationOutput**](AnomalyLogicOperationOutput.md) | | [optional]
**config_overrides** | [**AnomalyLogicOperation**](AnomalyLogicOperation.md) | | [optional]
**state** | [**TenantAnomalyState**](TenantAnomalyState.md) | The state of the policy template. |
**id** | **str** | The unique identifier of the tenant policy. |

Expand Down
10 changes: 5 additions & 5 deletions docs/UpdateTenantUserResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | [**UserStatus**](UserStatus.md) | | [optional]
**ol_user_id** | **str** | Unique onelens identifier for the user |
**role** | [**UserRole**](UserRole.md) | | [optional]
**sources** | **List[str]** | Different sources from where user signed up. e.g. social signup, username-password |
**id** | **str** | PK in the tenant users table |
**status** | [**CreateTenantUserResponseStatus**](CreateTenantUserResponseStatus.md) | | [optional]
**ol_user_id** | **object** | Unique onelens identifier for the user |
**role** | [**CreateTenantUserRequestRole**](CreateTenantUserRequestRole.md) | | [optional]
**sources** | **List[object]** | Different sources from where user signed up. e.g. social signup, username-password |
**id** | **object** | PK in the tenant users table |

## Example

Expand Down
4 changes: 2 additions & 2 deletions docs/UpdateUserRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**auth0_id** | **str** | Auth0 user identifier |
**id** | **str** | Unique identifier for the user |
**auth0_id** | **object** | Auth0 user identifier |
**id** | **object** | Unique identifier for the user |

## Example

Expand Down
4 changes: 2 additions & 2 deletions docs/UpdateUserResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**auth0_id** | **str** | Auth0 user identifier |
**id** | **str** | Unique identifier for the user |
**auth0_id** | **object** | Auth0 user identifier |
**id** | **object** | Unique identifier for the user |

## Example

Expand Down
Loading

0 comments on commit fdeec2d

Please sign in to comment.