Skip to content

Commit

Permalink
code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
clementastuto committed Nov 14, 2024
1 parent 652f0d1 commit 9df5eaf
Show file tree
Hide file tree
Showing 1,862 changed files with 194,213 additions and 13,374 deletions.
530 changes: 492 additions & 38 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

229 changes: 216 additions & 13 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions REGENERATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Run this to regenerate the client code locally. OneLens Backend must be running
# Client Generator V1
```
docker run --rm -v "${PWD}:/onelens-backend-python-client" openapitools/openapi-generator-cli:v7.5.0 generate \
-i http://host.docker.internal:19000/openapi.json \
-i http://host.docker.internal:8001/openapi.json \
-g python \
-o /onelens-backend-python-client/ \
-t /onelens-backend-python-client/templates/ \
Expand All @@ -21,5 +21,5 @@ git restore onelens_backend_client_v2/__init__.py
```
poetry install
poetry shell
python3 client_generator.py -i http://localhost:19000/openapi.json -o onelens_backend_client_v2
python3 client_generator.py -i http://localhost:8001/openapi.json -o onelens_backend_client_v2
```
4 changes: 2 additions & 2 deletions client_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def main(openapi_file: str, output_dir: str):
init_file.write(rendered_template)

# Format the generated code
subprocess.run(["ruff", "check", "--fix", output_dir])
subprocess.run(["ruff", "format", output_dir])
#subprocess.run(["ruff", "check", "--fix", output_dir])
#subprocess.run(["ruff", "format", output_dir])


if __name__ == "__main__":
Expand Down
32 changes: 32 additions & 0 deletions docs/APIGetFeaturesByFiltersRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# APIGetFeaturesByFiltersRequest


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**scope** | [**TenantFeatureScope**](TenantFeatureScope.md) | | [optional]
**entity_id** | **List[str]** | | [optional]
**feature_name** | **str** | | [optional]
**is_enabled** | **bool** | | [optional]

## Example

```python
from onelens_backend_client.models.api_get_features_by_filters_request import APIGetFeaturesByFiltersRequest

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

# convert the object into a dict
api_get_features_by_filters_request_dict = api_get_features_by_filters_request_instance.to_dict()
# create an instance of APIGetFeaturesByFiltersRequest from a dict
api_get_features_by_filters_request_form_dict = api_get_features_by_filters_request.from_dict(api_get_features_by_filters_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)


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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |

## Example

```python
from onelens_backend_client.models.api_update_feature_status_enabled_request import APIUpdateFeatureStatusEnabledRequest

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

# convert the object into a dict
api_update_feature_status_enabled_request_dict = api_update_feature_status_enabled_request_instance.to_dict()
# create an instance of APIUpdateFeatureStatusEnabledRequest from a dict
api_update_feature_status_enabled_request_form_dict = api_update_feature_status_enabled_request.from_dict(api_update_feature_status_enabled_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)


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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**feature** | [**TenantFeature**](TenantFeature.md) | |

## Example

```python
from onelens_backend_client.models.api_update_feature_status_update_response import APIUpdateFeatureStatusUpdateResponse

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

# convert the object into a dict
api_update_feature_status_update_response_dict = api_update_feature_status_update_response_instance.to_dict()
# create an instance of APIUpdateFeatureStatusUpdateResponse from a dict
api_update_feature_status_update_response_form_dict = api_update_feature_status_update_response.from_dict(api_update_feature_status_update_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)


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

Account Id managing the resource

## Properties

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

## Example

```python
from onelens_backend_client.models.account_id import AccountId

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

# convert the object into a dict
account_id_dict = account_id_instance.to_dict()
# create an instance of AccountId from a dict
account_id_form_dict = account_id.from_dict(account_id_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)


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

Account name

## Properties

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

## Example

```python
from onelens_backend_client.models.account_name import AccountName

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

# convert the object into a dict
account_name_dict = account_name_instance.to_dict()
# create an instance of AccountName from a dict
account_name_form_dict = account_name.from_dict(account_name_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)


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

Enum representing the type of agent.

## Properties

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

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


1 change: 1 addition & 0 deletions docs/Auth0CreateUserAppMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**role** | [**UserRole**](UserRole.md) | The role of the user in Auth0. |
**tenant_id** | **str** | | [optional]
**node_ids** | **List[str]** | The node_ids of the user in Auth0. |

## Example

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

Enum representing the role of a message author.

## Properties

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

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


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

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ol_user_id** | **object** | Unique onelens identifier for the user |
**first_name** | [**FirstName**](FirstName.md) | |
**middle_name** | [**MiddleName**](MiddleName.md) | | [optional]
**last_name** | [**LastName**](LastName.md) | |
**email** | [**Email**](Email.md) | | [optional]
**mobile_country_code** | [**MobileCountryCode**](MobileCountryCode.md) | | [optional]
**mobile_number** | [**MobileNumber**](MobileNumber.md) | | [optional]
**persona** | [**BaseUserPersona**](BaseUserPersona.md) | | [optional]
**role** | [**BaseUserRole**](BaseUserRole.md) | | [optional]
**role** | [**UserRole**](UserRole.md) | Role of the user in the tenant | [optional]
**job_title** | [**JobTitle**](JobTitle.md) | | [optional]
**manager** | [**Manager**](Manager.md) | | [optional]
**city** | [**City**](City.md) | | [optional]
Expand All @@ -25,7 +24,11 @@ Name | Type | Description | Notes
**display_date_format** | [**DisplayDateFormat**](DisplayDateFormat.md) | | [optional]
**display_time_format** | [**DisplayTimeFormat**](DisplayTimeFormat.md) | | [optional]
**status** | [**UserStatus**](UserStatus.md) | Status of the user like ACTIVE, BLOCKED etc. | [optional]
**sources** | **List[object]** | Different sources from where user signed up. e.g. social signup, username-password |
**sources** | [**Sources**](Sources.md) | | [optional]
**last_login** | [**LastLogin**](LastLogin.md) | | [optional]
**created_at** | [**CreatedAt**](CreatedAt.md) | | [optional]
**node_ids** | **List[object]** | Hierarchy node ids(cost centers) the user has access to. |
**ol_user_id** | **object** | Unique onelens identifier for the user |

## Example

Expand Down
14 changes: 10 additions & 4 deletions docs/CloudMetadataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Method | Description


# **create_root_node**
> ResponseGetCloudMetadataResponse create_root_node()
> ResponseGetCloudMetadataResponse create_root_node(get_cloud_metadata_api_request)
Create Root Node

Expand All @@ -19,6 +19,7 @@ An API endpoint to get tenant cloud metadata like cloud id, region, service...

```python
import onelens_backend_client
from onelens_backend_client.models.get_cloud_metadata_api_request import GetCloudMetadataAPIRequest
from onelens_backend_client.models.response_get_cloud_metadata_response import ResponseGetCloudMetadataResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
Expand All @@ -34,10 +35,11 @@ configuration = onelens_backend_client.Configuration(
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.CloudMetadataApi(api_client)
get_cloud_metadata_api_request = onelens_backend_client.GetCloudMetadataAPIRequest() # GetCloudMetadataAPIRequest |

try:
# Create Root Node
api_response = api_instance.create_root_node()
api_response = api_instance.create_root_node(get_cloud_metadata_api_request)
print("The response of CloudMetadataApi->create_root_node:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -48,7 +50,10 @@ with onelens_backend_client.ApiClient(configuration) as api_client:

### Parameters

This endpoint does not need any parameter.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**get_cloud_metadata_api_request** | [**GetCloudMetadataAPIRequest**](GetCloudMetadataAPIRequest.md)| |

### Return type

Expand All @@ -60,14 +65,15 @@ No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response | - |
**422** | Validation Error | - |

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

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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | [**List[CloudMetadataType]**](CloudMetadataType.md) | | [optional]

## Example

```python
from onelens_backend_client.models.cloud_metadata_filters import CloudMetadataFilters

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

# convert the object into a dict
cloud_metadata_filters_dict = cloud_metadata_filters_instance.to_dict()
# create an instance of CloudMetadataFilters from a dict
cloud_metadata_filters_form_dict = cloud_metadata_filters.from_dict(cloud_metadata_filters_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)


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


## Properties

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

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


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


## Properties

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

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


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


## Properties

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

[[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 9df5eaf

Please sign in to comment.