Skip to content

Commit

Permalink
Add policy exclusions and config version
Browse files Browse the repository at this point in the history
  • Loading branch information
sidpan1 committed Apr 22, 2024
1 parent 92fd1f1 commit fc8ce5a
Show file tree
Hide file tree
Showing 40 changed files with 3,420 additions and 193 deletions.
27 changes: 27 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
.travis.yml
README.md
docs/ActivatePolicyTemplateRequest.md
docs/AddTenantPolicyExclusionsAPIRequest.md
docs/AddTenantPolicyExclusionsRequest.md
docs/AddTenantPolicyExclusionsResponse.md
docs/AndItem.md
docs/AnomalyLogicOperationInput.md
docs/AnomalyLogicOperationOutput.md
Expand Down Expand Up @@ -72,6 +75,9 @@ docs/OverrideTenantAnomalyConfigResponse.md
docs/OverrideTenantPolicyConfigAPIRequest.md
docs/OverrideTenantPolicyConfigRequest.md
docs/OverrideTenantPolicyConfigResponse.md
docs/OverrideTenantPolicyExclusionsAPIRequest.md
docs/OverrideTenantPolicyExclusionsRequest.md
docs/OverrideTenantPolicyExclusionsResponse.md
docs/PaginationFields.md
docs/PaginationParams.md
docs/PoliciesPolicyTemplatePacksApi.md
Expand All @@ -90,6 +96,7 @@ docs/PolicyTemplateState.md
docs/PolicyTemplateUpdateFieldsMixin.md
docs/Provider.md
docs/ResponseActivatePolicyTemplateResponse.md
docs/ResponseAddTenantPolicyExclusionsResponse.md
docs/ResponseCreatePolicyTemplatePackResponse.md
docs/ResponseCreatePolicyTemplateResponse.md
docs/ResponseCreateTenantUserResponse.md
Expand All @@ -113,6 +120,7 @@ docs/ResponseGetTenantProviderByIDResponse.md
docs/ResponseGetTenantProvidersResponse.md
docs/ResponseGetTenantsResponse.md
docs/ResponseOverrideTenantAnomalyConfigResponse.md
docs/ResponseOverrideTenantPolicyExclusionsResponse.md
docs/ResponseTenantVerifyResponse.md
docs/ResponseUpdatePolicyTemplateResponse.md
docs/ResponseUpdateTenantProviderResponse.md
Expand All @@ -128,6 +136,7 @@ docs/TenantAnomalyState.md
docs/TenantFilters.md
docs/TenantPoliciesApi.md
docs/TenantPolicy.md
docs/TenantPolicyExclusions.md
docs/TenantPolicyFilters.md
docs/TenantPolicyServiceApi.md
docs/TenantPolicySettings.md
Expand Down Expand Up @@ -188,6 +197,9 @@ onelens_backend_client/configuration.py
onelens_backend_client/exceptions.py
onelens_backend_client/models/__init__.py
onelens_backend_client/models/activate_policy_template_request.py
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/anomaly_logic_operation_input.py
onelens_backend_client/models/anomaly_logic_operation_output.py
Expand Down Expand Up @@ -255,6 +267,9 @@ onelens_backend_client/models/override_tenant_anomaly_config_response.py
onelens_backend_client/models/override_tenant_policy_config_api_request.py
onelens_backend_client/models/override_tenant_policy_config_request.py
onelens_backend_client/models/override_tenant_policy_config_response.py
onelens_backend_client/models/override_tenant_policy_exclusions_api_request.py
onelens_backend_client/models/override_tenant_policy_exclusions_request.py
onelens_backend_client/models/override_tenant_policy_exclusions_response.py
onelens_backend_client/models/pagination_fields.py
onelens_backend_client/models/pagination_params.py
onelens_backend_client/models/policy_category.py
Expand All @@ -269,6 +284,7 @@ onelens_backend_client/models/policy_template_state.py
onelens_backend_client/models/policy_template_update_fields_mixin.py
onelens_backend_client/models/provider.py
onelens_backend_client/models/response_activate_policy_template_response.py
onelens_backend_client/models/response_add_tenant_policy_exclusions_response.py
onelens_backend_client/models/response_create_policy_template_pack_response.py
onelens_backend_client/models/response_create_policy_template_response.py
onelens_backend_client/models/response_create_tenant_user_response.py
Expand All @@ -292,6 +308,7 @@ onelens_backend_client/models/response_get_tenant_provider_by_id_response.py
onelens_backend_client/models/response_get_tenant_providers_response.py
onelens_backend_client/models/response_get_tenants_response.py
onelens_backend_client/models/response_override_tenant_anomaly_config_response.py
onelens_backend_client/models/response_override_tenant_policy_exclusions_response.py
onelens_backend_client/models/response_tenant_verify_response.py
onelens_backend_client/models/response_update_policy_template_response.py
onelens_backend_client/models/response_update_tenant_provider_response.py
Expand All @@ -304,6 +321,7 @@ onelens_backend_client/models/tenant_anomaly_settings.py
onelens_backend_client/models/tenant_anomaly_state.py
onelens_backend_client/models/tenant_filters.py
onelens_backend_client/models/tenant_policy.py
onelens_backend_client/models/tenant_policy_exclusions.py
onelens_backend_client/models/tenant_policy_filters.py
onelens_backend_client/models/tenant_policy_settings.py
onelens_backend_client/models/tenant_policy_settings_filters.py
Expand Down Expand Up @@ -337,4 +355,13 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_add_tenant_policy_exclusions_api_request.py
test/test_add_tenant_policy_exclusions_request.py
test/test_add_tenant_policy_exclusions_response.py
test/test_override_tenant_policy_exclusions_api_request.py
test/test_override_tenant_policy_exclusions_request.py
test/test_override_tenant_policy_exclusions_response.py
test/test_response_add_tenant_policy_exclusions_response.py
test/test_response_override_tenant_policy_exclusions_response.py
test/test_tenant_policy_exclusions.py
tox.ini
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,22 @@ Class | Method | Description
*TenantAnomalyServiceApi* | [**enable_tenant_anomaly_setting**](docs/TenantAnomalyServiceApi.md#enable_tenant_anomaly_setting) | enables an anomaly for a tenant in the tenant DB.
*TenantAnomalyServiceApi* | [**get_tenant_anomaly_settings**](docs/TenantAnomalyServiceApi.md#get_tenant_anomaly_settings) | Retrieves all tenant anomaly settings, optionally filtered by the parameters in the request.
*TenantAnomalyServiceApi* | [**override_tenant_anomaly_setting_config**](docs/TenantAnomalyServiceApi.md#override_tenant_anomaly_setting_config) | Override the tenant anomaly config with the provided config.
*TenantPoliciesApi* | [**add_tenant_policy_exclusions**](docs/TenantPoliciesApi.md#add_tenant_policy_exclusions) | Add Tenant Policy Exclusions
*TenantPoliciesApi* | [**disable_tenant_policy**](docs/TenantPoliciesApi.md#disable_tenant_policy) | Disable Tenant Policy
*TenantPoliciesApi* | [**enable_all_policies**](docs/TenantPoliciesApi.md#enable_all_policies) | Enable All Policies
*TenantPoliciesApi* | [**enable_tenant_policy**](docs/TenantPoliciesApi.md#enable_tenant_policy) | Enable Tenant Policy
*TenantPoliciesApi* | [**get_tenant_policies**](docs/TenantPoliciesApi.md#get_tenant_policies) | Get Tenant Policies
*TenantPoliciesApi* | [**get_tenant_policy_settings**](docs/TenantPoliciesApi.md#get_tenant_policy_settings) | Get Tenant Policy Settings
*TenantPoliciesApi* | [**override_tenant_policy_config**](docs/TenantPoliciesApi.md#override_tenant_policy_config) | Override Tenant Policy Config
*TenantPoliciesApi* | [**override_tenant_policy_exclusions**](docs/TenantPoliciesApi.md#override_tenant_policy_exclusions) | Override Tenant Policy Exclusions
*TenantPolicyServiceApi* | [**add_tenant_policy_exclusions**](docs/TenantPolicyServiceApi.md#add_tenant_policy_exclusions) | Add tenant policy exclusions.
*TenantPolicyServiceApi* | [**disable_tenant_policy**](docs/TenantPolicyServiceApi.md#disable_tenant_policy) | disable a policy for a tenant in the tenant DB.
*TenantPolicyServiceApi* | [**enable_all_policies**](docs/TenantPolicyServiceApi.md#enable_all_policies) | enables all policies for a tenant.
*TenantPolicyServiceApi* | [**enable_tenant_policy**](docs/TenantPolicyServiceApi.md#enable_tenant_policy) | enables a policy for a tenant in the tenant DB.
*TenantPolicyServiceApi* | [**get_tenant_policies**](docs/TenantPolicyServiceApi.md#get_tenant_policies) | Retrieves all tenant policies, optionally filtered by the parameters in the request.
*TenantPolicyServiceApi* | [**get_tenant_policy_settings**](docs/TenantPolicyServiceApi.md#get_tenant_policy_settings) | Retrieves all tenant policy settings, optionally filtered by the parameters in the request.
*TenantPolicyServiceApi* | [**override_tenant_policy_config**](docs/TenantPolicyServiceApi.md#override_tenant_policy_config) | Override the tenant policy config with the provided config.
*TenantPolicyServiceApi* | [**override_tenant_policy_exclusions**](docs/TenantPolicyServiceApi.md#override_tenant_policy_exclusions) | Override tenant policy exclusions.
*TenantProviderServiceApi* | [**create_tenant_provider**](docs/TenantProviderServiceApi.md#create_tenant_provider) | Creates a new tenant Provider.
*TenantProviderServiceApi* | [**get_tenant_provider_by_id**](docs/TenantProviderServiceApi.md#get_tenant_provider_by_id) | Retrieves a Tenant Provider by its unique identifier.
*TenantProviderServiceApi* | [**get_tenant_providers**](docs/TenantProviderServiceApi.md#get_tenant_providers) | Retrieves all tenant providers.
Expand Down Expand Up @@ -156,6 +160,9 @@ Class | Method | Description
## Documentation For Models

- [ActivatePolicyTemplateRequest](docs/ActivatePolicyTemplateRequest.md)
- [AddTenantPolicyExclusionsAPIRequest](docs/AddTenantPolicyExclusionsAPIRequest.md)
- [AddTenantPolicyExclusionsRequest](docs/AddTenantPolicyExclusionsRequest.md)
- [AddTenantPolicyExclusionsResponse](docs/AddTenantPolicyExclusionsResponse.md)
- [AndItem](docs/AndItem.md)
- [AnomalyLogicOperationInput](docs/AnomalyLogicOperationInput.md)
- [AnomalyLogicOperationOutput](docs/AnomalyLogicOperationOutput.md)
Expand Down Expand Up @@ -223,6 +230,9 @@ Class | Method | Description
- [OverrideTenantPolicyConfigAPIRequest](docs/OverrideTenantPolicyConfigAPIRequest.md)
- [OverrideTenantPolicyConfigRequest](docs/OverrideTenantPolicyConfigRequest.md)
- [OverrideTenantPolicyConfigResponse](docs/OverrideTenantPolicyConfigResponse.md)
- [OverrideTenantPolicyExclusionsAPIRequest](docs/OverrideTenantPolicyExclusionsAPIRequest.md)
- [OverrideTenantPolicyExclusionsRequest](docs/OverrideTenantPolicyExclusionsRequest.md)
- [OverrideTenantPolicyExclusionsResponse](docs/OverrideTenantPolicyExclusionsResponse.md)
- [PaginationFields](docs/PaginationFields.md)
- [PaginationParams](docs/PaginationParams.md)
- [PolicyCategory](docs/PolicyCategory.md)
Expand All @@ -237,6 +247,7 @@ Class | Method | Description
- [PolicyTemplateUpdateFieldsMixin](docs/PolicyTemplateUpdateFieldsMixin.md)
- [Provider](docs/Provider.md)
- [ResponseActivatePolicyTemplateResponse](docs/ResponseActivatePolicyTemplateResponse.md)
- [ResponseAddTenantPolicyExclusionsResponse](docs/ResponseAddTenantPolicyExclusionsResponse.md)
- [ResponseCreatePolicyTemplatePackResponse](docs/ResponseCreatePolicyTemplatePackResponse.md)
- [ResponseCreatePolicyTemplateResponse](docs/ResponseCreatePolicyTemplateResponse.md)
- [ResponseCreateTenantUserResponse](docs/ResponseCreateTenantUserResponse.md)
Expand All @@ -260,6 +271,7 @@ Class | Method | Description
- [ResponseGetTenantProvidersResponse](docs/ResponseGetTenantProvidersResponse.md)
- [ResponseGetTenantsResponse](docs/ResponseGetTenantsResponse.md)
- [ResponseOverrideTenantAnomalyConfigResponse](docs/ResponseOverrideTenantAnomalyConfigResponse.md)
- [ResponseOverrideTenantPolicyExclusionsResponse](docs/ResponseOverrideTenantPolicyExclusionsResponse.md)
- [ResponseTenantVerifyResponse](docs/ResponseTenantVerifyResponse.md)
- [ResponseUpdatePolicyTemplateResponse](docs/ResponseUpdatePolicyTemplateResponse.md)
- [ResponseUpdateTenantProviderResponse](docs/ResponseUpdateTenantProviderResponse.md)
Expand All @@ -272,6 +284,7 @@ Class | Method | Description
- [TenantAnomalyState](docs/TenantAnomalyState.md)
- [TenantFilters](docs/TenantFilters.md)
- [TenantPolicy](docs/TenantPolicy.md)
- [TenantPolicyExclusions](docs/TenantPolicyExclusions.md)
- [TenantPolicyFilters](docs/TenantPolicyFilters.md)
- [TenantPolicySettings](docs/TenantPolicySettings.md)
- [TenantPolicySettingsFilters](docs/TenantPolicySettingsFilters.md)
Expand Down
29 changes: 29 additions & 0 deletions docs/AddTenantPolicyExclusionsAPIRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# AddTenantPolicyExclusionsAPIRequest


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**exclusions** | [**TenantPolicyExclusions**](TenantPolicyExclusions.md) | The exclusions to add. |

## Example

```python
from onelens_backend_client.models.add_tenant_policy_exclusions_api_request import AddTenantPolicyExclusionsAPIRequest

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

# convert the object into a dict
add_tenant_policy_exclusions_api_request_dict = add_tenant_policy_exclusions_api_request_instance.to_dict()
# create an instance of AddTenantPolicyExclusionsAPIRequest from a dict
add_tenant_policy_exclusions_api_request_form_dict = add_tenant_policy_exclusions_api_request.from_dict(add_tenant_policy_exclusions_api_request_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)


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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**exclusions** | [**TenantPolicyExclusions**](TenantPolicyExclusions.md) | The exclusions to add. |
**tenant_id** | **str** | The id of the tenant. |
**policy_id** | **str** | The id of the tenant policy. |

## Example

```python
from onelens_backend_client.models.add_tenant_policy_exclusions_request import AddTenantPolicyExclusionsRequest

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

# convert the object into a dict
add_tenant_policy_exclusions_request_dict = add_tenant_policy_exclusions_request_instance.to_dict()
# create an instance of AddTenantPolicyExclusionsRequest from a dict
add_tenant_policy_exclusions_request_form_dict = add_tenant_policy_exclusions_request.from_dict(add_tenant_policy_exclusions_request_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)


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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | The unique identifier of the tenant policy setting. |
**policy_id** | **str** | The id of the tenant policy. |
**config_overrides** | **object** | | [optional]
**state** | [**TenantPolicyState**](TenantPolicyState.md) | The state of the policy template. |
**version** | **int** | The version of the tenant policy. |
**exclusions** | [**TenantPolicyExclusions**](TenantPolicyExclusions.md) | The exclusions for the tenant policy. |

## Example

```python
from onelens_backend_client.models.add_tenant_policy_exclusions_response import AddTenantPolicyExclusionsResponse

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

# convert the object into a dict
add_tenant_policy_exclusions_response_dict = add_tenant_policy_exclusions_response_instance.to_dict()
# create an instance of AddTenantPolicyExclusionsResponse from a dict
add_tenant_policy_exclusions_response_form_dict = add_tenant_policy_exclusions_response.from_dict(add_tenant_policy_exclusions_response_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: 2 additions & 0 deletions docs/OverrideTenantPolicyConfigResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Name | Type | Description | Notes
**policy_id** | **str** | The id of the tenant policy. |
**config_overrides** | **object** | | [optional]
**state** | [**TenantPolicyState**](TenantPolicyState.md) | The state of the policy template. |
**version** | **int** | The version of the tenant policy. |
**exclusions** | [**TenantPolicyExclusions**](TenantPolicyExclusions.md) | The exclusions for the tenant policy. |

## Example

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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**exclusions** | [**TenantPolicyExclusions**](TenantPolicyExclusions.md) | The exclusions to add. |

## Example

```python
from onelens_backend_client.models.override_tenant_policy_exclusions_api_request import OverrideTenantPolicyExclusionsAPIRequest

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

# convert the object into a dict
override_tenant_policy_exclusions_api_request_dict = override_tenant_policy_exclusions_api_request_instance.to_dict()
# create an instance of OverrideTenantPolicyExclusionsAPIRequest from a dict
override_tenant_policy_exclusions_api_request_form_dict = override_tenant_policy_exclusions_api_request.from_dict(override_tenant_policy_exclusions_api_request_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)


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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**exclusions** | [**TenantPolicyExclusions**](TenantPolicyExclusions.md) | The exclusions to add. |
**tenant_id** | **str** | The id of the tenant. |
**policy_id** | **str** | The id of the tenant policy. |

## Example

```python
from onelens_backend_client.models.override_tenant_policy_exclusions_request import OverrideTenantPolicyExclusionsRequest

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

# convert the object into a dict
override_tenant_policy_exclusions_request_dict = override_tenant_policy_exclusions_request_instance.to_dict()
# create an instance of OverrideTenantPolicyExclusionsRequest from a dict
override_tenant_policy_exclusions_request_form_dict = override_tenant_policy_exclusions_request.from_dict(override_tenant_policy_exclusions_request_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)


Loading

0 comments on commit fc8ce5a

Please sign in to comment.